From 29b1361825169494d0890447aaa0b57fa8162799 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Fri, 24 Oct 2025 09:59:38 -0700 Subject: [PATCH 1/6] Deprecate and change defaults --- src/compiler/commandLineParser.ts | 5 ++- src/compiler/diagnosticMessages.json | 2 +- src/compiler/program.ts | 3 ++ src/compiler/types.ts | 5 +++ src/compiler/utilities.ts | 39 ++++++++----------- .../fourslash/codeFixCalledES2015Import3.ts | 5 +-- .../fourslash/codeFixCalledES2015Import6.ts | 5 +-- .../fourslash/codeFixCalledES2015Import9.ts | 5 +-- ...ionListForTransitivelyExportedMembers04.ts | 3 +- .../completionListInImportClause01.ts | 16 ++++---- tests/cases/fourslash/getPreProcessedFile.ts | 9 ++--- 11 files changed, 47 insertions(+), 50 deletions(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 154371b7c8194..4c0ffb2ad57e5 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -608,6 +608,7 @@ export const moduleOptionDeclaration: CommandLineOptionOfCustomType = { nodenext: ModuleKind.NodeNext, preserve: ModuleKind.Preserve, })), + deprecatedKeys: new Set(["none", "amd", "system", "umd"]), affectsSourceFile: true, affectsModuleResolution: true, affectsEmit: true, @@ -1071,13 +1072,13 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [ nodenext: ModuleResolutionKind.NodeNext, bundler: ModuleResolutionKind.Bundler, })), - deprecatedKeys: new Set(["node"]), + deprecatedKeys: new Set(["node", "node10", "classic"]), affectsSourceFile: true, affectsModuleResolution: true, paramType: Diagnostics.STRATEGY, category: Diagnostics.Modules, description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier, - defaultValueDescription: Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node, + defaultValueDescription: Diagnostics.nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler, }, { name: "baseUrl", diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 4ccbd0c325b0c..7a19b3bb8212b 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -6611,7 +6611,7 @@ "category": "Message", "code": 6909 }, - "module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`": { + "`nodenext` if `module` is `nodenext`; `node16` if `module` is `node16` or `node18`; otherwise, `bundler`.": { "category": "Message", "code": 69010 }, diff --git a/src/compiler/program.ts b/src/compiler/program.ts index ef1eeff77ade5..607556b932b25 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -4507,6 +4507,9 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro if (options.allowSyntheticDefaultImports === false) { createDeprecatedDiagnostic("allowSyntheticDefaultImports", "false", /*useInstead*/ undefined, /*related*/ undefined); } + if (options.module === ModuleKind.None || options.module === ModuleKind.AMD || options.module === ModuleKind.UMD || options.module === ModuleKind.System) { + createDeprecatedDiagnostic("module", ModuleKind[options.module], /*useInstead*/ undefined, /*related*/ undefined); + } }); } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 4835b4bdf2efa..626bcecf9d34a 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -7313,6 +7313,7 @@ export function diagnosticCategoryName(d: { category: DiagnosticCategory; }, low } export enum ModuleResolutionKind { + /** @deprecated */ Classic = 1, /** * @deprecated @@ -7576,10 +7577,14 @@ export interface TypeAcquisition { } export enum ModuleKind { + /** @deprecated */ None = 0, CommonJS = 1, + /** @deprecated */ AMD = 2, + /** @deprecated */ UMD = 3, + /** @deprecated */ System = 4, // NOTE: ES module kinds should be contiguous to more easily check whether a module kind is *any* ES module kind. diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 79394c80c9c0f..b8657c1f328fd 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -9015,27 +9015,22 @@ const _computedOptions = createComputedCompilerOptions({ moduleResolution: { dependencies: ["module", "target"], computeValue: (compilerOptions): ModuleResolutionKind => { - let moduleResolution = compilerOptions.moduleResolution; - if (moduleResolution === undefined) { - switch (_computedOptions.module.computeValue(compilerOptions)) { - case ModuleKind.Node16: - case ModuleKind.Node18: - case ModuleKind.Node20: - moduleResolution = ModuleResolutionKind.Node16; - break; - case ModuleKind.NodeNext: - moduleResolution = ModuleResolutionKind.NodeNext; - break; - case ModuleKind.CommonJS: - case ModuleKind.Preserve: - moduleResolution = ModuleResolutionKind.Bundler; - break; - default: - moduleResolution = ModuleResolutionKind.Classic; - break; - } + if (compilerOptions.moduleResolution !== undefined) { + return compilerOptions.moduleResolution; } - return moduleResolution; + const moduleKind = _computedOptions.module.computeValue(compilerOptions); + switch (moduleKind) { + case ModuleKind.AMD: + case ModuleKind.UMD: + case ModuleKind.System: + return ModuleResolutionKind.Classic; + case ModuleKind.NodeNext: + return ModuleResolutionKind.NodeNext; + } + if (ModuleKind.Node16 <= moduleKind && moduleKind < ModuleKind.NodeNext) { + return ModuleResolutionKind.Node16; + } + return ModuleResolutionKind.Bundler; }, }, moduleDetection: { @@ -9075,7 +9070,7 @@ const _computedOptions = createComputedCompilerOptions({ }, }, resolvePackageJsonExports: { - dependencies: ["moduleResolution"], + dependencies: ["moduleResolution", "module", "target"], computeValue: (compilerOptions): boolean => { const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions); if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { @@ -9094,7 +9089,7 @@ const _computedOptions = createComputedCompilerOptions({ }, }, resolvePackageJsonImports: { - dependencies: ["moduleResolution", "resolvePackageJsonExports"], + dependencies: ["moduleResolution", "resolvePackageJsonExports", "module", "target"], computeValue: (compilerOptions): boolean => { const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions); if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { diff --git a/tests/cases/fourslash/codeFixCalledES2015Import3.ts b/tests/cases/fourslash/codeFixCalledES2015Import3.ts index c9eb402c800c5..6d8a6e475c168 100644 --- a/tests/cases/fourslash/codeFixCalledES2015Import3.ts +++ b/tests/cases/fourslash/codeFixCalledES2015Import3.ts @@ -1,6 +1,5 @@ /// -// @esModuleInterop: true -// @module: amd + // @Filename: foo.d.ts ////declare function foo(): void; ////declare namespace foo {} @@ -13,7 +12,7 @@ goTo.file(1); verify.codeFix({ - description: `Replace import with 'import foo from "./foo";'.`, + description: `Convert to default import`, newFileContent: `import foo from "./foo"; function invoke(f: () => void) { f(); } invoke(foo);`, diff --git a/tests/cases/fourslash/codeFixCalledES2015Import6.ts b/tests/cases/fourslash/codeFixCalledES2015Import6.ts index b741831bce96b..678739f7abb8f 100644 --- a/tests/cases/fourslash/codeFixCalledES2015Import6.ts +++ b/tests/cases/fourslash/codeFixCalledES2015Import6.ts @@ -1,6 +1,5 @@ /// -// @esModuleInterop: true -// @module: amd + // @Filename: foo.d.ts ////declare function foo(): void; ////declare namespace foo {} @@ -12,7 +11,7 @@ goTo.file(1); verify.codeFix({ - description: `Replace import with 'import foo from "./foo";'.`, + description: `Convert to default import`, newRangeContent: `import foo from "./foo";`, index: 0, }); diff --git a/tests/cases/fourslash/codeFixCalledES2015Import9.ts b/tests/cases/fourslash/codeFixCalledES2015Import9.ts index 1ce110f056a0b..cdd2f02471af6 100644 --- a/tests/cases/fourslash/codeFixCalledES2015Import9.ts +++ b/tests/cases/fourslash/codeFixCalledES2015Import9.ts @@ -1,6 +1,5 @@ /// -// @esModuleInterop: true -// @module: amd + // @Filename: foo.d.ts ////declare class foo(): void; ////declare namespace foo {} @@ -12,7 +11,7 @@ goTo.file(1); verify.codeFix({ - description: `Replace import with 'import foo from "./foo";'.`, + description: `Convert to default import`, newRangeContent: `import foo from "./foo";`, index: 0, }); diff --git a/tests/cases/fourslash/completionListForTransitivelyExportedMembers04.ts b/tests/cases/fourslash/completionListForTransitivelyExportedMembers04.ts index 34e81ae9c909e..289c7aa64b97a 100644 --- a/tests/cases/fourslash/completionListForTransitivelyExportedMembers04.ts +++ b/tests/cases/fourslash/completionListForTransitivelyExportedMembers04.ts @@ -1,5 +1,4 @@ /// -// @ModuleResolution: classic // @Filename: A.ts ////export interface I1 { one: number } @@ -29,7 +28,7 @@ ////export * from "B" // @Filename: D.ts -////import * as c from "C"; +////import * as c from "./C"; ////var x: c.Inner./**/ verify.completions({ marker: "", exact: "I3" }); diff --git a/tests/cases/fourslash/completionListInImportClause01.ts b/tests/cases/fourslash/completionListInImportClause01.ts index 48ed52ae51517..999d8323746de 100644 --- a/tests/cases/fourslash/completionListInImportClause01.ts +++ b/tests/cases/fourslash/completionListInImportClause01.ts @@ -1,20 +1,18 @@ /// -// @ModuleResolution: classic - // @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"; const type = { name: "type", sortText: completion.SortText.GlobalsOrKeywords }; diff --git a/tests/cases/fourslash/getPreProcessedFile.ts b/tests/cases/fourslash/getPreProcessedFile.ts index a33a6c9a470ce..2a82cdc6d7eb5 100644 --- a/tests/cases/fourslash/getPreProcessedFile.ts +++ b/tests/cases/fourslash/getPreProcessedFile.ts @@ -1,5 +1,4 @@ /// -// @ModuleResolution: classic // @Filename: refFile1.ts //// class D { } @@ -12,10 +11,10 @@ //// /// //// /// //// /*3*/////*4*/ -//// import ref2 = require("refFile2"); -//// import noExistref2 = require(/*5*/"NotExistRefFile2"/*6*/); -//// import invalidRef1 /*7*/require/*8*/("refFile2"); -//// import invalidRef2 = /*9*/requi/*10*/(/*10A*/"refFile2"); +//// import ref2 = require("./refFile2"); +//// import noExistref2 = require(/*5*/"./NotExistRefFile2"/*6*/); +//// import invalidRef1 /*7*/require/*8*/("./refFile2"); +//// import invalidRef2 = /*9*/requi/*10*/(/*10A*/"./refFile2"); //// var obj: /*11*/C/*12*/; //// var obj1: D; //// var obj2: ref2.E; From 594a76b9a7acfe7e307c3f3dcd11a3dc4beddb9d Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Fri, 24 Oct 2025 11:02:55 -0700 Subject: [PATCH 2/6] First round of baseline accept --- ...ModuleForStatementNoInitializer.errors.txt | 22 + .../aliasesInSystemModule1.errors.txt | 2 + .../aliasesInSystemModule2.errors.txt | 2 + .../allowSyntheticDefaultImports2.errors.txt | 12 + .../allowSyntheticDefaultImports3.errors.txt | 2 + .../allowSyntheticDefaultImports5.errors.txt | 14 + .../allowSyntheticDefaultImports6.errors.txt | 2 + .../allowSyntheticDefaultImports7.errors.txt | 13 + .../allowSyntheticDefaultImports7.types | 2 + .../allowSyntheticDefaultImports8.errors.txt | 2 + ...alModuleInAnotherExternalModule.errors.txt | 2 + ...eInsideNonAmbientExternalModule.errors.txt | 2 + .../ambientExternalModuleMerging.errors.txt | 19 + ...leWithInternalImportDeclaration.errors.txt | 21 + ...ithoutInternalImportDeclaration.errors.txt | 20 + ...tInsideNonAmbientExternalModule.errors.txt | 10 + ...mbientInsideNonAmbientExternalModule.types | 1 + ...mdDeclarationEmitNoExtraDeclare.errors.txt | 24 + .../amdDeclarationEmitNoExtraDeclare.types | 1 + .../amdDependencyComment2.errors.txt | 2 + .../amdDependencyCommentName2.errors.txt | 2 + .../amdDependencyCommentName3.errors.txt | 2 + .../amdDependencyCommentName4.errors.txt | 2 + .../amdImportAsPrimaryExpression.errors.txt | 15 + ...amdImportNotAsPrimaryExpression.errors.txt | 34 + ...uplicateDeclarationEmitComments.errors.txt | 10 + .../amdModuleConstEnumUsage.errors.txt | 2 + .../reference/amdModuleName1.errors.txt | 14 + .../reference/amdModuleName2.errors.txt | 2 + .../anonymousDefaultExportsAmd.errors.txt | 9 + .../anonymousDefaultExportsSystem.errors.txt | 9 + .../anonymousDefaultExportsUmd.errors.txt | 9 + tests/baselines/reference/api/typescript.d.ts | 5 + ...eIdentifiers_module(module=amd).errors.txt | 2 + ...Identifiers_module(module=none).errors.txt | 6 + ...entifiers_module(module=system).errors.txt | 2 + ...eIdentifiers_module(module=umd).errors.txt | 2 + ...syncAwaitIsolatedModules_es2017.errors.txt | 4 +- .../asyncAwaitIsolatedModules_es6.errors.txt | 4 +- .../reference/augmentExportEquals1.errors.txt | 2 + .../augmentExportEquals1_1.errors.txt | 2 + .../reference/augmentExportEquals2.errors.txt | 2 + .../augmentExportEquals2_1.errors.txt | 2 + .../reference/augmentExportEquals3.errors.txt | 26 + .../reference/augmentExportEquals3.types | 1 + .../augmentExportEquals3_1.errors.txt | 30 + .../reference/augmentExportEquals3_1.types | 1 + .../reference/augmentExportEquals4.errors.txt | 26 + .../reference/augmentExportEquals4.types | 1 + .../augmentExportEquals4_1.errors.txt | 30 + .../reference/augmentExportEquals4_1.types | 1 + .../reference/augmentExportEquals5.errors.txt | 83 + .../reference/augmentExportEquals5.types | 5 + .../reference/augmentExportEquals6.errors.txt | 30 + .../reference/augmentExportEquals6.types | 1 + .../augmentExportEquals6_1.errors.txt | 28 + .../augmentedTypesExternalModule1.errors.txt | 8 + ...allowedModifiers(target=es2017).errors.txt | 4 +- ...allowedModifiers(target=esnext).errors.txt | 4 +- ...pLevelOfModule.1(module=system).errors.txt | 18 + .../badExternalModuleReference.errors.txt | 2 + .../reference/bangInModuleName.errors.txt | 17 + ...nctionDeclarationInStrictModule.errors.txt | 2 + ...ockScopedNamespaceDifferentFile.errors.txt | 22 + .../blockScopedNamespaceDifferentFile.types | 1 + .../reference/cacheResolutions.errors.txt | 12 + .../capturedLetConstInLoop4.errors.txt | 147 + .../reference/capturedLetConstInLoop4.types | 58 + .../classStaticBlock24(module=amd).errors.txt | 12 + ...assStaticBlock24(module=system).errors.txt | 12 + .../classStaticBlock24(module=umd).errors.txt | 12 + ...collisionExportsRequireAndAlias.errors.txt | 2 + ...onExportsRequireAndAmbientClass.errors.txt | 40 + ...ionExportsRequireAndAmbientEnum.errors.txt | 63 + ...xportsRequireAndAmbientFunction.errors.txt | 18 + ...nExportsRequireAndAmbientModule.errors.txt | 97 + ...sionExportsRequireAndAmbientVar.errors.txt | 29 + ...collisionExportsRequireAndClass.errors.txt | 2 + .../collisionExportsRequireAndEnum.errors.txt | 2 + ...lisionExportsRequireAndFunction.errors.txt | 2 + ...tsRequireAndInternalModuleAlias.errors.txt | 2 + ...ollisionExportsRequireAndModule.errors.txt | 2 + ...sRequireAndUninstantiatedModule.errors.txt | 19 + .../collisionExportsRequireAndVar.errors.txt | 2 + .../commentOnImportStatement1.errors.txt | 2 + ...ommentsBeforeVariableStatement1.errors.txt | 8 + .../commentsDottedModuleName.errors.txt | 11 + .../commentsExternalModules.errors.txt | 63 + .../commentsExternalModules2.errors.txt | 63 + .../commentsMultiModuleMultiFile.errors.txt | 38 + ...le=system,moduledetection=auto).errors.txt | 25 + ...,module=system,moduledetection=auto).types | 3 +- ...e=system,moduledetection=force).errors.txt | 25 + ...module=system,moduledetection=force).types | 3 +- ...=system,moduledetection=legacy).errors.txt | 25 + ...odule=system,moduledetection=legacy).types | 3 +- ...le=system,moduledetection=auto).errors.txt | 2 + ...e=system,moduledetection=force).errors.txt | 2 + ...=system,moduledetection=legacy).errors.txt | 2 + ...le=system,moduledetection=auto).errors.txt | 2 + ...e=system,moduledetection=force).errors.txt | 2 + ...=system,moduledetection=legacy).errors.txt | 2 + ...le=system,moduledetection=auto).errors.txt | 2 + ...e=system,moduledetection=force).errors.txt | 2 + ...=system,moduledetection=legacy).errors.txt | 2 + .../reference/commonSourceDir5.errors.txt | 2 + .../reference/commonSourceDir6.errors.txt | 18 + .../Parse empty options of --module.js | 2 +- ...rse empty options of --moduleResolution.js | 2 +- ...odule to compiler-options with json api.js | 2 +- ...ompiler-options with jsonSourceFile api.js | 2 +- ...ution to compiler-options with json api.js | 2 +- ...ompiler-options with jsonSourceFile api.js | 2 +- .../module/tsconfig.json | 6 +- .../constDeclarations-access5.errors.txt | 2 + .../constEnumExternalModule.errors.txt | 13 + .../constEnumMergingWithValues1.errors.txt | 11 + .../constEnumMergingWithValues2.errors.txt | 11 + .../constEnumMergingWithValues3.errors.txt | 11 + .../constEnumMergingWithValues4.errors.txt | 15 + .../constEnumMergingWithValues5.errors.txt | 10 + ...StringLiteralsInJsxAttributes02.errors.txt | 2 + .../copyrightWithNewLine1.errors.txt | 2 + .../copyrightWithoutNewLine1.errors.txt | 2 + ...IntypeCheckInvocationExpression.errors.txt | 2 + ...peCheckObjectCreationExpression.errors.txt | 2 + ...ortAssignmentOfGenericInterface.errors.txt | 14 + .../declFileExportImportChain.errors.txt | 26 + .../declFileExportImportChain2.errors.txt | 23 + ...declarationEmitAmdModuleDefault.errors.txt | 6 + ...ationEmitAmdModuleNameDirective.errors.txt | 11 + ...EmitBundleWithAmbientReferences.errors.txt | 23 + ...mitDefaultExportWithTempVarName.errors.txt | 6 + ...portWithTempVarNameWithBundling.errors.txt | 6 + ...PrefersPathKindBasedOnBundling2.errors.txt | 2 + .../declarationMapsOutFile.errors.txt | 22 + .../reference/declarationMerging2.errors.txt | 17 + .../decoratedClassExportsSystem1.errors.txt | 12 + .../decoratedClassExportsSystem1.types | 4 + .../decoratedClassExportsSystem2.errors.txt | 9 + .../decoratedClassExportsSystem2.types | 4 + ...ecoratedClassFromExternalModule.errors.txt | 13 + .../decoratedClassFromExternalModule.types | 5 +- ...tedDefaultExportsGetExportedAmd.errors.txt | 16 + ...DefaultExportsGetExportedSystem.errors.txt | 15 + ...tedDefaultExportsGetExportedUmd.errors.txt | 16 + .../deduplicateImportsInSystem.errors.txt | 2 + ...efaultExportInAwaitExpression01.errors.txt | 15 + .../defaultExportsGetExportedAmd.errors.txt | 10 + ...defaultExportsGetExportedSystem.errors.txt | 10 + .../defaultExportsGetExportedUmd.errors.txt | 10 + .../dependencyViaImportAlias.errors.txt | 13 + .../deprecatedCompilerOptions2.errors.txt | 24 + .../deprecatedCompilerOptions6.errors.txt | 5 +- ...ucturingInVariableDeclarations3.errors.txt | 10 + ...ucturingInVariableDeclarations4.errors.txt | 11 + ...ucturingInVariableDeclarations5.errors.txt | 10 + ...ucturingInVariableDeclarations6.errors.txt | 11 + ...ucturingInVariableDeclarations7.errors.txt | 10 + ...ucturingInVariableDeclarations8.errors.txt | 11 + .../reference/dottedNamesInSystem.errors.txt | 12 + ...dNotShortCircuitBaseTypeBinding.errors.txt | 22 + .../duplicateLocalVariable2.errors.txt | 2 + .../duplicateSymbolsExportMatching.errors.txt | 2 + ...amicImportWithNestedThis_es2015.errors.txt | 16 + ...dynamicImportWithNestedThis_es5.errors.txt | 16 + .../reference/dynamicRequire.errors.txt | 9 + .../baselines/reference/dynamicRequire.types | 5 + ...itBundleWithPrologueDirectives1.errors.txt | 10 + .../emitBundleWithShebang1.errors.txt | 8 + .../emitBundleWithShebang2.errors.txt | 13 + ...thShebangAndPrologueDirectives1.errors.txt | 9 + ...thShebangAndPrologueDirectives2.errors.txt | 16 + ...WithLocalCollisions(module=amd).errors.txt | 12 + ...ithLocalCollisions(module=none).errors.txt | 12 + ...hLocalCollisions(module=system).errors.txt | 12 + ...WithLocalCollisions(module=umd).errors.txt | 12 + ...ithImplicitModuleResolutionNone.errors.txt | 4 +- tests/baselines/reference/es5-amd.errors.txt | 17 + .../reference/es5-declaration-amd.errors.txt | 17 + .../reference/es5-souremap-amd.errors.txt | 17 + .../baselines/reference/es5-system.errors.txt | 18 + .../reference/es5-system2.errors.txt | 6 + tests/baselines/reference/es5-umd.errors.txt | 18 + tests/baselines/reference/es5-umd2.errors.txt | 18 + tests/baselines/reference/es5-umd3.errors.txt | 18 + tests/baselines/reference/es5-umd4.errors.txt | 20 + .../es5ModuleInternalNamedImports.errors.txt | 2 + .../es5ModuleWithModuleGenAmd.errors.txt | 16 + tests/baselines/reference/es6-amd.errors.txt | 17 + .../reference/es6-declaration-amd.errors.txt | 17 + .../reference/es6-sourcemap-amd.errors.txt | 17 + tests/baselines/reference/es6-umd.errors.txt | 17 + tests/baselines/reference/es6-umd2.errors.txt | 17 + .../reference/es6ExportAll.errors.txt | 19 + .../reference/es6ExportAssignment2.errors.txt | 5 +- .../reference/es6ExportAssignment2.types | 4 +- .../reference/es6ExportAssignment3.errors.txt | 12 + .../reference/es6ExportAssignment3.types | 4 +- ...ortClauseWithoutModuleSpecifier.errors.txt | 35 + .../es6ExportClauseWithoutModuleSpecifier.js | 3 +- ...ExportClauseWithoutModuleSpecifier.symbols | 2 - ...s6ExportClauseWithoutModuleSpecifier.types | 24 +- .../es6ImportDefaultBinding.errors.txt | 17 + .../reference/es6ImportDefaultBinding.types | 16 +- .../es6ImportDefaultBindingAmd.errors.txt | 13 + ...BindingFollowedWithNamedImport1.errors.txt | 36 +- ...faultBindingFollowedWithNamedImport1.types | 48 +- ...llowedWithNamedImportWithExport.errors.txt | 2 + ...ingFollowedWithNamespaceBinding.errors.txt | 6 +- ...indingFollowedWithNamespaceBinding.symbols | 2 - ...tBindingFollowedWithNamespaceBinding.types | 16 +- ...ngFollowedWithNamespaceBinding1.errors.txt | 12 + ...BindingFollowedWithNamespaceBinding1.types | 12 +- ...WithNamespaceBinding1WithExport.errors.txt | 2 + ...ollowedWithNamespaceBindingDts1.errors.txt | 11 + ...6ImportDefaultBindingWithExport.errors.txt | 2 + .../es6ImportEqualsDeclaration.errors.txt | 10 +- .../reference/es6ImportEqualsDeclaration.js | 3 - .../es6ImportEqualsDeclaration.symbols | 7 - .../es6ImportEqualsDeclaration.types | 15 +- .../es6ImportNameSpaceImportAmd.errors.txt | 12 + ...ImportNameSpaceImportWithExport.errors.txt | 2 + .../es6ImportNamedImportAmd.errors.txt | 43 + ...rtNamedImportIdentifiersParsing.errors.txt | 20 +- ...s6ImportNamedImportParsingError.errors.txt | 6 +- .../es6ImportWithoutFromClause.errors.txt | 11 + .../es6ImportWithoutFromClauseAmd.errors.txt | 15 + ...FromClauseNonInstantiatedModule.errors.txt | 11 + ...es6ModuleWithModuleGenTargetAmd.errors.txt | 16 + .../es6modulekindWithES5Target10.errors.txt | 4 +- .../es6modulekindWithES5Target9.errors.txt | 20 +- ...esnextmodulekindWithES5Target10.errors.txt | 4 +- .../esnextmodulekindWithES5Target9.errors.txt | 20 +- .../exportAndImport-es5-amd.errors.txt | 14 + .../exportAsNamespace1(module=amd).errors.txt | 2 + ...portAsNamespace1(module=system).errors.txt | 2 + .../exportAsNamespace1(module=umd).errors.txt | 2 + .../exportAsNamespace2(module=amd).errors.txt | 2 + ...portAsNamespace2(module=system).errors.txt | 2 + .../exportAsNamespace2(module=umd).errors.txt | 2 + .../exportAsNamespace3(module=amd).errors.txt | 2 + ...portAsNamespace3(module=system).errors.txt | 2 + .../exportAsNamespace3(module=umd).errors.txt | 2 + .../exportAsNamespace4(module=amd).errors.txt | 24 + ...portAsNamespace4(module=system).errors.txt | 24 + .../exportAsNamespace4(module=umd).errors.txt | 24 + .../exportAsNamespace_nonExistent.errors.txt | 4 +- ...ortAssignedTypeAsTypeAnnotation.errors.txt | 16 + .../exportAssignmentAndDeclaration.errors.txt | 2 + ...exportAssignmentCircularModules.errors.txt | 25 + .../exportAssignmentCircularModules.types | 6 + .../exportAssignmentClass.errors.txt | 14 + .../exportAssignmentError.errors.txt | 13 + .../reference/exportAssignmentError.types | 1 + .../exportAssignmentFunction.errors.txt | 13 + .../exportAssignmentInterface.errors.txt | 17 + .../exportAssignmentInternalModule.errors.txt | 15 + .../exportAssignmentInternalModule.types | 2 + ...exportAssignmentMergedInterface.errors.txt | 25 + .../exportAssignmentOfGenericType1.errors.txt | 16 + ...exportAssignmentTopLevelClodule.errors.txt | 19 + ...xportAssignmentTopLevelEnumdule.errors.txt | 20 + ...exportAssignmentTopLevelFundule.errors.txt | 19 + ...ortAssignmentTopLevelIdentifier.errors.txt | 16 + ...WithImportStatementPrivacyError.errors.txt | 26 + ...nmentWithImportStatementPrivacyError.types | 3 + ...xportAssignmentWithPrivacyError.errors.txt | 22 + .../exportAssignmentWithPrivacyError.types | 3 + .../exportClassNameWithObjectAMD.errors.txt | 2 + ...exportClassNameWithObjectSystem.errors.txt | 2 + .../exportClassNameWithObjectUMD.errors.txt | 2 + ...MemberOfSameName(module=system).errors.txt | 19 + .../reference/exportDeclareClass1.errors.txt | 2 + .../exportDefaultAsyncFunction2.errors.txt | 20 +- .../exportDefaultAsyncFunction2.types | 52 +- ...gPattern(module=amd,target=es5).errors.txt | 6 + ...ttern(module=amd,target=esnext).errors.txt | 6 + ...ttern(module=system,target=es5).errors.txt | 6 + ...rn(module=system,target=esnext).errors.txt | 6 + ...gPattern(module=amd,target=es5).errors.txt | 6 + ...ttern(module=amd,target=esnext).errors.txt | 6 + ...ttern(module=system,target=es5).errors.txt | 6 + ...rn(module=system,target=esnext).errors.txt | 6 + .../reference/exportEqualCallable.errors.txt | 15 + .../reference/exportEqualCallable.types | 1 + .../reference/exportEqualErrorType.errors.txt | 2 + .../exportEqualNamespaces.errors.txt | 18 + .../reference/exportEqualsAmd.errors.txt | 6 + .../reference/exportEqualsUmd.errors.txt | 6 + .../reference/exportImport.errors.txt | 17 + ...tCanSubstituteConstEnumForValue.errors.txt | 63 + .../exportImportMultipleFiles.errors.txt | 15 + .../reference/exportImportMultipleFiles.types | 7 + ...ortImportNonInstantiatedModule2.errors.txt | 17 + ...xportNonInitializedVariablesAMD.errors.txt | 2 + ...tatementNoCrash1(module=system).errors.txt | 2 + ...rtNonInitializedVariablesSystem.errors.txt | 2 + ...xportNonInitializedVariablesUMD.errors.txt | 2 + ...jectRest(module=amd,target=es5).errors.txt | 6 + ...tRest(module=amd,target=esnext).errors.txt | 6 + ...tRest(module=system,target=es5).errors.txt | 6 + ...st(module=system,target=esnext).errors.txt | 6 + .../exportSameNameFuncVar.errors.txt | 2 + .../reference/exportStar-amd.errors.txt | 2 + .../reference/exportStarForValues.errors.txt | 10 + .../reference/exportStarForValues.types | 2 + .../exportStarForValues10.errors.txt | 14 + .../reference/exportStarForValues10.types | 1 + .../reference/exportStarForValues2.errors.txt | 14 + .../reference/exportStarForValues2.types | 1 + .../reference/exportStarForValues3.errors.txt | 26 + .../reference/exportStarForValues3.types | 4 + .../reference/exportStarForValues4.errors.txt | 18 + .../reference/exportStarForValues4.types | 3 + .../reference/exportStarForValues5.errors.txt | 10 + .../reference/exportStarForValues5.types | 2 + .../reference/exportStarForValues6.errors.txt | 10 + .../reference/exportStarForValues6.types | 1 + .../reference/exportStarForValues7.errors.txt | 14 + .../reference/exportStarForValues7.types | 1 + .../reference/exportStarForValues8.errors.txt | 26 + .../reference/exportStarForValues8.types | 4 + .../reference/exportStarForValues9.errors.txt | 18 + .../reference/exportStarForValues9.types | 3 + .../exportStarForValuesInSystem.errors.txt | 10 + .../exportStarForValuesInSystem.types | 1 + ...exportedBlockScopedDeclarations.errors.txt | 2 + ...eInaccessibleInCallbackInModule.errors.txt | 17 + ...erfaceInaccessibleInCallbackInModule.types | 4 + .../reference/exportedVariable1.errors.txt | 8 + .../exportingContainingVisibleType.errors.txt | 15 + .../exportsAndImports1-amd.errors.txt | 36 + .../reference/exportsAndImports1-amd.types | 1 + .../exportsAndImports2-amd.errors.txt | 15 + .../exportsAndImports3-amd.errors.txt | 36 + .../reference/exportsAndImports3-amd.types | 1 + .../exportsAndImports4-amd.errors.txt | 41 + .../exportsInAmbientModules1.errors.txt | 11 + .../exportsInAmbientModules2.errors.txt | 11 + .../externalModuleAssignToVar.errors.txt | 29 + ...rtDeclarationWithExportModifier.errors.txt | 11 + .../fieldAndGetterWithSameName.errors.txt | 2 + ...tingIntoSameOutputWithOutOption.errors.txt | 12 + .../generatorES6InAMDModule.errors.txt | 8 + .../reference/generatorES6InAMDModule.types | 1 + .../genericClassesInModule2.errors.txt | 25 + ...cInterfaceFunctionTypeParameter.errors.txt | 12 + .../genericMemberFunction.errors.txt | 2 + ...rsiveImplicitConstructorErrors1.errors.txt | 2 + .../genericReturnTypeFromGetter1.errors.txt | 2 + .../genericTypeWithMultipleBases2.errors.txt | 23 + ...WithIndexerOfTypeParameterType2.errors.txt | 19 + tests/baselines/reference/giant.errors.txt | 2 + ...liedNodeFormatEmit1(module=amd).errors.txt | 2 + ...dNodeFormatEmit1(module=system).errors.txt | 2 + ...liedNodeFormatEmit1(module=umd).errors.txt | 2 + ...importCallExpressionAsyncES5AMD.errors.txt | 33 + ...ortCallExpressionAsyncES5System.errors.txt | 33 + ...importCallExpressionAsyncES5UMD.errors.txt | 33 + ...importCallExpressionAsyncES6AMD.errors.txt | 33 + ...ortCallExpressionAsyncES6System.errors.txt | 33 + ...importCallExpressionAsyncES6UMD.errors.txt | 33 + .../importCallExpressionES5AMD.errors.txt | 31 + .../importCallExpressionES5System.errors.txt | 31 + .../importCallExpressionES5UMD.errors.txt | 31 + .../importCallExpressionES6AMD.errors.txt | 31 + .../importCallExpressionES6System.errors.txt | 31 + .../importCallExpressionES6UMD.errors.txt | 31 + .../importCallExpressionInAMD1.errors.txt | 19 + .../importCallExpressionInAMD2.errors.txt | 19 + .../importCallExpressionInAMD2.types | 6 + .../importCallExpressionInAMD3.errors.txt | 16 + .../importCallExpressionInAMD4.errors.txt | 43 + .../importCallExpressionInAMD4.types | 17 + ...CallExpressionInExportEqualsAMD.errors.txt | 11 + ...CallExpressionInExportEqualsUMD.errors.txt | 11 + .../importCallExpressionInSystem1.errors.txt | 19 + .../importCallExpressionInSystem2.errors.txt | 19 + .../importCallExpressionInSystem2.types | 6 + .../importCallExpressionInSystem3.errors.txt | 16 + .../importCallExpressionInSystem4.errors.txt | 43 + .../importCallExpressionInSystem4.types | 17 + .../importCallExpressionInUMD1.errors.txt | 19 + .../importCallExpressionInUMD2.errors.txt | 19 + .../importCallExpressionInUMD2.types | 6 + .../importCallExpressionInUMD3.errors.txt | 16 + .../importCallExpressionInUMD4.errors.txt | 43 + .../importCallExpressionInUMD4.types | 17 + .../importCallExpressionInUMD5.errors.txt | 14 + .../importCallExpressionInUMD5.types | 2 + .../importCallExpressionNestedAMD.errors.txt | 11 + .../importCallExpressionNestedAMD.types | 1 + .../importCallExpressionNestedAMD2.errors.txt | 11 + .../importCallExpressionNestedAMD2.types | 1 + ...mportCallExpressionNestedSystem.errors.txt | 11 + .../importCallExpressionNestedSystem.types | 1 + ...portCallExpressionNestedSystem2.errors.txt | 11 + .../importCallExpressionNestedSystem2.types | 1 + .../importCallExpressionNestedUMD.errors.txt | 11 + .../importCallExpressionNestedUMD.types | 1 + .../importCallExpressionNestedUMD2.errors.txt | 11 + .../importCallExpressionNestedUMD2.types | 1 + .../importDeclWithClassModifiers.errors.txt | 2 + .../importDeclWithExportModifier.errors.txt | 2 + .../importDefaultBindingDefer.errors.txt | 14 + .../reference/importDefaultBindingDefer.types | 12 +- .../reference/importDeferComments.errors.txt | 11 + .../reference/importDeferComments.types | 4 +- .../importDeferInvalidDefault.errors.txt | 5 +- .../reference/importDeferInvalidDefault.types | 12 +- .../importDeferInvalidNamed.errors.txt | 5 +- .../reference/importDeferInvalidNamed.types | 12 +- .../reference/importHelpersAmd.errors.txt | 22 + .../reference/importHelpersAmd.types | 11 + .../reference/importHelpersES6.errors.txt | 26 + .../reference/importHelpersES6.types | 22 + .../reference/importHelpersOutFile.errors.txt | 23 + .../reference/importHelpersOutFile.types | 7 + .../reference/importHelpersSystem.errors.txt | 20 + .../reference/importHelpersSystem.types | 7 + ...moduleinterop=false,module=amd).errors.txt | 2 + ...uleinterop=false,module=system).errors.txt | 2 + ...smoduleinterop=true,module=amd).errors.txt | 14 + ...rAs(esmoduleinterop=true,module=amd).types | 1 + ...duleinterop=true,module=system).errors.txt | 14 + ...(esmoduleinterop=true,module=system).types | 1 + ...moduleinterop=false,module=amd).errors.txt | 2 + ...uleinterop=false,module=system).errors.txt | 2 + ...smoduleinterop=true,module=amd).errors.txt | 17 + ...ult(esmoduleinterop=true,module=amd).types | 1 + ...duleinterop=true,module=system).errors.txt | 17 + ...(esmoduleinterop=true,module=system).types | 1 + ...moduleinterop=false,module=amd).errors.txt | 2 + ...uleinterop=false,module=system).errors.txt | 2 + ...smoduleinterop=true,module=amd).errors.txt | 2 + ...duleinterop=true,module=system).errors.txt | 10 + ...moduleinterop=false,module=amd).errors.txt | 2 + ...uleinterop=false,module=system).errors.txt | 2 + ...smoduleinterop=true,module=amd).errors.txt | 2 + ...duleinterop=true,module=system).errors.txt | 10 + ...moduleinterop=false,module=amd).errors.txt | 2 + ...uleinterop=false,module=system).errors.txt | 2 + ...smoduleinterop=true,module=amd).errors.txt | 2 + ...duleinterop=true,module=system).errors.txt | 11 + ...moduleinterop=false,module=amd).errors.txt | 2 + ...uleinterop=false,module=system).errors.txt | 2 + ...smoduleinterop=true,module=amd).errors.txt | 15 + ...rAs(esmoduleinterop=true,module=amd).types | 1 + ...duleinterop=true,module=system).errors.txt | 15 + ...(esmoduleinterop=true,module=system).types | 1 + ...WithLocalCollisions(module=amd).errors.txt | 20 + ...hLocalCollisions(module=system).errors.txt | 20 + .../importImportOnlyModule.errors.txt | 18 + ...tMeta(module=system,target=es5).errors.txt | 2 + ...ta(module=system,target=esnext).errors.txt | 2 + ...ortMetaNarrowing(module=system).errors.txt | 11 + .../importNonExternalModule.errors.txt | 2 + .../importShadowsGlobalName.errors.txt | 12 + .../importTypeAmdBundleRewrite.errors.txt | 16 + ...import_reference-exported-alias.errors.txt | 24 + .../import_reference-to-type-alias.errors.txt | 20 + ...ecing-aliased-type-throug-array.errors.txt | 18 + ...encing-an-imported-module-alias.errors.txt | 12 + .../importedAliasesInTypePositions.errors.txt | 21 + .../importedModuleClassNameClash.errors.txt | 11 + .../importedModuleClassNameClash.types | 3 +- .../importsInAmbientModules1.errors.txt | 11 + .../importsInAmbientModules2.errors.txt | 11 + .../importsInAmbientModules3.errors.txt | 11 + .../instanceOfInExternalModules.errors.txt | 14 + .../instanceOfInExternalModules.types | 2 + .../interfaceDeclaration3.errors.txt | 2 + .../interfaceDeclaration5.errors.txt | 8 + .../interfaceImplementation6.errors.txt | 2 + ...mInsideTopLevelModuleWithExport.errors.txt | 16 + ...sideTopLevelModuleWithoutExport.errors.txt | 16 + ...nInsideTopLevelModuleWithExport.errors.txt | 15 + ...duleInsideLocalModuleWithExport.errors.txt | 16 + ...sideTopLevelModuleWithoutExport.errors.txt | 14 + ...faceInsideLocalModuleWithExport.errors.txt | 15 + ...eInsideLocalModuleWithoutExport.errors.txt | 15 + ...lModuleWithoutExportAccessError.errors.txt | 2 + ...sideTopLevelModuleWithoutExport.errors.txt | 13 + ...lModuleWithoutExportAccessError.errors.txt | 2 + ...eInsideTopLevelModuleWithExport.errors.txt | 17 + ...ModuleInsideTopLevelModuleWithExport.types | 1 + ...sVarInsideLocalModuleWithExport.errors.txt | 14 + ...rInsideLocalModuleWithoutExport.errors.txt | 14 + ...rInsideTopLevelModuleWithExport.errors.txt | 13 + ...lidSyntaxNamespaceImportWithAMD.errors.txt | 2 + ...SyntaxNamespaceImportWithSystem.errors.txt | 2 + .../isolatedDeclarationOutFile.errors.txt | 24 + .../isolatedModulesPlainFile-AMD.errors.txt | 8 + ...isolatedModulesPlainFile-System.errors.txt | 8 + .../isolatedModulesPlainFile-UMD.errors.txt | 8 + ...jsDeclarationsImportTypeBundled.errors.txt | 17 + ...mpilationRestParamJsDocFunction.errors.txt | 28 + ...ileCompilationRestParamJsDocFunction.types | 17 + ...FactoryReference(jsx=react-jsx).errors.txt | 4 +- ...toryReference(jsx=react-jsxdev).errors.txt | 4 +- .../reference/keepImportsInDts1.errors.txt | 8 + .../reference/keepImportsInDts2.errors.txt | 8 + .../reference/keepImportsInDts3.errors.txt | 9 + .../reference/keepImportsInDts4.errors.txt | 9 + ...larationNoCrash1(module=system).errors.txt | 2 + ...bReferenceDeclarationEmitBundle.errors.txt | 12 + .../libReferenceNoLibBundle.errors.txt | 20 + ...berAccessMustUseModuleInstances.errors.txt | 17 + .../reference/mergedDeclarations6.errors.txt | 25 + .../reference/mergedDeclarations6.types | 5 + .../moduleAliasAsFunctionArgument.errors.txt | 17 + ...onCollidingNamesInAugmentation1.errors.txt | 35 + ...ntationCollidingNamesInAugmentation1.types | 6 + .../moduleAugmentationGlobal8.errors.txt | 2 + .../moduleAugmentationGlobal8_1.errors.txt | 2 + ...duleAugmentationsBundledOutput1.errors.txt | 57 + .../moduleAugmentationsBundledOutput1.types | 8 + .../moduleAugmentationsImports1.errors.txt | 45 + .../moduleAugmentationsImports2.errors.txt | 50 + .../moduleAugmentationsImports3.errors.txt | 49 + .../reference/moduleAugmentationsImports3.js | 50 - .../moduleAugmentationsImports4.errors.txt | 50 + .../reference/moduleAugmentationsImports4.js | 57 - .../reference/moduleExports1.errors.txt | 2 + ...ImportedForTypeArgumentPosition.errors.txt | 14 + .../moduleMergeConstructor.errors.txt | 29 + ...oneDynamicImport(target=es2015).errors.txt | 14 + ...oneDynamicImport(target=es2020).errors.txt | 14 + .../reference/moduleNoneErrors.errors.txt | 6 + .../reference/moduleNoneOutFile.errors.txt | 12 + .../reference/modulePrologueAMD.errors.txt | 8 + .../reference/modulePrologueSystem.errors.txt | 8 + .../reference/modulePrologueUmd.errors.txt | 8 + ...enced-using-absolute-and-relative-names.js | 1 + ...ist-on-disk-that-differs-only-in-casing.js | 1 + ...program-differ-only-in-casing-(imports).js | 1 + ...only-in-casing-(tripleslash-references).js | 1 + .../nestedRedeclarationInES6AMD.errors.txt | 11 + .../noBundledEmitFromNodeModules.errors.txt | 2 + ...eAugmentationInDeclarationFile1.errors.txt | 11 + ...eAugmentationInDeclarationFile2.errors.txt | 6 + ...eAugmentationInDeclarationFile3.errors.txt | 6 + .../noImplicitUseStrict_amd.errors.txt | 2 + .../noImplicitUseStrict_system.errors.txt | 2 + .../noImplicitUseStrict_umd.errors.txt | 2 + .../reference/objectIndexer.errors.txt | 20 + tests/baselines/reference/objectIndexer.types | 1 + .../outFilerootDirModuleNamesAmd.errors.txt | 15 + ...outFilerootDirModuleNamesSystem.errors.txt | 16 + .../reference/outModuleConcatAmd.errors.txt | 10 + .../outModuleConcatSystem.errors.txt | 10 + .../reference/outModuleConcatUmd.errors.txt | 2 + .../outModuleTripleSlashRefs.errors.txt | 32 + ...ppingBasedModuleResolution1_amd.errors.txt | 5 +- ...gBasedModuleResolution2_classic.errors.txt | 5 +- ...gBasedModuleResolution3_classic.errors.txt | 2 + ...gBasedModuleResolution4_classic.errors.txt | 5 +- ...gBasedModuleResolution5_classic.errors.txt | 5 +- ...gBasedModuleResolution6_classic.errors.txt | 25 + ...appingBasedModuleResolution6_classic.types | 1 + ...gBasedModuleResolution7_classic.errors.txt | 5 +- ...gBasedModuleResolution8_classic.errors.txt | 5 +- ...aryOperatorsOnExportedVariables.errors.txt | 2 + ...ValueImports_module(module=amd).errors.txt | 2 + ...ueImports_module(module=system).errors.txt | 2 + ...heckAnonymousFunctionParameter2.errors.txt | 19 + ...nterfaceMethodWithTypeParameter.errors.txt | 12 + ...mentOnExportedGenericInterface2.errors.txt | 18 + ...ReferenceInConstructorParameter.errors.txt | 15 + .../reference/privacyGetter.errors.txt | 212 + .../reference/privacyGloFunc.errors.txt | 535 ++ .../baselines/reference/privacyGloFunc.types | 6 + ...nalReferenceImportWithoutExport.errors.txt | 157 + ...ternalModuleImportWithoutExport.errors.txt | 2 + ...ternalReferenceImportWithExport.errors.txt | 104 + ...nalReferenceImportWithoutExport.errors.txt | 104 + .../privateNameEmitHelpers.errors.txt | 9 +- .../privateNameStaticEmitHelpers.errors.txt | 9 +- .../privatePropertyUsingObjectType.errors.txt | 14 + .../project/baseline/amd/baseline.errors.txt | 12 + .../baseline2/amd/baseline2.errors.txt | 12 + .../baseline3/amd/baseline3.errors.txt | 11 + .../amd/cantFindTheModule.errors.txt | 2 + .../amd/circularReferencing.errors.txt | 14 + .../amd/circularReferencing2.errors.txt | 28 + .../amd/declarationDir.errors.txt | 19 + .../amd/declarationDir2.errors.txt | 19 + .../amd/declarationDir3.errors.txt | 2 + .../declarationsCascadingImports.errors.txt | 28 + .../declarationsExportNamespace.errors.txt | 15 + .../amd/declarationsGlobalImport.errors.txt | 19 + .../declarationsImportedInPrivate.errors.txt | 24 + ...clarationsImportedUseInFunction.errors.txt | 17 + ...directImportShouldResultInError.errors.txt | 26 + ...declarationsMultipleTimesImport.errors.txt | 33 + ...ionsMultipleTimesMultipleImport.errors.txt | 36 + .../amd/declarationsSimpleImport.errors.txt | 27 + .../amd/declareExportAdded.errors.txt | 14 + .../amd/declareVariableCollision.errors.txt | 2 + ...aultExcludeNodeModulesAndOutDir.errors.txt | 14 + ...NodeModulesAndOutDirWithAllowJS.errors.txt | 14 + ...odeModulesAndRelativePathOutDir.errors.txt | 14 + ...ndRelativePathOutDirWithAllowJS.errors.txt | 14 + .../defaultExcludeOnlyNodeModules.errors.txt | 13 + ...MetadataCommonJSISolatedModules.errors.txt | 5 +- ...ommonJSISolatedModulesNoResolve.errors.txt | 5 +- .../emitDecoratorMetadataSystemJS.errors.txt | 5 +- ...MetadataSystemJSISolatedModules.errors.txt | 5 +- ...ystemJSISolatedModulesNoResolve.errors.txt | 5 +- .../amd/extReferencingExtAndInt.errors.txt | 18 + .../amd/intReferencingExtAndInt.errors.txt | 2 + .../amd/invalidRootFile.errors.txt | 2 + ...ationDifferentNamesNotSpecified.errors.txt | 12 + ...entNamesNotSpecifiedWithAllowJs.errors.txt | 17 + ...pilationDifferentNamesSpecified.errors.txt | 5 +- ...ferentNamesSpecifiedWithAllowJs.errors.txt | 18 + ...CompilationSameNameDTsSpecified.errors.txt | 8 + ...SameNameDTsSpecifiedWithAllowJs.errors.txt | 12 + ...pilationSameNameDtsNotSpecified.errors.txt | 8 + ...eNameDtsNotSpecifiedWithAllowJs.errors.txt | 5 +- ...lationSameNameFilesNotSpecified.errors.txt | 8 + ...ameFilesNotSpecifiedWithAllowJs.errors.txt | 9 + ...mpilationSameNameFilesSpecified.errors.txt | 8 + ...meNameFilesSpecifiedWithAllowJs.errors.txt | 12 + ...olutePathMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + ...tePathModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + ...bsolutePathModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...thModuleSimpleSpecifyOutputFile.errors.txt | 27 + ...lutePathModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + ...AbsolutePathMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...athMultifolderSpecifyOutputFile.errors.txt | 36 + ...pRootAbsolutePathSimpleNoOutdir.errors.txt | 25 + ...athSimpleSpecifyOutputDirectory.errors.txt | 25 + ...lutePathSimpleSpecifyOutputFile.errors.txt | 25 + ...tAbsolutePathSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + ...PathSingleFileSpecifyOutputFile.errors.txt | 14 + ...otAbsolutePathSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + ...ePathSubfolderSpecifyOutputFile.errors.txt | 25 + ...ativePathMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + ...vePathModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + ...elativePathModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...thModuleSimpleSpecifyOutputFile.errors.txt | 27 + ...tivePathModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + ...RelativePathMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...athMultifolderSpecifyOutputFile.errors.txt | 36 + ...pRootRelativePathSimpleNoOutdir.errors.txt | 25 + ...athSimpleSpecifyOutputDirectory.errors.txt | 25 + ...tivePathSimpleSpecifyOutputFile.errors.txt | 25 + ...tRelativePathSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + ...PathSingleFileSpecifyOutputFile.errors.txt | 14 + ...otRelativePathSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + ...ePathSubfolderSpecifyOutputFile.errors.txt | 25 + ...SourceRootWithNoSourceMapOption.errors.txt | 2 + .../mapRootWithNoSourceMapOption.errors.txt | 2 + ...aprootUrlMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + .../maprootUrlModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...rlModuleSimpleSpecifyOutputFile.errors.txt | 27 + ...prootUrlModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + .../maprootUrlMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...UrlMultifolderSpecifyOutputFile.errors.txt | 36 + .../amd/maprootUrlSimpleNoOutdir.errors.txt | 25 + ...UrlSimpleSpecifyOutputDirectory.errors.txt | 25 + ...prootUrlSimpleSpecifyOutputFile.errors.txt | 25 + .../maprootUrlSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + ...tUrlSingleFileSpecifyOutputFile.errors.txt | 14 + .../maprootUrlSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + ...otUrlSubfolderSpecifyOutputFile.errors.txt | 25 + ...cerootUrlMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + ...urcerootUrlModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...rlModuleSimpleSpecifyOutputFile.errors.txt | 27 + ...erootUrlModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + ...ourcerootUrlMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...UrlMultifolderSpecifyOutputFile.errors.txt | 36 + ...tUrlsourcerootUrlSimpleNoOutdir.errors.txt | 25 + ...UrlSimpleSpecifyOutputDirectory.errors.txt | 25 + ...erootUrlSimpleSpecifyOutputFile.errors.txt | 25 + ...sourcerootUrlSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + ...tUrlSingleFileSpecifyOutputFile.errors.txt | 14 + ...lsourcerootUrlSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + ...otUrlSubfolderSpecifyOutputFile.errors.txt | 25 + .../amd/moduleIdentifier.errors.txt | 13 + .../amd/moduleMergingOrdering1.errors.txt | 27 + .../amd/moduleMergingOrdering2.errors.txt | 27 + .../multipleLevelsModuleResolution.errors.txt | 41 + .../amd/nestedDeclare.errors.txt | 15 + .../nestedLocalModuleSimpleCase.errors.txt | 2 + ...calModuleWithRecursiveTypecheck.errors.txt | 2 + .../amd/nestedReferenceTags.errors.txt | 25 + .../noProjectOptionAndInputFiles.errors.txt | 8 + .../amd/nodeModulesImportHigher.errors.txt | 5 +- .../nodeModulesMaxDepthExceeded.errors.txt | 5 +- .../nodeModulesMaxDepthIncreased.errors.txt | 5 +- .../nonRelative/amd/nonRelative.errors.txt | 33 + .../amd/outMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + .../outModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + .../amd/outModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...utModuleSimpleSpecifyOutputFile.errors.txt | 27 + .../amd/outModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + .../amd/outMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...outMultifolderSpecifyOutputFile.errors.txt | 36 + .../amd/outSimpleNoOutdir.errors.txt | 25 + ...outSimpleSpecifyOutputDirectory.errors.txt | 25 + .../amd/outSimpleSpecifyOutputFile.errors.txt | 25 + .../amd/outSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + .../outSingleFileSpecifyOutputFile.errors.txt | 14 + .../amd/outSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + .../outSubfolderSpecifyOutputFile.errors.txt | 25 + ...dModuleDeclarationsInsideModule.errors.txt | 2 + ...arationsInsideNonExportedModule.errors.txt | 2 + ...leImportStatementInParentModule.errors.txt | 2 + ...OnImportedModuleSimpleReference.errors.txt | 64 + ...IndirectTypeFromTheExternalType.errors.txt | 14 + .../amd/projectOptionTest.errors.txt | 8 + .../prologueEmit/amd/prologueEmit.errors.txt | 14 + .../quotesInFileAndDirectoryNames.errors.txt | 16 + .../amd/referencePathStatic.errors.txt | 13 + ...eferenceResolutionRelativePaths.errors.txt | 14 + ...nRelativePathsFromRootDirectory.errors.txt | 14 + ...esolutionRelativePathsNoResolve.errors.txt | 14 + ...ivePathsRelativeToRootDirectory.errors.txt | 14 + ...eferenceResolutionSameFileTwice.errors.txt | 7 + ...esolutionSameFileTwiceNoResolve.errors.txt | 7 + .../amd/relativeGlobal.errors.txt | 18 + .../amd/relativeGlobalRef.errors.txt | 19 + .../amd/relativeNested.errors.txt | 29 + .../amd/relativeNestedRef.errors.txt | 19 + .../amd/relativePaths.errors.txt | 18 + .../amd/rootDirectory.errors.txt | 14 + .../amd/rootDirectoryErrors.errors.txt | 2 + .../rootDirectoryWithSourceRoot.errors.txt | 14 + .../amd/rootDirectoryWithoutOutDir.errors.txt | 2 + ...olutePathMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + ...tePathModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + ...bsolutePathModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...thModuleSimpleSpecifyOutputFile.errors.txt | 27 + ...lutePathModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + ...AbsolutePathMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...athMultifolderSpecifyOutputFile.errors.txt | 36 + ...eRootAbsolutePathSimpleNoOutdir.errors.txt | 25 + ...athSimpleSpecifyOutputDirectory.errors.txt | 25 + ...lutePathSimpleSpecifyOutputFile.errors.txt | 25 + ...tAbsolutePathSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + ...PathSingleFileSpecifyOutputFile.errors.txt | 14 + ...otAbsolutePathSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + ...ePathSubfolderSpecifyOutputFile.errors.txt | 25 + ...ativePathMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + ...vePathModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + ...elativePathModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...thModuleSimpleSpecifyOutputFile.errors.txt | 27 + ...tivePathModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + ...RelativePathMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...athMultifolderSpecifyOutputFile.errors.txt | 36 + ...eRootRelativePathSimpleNoOutdir.errors.txt | 25 + ...athSimpleSpecifyOutputDirectory.errors.txt | 25 + ...tivePathSimpleSpecifyOutputFile.errors.txt | 25 + ...tRelativePathSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + ...PathSingleFileSpecifyOutputFile.errors.txt | 14 + ...otRelativePathSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + ...ePathSubfolderSpecifyOutputFile.errors.txt | 25 + ...sourceRootWithNoSourceMapOption.errors.txt | 2 + ...sourcemapMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + ...rcemapModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + .../sourcemapModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...apModuleSimpleSpecifyOutputFile.errors.txt | 27 + ...ourcemapModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + .../sourcemapMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...mapMultifolderSpecifyOutputFile.errors.txt | 36 + .../amd/sourcemapSimpleNoOutdir.errors.txt | 25 + ...mapSimpleSpecifyOutputDirectory.errors.txt | 25 + ...ourcemapSimpleSpecifyOutputFile.errors.txt | 25 + .../sourcemapSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + ...emapSingleFileSpecifyOutputFile.errors.txt | 14 + .../amd/sourcemapSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + ...cemapSubfolderSpecifyOutputFile.errors.txt | 25 + ...cerootUrlMixedSubfolderNoOutdir.errors.txt | 36 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 36 + ...ifyOutputFileAndOutputDirectory.errors.txt | 36 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 39 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 + ...uleMultifolderSpecifyOutputFile.errors.txt | 39 + ...urcerootUrlModuleSimpleNoOutdir.errors.txt | 27 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 + ...rlModuleSimpleSpecifyOutputFile.errors.txt | 27 + ...erootUrlModuleSubfolderNoOutdir.errors.txt | 27 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 27 + ...ourcerootUrlMultifolderNoOutdir.errors.txt | 36 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 + ...UrlMultifolderSpecifyOutputFile.errors.txt | 36 + .../sourcerootUrlSimpleNoOutdir.errors.txt | 25 + ...UrlSimpleSpecifyOutputDirectory.errors.txt | 25 + ...erootUrlSimpleSpecifyOutputFile.errors.txt | 25 + ...sourcerootUrlSingleFileNoOutdir.errors.txt | 14 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 + ...tUrlSingleFileSpecifyOutputFile.errors.txt | 14 + .../sourcerootUrlSubfolderNoOutdir.errors.txt | 25 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 + ...otUrlSubfolderSpecifyOutputFile.errors.txt | 25 + ...specifyExcludeUsingRelativepath.errors.txt | 18 + ...udeUsingRelativepathWithAllowJS.errors.txt | 18 + ...ExcludeWithOutUsingRelativePath.errors.txt | 18 + ...OutUsingRelativePathWithAllowJS.errors.txt | 18 + ...sibilityOfTypeUsedAcrossModules.errors.txt | 37 + ...ibilityOfTypeUsedAcrossModules2.errors.txt | 2 + ...ertyIdentityWithPrivacyMismatch.errors.txt | 2 + ...rtAssignmentAndFindAliasedType1.errors.txt | 2 + ...rtAssignmentAndFindAliasedType2.errors.txt | 2 + ...rtAssignmentAndFindAliasedType3.errors.txt | 2 + ...rtAssignmentAndFindAliasedType4.errors.txt | 2 + ...rtAssignmentAndFindAliasedType5.errors.txt | 2 + ...rtAssignmentAndFindAliasedType6.errors.txt | 2 + ...rtAssignmentAndFindAliasedType7.errors.txt | 25 + ...eExportAssignmentAndFindAliasedType7.types | 2 + .../reexportMissingDefault5.errors.txt | 11 + ...elativeNamesInClassicResolution.errors.txt | 2 + .../reference/requireEmitSemicolon.errors.txt | 22 + .../requireOfJsonFileWithAmd.errors.txt | 2 + ...ireOfJsonFileWithModuleEmitNone.errors.txt | 8 +- ...WithModuleNodeResolutionEmitAmd.errors.txt | 2 + ...uleNodeResolutionEmitAmdOutFile.errors.txt | 2 + ...ithModuleNodeResolutionEmitNone.errors.txt | 2 + ...hModuleNodeResolutionEmitSystem.errors.txt | 2 + ...WithModuleNodeResolutionEmitUmd.errors.txt | 2 + .../change-affects-imports.js | 28 +- .../resolution-cache-follows-imports.js | 121 +- ...-an-ambient-external-module-declaration.js | 188 +- ...le-declarations-from-non-modified-files.js | 785 ++- .../works-with-updated-SourceFiles.js | 188 +- .../shorthand-property-es5-es6.errors.txt | 4 +- .../shorthand-property-es6-amd.errors.txt | 2 + .../shorthand-property-es6-es6.errors.txt | 4 +- ...ceMapValidationExportAssignment.errors.txt | 9 + .../sourceMapValidationExportAssignment.types | 1 + .../staticInstanceResolution5.errors.txt | 2 + ...rictModeWordInImportDeclaration.errors.txt | 12 +- ...efaultExportsWithDynamicImports.errors.txt | 2 + ...temDefaultExportCommentValidity.errors.txt | 9 + .../systemDefaultImportCallable.errors.txt | 18 + .../systemExportAssignment.errors.txt | 11 + .../systemExportAssignment2.errors.txt | 2 + .../systemExportAssignment3.errors.txt | 13 + .../systemJsForInNoException.errors.txt | 8 + .../reference/systemJsForInNoException.types | 3 +- .../reference/systemModule1.errors.txt | 6 + .../reference/systemModule10.errors.txt | 2 + .../reference/systemModule10_ES5.errors.txt | 2 + .../reference/systemModule11.errors.txt | 2 + .../reference/systemModule12.errors.txt | 2 + .../reference/systemModule13.errors.txt | 8 + .../reference/systemModule14.errors.txt | 2 + .../reference/systemModule15.errors.txt | 31 + .../baselines/reference/systemModule15.types | 1 + .../reference/systemModule16.errors.txt | 2 + .../reference/systemModule17.errors.txt | 41 + .../reference/systemModule18.errors.txt | 12 + .../reference/systemModule2.errors.txt | 2 + .../reference/systemModule3.errors.txt | 15 + .../reference/systemModule4.errors.txt | 7 + tests/baselines/reference/systemModule4.types | 1 + .../reference/systemModule5.errors.txt | 7 + .../reference/systemModule6.errors.txt | 10 + .../reference/systemModule7.errors.txt | 14 + .../reference/systemModule8.errors.txt | 34 + tests/baselines/reference/systemModule8.types | 28 + .../reference/systemModule9.errors.txt | 2 + ...systemModuleAmbientDeclarations.errors.txt | 30 + .../systemModuleConstEnums.errors.txt | 16 + .../reference/systemModuleConstEnums.types | 3 + ...leConstEnumsSeparateCompilation.errors.txt | 16 + ...mModuleConstEnumsSeparateCompilation.types | 3 + .../systemModuleDeclarationMerging.errors.txt | 13 + .../systemModuleDeclarationMerging.types | 3 + .../systemModuleExportDefault.errors.txt | 17 + ...mModuleNonTopLevelModuleMembers.errors.txt | 16 + ...systemModuleNonTopLevelModuleMembers.types | 2 + .../systemModuleTargetES6.errors.txt | 18 + .../systemModuleTrailingComments.errors.txt | 8 + .../systemModuleWithSuperClass.errors.txt | 14 + .../systemNamespaceAliasEmit.errors.txt | 15 + .../systemObjectShorthandRename.errors.txt | 14 + ....1(module=system,target=es2015).errors.txt | 2 + ....1(module=system,target=es2017).errors.txt | 83 + ...Await.1(module=system,target=es2017).types | 4 + .../topLevelAwaitErrors.11.errors.txt | 2 + .../reference/topLevelExports.errors.txt | 10 + .../reference/topLevelLambda4.errors.txt | 2 + .../topLevelVarHoistingSystem.errors.txt | 14 + ...en transpile with System option.errors.txt | 2 + ...with System option.oldTranspile.errors.txt | 2 + .../Generates module output.errors.txt | 6 + ...ates module output.oldTranspile.errors.txt | 6 + .../Rename dependencies - AMD.errors.txt | 8 + .../Rename dependencies - System.errors.txt | 8 + .../Rename dependencies - UMD.errors.txt | 8 + ...ons module-kind is out-of-range.errors.txt | 4 +- ...nd is out-of-range.oldTranspile.errors.txt | 4 +- ...s target-script is out-of-range.errors.txt | 4 +- ...pt is out-of-range.oldTranspile.errors.txt | 4 +- .../transpile/Sets module name.errors.txt | 6 + .../Sets module name.oldTranspile.errors.txt | 6 + .../modules-and-globals-mixed-in-amd.js | 111 +- .../prepend-reports-deprecation-error.js | 82 +- ...e-resolution-finds-original-source-file.js | 63 +- .../different-options-with-incremental.js | 567 +- .../commandLine/outFile/different-options.js | 526 +- ...ndline-with-declaration-and-incremental.js | 318 +- ...y-false-on-commandline-with-declaration.js | 231 +- ...mitDeclarationOnly-false-on-commandline.js | 534 +- ...ndline-with-declaration-and-incremental.js | 471 +- ...ionOnly-on-commandline-with-declaration.js | 277 +- .../emitDeclarationOnly-on-commandline.js | 792 ++- ...tax-errors-in-config-file-discrepancies.js | 2 - .../reports-syntax-errors-in-config-file.js | 113 +- ...-dts-generation-errors-with-incremental.js | 32 +- .../outFile/reports-dts-generation-errors.js | 14 +- .../outFile/deleted-file-without-composite.js | 23 +- .../outFile/detects-deleted-file.js | 106 +- .../outFile/dts-errors-discrepancies.js | 3 + .../outFile/dts-errors-with-incremental.js | 269 +- .../tsbuild/noCheck/outFile/dts-errors.js | 225 +- .../outFile/semantic-errors-discrepancies.js | 3 + .../semantic-errors-with-incremental.js | 281 +- .../noCheck/outFile/semantic-errors.js | 208 +- .../outFile/syntax-errors-discrepancies.js | 3 + .../outFile/syntax-errors-with-incremental.js | 218 +- .../tsbuild/noCheck/outFile/syntax-errors.js | 185 +- .../noEmit/outFile/changes-composite.js | 539 +- .../changes-incremental-declaration.js | 539 +- .../noEmit/outFile/changes-incremental.js | 539 +- .../changes-with-initial-noEmit-composite.js | 263 +- ...-initial-noEmit-incremental-declaration.js | 263 +- ...changes-with-initial-noEmit-incremental.js | 263 +- ...th-incremental-as-modules-discrepancies.js | 51 +- ...ble-changes-with-incremental-as-modules.js | 344 +- ...tion-enable-changes-with-multiple-files.js | 608 +-- ...th-incremental-as-modules-discrepancies.js | 103 + .../dts-errors-with-incremental-as-modules.js | 285 +- ...dts-enabled-with-incremental-as-modules.js | 286 +- ...ntic-errors-with-incremental-as-modules.js | 248 +- ...ntax-errors-with-incremental-as-modules.js | 132 +- ...rrors-with-declaration-with-incremental.js | 153 +- .../outFile/dts-errors-with-declaration.js | 133 +- .../outFile/dts-errors-with-incremental.js | 140 +- .../noEmitOnError/outFile/dts-errors.js | 137 +- ...rrors-with-declaration-with-incremental.js | 101 +- .../semantic-errors-with-declaration.js | 113 +- .../semantic-errors-with-incremental.js | 88 +- .../noEmitOnError/outFile/semantic-errors.js | 100 +- ...rrors-with-declaration-with-incremental.js | 103 +- .../outFile/syntax-errors-with-declaration.js | 115 +- .../outFile/syntax-errors-with-incremental.js | 90 +- .../noEmitOnError/outFile/syntax-errors.js | 102 +- .../non-module-projects-without-prepend.js | 124 +- ...hen-module-option-changes-discrepancies.js | 76 + .../sample1/when-module-option-changes.js | 15 +- .../reports-syntax-errors-in-config-file.js | 126 +- .../dts-errors-with-incremental-as-modules.js | 203 +- ...dts-enabled-with-incremental-as-modules.js | 149 +- ...ntic-errors-with-incremental-as-modules.js | 173 +- ...ntax-errors-with-incremental-as-modules.js | 65 +- ...Error-with-declaration-with-incremental.js | 338 +- .../outFile/noEmitOnError-with-declaration.js | 283 +- .../outFile/noEmitOnError-with-incremental.js | 306 +- .../noEmitOnError/outFile/noEmitOnError.js | 215 +- ...does-not-add-color-when-NO_COLOR-is-set.js | 2 +- .../reference/tsc/commandLine/help-all.js | 6 +- .../reference/tsc/commandLine/help.js | 2 +- ...-when-host-can't-provide-terminal-width.js | 2 +- ...tatus.DiagnosticsPresent_OutputsSkipped.js | 2 +- .../tsc/composite/converting-to-modules.js | 34 +- ...-dts-generation-errors-with-incremental.js | 45 +- .../outFile/reports-dts-generation-errors.js | 27 +- .../different-options-with-incremental.js | 464 +- .../incremental/outFile/different-options.js | 450 +- ...to-the-referenced-project-discrepancies.js | 61 +- ...file-is-added-to-the-referenced-project.js | 240 +- ...s-errors-with-incremental-discrepancies.js | 110 +- .../outFile/dts-errors-with-incremental.js | 479 +- .../tsc/noCheck/outFile/dts-errors.js | 174 +- ...c-errors-with-incremental-discrepancies.js | 110 +- .../semantic-errors-with-incremental.js | 481 +- .../tsc/noCheck/outFile/semantic-errors.js | 172 +- ...x-errors-with-incremental-discrepancies.js | 110 +- .../outFile/syntax-errors-with-incremental.js | 396 +- .../tsc/noCheck/outFile/syntax-errors.js | 114 +- .../tsc/noEmit/outFile/changes-composite.js | 572 +- .../changes-incremental-declaration.js | 572 +- .../tsc/noEmit/outFile/changes-incremental.js | 572 +- .../changes-with-initial-noEmit-composite.js | 271 +- ...-initial-noEmit-incremental-declaration.js | 271 +- ...changes-with-initial-noEmit-incremental.js | 271 +- ...tion-enable-changes-with-multiple-files.js | 563 +- ...th-incremental-as-modules-discrepancies.js | 103 + .../dts-errors-with-incremental-as-modules.js | 242 +- ...dts-enabled-with-incremental-as-modules.js | 182 +- ...ntic-errors-with-incremental-as-modules.js | 206 +- ...ntax-errors-with-incremental-as-modules.js | 80 +- ...rrors-with-declaration-with-incremental.js | 128 +- .../outFile/dts-errors-with-declaration.js | 89 +- .../outFile/dts-errors-with-incremental.js | 82 +- .../tsc/noEmitOnError/outFile/dts-errors.js | 66 +- ...-before-fixing-error-with-noEmitOnError.js | 20 +- ...rrors-with-declaration-with-incremental.js | 78 +- .../semantic-errors-with-declaration.js | 71 +- .../semantic-errors-with-incremental.js | 66 +- .../noEmitOnError/outFile/semantic-errors.js | 58 +- ...rrors-with-declaration-with-incremental.js | 80 +- .../outFile/syntax-errors-with-declaration.js | 73 +- .../outFile/syntax-errors-with-incremental.js | 68 +- .../noEmitOnError/outFile/syntax-errors.js | 60 +- ...ject-contains-invalid-project-reference.js | 7 +- ...-if-'--out'-or-'--outFile'-is-specified.js | 30 +- ...-recursive-directory-watcher-is-invoked.js | 44 +- ...ry-symlink-target-and-import-match-disk.js | 26 +- ...target-matches-disk-but-import-does-not.js | 26 +- ...link-target,-and-disk-are-all-different.js | 30 +- ...link-target-agree-but-do-not-match-disk.js | 30 +- ...k-but-directory-symlink-target-does-not.js | 30 +- .../own-file-emit-with-errors-incremental.js | 68 +- .../own-file-emit-with-errors-watch.js | 64 +- ...wn-file-emit-without-errors-incremental.js | 64 +- .../own-file-emit-without-errors-watch.js | 58 +- .../with---out-incremental.js | 33 +- .../module-compilation/with---out-watch.js | 30 +- .../dts-errors-with-incremental-as-modules.js | 197 +- ...dts-enabled-with-incremental-as-modules.js | 137 +- ...ntic-errors-with-incremental-as-modules.js | 167 +- ...ntax-errors-with-incremental-as-modules.js | 59 +- ...Error-with-declaration-with-incremental.js | 195 +- .../outFile/noEmitOnError-with-declaration.js | 136 +- .../outFile/noEmitOnError-with-incremental.js | 138 +- .../noEmitOnError/outFile/noEmitOnError.js | 102 +- .../programUpdates/change-module-to-none.js | 22 +- .../declarationDir-is-specified.js | 22 +- ...-outDir-and-declarationDir-is-specified.js | 22 +- .../when-outDir-is-specified.js | 22 +- .../with-outFile.js | 25 +- ...e-is-specified-with-declaration-enabled.js | 22 +- .../without-outDir-or-outFile-is-specified.js | 22 +- ...errors-and-still-try-to-build-a-project.js | 22 +- ...file-is-added-to-the-referenced-project.js | 234 +- .../tscWatch/resolutionCache/caching-works.js | 62 +- .../loads-missing-files-from-disk.js | 17 +- ...module-goes-missing-and-then-comes-back.js | 25 +- ...are-global-and-installed-at-later-point.js | 53 +- .../when-emitting-with-emitOnlyDtsFiles.js | 120 +- ...noEmit-with-composite-with-emit-builder.js | 130 +- ...it-with-composite-with-semantic-builder.js | 119 +- ...nError-with-composite-with-emit-builder.js | 56 +- ...or-with-composite-with-semantic-builder.js | 56 +- .../outFile/semantic-builder-emitOnlyDts.js | 27 +- ...createSemanticDiagnosticsBuilderProgram.js | 18 +- .../when-emitting-with-emitOnlyDtsFiles.js | 79 +- ...ing-useSourceOfProjectReferenceRedirect.js | 234 +- ...-host-implementing-getParsedCommandLine.js | 85 +- ...figMapOptionsAreCaseInsensitive.errors.txt | 21 + .../compileOnSave/configProjects-outFile.js | 17 +- .../emit-in-project-with-dts-emit.js | 45 +- .../tsserver/compileOnSave/emit-in-project.js | 45 +- ...on-reflected-when-specifying-files-list.js | 17 +- ...self-if---out-or---outFile-is-specified.js | 17 +- ...self-if---out-or---outFile-is-specified.js | 17 +- ...self-if---out-or---outFile-is-specified.js | 17 +- ...et-and-import-match-disk-with-link-open.js | 17 +- ...rt-match-disk-with-target-and-link-open.js | 17 +- ...-and-import-match-disk-with-target-open.js | 17 +- ...ry-symlink-target-and-import-match-disk.js | 17 +- ...disk-but-import-does-not-with-link-open.js | 17 +- ...port-does-not-with-target-and-link-open.js | 17 +- ...sk-but-import-does-not-with-target-open.js | 17 +- ...target-matches-disk-but-import-does-not.js | 17 +- ...d-disk-are-all-different-with-link-open.js | 17 +- ...all-different-with-target-and-link-open.js | 17 +- ...disk-are-all-different-with-target-open.js | 17 +- ...link-target,-and-disk-are-all-different.js | 17 +- ...ee-but-do-not-match-disk-with-link-open.js | 17 +- ...ot-match-disk-with-target-and-link-open.js | 17 +- ...-but-do-not-match-disk-with-target-open.js | 17 +- ...link-target-agree-but-do-not-match-disk.js | 17 +- ...-symlink-target-does-not-with-link-open.js | 17 +- ...rget-does-not-with-target-and-link-open.js | 17 +- ...ymlink-target-does-not-with-target-open.js | 17 +- ...k-but-directory-symlink-target-does-not.js | 17 +- .../fourslashServer/autoImportProvider3.js | 80 +- .../importSuggestionsCache_coreNodeModules.js | 10 - .../importSuggestionsCache_exportUndefined.js | 744 +-- ...portSuggestionsCache_moduleAugmentation.js | 4764 +---------------- .../isDefinitionAcrossGlobalProjects.js | 54 +- ...project-structure-and-reports-no-errors.js | 42 + ...-as-project-build-with-external-project.js | 77 +- ...e-doesnt-load-ancestor-sibling-projects.js | 45 +- ...ding-references-in-overlapping-projects.js | 45 +- ...disableSourceOfProjectReferenceRedirect.js | 219 +- ...ect-when-referenced-project-is-not-open.js | 45 +- ...disableSourceOfProjectReferenceRedirect.js | 264 +- ...project-when-referenced-project-is-open.js | 90 +- ...ng-solution-and-siblings-are-not-loaded.js | 45 +- .../resolutionCache/when-resolution-fails.js | 14 + .../when-resolves-to-ambient-module.js | 14 + ...enceDirective-contains-UpperCasePackage.js | 17 +- .../local-module-should-not-be-picked-up.js | 2 +- .../tsxAttributeResolution10.errors.txt | 2 + .../tsxAttributeResolution11.errors.txt | 2 + .../tsxAttributeResolution14.errors.txt | 2 + .../tsxAttributeResolution9.errors.txt | 2 + .../tsxElementResolution17.errors.txt | 29 + .../tsxElementResolution19.errors.txt | 22 + .../reference/tsxElementResolution19.types | 3 +- .../reference/tsxPreserveEmit1.errors.txt | 35 + .../reference/tsxPreserveEmit1.types | 18 +- .../reference/tsxPreserveEmit2.errors.txt | 8 + .../reference/tsxPreserveEmit2.types | 8 +- .../reference/tsxPreserveEmit3.errors.txt | 19 + .../reference/tsxPreserveEmit3.types | 1 + .../reference/tsxSfcReturnNull.errors.txt | 15 + .../reference/tsxSfcReturnNull.types | 1 + ...sxSfcReturnNullStrictNullChecks.errors.txt | 15 + .../tsxSfcReturnNullStrictNullChecks.types | 1 + ...ReturnUndefinedStrictNullChecks.errors.txt | 2 + ...pe(jsx=react-jsx,target=es2015).errors.txt | 4 +- ...elessFunctionComponentOverload1.errors.txt | 2 + ...elessFunctionComponentOverload2.errors.txt | 37 + ...xStatelessFunctionComponentOverload2.types | 2 + ...elessFunctionComponentOverload3.errors.txt | 28 + ...xStatelessFunctionComponentOverload3.types | 7 + ...elessFunctionComponentOverload4.errors.txt | 2 + ...elessFunctionComponentOverload5.errors.txt | 2 + ...elessFunctionComponentOverload6.errors.txt | 62 + ...xStatelessFunctionComponentOverload6.types | 7 + ...ponentWithDefaultTypeParameter1.errors.txt | 18 + ...ponentWithDefaultTypeParameter2.errors.txt | 2 + ...tsxStatelessFunctionComponents3.errors.txt | 22 + .../tsxStatelessFunctionComponents3.types | 2 + ...ionComponentsWithTypeArguments1.errors.txt | 35 + ...ionComponentsWithTypeArguments2.errors.txt | 2 + ...ionComponentsWithTypeArguments3.errors.txt | 28 + ...ionComponentsWithTypeArguments4.errors.txt | 2 + ...ionComponentsWithTypeArguments5.errors.txt | 23 + .../typeAliasDeclarationEmit.errors.txt | 2 + .../typeAliasDeclarationEmit2.errors.txt | 6 + ...ompatibilityAccrossDeclarations.errors.txt | 27 + ...eterCompatibilityAccrossDeclarations.types | 2 + .../reference/typeResolution.errors.txt | 115 + .../baselines/reference/typeResolution.types | 6 + .../typeUsedAsValueError2.errors.txt | 2 + .../reference/typingsLookupAmd.errors.txt | 14 + .../umdDependencyComment2.errors.txt | 2 + .../umdDependencyCommentName1.errors.txt | 2 + .../umdDependencyCommentName2.errors.txt | 2 + .../reference/umdNamedAmdMode.errors.txt | 7 + .../undeclaredModuleError.errors.txt | 2 + ...sTopLevelOfModule.1(module=amd).errors.txt | 18 + ...pLevelOfModule.1(module=system).errors.txt | 18 + ...sTopLevelOfModule.2(module=amd).errors.txt | 12 + ...sTopLevelOfModule.3(module=amd).errors.txt | 18 + ...pLevelOfModule.3(module=system).errors.txt | 18 + ....1(module=system,target=es2015).errors.txt | 15 + ...ors.1(module=system,target=es5).errors.txt | 15 + ....1(module=system,target=esnext).errors.txt | 15 + ...10(module=system,target=es2015).errors.txt | 15 + ...rs.10(module=system,target=es5).errors.txt | 15 + ...10(module=system,target=esnext).errors.txt | 15 + ...11(module=system,target=es2015).errors.txt | 17 + ...rs.11(module=system,target=es5).errors.txt | 17 + ...11(module=system,target=esnext).errors.txt | 17 + ...12(module=system,target=es2015).errors.txt | 17 + ...rs.12(module=system,target=es5).errors.txt | 17 + ...12(module=system,target=esnext).errors.txt | 17 + ....2(module=system,target=es2015).errors.txt | 15 + ...ors.2(module=system,target=es5).errors.txt | 15 + ....2(module=system,target=esnext).errors.txt | 15 + ....3(module=system,target=es2015).errors.txt | 16 + ...ors.3(module=system,target=es5).errors.txt | 16 + ....3(module=system,target=esnext).errors.txt | 16 + ....4(module=system,target=es2015).errors.txt | 15 + ...ors.4(module=system,target=es5).errors.txt | 15 + ....4(module=system,target=esnext).errors.txt | 15 + ....5(module=system,target=es2015).errors.txt | 16 + ...ors.5(module=system,target=es5).errors.txt | 16 + ....5(module=system,target=esnext).errors.txt | 16 + ....6(module=system,target=es2015).errors.txt | 16 + ...ors.6(module=system,target=es5).errors.txt | 16 + ....6(module=system,target=esnext).errors.txt | 16 + ....7(module=system,target=es2015).errors.txt | 16 + ...ors.7(module=system,target=es5).errors.txt | 16 + ....7(module=system,target=esnext).errors.txt | 16 + ....8(module=system,target=es2015).errors.txt | 15 + ...ors.8(module=system,target=es5).errors.txt | 15 + ....8(module=system,target=esnext).errors.txt | 15 + ....9(module=system,target=es2015).errors.txt | 18 + ...ors.9(module=system,target=es5).errors.txt | 18 + ....9(module=system,target=esnext).errors.txt | 18 + ....1(module=system,target=es2015).errors.txt | 15 + ...ors.1(module=system,target=es5).errors.txt | 15 + ....1(module=system,target=esnext).errors.txt | 15 + ...10(module=system,target=es2015).errors.txt | 15 + ...rs.10(module=system,target=es5).errors.txt | 15 + ...10(module=system,target=esnext).errors.txt | 15 + ...11(module=system,target=es2015).errors.txt | 17 + ...rs.11(module=system,target=es5).errors.txt | 17 + ...11(module=system,target=esnext).errors.txt | 17 + ...12(module=system,target=es2015).errors.txt | 17 + ...rs.12(module=system,target=es5).errors.txt | 17 + ...12(module=system,target=esnext).errors.txt | 17 + ....2(module=system,target=es2015).errors.txt | 15 + ...ors.2(module=system,target=es5).errors.txt | 15 + ....2(module=system,target=esnext).errors.txt | 15 + ....3(module=system,target=es2015).errors.txt | 15 + ...ors.3(module=system,target=es5).errors.txt | 15 + ....3(module=system,target=esnext).errors.txt | 15 + ....4(module=system,target=es2015).errors.txt | 15 + ...ors.4(module=system,target=es5).errors.txt | 15 + ....4(module=system,target=esnext).errors.txt | 15 + ....5(module=system,target=es2015).errors.txt | 16 + ...ors.5(module=system,target=es5).errors.txt | 16 + ....5(module=system,target=esnext).errors.txt | 16 + ....6(module=system,target=es2015).errors.txt | 16 + ...ors.6(module=system,target=es5).errors.txt | 16 + ....6(module=system,target=esnext).errors.txt | 16 + ....7(module=system,target=es2015).errors.txt | 15 + ...ors.7(module=system,target=es5).errors.txt | 15 + ....7(module=system,target=esnext).errors.txt | 15 + ....8(module=system,target=es2015).errors.txt | 15 + ...ors.8(module=system,target=es5).errors.txt | 15 + ....8(module=system,target=esnext).errors.txt | 15 + ....9(module=system,target=es2015).errors.txt | 15 + ...ors.9(module=system,target=es5).errors.txt | 15 + ....9(module=system,target=esnext).errors.txt | 15 + .../varArgsOnConstructorTypes.errors.txt | 29 + .../reference/varArgsOnConstructorTypes.types | 6 + .../verbatimModuleSyntaxCompat.errors.txt | 2 + .../reference/withExportDecl.errors.txt | 63 + .../baselines/reference/withExportDecl.types | 10 + .../reference/withImportDecl.errors.txt | 46 + .../baselines/reference/withImportDecl.types | 5 + 1327 files changed, 36031 insertions(+), 16215 deletions(-) create mode 100644 tests/baselines/reference/SystemModuleForStatementNoInitializer.errors.txt create mode 100644 tests/baselines/reference/allowSyntheticDefaultImports2.errors.txt create mode 100644 tests/baselines/reference/allowSyntheticDefaultImports5.errors.txt create mode 100644 tests/baselines/reference/allowSyntheticDefaultImports7.errors.txt create mode 100644 tests/baselines/reference/ambientExternalModuleMerging.errors.txt create mode 100644 tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.errors.txt create mode 100644 tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.errors.txt create mode 100644 tests/baselines/reference/ambientInsideNonAmbientExternalModule.errors.txt create mode 100644 tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.errors.txt create mode 100644 tests/baselines/reference/amdImportAsPrimaryExpression.errors.txt create mode 100644 tests/baselines/reference/amdImportNotAsPrimaryExpression.errors.txt create mode 100644 tests/baselines/reference/amdModuleBundleNoDuplicateDeclarationEmitComments.errors.txt create mode 100644 tests/baselines/reference/amdModuleName1.errors.txt create mode 100644 tests/baselines/reference/anonymousDefaultExportsAmd.errors.txt create mode 100644 tests/baselines/reference/anonymousDefaultExportsSystem.errors.txt create mode 100644 tests/baselines/reference/anonymousDefaultExportsUmd.errors.txt create mode 100644 tests/baselines/reference/augmentExportEquals3.errors.txt create mode 100644 tests/baselines/reference/augmentExportEquals3_1.errors.txt create mode 100644 tests/baselines/reference/augmentExportEquals4.errors.txt create mode 100644 tests/baselines/reference/augmentExportEquals4_1.errors.txt create mode 100644 tests/baselines/reference/augmentExportEquals5.errors.txt create mode 100644 tests/baselines/reference/augmentExportEquals6.errors.txt create mode 100644 tests/baselines/reference/augmentExportEquals6_1.errors.txt create mode 100644 tests/baselines/reference/augmentedTypesExternalModule1.errors.txt create mode 100644 tests/baselines/reference/awaitUsingDeclarationsTopLevelOfModule.1(module=system).errors.txt create mode 100644 tests/baselines/reference/bangInModuleName.errors.txt create mode 100644 tests/baselines/reference/blockScopedNamespaceDifferentFile.errors.txt create mode 100644 tests/baselines/reference/cacheResolutions.errors.txt create mode 100644 tests/baselines/reference/capturedLetConstInLoop4.errors.txt create mode 100644 tests/baselines/reference/classStaticBlock24(module=amd).errors.txt create mode 100644 tests/baselines/reference/classStaticBlock24(module=system).errors.txt create mode 100644 tests/baselines/reference/classStaticBlock24(module=umd).errors.txt create mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientClass.errors.txt create mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientEnum.errors.txt create mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientFunction.errors.txt create mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientModule.errors.txt create mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientVar.errors.txt create mode 100644 tests/baselines/reference/collisionExportsRequireAndUninstantiatedModule.errors.txt create mode 100644 tests/baselines/reference/commentsBeforeVariableStatement1.errors.txt create mode 100644 tests/baselines/reference/commentsDottedModuleName.errors.txt create mode 100644 tests/baselines/reference/commentsExternalModules.errors.txt create mode 100644 tests/baselines/reference/commentsExternalModules2.errors.txt create mode 100644 tests/baselines/reference/commentsMultiModuleMultiFile.errors.txt create mode 100644 tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=auto).errors.txt create mode 100644 tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=force).errors.txt create mode 100644 tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=legacy).errors.txt create mode 100644 tests/baselines/reference/commonSourceDir6.errors.txt create mode 100644 tests/baselines/reference/constEnumExternalModule.errors.txt create mode 100644 tests/baselines/reference/constEnumMergingWithValues1.errors.txt create mode 100644 tests/baselines/reference/constEnumMergingWithValues2.errors.txt create mode 100644 tests/baselines/reference/constEnumMergingWithValues3.errors.txt create mode 100644 tests/baselines/reference/constEnumMergingWithValues4.errors.txt create mode 100644 tests/baselines/reference/constEnumMergingWithValues5.errors.txt create mode 100644 tests/baselines/reference/declFileExportAssignmentOfGenericInterface.errors.txt create mode 100644 tests/baselines/reference/declFileExportImportChain.errors.txt create mode 100644 tests/baselines/reference/declFileExportImportChain2.errors.txt create mode 100644 tests/baselines/reference/declarationEmitAmdModuleDefault.errors.txt create mode 100644 tests/baselines/reference/declarationEmitAmdModuleNameDirective.errors.txt create mode 100644 tests/baselines/reference/declarationEmitBundleWithAmbientReferences.errors.txt create mode 100644 tests/baselines/reference/declarationEmitDefaultExportWithTempVarName.errors.txt create mode 100644 tests/baselines/reference/declarationEmitDefaultExportWithTempVarNameWithBundling.errors.txt create mode 100644 tests/baselines/reference/declarationMapsOutFile.errors.txt create mode 100644 tests/baselines/reference/declarationMerging2.errors.txt create mode 100644 tests/baselines/reference/decoratedClassExportsSystem1.errors.txt create mode 100644 tests/baselines/reference/decoratedClassExportsSystem2.errors.txt create mode 100644 tests/baselines/reference/decoratedClassFromExternalModule.errors.txt create mode 100644 tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.errors.txt create mode 100644 tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.errors.txt create mode 100644 tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.errors.txt create mode 100644 tests/baselines/reference/defaultExportInAwaitExpression01.errors.txt create mode 100644 tests/baselines/reference/defaultExportsGetExportedAmd.errors.txt create mode 100644 tests/baselines/reference/defaultExportsGetExportedSystem.errors.txt create mode 100644 tests/baselines/reference/defaultExportsGetExportedUmd.errors.txt create mode 100644 tests/baselines/reference/dependencyViaImportAlias.errors.txt create mode 100644 tests/baselines/reference/deprecatedCompilerOptions2.errors.txt create mode 100644 tests/baselines/reference/destructuringInVariableDeclarations3.errors.txt create mode 100644 tests/baselines/reference/destructuringInVariableDeclarations4.errors.txt create mode 100644 tests/baselines/reference/destructuringInVariableDeclarations5.errors.txt create mode 100644 tests/baselines/reference/destructuringInVariableDeclarations6.errors.txt create mode 100644 tests/baselines/reference/destructuringInVariableDeclarations7.errors.txt create mode 100644 tests/baselines/reference/destructuringInVariableDeclarations8.errors.txt create mode 100644 tests/baselines/reference/dottedNamesInSystem.errors.txt create mode 100644 tests/baselines/reference/duplicateIdentifierShouldNotShortCircuitBaseTypeBinding.errors.txt create mode 100644 tests/baselines/reference/dynamicImportWithNestedThis_es2015.errors.txt create mode 100644 tests/baselines/reference/dynamicImportWithNestedThis_es5.errors.txt create mode 100644 tests/baselines/reference/dynamicRequire.errors.txt create mode 100644 tests/baselines/reference/emitBundleWithPrologueDirectives1.errors.txt create mode 100644 tests/baselines/reference/emitBundleWithShebang1.errors.txt create mode 100644 tests/baselines/reference/emitBundleWithShebang2.errors.txt create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.errors.txt create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.errors.txt create mode 100644 tests/baselines/reference/emitHelpersWithLocalCollisions(module=amd).errors.txt create mode 100644 tests/baselines/reference/emitHelpersWithLocalCollisions(module=none).errors.txt create mode 100644 tests/baselines/reference/emitHelpersWithLocalCollisions(module=system).errors.txt create mode 100644 tests/baselines/reference/emitHelpersWithLocalCollisions(module=umd).errors.txt create mode 100644 tests/baselines/reference/es5-amd.errors.txt create mode 100644 tests/baselines/reference/es5-declaration-amd.errors.txt create mode 100644 tests/baselines/reference/es5-souremap-amd.errors.txt create mode 100644 tests/baselines/reference/es5-system.errors.txt create mode 100644 tests/baselines/reference/es5-system2.errors.txt create mode 100644 tests/baselines/reference/es5-umd.errors.txt create mode 100644 tests/baselines/reference/es5-umd2.errors.txt create mode 100644 tests/baselines/reference/es5-umd3.errors.txt create mode 100644 tests/baselines/reference/es5-umd4.errors.txt create mode 100644 tests/baselines/reference/es5ModuleWithModuleGenAmd.errors.txt create mode 100644 tests/baselines/reference/es6-amd.errors.txt create mode 100644 tests/baselines/reference/es6-declaration-amd.errors.txt create mode 100644 tests/baselines/reference/es6-sourcemap-amd.errors.txt create mode 100644 tests/baselines/reference/es6-umd.errors.txt create mode 100644 tests/baselines/reference/es6-umd2.errors.txt create mode 100644 tests/baselines/reference/es6ExportAll.errors.txt create mode 100644 tests/baselines/reference/es6ExportAssignment3.errors.txt create mode 100644 tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.errors.txt create mode 100644 tests/baselines/reference/es6ImportDefaultBinding.errors.txt create mode 100644 tests/baselines/reference/es6ImportDefaultBindingAmd.errors.txt create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportAmd.errors.txt create mode 100644 tests/baselines/reference/es6ImportNamedImportAmd.errors.txt create mode 100644 tests/baselines/reference/es6ImportWithoutFromClause.errors.txt create mode 100644 tests/baselines/reference/es6ImportWithoutFromClauseAmd.errors.txt create mode 100644 tests/baselines/reference/es6ImportWithoutFromClauseNonInstantiatedModule.errors.txt create mode 100644 tests/baselines/reference/es6ModuleWithModuleGenTargetAmd.errors.txt create mode 100644 tests/baselines/reference/exportAndImport-es5-amd.errors.txt create mode 100644 tests/baselines/reference/exportAsNamespace4(module=amd).errors.txt create mode 100644 tests/baselines/reference/exportAsNamespace4(module=system).errors.txt create mode 100644 tests/baselines/reference/exportAsNamespace4(module=umd).errors.txt create mode 100644 tests/baselines/reference/exportAssignedTypeAsTypeAnnotation.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentCircularModules.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentClass.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentError.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentFunction.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentInterface.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentInternalModule.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentMergedInterface.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentOfGenericType1.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentTopLevelClodule.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentTopLevelEnumdule.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentTopLevelFundule.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentTopLevelIdentifier.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.errors.txt create mode 100644 tests/baselines/reference/exportAssignmentWithPrivacyError.errors.txt create mode 100644 tests/baselines/reference/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=system).errors.txt create mode 100644 tests/baselines/reference/exportEmptyArrayBindingPattern(module=amd,target=es5).errors.txt create mode 100644 tests/baselines/reference/exportEmptyArrayBindingPattern(module=amd,target=esnext).errors.txt create mode 100644 tests/baselines/reference/exportEmptyArrayBindingPattern(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/exportEmptyArrayBindingPattern(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/exportEmptyObjectBindingPattern(module=amd,target=es5).errors.txt create mode 100644 tests/baselines/reference/exportEmptyObjectBindingPattern(module=amd,target=esnext).errors.txt create mode 100644 tests/baselines/reference/exportEmptyObjectBindingPattern(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/exportEmptyObjectBindingPattern(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/exportEqualCallable.errors.txt create mode 100644 tests/baselines/reference/exportEqualNamespaces.errors.txt create mode 100644 tests/baselines/reference/exportEqualsAmd.errors.txt create mode 100644 tests/baselines/reference/exportEqualsUmd.errors.txt create mode 100644 tests/baselines/reference/exportImport.errors.txt create mode 100644 tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.errors.txt create mode 100644 tests/baselines/reference/exportImportMultipleFiles.errors.txt create mode 100644 tests/baselines/reference/exportImportNonInstantiatedModule2.errors.txt create mode 100644 tests/baselines/reference/exportObjectRest(module=amd,target=es5).errors.txt create mode 100644 tests/baselines/reference/exportObjectRest(module=amd,target=esnext).errors.txt create mode 100644 tests/baselines/reference/exportObjectRest(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/exportObjectRest(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/exportStarForValues.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues10.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues2.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues3.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues4.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues5.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues6.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues7.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues8.errors.txt create mode 100644 tests/baselines/reference/exportStarForValues9.errors.txt create mode 100644 tests/baselines/reference/exportStarForValuesInSystem.errors.txt create mode 100644 tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.errors.txt create mode 100644 tests/baselines/reference/exportedVariable1.errors.txt create mode 100644 tests/baselines/reference/exportingContainingVisibleType.errors.txt create mode 100644 tests/baselines/reference/exportsAndImports1-amd.errors.txt create mode 100644 tests/baselines/reference/exportsAndImports2-amd.errors.txt create mode 100644 tests/baselines/reference/exportsAndImports3-amd.errors.txt create mode 100644 tests/baselines/reference/exportsAndImports4-amd.errors.txt create mode 100644 tests/baselines/reference/exportsInAmbientModules1.errors.txt create mode 100644 tests/baselines/reference/exportsInAmbientModules2.errors.txt create mode 100644 tests/baselines/reference/externalModuleAssignToVar.errors.txt create mode 100644 tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.errors.txt create mode 100644 tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.errors.txt create mode 100644 tests/baselines/reference/generatorES6InAMDModule.errors.txt create mode 100644 tests/baselines/reference/genericClassesInModule2.errors.txt create mode 100644 tests/baselines/reference/genericInterfaceFunctionTypeParameter.errors.txt create mode 100644 tests/baselines/reference/genericTypeWithMultipleBases2.errors.txt create mode 100644 tests/baselines/reference/genericWithIndexerOfTypeParameterType2.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5AMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5System.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5UMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionAsyncES6AMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionAsyncES6System.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionAsyncES6UMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionES5AMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionES5System.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionES5UMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionES6AMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionES6System.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionES6UMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInAMD1.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInAMD2.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInAMD3.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInAMD4.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInExportEqualsAMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInExportEqualsUMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInSystem1.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInSystem2.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInSystem3.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInSystem4.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInUMD1.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInUMD2.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInUMD3.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInUMD4.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionInUMD5.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionNestedAMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionNestedAMD2.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionNestedSystem.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionNestedSystem2.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionNestedUMD.errors.txt create mode 100644 tests/baselines/reference/importCallExpressionNestedUMD2.errors.txt create mode 100644 tests/baselines/reference/importDefaultBindingDefer.errors.txt create mode 100644 tests/baselines/reference/importDeferComments.errors.txt create mode 100644 tests/baselines/reference/importHelpersAmd.errors.txt create mode 100644 tests/baselines/reference/importHelpersES6.errors.txt create mode 100644 tests/baselines/reference/importHelpersOutFile.errors.txt create mode 100644 tests/baselines/reference/importHelpersSystem.errors.txt create mode 100644 tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=amd).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=system).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=amd).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=system).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=true,module=system).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=true,module=system).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=true,module=system).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=amd).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=system).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).errors.txt create mode 100644 tests/baselines/reference/importHelpersWithLocalCollisions(module=system).errors.txt create mode 100644 tests/baselines/reference/importImportOnlyModule.errors.txt create mode 100644 tests/baselines/reference/importMetaNarrowing(module=system).errors.txt create mode 100644 tests/baselines/reference/importShadowsGlobalName.errors.txt create mode 100644 tests/baselines/reference/importTypeAmdBundleRewrite.errors.txt create mode 100644 tests/baselines/reference/import_reference-exported-alias.errors.txt create mode 100644 tests/baselines/reference/import_reference-to-type-alias.errors.txt create mode 100644 tests/baselines/reference/import_unneeded-require-when-referenecing-aliased-type-throug-array.errors.txt create mode 100644 tests/baselines/reference/import_var-referencing-an-imported-module-alias.errors.txt create mode 100644 tests/baselines/reference/importedAliasesInTypePositions.errors.txt create mode 100644 tests/baselines/reference/importedModuleClassNameClash.errors.txt create mode 100644 tests/baselines/reference/importsInAmbientModules1.errors.txt create mode 100644 tests/baselines/reference/importsInAmbientModules2.errors.txt create mode 100644 tests/baselines/reference/importsInAmbientModules3.errors.txt create mode 100644 tests/baselines/reference/instanceOfInExternalModules.errors.txt create mode 100644 tests/baselines/reference/interfaceDeclaration5.errors.txt create mode 100644 tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithoutExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.errors.txt create mode 100644 tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.errors.txt create mode 100644 tests/baselines/reference/isolatedDeclarationOutFile.errors.txt create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-AMD.errors.txt create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-System.errors.txt create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-UMD.errors.txt create mode 100644 tests/baselines/reference/jsDeclarationsImportTypeBundled.errors.txt create mode 100644 tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.errors.txt create mode 100644 tests/baselines/reference/keepImportsInDts1.errors.txt create mode 100644 tests/baselines/reference/keepImportsInDts2.errors.txt create mode 100644 tests/baselines/reference/keepImportsInDts3.errors.txt create mode 100644 tests/baselines/reference/keepImportsInDts4.errors.txt create mode 100644 tests/baselines/reference/libReferenceDeclarationEmitBundle.errors.txt create mode 100644 tests/baselines/reference/libReferenceNoLibBundle.errors.txt create mode 100644 tests/baselines/reference/memberAccessMustUseModuleInstances.errors.txt create mode 100644 tests/baselines/reference/mergedDeclarations6.errors.txt create mode 100644 tests/baselines/reference/moduleAliasAsFunctionArgument.errors.txt create mode 100644 tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt create mode 100644 tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt create mode 100644 tests/baselines/reference/moduleAugmentationsImports1.errors.txt create mode 100644 tests/baselines/reference/moduleAugmentationsImports2.errors.txt create mode 100644 tests/baselines/reference/moduleAugmentationsImports3.errors.txt create mode 100644 tests/baselines/reference/moduleAugmentationsImports4.errors.txt create mode 100644 tests/baselines/reference/moduleImportedForTypeArgumentPosition.errors.txt create mode 100644 tests/baselines/reference/moduleMergeConstructor.errors.txt create mode 100644 tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt create mode 100644 tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt create mode 100644 tests/baselines/reference/moduleNoneOutFile.errors.txt create mode 100644 tests/baselines/reference/modulePrologueAMD.errors.txt create mode 100644 tests/baselines/reference/modulePrologueSystem.errors.txt create mode 100644 tests/baselines/reference/modulePrologueUmd.errors.txt create mode 100644 tests/baselines/reference/nestedRedeclarationInES6AMD.errors.txt create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt create mode 100644 tests/baselines/reference/objectIndexer.errors.txt create mode 100644 tests/baselines/reference/outFilerootDirModuleNamesAmd.errors.txt create mode 100644 tests/baselines/reference/outFilerootDirModuleNamesSystem.errors.txt create mode 100644 tests/baselines/reference/outModuleConcatAmd.errors.txt create mode 100644 tests/baselines/reference/outModuleConcatSystem.errors.txt create mode 100644 tests/baselines/reference/outModuleTripleSlashRefs.errors.txt create mode 100644 tests/baselines/reference/pathMappingBasedModuleResolution6_classic.errors.txt create mode 100644 tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.errors.txt create mode 100644 tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.errors.txt create mode 100644 tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.errors.txt create mode 100644 tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.errors.txt create mode 100644 tests/baselines/reference/privacyGetter.errors.txt create mode 100644 tests/baselines/reference/privacyGloFunc.errors.txt create mode 100644 tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.errors.txt create mode 100644 tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.errors.txt create mode 100644 tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.errors.txt create mode 100644 tests/baselines/reference/privatePropertyUsingObjectType.errors.txt create mode 100644 tests/baselines/reference/project/baseline/amd/baseline.errors.txt create mode 100644 tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt create mode 100644 tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt create mode 100644 tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt create mode 100644 tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt create mode 100644 tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt create mode 100644 tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt create mode 100644 tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt create mode 100644 tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt create mode 100644 tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt create mode 100644 tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt create mode 100644 tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt create mode 100644 tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt create mode 100644 tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt create mode 100644 tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt create mode 100644 tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt create mode 100644 tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt create mode 100644 tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt create mode 100644 tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt create mode 100644 tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt create mode 100644 tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt create mode 100644 tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt create mode 100644 tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt create mode 100644 tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt create mode 100644 tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt create mode 100644 tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt create mode 100644 tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt create mode 100644 tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt create mode 100644 tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt create mode 100644 tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt create mode 100644 tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt create mode 100644 tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt create mode 100644 tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt create mode 100644 tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt create mode 100644 tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt create mode 100644 tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt create mode 100644 tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt create mode 100644 tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt create mode 100644 tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt create mode 100644 tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.errors.txt create mode 100644 tests/baselines/reference/reexportMissingDefault5.errors.txt create mode 100644 tests/baselines/reference/requireEmitSemicolon.errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationExportAssignment.errors.txt create mode 100644 tests/baselines/reference/systemDefaultExportCommentValidity.errors.txt create mode 100644 tests/baselines/reference/systemDefaultImportCallable.errors.txt create mode 100644 tests/baselines/reference/systemExportAssignment.errors.txt create mode 100644 tests/baselines/reference/systemExportAssignment3.errors.txt create mode 100644 tests/baselines/reference/systemJsForInNoException.errors.txt create mode 100644 tests/baselines/reference/systemModule1.errors.txt create mode 100644 tests/baselines/reference/systemModule13.errors.txt create mode 100644 tests/baselines/reference/systemModule15.errors.txt create mode 100644 tests/baselines/reference/systemModule17.errors.txt create mode 100644 tests/baselines/reference/systemModule18.errors.txt create mode 100644 tests/baselines/reference/systemModule3.errors.txt create mode 100644 tests/baselines/reference/systemModule4.errors.txt create mode 100644 tests/baselines/reference/systemModule5.errors.txt create mode 100644 tests/baselines/reference/systemModule6.errors.txt create mode 100644 tests/baselines/reference/systemModule7.errors.txt create mode 100644 tests/baselines/reference/systemModule8.errors.txt create mode 100644 tests/baselines/reference/systemModuleAmbientDeclarations.errors.txt create mode 100644 tests/baselines/reference/systemModuleConstEnums.errors.txt create mode 100644 tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.errors.txt create mode 100644 tests/baselines/reference/systemModuleDeclarationMerging.errors.txt create mode 100644 tests/baselines/reference/systemModuleExportDefault.errors.txt create mode 100644 tests/baselines/reference/systemModuleNonTopLevelModuleMembers.errors.txt create mode 100644 tests/baselines/reference/systemModuleTargetES6.errors.txt create mode 100644 tests/baselines/reference/systemModuleTrailingComments.errors.txt create mode 100644 tests/baselines/reference/systemModuleWithSuperClass.errors.txt create mode 100644 tests/baselines/reference/systemNamespaceAliasEmit.errors.txt create mode 100644 tests/baselines/reference/systemObjectShorthandRename.errors.txt create mode 100644 tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).errors.txt create mode 100644 tests/baselines/reference/topLevelExports.errors.txt create mode 100644 tests/baselines/reference/topLevelVarHoistingSystem.errors.txt create mode 100644 tests/baselines/reference/transpile/Generates module output.errors.txt create mode 100644 tests/baselines/reference/transpile/Generates module output.oldTranspile.errors.txt create mode 100644 tests/baselines/reference/transpile/Rename dependencies - AMD.errors.txt create mode 100644 tests/baselines/reference/transpile/Rename dependencies - System.errors.txt create mode 100644 tests/baselines/reference/transpile/Rename dependencies - UMD.errors.txt create mode 100644 tests/baselines/reference/transpile/Sets module name.errors.txt create mode 100644 tests/baselines/reference/transpile/Sets module name.oldTranspile.errors.txt create mode 100644 tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-incremental-as-modules-discrepancies.js create mode 100644 tests/baselines/reference/tsbuild/sample1/when-module-option-changes-discrepancies.js create mode 100644 tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-incremental-as-modules-discrepancies.js create mode 100644 tests/baselines/reference/tsconfigMapOptionsAreCaseInsensitive.errors.txt create mode 100644 tests/baselines/reference/tsxElementResolution17.errors.txt create mode 100644 tests/baselines/reference/tsxElementResolution19.errors.txt create mode 100644 tests/baselines/reference/tsxPreserveEmit1.errors.txt create mode 100644 tests/baselines/reference/tsxPreserveEmit2.errors.txt create mode 100644 tests/baselines/reference/tsxPreserveEmit3.errors.txt create mode 100644 tests/baselines/reference/tsxSfcReturnNull.errors.txt create mode 100644 tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.errors.txt create mode 100644 tests/baselines/reference/tsxStatelessFunctionComponentOverload2.errors.txt create mode 100644 tests/baselines/reference/tsxStatelessFunctionComponentOverload3.errors.txt create mode 100644 tests/baselines/reference/tsxStatelessFunctionComponentOverload6.errors.txt create mode 100644 tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter1.errors.txt create mode 100644 tests/baselines/reference/tsxStatelessFunctionComponents3.errors.txt create mode 100644 tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.errors.txt create mode 100644 tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.errors.txt create mode 100644 tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.errors.txt create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit2.errors.txt create mode 100644 tests/baselines/reference/typeParameterCompatibilityAccrossDeclarations.errors.txt create mode 100644 tests/baselines/reference/typeResolution.errors.txt create mode 100644 tests/baselines/reference/typingsLookupAmd.errors.txt create mode 100644 tests/baselines/reference/umdNamedAmdMode.errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsTopLevelOfModule.1(module=amd).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsTopLevelOfModule.1(module=system).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsTopLevelOfModule.2(module=amd).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsTopLevelOfModule.3(module=amd).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsTopLevelOfModule.3(module=system).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es2015).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es5).errors.txt create mode 100644 tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=esnext).errors.txt create mode 100644 tests/baselines/reference/varArgsOnConstructorTypes.errors.txt create mode 100644 tests/baselines/reference/withExportDecl.errors.txt create mode 100644 tests/baselines/reference/withImportDecl.errors.txt diff --git a/tests/baselines/reference/SystemModuleForStatementNoInitializer.errors.txt b/tests/baselines/reference/SystemModuleForStatementNoInitializer.errors.txt new file mode 100644 index 0000000000000..cf1deb71e192a --- /dev/null +++ b/tests/baselines/reference/SystemModuleForStatementNoInitializer.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SystemModuleForStatementNoInitializer.ts (0 errors) ==== + export { }; + + let i = 0; + let limit = 10; + + for (; i < limit; ++i) { + break; + } + + for (; ; ++i) { + break; + } + + for (; ;) { + break; + } + \ No newline at end of file diff --git a/tests/baselines/reference/aliasesInSystemModule1.errors.txt b/tests/baselines/reference/aliasesInSystemModule1.errors.txt index 0d893092c1616..9a2a973a3d7f8 100644 --- a/tests/baselines/reference/aliasesInSystemModule1.errors.txt +++ b/tests/baselines/reference/aliasesInSystemModule1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. aliasesInSystemModule1.ts(1,24): 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 TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== aliasesInSystemModule1.ts (1 errors) ==== import alias = require('foo'); ~~~~~ diff --git a/tests/baselines/reference/aliasesInSystemModule2.errors.txt b/tests/baselines/reference/aliasesInSystemModule2.errors.txt index 9a313dacd26c9..721a9665c87c2 100644 --- a/tests/baselines/reference/aliasesInSystemModule2.errors.txt +++ b/tests/baselines/reference/aliasesInSystemModule2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. aliasesInSystemModule2.ts(1,21): 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 TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== aliasesInSystemModule2.ts (1 errors) ==== import {alias} from "foo"; ~~~~~ diff --git a/tests/baselines/reference/allowSyntheticDefaultImports2.errors.txt b/tests/baselines/reference/allowSyntheticDefaultImports2.errors.txt new file mode 100644 index 0000000000000..7428078159abc --- /dev/null +++ b/tests/baselines/reference/allowSyntheticDefaultImports2.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + import Namespace from "./b"; + export var x = new Namespace.Foo(); + +==== b.d.ts (0 errors) ==== + export class Foo { + member: string; + } \ No newline at end of file diff --git a/tests/baselines/reference/allowSyntheticDefaultImports3.errors.txt b/tests/baselines/reference/allowSyntheticDefaultImports3.errors.txt index 534e0c4f1585c..46ca261dcf94d 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports3.errors.txt +++ b/tests/baselines/reference/allowSyntheticDefaultImports3.errors.txt @@ -1,8 +1,10 @@ error TS5107: Option 'allowSyntheticDefaultImports=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. a.ts(1,8): error TS1192: Module '"b"' has no default export. !!! error TS5107: Option 'allowSyntheticDefaultImports=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (1 errors) ==== import Namespace from "./b"; ~~~~~~~~~ diff --git a/tests/baselines/reference/allowSyntheticDefaultImports5.errors.txt b/tests/baselines/reference/allowSyntheticDefaultImports5.errors.txt new file mode 100644 index 0000000000000..ff40b5a99bd7d --- /dev/null +++ b/tests/baselines/reference/allowSyntheticDefaultImports5.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.d.ts (0 errors) ==== + declare class Foo { + member: string; + } + export = Foo; + +==== a.ts (0 errors) ==== + import Foo from "./b"; + export var x = new Foo(); + \ No newline at end of file diff --git a/tests/baselines/reference/allowSyntheticDefaultImports6.errors.txt b/tests/baselines/reference/allowSyntheticDefaultImports6.errors.txt index 9a93a6478d600..b046f121d8110 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports6.errors.txt +++ b/tests/baselines/reference/allowSyntheticDefaultImports6.errors.txt @@ -1,8 +1,10 @@ error TS5107: Option 'allowSyntheticDefaultImports=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. a.ts(1,8): error TS1259: Module '"b"' can only be default-imported using the 'esModuleInterop' flag !!! error TS5107: Option 'allowSyntheticDefaultImports=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.d.ts (0 errors) ==== declare class Foo { member: string; diff --git a/tests/baselines/reference/allowSyntheticDefaultImports7.errors.txt b/tests/baselines/reference/allowSyntheticDefaultImports7.errors.txt new file mode 100644 index 0000000000000..427b9a4ecd4ac --- /dev/null +++ b/tests/baselines/reference/allowSyntheticDefaultImports7.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.d.ts (0 errors) ==== + export function foo(); + + export function bar(); + +==== a.ts (0 errors) ==== + import { default as Foo } from "./b"; + Foo.bar(); + Foo.foo(); \ No newline at end of file diff --git a/tests/baselines/reference/allowSyntheticDefaultImports7.types b/tests/baselines/reference/allowSyntheticDefaultImports7.types index bc2bfa369009c..73f1cd2b4faaa 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports7.types +++ b/tests/baselines/reference/allowSyntheticDefaultImports7.types @@ -18,6 +18,7 @@ import { default as Foo } from "./b"; Foo.bar(); >Foo.bar() : any +> : ^^^ >Foo.bar : () => any > : ^^^^^^^^^ >Foo : typeof Foo @@ -27,6 +28,7 @@ Foo.bar(); Foo.foo(); >Foo.foo() : any +> : ^^^ >Foo.foo : () => any > : ^^^^^^^^^ >Foo : typeof Foo diff --git a/tests/baselines/reference/allowSyntheticDefaultImports8.errors.txt b/tests/baselines/reference/allowSyntheticDefaultImports8.errors.txt index a2f8d0bb5cdc6..b65de50334d62 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports8.errors.txt +++ b/tests/baselines/reference/allowSyntheticDefaultImports8.errors.txt @@ -1,8 +1,10 @@ error TS5107: Option 'allowSyntheticDefaultImports=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. a.ts(1,10): error TS2305: Module '"./b"' has no exported member 'default'. !!! error TS5107: Option 'allowSyntheticDefaultImports=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.d.ts (0 errors) ==== export function foo(); diff --git a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt index acd76e48f1fae..181912de0ecd9 100644 --- a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt +++ b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ambientExternalModuleInAnotherExternalModule.ts(4,16): error TS2664: Invalid module name in augmentation, module 'ext' cannot be found. ambientExternalModuleInAnotherExternalModule.ts(9,22): error TS2792: Cannot find module 'ext'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ambientExternalModuleInAnotherExternalModule.ts (2 errors) ==== class D { } export = D; diff --git a/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt b/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt index dc26b6b3866a1..73295d80ceb15 100644 --- a/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt +++ b/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ambientExternalModuleInsideNonAmbientExternalModule.ts (2 errors) ==== export declare module "M" { } ~~~~~~ diff --git a/tests/baselines/reference/ambientExternalModuleMerging.errors.txt b/tests/baselines/reference/ambientExternalModuleMerging.errors.txt new file mode 100644 index 0000000000000..e8ff61bebbf4d --- /dev/null +++ b/tests/baselines/reference/ambientExternalModuleMerging.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ambientExternalModuleMerging_use.ts (0 errors) ==== + import M = require("M"); + // Should be strings + var x = M.x; + var y = M.y; + +==== ambientExternalModuleMerging_declare.ts (0 errors) ==== + declare module "M" { + export var x: string; + } + + // Merge + declare module "M" { + export var y: string; + } \ No newline at end of file diff --git a/tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.errors.txt b/tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.errors.txt new file mode 100644 index 0000000000000..d7fe786ac226a --- /dev/null +++ b/tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.errors.txt @@ -0,0 +1,21 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ambientExternalModuleWithInternalImportDeclaration_1.ts (0 errors) ==== + /// + import A = require('M'); + var c = new A(); +==== ambientExternalModuleWithInternalImportDeclaration_0.ts (0 errors) ==== + declare module 'M' { + namespace C { + export var f: number; + } + class C { + foo(): void; + } + import X = C; + export = X; + + } + \ No newline at end of file diff --git a/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.errors.txt b/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.errors.txt new file mode 100644 index 0000000000000..7007f99196d25 --- /dev/null +++ b/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ambientExternalModuleWithoutInternalImportDeclaration_1.ts (0 errors) ==== + /// + import A = require('M'); + var c = new A(); +==== ambientExternalModuleWithoutInternalImportDeclaration_0.ts (0 errors) ==== + declare module 'M' { + namespace C { + export var f: number; + } + class C { + foo(): void; + } + export = C; + + } + \ No newline at end of file diff --git a/tests/baselines/reference/ambientInsideNonAmbientExternalModule.errors.txt b/tests/baselines/reference/ambientInsideNonAmbientExternalModule.errors.txt new file mode 100644 index 0000000000000..894871da4ea76 --- /dev/null +++ b/tests/baselines/reference/ambientInsideNonAmbientExternalModule.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ambientInsideNonAmbientExternalModule.ts (0 errors) ==== + export declare var x; + export declare function f(); + export declare class C { } + export declare enum E { } + export declare namespace M { } \ No newline at end of file diff --git a/tests/baselines/reference/ambientInsideNonAmbientExternalModule.types b/tests/baselines/reference/ambientInsideNonAmbientExternalModule.types index 1e4d937001776..6738762cf8016 100644 --- a/tests/baselines/reference/ambientInsideNonAmbientExternalModule.types +++ b/tests/baselines/reference/ambientInsideNonAmbientExternalModule.types @@ -3,6 +3,7 @@ === ambientInsideNonAmbientExternalModule.ts === export declare var x; >x : any +> : ^^^ export declare function f(); >f : () => any diff --git a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.errors.txt b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.errors.txt new file mode 100644 index 0000000000000..3e48ae27ac125 --- /dev/null +++ b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.errors.txt @@ -0,0 +1,24 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== Class.ts (0 errors) ==== + import { Configurable } from "./Configurable" + + export class HiddenClass {} + + export class ActualClass extends Configurable(HiddenClass) {} +==== Configurable.ts (0 errors) ==== + export type Constructor = { + new(...args: any[]): T; + } + export function Configurable>(base: T): T { + return class extends base { + + constructor(...args: any[]) { + super(...args); + } + + }; + } + \ No newline at end of file diff --git a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.types b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.types index 298d9b7a59a76..a4b3790832021 100644 --- a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.types +++ b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.types @@ -50,6 +50,7 @@ export function Configurable>(base: T): T { >super : T > : ^ >...args : any +> : ^^^ >args : any[] > : ^^^^^ } diff --git a/tests/baselines/reference/amdDependencyComment2.errors.txt b/tests/baselines/reference/amdDependencyComment2.errors.txt index 535952ab28c83..f9f56d78b0572 100644 --- a/tests/baselines/reference/amdDependencyComment2.errors.txt +++ b/tests/baselines/reference/amdDependencyComment2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. amdDependencyComment2.ts(3,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== amdDependencyComment2.ts (1 errors) ==== /// diff --git a/tests/baselines/reference/amdDependencyCommentName2.errors.txt b/tests/baselines/reference/amdDependencyCommentName2.errors.txt index 0efc3677edaae..5493fec22e1f8 100644 --- a/tests/baselines/reference/amdDependencyCommentName2.errors.txt +++ b/tests/baselines/reference/amdDependencyCommentName2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. amdDependencyCommentName2.ts(3,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== amdDependencyCommentName2.ts (1 errors) ==== /// diff --git a/tests/baselines/reference/amdDependencyCommentName3.errors.txt b/tests/baselines/reference/amdDependencyCommentName3.errors.txt index da2433c64e3ce..9dc61a72ac698 100644 --- a/tests/baselines/reference/amdDependencyCommentName3.errors.txt +++ b/tests/baselines/reference/amdDependencyCommentName3.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. amdDependencyCommentName3.ts(5,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== amdDependencyCommentName3.ts (1 errors) ==== /// /// diff --git a/tests/baselines/reference/amdDependencyCommentName4.errors.txt b/tests/baselines/reference/amdDependencyCommentName4.errors.txt index dde817520208f..369eab8b94545 100644 --- a/tests/baselines/reference/amdDependencyCommentName4.errors.txt +++ b/tests/baselines/reference/amdDependencyCommentName4.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. amdDependencyCommentName4.ts(6,8): error TS2882: Cannot find module or type declarations for side-effect import of 'unaliasedModule1'. amdDependencyCommentName4.ts(8,21): error TS2792: Cannot find module 'aliasedModule1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? amdDependencyCommentName4.ts(11,26): error TS2792: Cannot find module 'aliasedModule2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? @@ -6,6 +7,7 @@ amdDependencyCommentName4.ts(17,21): error TS2792: Cannot find module 'aliasedMo amdDependencyCommentName4.ts(20,8): error TS2882: Cannot find module or type declarations for side-effect import of 'unaliasedModule2'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== amdDependencyCommentName4.ts (6 errors) ==== /// /// diff --git a/tests/baselines/reference/amdImportAsPrimaryExpression.errors.txt b/tests/baselines/reference/amdImportAsPrimaryExpression.errors.txt new file mode 100644 index 0000000000000..db2e8f43f2559 --- /dev/null +++ b/tests/baselines/reference/amdImportAsPrimaryExpression.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_1.ts (0 errors) ==== + import foo = require("./foo_0"); + if(foo.E1.A === 0){ + // Should cause runtime import - interesting optimization possibility, as gets inlined to 0. + } + +==== foo_0.ts (0 errors) ==== + export enum E1 { + A,B,C + } + \ No newline at end of file diff --git a/tests/baselines/reference/amdImportNotAsPrimaryExpression.errors.txt b/tests/baselines/reference/amdImportNotAsPrimaryExpression.errors.txt new file mode 100644 index 0000000000000..2384ff62cf093 --- /dev/null +++ b/tests/baselines/reference/amdImportNotAsPrimaryExpression.errors.txt @@ -0,0 +1,34 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_1.ts (0 errors) ==== + import foo = require("./foo_0"); + // None of the below should cause a runtime dependency on foo_0 + import f = foo.M1; + var i: f.I2; + var x: foo.C1 = <{m1: number}>{}; + var y: typeof foo.C1.s1 = false; + var z: foo.M1.I2; + var e: number = 0; +==== foo_0.ts (0 errors) ==== + export class C1 { + m1 = 42; + static s1 = true; + } + + export interface I1 { + name: string; + age: number; + } + + export namespace M1 { + export interface I2 { + foo: string; + } + } + + export enum E1 { + A,B,C + } + \ No newline at end of file diff --git a/tests/baselines/reference/amdModuleBundleNoDuplicateDeclarationEmitComments.errors.txt b/tests/baselines/reference/amdModuleBundleNoDuplicateDeclarationEmitComments.errors.txt new file mode 100644 index 0000000000000..a0f10142a0010 --- /dev/null +++ b/tests/baselines/reference/amdModuleBundleNoDuplicateDeclarationEmitComments.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + /// + export class Foo {} +==== file2.ts (0 errors) ==== + /// + export class Bar {} \ No newline at end of file diff --git a/tests/baselines/reference/amdModuleConstEnumUsage.errors.txt b/tests/baselines/reference/amdModuleConstEnumUsage.errors.txt index 684438a321e98..c481c51265ae0 100644 --- a/tests/baselines/reference/amdModuleConstEnumUsage.errors.txt +++ b/tests/baselines/reference/amdModuleConstEnumUsage.errors.txt @@ -1,9 +1,11 @@ error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5101: Visit https://aka.ms/ts6 for migration information. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /proj/defs/cc.ts (0 errors) ==== export const enum CharCode { A, diff --git a/tests/baselines/reference/amdModuleName1.errors.txt b/tests/baselines/reference/amdModuleName1.errors.txt new file mode 100644 index 0000000000000..93c4eee9c3022 --- /dev/null +++ b/tests/baselines/reference/amdModuleName1.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== amdModuleName1.ts (0 errors) ==== + /// + class Foo { + x: number; + constructor() { + this.x = 5; + } + } + export = Foo; + \ No newline at end of file diff --git a/tests/baselines/reference/amdModuleName2.errors.txt b/tests/baselines/reference/amdModuleName2.errors.txt index 90f9378392567..fea86f1230c6e 100644 --- a/tests/baselines/reference/amdModuleName2.errors.txt +++ b/tests/baselines/reference/amdModuleName2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. amdModuleName2.ts(2,1): error TS2458: An AMD module cannot have multiple name assignments. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== amdModuleName2.ts (1 errors) ==== /// /// diff --git a/tests/baselines/reference/anonymousDefaultExportsAmd.errors.txt b/tests/baselines/reference/anonymousDefaultExportsAmd.errors.txt new file mode 100644 index 0000000000000..d13e1332035a7 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsAmd.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class {} + +==== b.ts (0 errors) ==== + export default function() {} \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsSystem.errors.txt b/tests/baselines/reference/anonymousDefaultExportsSystem.errors.txt new file mode 100644 index 0000000000000..af3ae9e2beff6 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsSystem.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class {} + +==== b.ts (0 errors) ==== + export default function() {} \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsUmd.errors.txt b/tests/baselines/reference/anonymousDefaultExportsUmd.errors.txt new file mode 100644 index 0000000000000..d2f8b0010b34b --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsUmd.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class {} + +==== b.ts (0 errors) ==== + export default function() {} \ No newline at end of file diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index ec624a12be559..ba6404355b3c3 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -6944,6 +6944,7 @@ declare namespace ts { Message = 3, } enum ModuleResolutionKind { + /** @deprecated */ Classic = 1, /** * @deprecated @@ -7147,10 +7148,14 @@ declare namespace ts { [option: string]: CompilerOptionsValue | undefined; } enum ModuleKind { + /** @deprecated */ None = 0, CommonJS = 1, + /** @deprecated */ AMD = 2, + /** @deprecated */ UMD = 3, + /** @deprecated */ System = 4, ES2015 = 5, ES2020 = 6, diff --git a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=amd).errors.txt b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=amd).errors.txt index cc359bceb4904..f8d94084906b3 100644 --- a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=amd).errors.txt +++ b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=amd).errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. arbitraryModuleNamespaceIdentifiers_module.ts(20,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(24,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(29,7): error TS2322: Type '"expect error about otherType"' is not assignable to type '"otherType"'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== arbitraryModuleNamespaceIdentifiers_module.ts (3 errors) ==== const someValue = "someValue"; type someType = "someType"; diff --git a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt index cc359bceb4904..bf948e58e5c39 100644 --- a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt +++ b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt @@ -1,8 +1,14 @@ +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. arbitraryModuleNamespaceIdentifiers_module.ts(20,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(24,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(29,7): error TS2322: Type '"expect error about otherType"' is not assignable to type '"otherType"'. +!!! 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. ==== arbitraryModuleNamespaceIdentifiers_module.ts (3 errors) ==== const someValue = "someValue"; type someType = "someType"; diff --git a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=system).errors.txt b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=system).errors.txt index cc359bceb4904..3fdb570adabf4 100644 --- a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=system).errors.txt +++ b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=system).errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. arbitraryModuleNamespaceIdentifiers_module.ts(20,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(24,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(29,7): error TS2322: Type '"expect error about otherType"' is not assignable to type '"otherType"'. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== arbitraryModuleNamespaceIdentifiers_module.ts (3 errors) ==== const someValue = "someValue"; type someType = "someType"; diff --git a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=umd).errors.txt b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=umd).errors.txt index cc359bceb4904..325deca6f6eac 100644 --- a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=umd).errors.txt +++ b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=umd).errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. arbitraryModuleNamespaceIdentifiers_module.ts(20,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(24,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(29,7): error TS2322: Type '"expect error about otherType"' is not assignable to type '"otherType"'. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== arbitraryModuleNamespaceIdentifiers_module.ts (3 errors) ==== const someValue = "someValue"; type someType = "someType"; diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es2017.errors.txt b/tests/baselines/reference/asyncAwaitIsolatedModules_es2017.errors.txt index 93968de52c1af..69472d04e58b4 100644 --- a/tests/baselines/reference/asyncAwaitIsolatedModules_es2017.errors.txt +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es2017.errors.txt @@ -1,10 +1,10 @@ -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; diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es6.errors.txt b/tests/baselines/reference/asyncAwaitIsolatedModules_es6.errors.txt index 9393895d1ae64..aa1e25b06ecb1 100644 --- a/tests/baselines/reference/asyncAwaitIsolatedModules_es6.errors.txt +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es6.errors.txt @@ -1,10 +1,10 @@ -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; diff --git a/tests/baselines/reference/augmentExportEquals1.errors.txt b/tests/baselines/reference/augmentExportEquals1.errors.txt index 390b06946880c..53f12a5836144 100644 --- a/tests/baselines/reference/augmentExportEquals1.errors.txt +++ b/tests/baselines/reference/augmentExportEquals1.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file3.ts (1 errors) ==== import x = require("./file1"); import "./file2"; diff --git a/tests/baselines/reference/augmentExportEquals1_1.errors.txt b/tests/baselines/reference/augmentExportEquals1_1.errors.txt index 2d4719c215c6a..67a0cb5a1c6b0 100644 --- a/tests/baselines/reference/augmentExportEquals1_1.errors.txt +++ b/tests/baselines/reference/augmentExportEquals1_1.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file2.ts(6,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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file3.ts (1 errors) ==== import x = require("file1"); import "file2"; diff --git a/tests/baselines/reference/augmentExportEquals2.errors.txt b/tests/baselines/reference/augmentExportEquals2.errors.txt index cfda8b47dd1ab..9c166759d9f03 100644 --- a/tests/baselines/reference/augmentExportEquals2.errors.txt +++ b/tests/baselines/reference/augmentExportEquals2.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file3.ts (1 errors) ==== import x = require("./file1"); import "./file2"; diff --git a/tests/baselines/reference/augmentExportEquals2_1.errors.txt b/tests/baselines/reference/augmentExportEquals2_1.errors.txt index f03369da40d65..bb0f4e78d9ccf 100644 --- a/tests/baselines/reference/augmentExportEquals2_1.errors.txt +++ b/tests/baselines/reference/augmentExportEquals2_1.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file3.ts (1 errors) ==== import x = require("file1"); import "file2"; diff --git a/tests/baselines/reference/augmentExportEquals3.errors.txt b/tests/baselines/reference/augmentExportEquals3.errors.txt new file mode 100644 index 0000000000000..1c43c48c12b58 --- /dev/null +++ b/tests/baselines/reference/augmentExportEquals3.errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + function foo() {} + namespace foo { + export var v = 1; + } + export = foo; + +==== file2.ts (0 errors) ==== + import x = require("./file1"); + x.b = 1; + + // OK - './file1' is a namespace + declare module "./file1" { + interface A { a } + let b: number; + } + +==== file3.ts (0 errors) ==== + import * as x from "./file1"; + import "./file2"; + let a: x.A; + let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals3.types b/tests/baselines/reference/augmentExportEquals3.types index 32d70fcb514e4..d8b3049331e5f 100644 --- a/tests/baselines/reference/augmentExportEquals3.types +++ b/tests/baselines/reference/augmentExportEquals3.types @@ -43,6 +43,7 @@ declare module "./file1" { interface A { a } >a : any +> : ^^^ let b: number; >b : number diff --git a/tests/baselines/reference/augmentExportEquals3_1.errors.txt b/tests/baselines/reference/augmentExportEquals3_1.errors.txt new file mode 100644 index 0000000000000..dbcff1cce46e3 --- /dev/null +++ b/tests/baselines/reference/augmentExportEquals3_1.errors.txt @@ -0,0 +1,30 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.d.ts (0 errors) ==== + declare module "file1" { + function foo(): void; + namespace foo { + export var v: number; + } + export = foo; + } + + +==== file2.ts (0 errors) ==== + /// + import x = require("file1"); + x.b = 1; + + // OK - './file1' is a namespace + declare module "file1" { + interface A { a } + let b: number; + } + +==== file3.ts (0 errors) ==== + import * as x from "file1"; + import "file2"; + let a: x.A; + let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals3_1.types b/tests/baselines/reference/augmentExportEquals3_1.types index 684978016dd03..0cb8ad7e4c188 100644 --- a/tests/baselines/reference/augmentExportEquals3_1.types +++ b/tests/baselines/reference/augmentExportEquals3_1.types @@ -48,6 +48,7 @@ declare module "file1" { interface A { a } >a : any +> : ^^^ let b: number; >b : number diff --git a/tests/baselines/reference/augmentExportEquals4.errors.txt b/tests/baselines/reference/augmentExportEquals4.errors.txt new file mode 100644 index 0000000000000..863c8529c71a0 --- /dev/null +++ b/tests/baselines/reference/augmentExportEquals4.errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + class foo {} + namespace foo { + export var v = 1; + } + export = foo; + +==== file2.ts (0 errors) ==== + import x = require("./file1"); + x.b = 1; + + // OK - './file1' is a namespace + declare module "./file1" { + interface A { a } + let b: number; + } + +==== file3.ts (0 errors) ==== + import * as x from "./file1"; + import "./file2"; + let a: x.A; + let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals4.types b/tests/baselines/reference/augmentExportEquals4.types index acb45a2884923..77b421abfb6e3 100644 --- a/tests/baselines/reference/augmentExportEquals4.types +++ b/tests/baselines/reference/augmentExportEquals4.types @@ -43,6 +43,7 @@ declare module "./file1" { interface A { a } >a : any +> : ^^^ let b: number; >b : number diff --git a/tests/baselines/reference/augmentExportEquals4_1.errors.txt b/tests/baselines/reference/augmentExportEquals4_1.errors.txt new file mode 100644 index 0000000000000..138b715c5122d --- /dev/null +++ b/tests/baselines/reference/augmentExportEquals4_1.errors.txt @@ -0,0 +1,30 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.d.ts (0 errors) ==== + declare module "file1" { + class foo {} + namespace foo { + export var v: number; + } + export = foo; + } + + +==== file2.ts (0 errors) ==== + /// + import x = require("file1"); + x.b = 1; + + // OK - './file1' is a namespace + declare module "file1" { + interface A { a } + let b: number; + } + +==== file3.ts (0 errors) ==== + import * as x from "file1"; + import "file2"; + let a: x.A; + let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals4_1.types b/tests/baselines/reference/augmentExportEquals4_1.types index fddef2aaacf91..564b3a9d55e58 100644 --- a/tests/baselines/reference/augmentExportEquals4_1.types +++ b/tests/baselines/reference/augmentExportEquals4_1.types @@ -48,6 +48,7 @@ declare module "file1" { interface A { a } >a : any +> : ^^^ let b: number; >b : number diff --git a/tests/baselines/reference/augmentExportEquals5.errors.txt b/tests/baselines/reference/augmentExportEquals5.errors.txt new file mode 100644 index 0000000000000..016bf85302fd8 --- /dev/null +++ b/tests/baselines/reference/augmentExportEquals5.errors.txt @@ -0,0 +1,83 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== express.d.ts (0 errors) ==== + declare namespace 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 (0 errors) ==== + /// + import * as e from "express"; + declare module "express" { + interface Request { + id: number; + } + } + +==== consumer.ts (0 errors) ==== + import { Request } from "express"; + import "./augmentation"; + let x: Request; + const y = x.id; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals5.types b/tests/baselines/reference/augmentExportEquals5.types index bccab4f9d160e..254f7fe708c19 100644 --- a/tests/baselines/reference/augmentExportEquals5.types +++ b/tests/baselines/reference/augmentExportEquals5.types @@ -49,6 +49,7 @@ declare module "express" { >Router : (options?: any) => Router > : ^ ^^^ ^^^^^ >options : any +> : ^^^ export interface Router extends IRouter {} @@ -79,6 +80,7 @@ declare module "express" { interface ErrorRequestHandler { (err: any, req: Request, res: Response, next: Function): any; >err : any +> : ^^^ >req : Request > : ^^^^^^^ >res : Response @@ -108,6 +110,7 @@ declare module "express" { >next : Function > : ^^^^^^^^ >param : any +> : ^^^ } interface Application extends IRouter, Express.Application { @@ -116,6 +119,7 @@ declare module "express" { routes: any; >routes : any +> : ^^^ } interface Express extends Application { @@ -126,6 +130,7 @@ declare module "express" { var static: any; >static : any +> : ^^^ } export = e; diff --git a/tests/baselines/reference/augmentExportEquals6.errors.txt b/tests/baselines/reference/augmentExportEquals6.errors.txt new file mode 100644 index 0000000000000..311ace308e755 --- /dev/null +++ b/tests/baselines/reference/augmentExportEquals6.errors.txt @@ -0,0 +1,30 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + class foo {} + namespace foo { + export class A {} + export namespace B { export let a; } + } + export = foo; + +==== file2.ts (0 errors) ==== + 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 (0 errors) ==== + import * as x from "./file1"; + import "./file2"; + let a: x.A; + let b = a.a; + let c = x.B.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals6.types b/tests/baselines/reference/augmentExportEquals6.types index e8f21b77c0cdc..a93f7cfa3912b 100644 --- a/tests/baselines/reference/augmentExportEquals6.types +++ b/tests/baselines/reference/augmentExportEquals6.types @@ -17,6 +17,7 @@ namespace foo { >B : typeof B > : ^^^^^^^^ >a : any +> : ^^^ } export = foo; >foo : import("file1.ts") diff --git a/tests/baselines/reference/augmentExportEquals6_1.errors.txt b/tests/baselines/reference/augmentExportEquals6_1.errors.txt new file mode 100644 index 0000000000000..3afd16d251826 --- /dev/null +++ b/tests/baselines/reference/augmentExportEquals6_1.errors.txt @@ -0,0 +1,28 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.d.ts (0 errors) ==== + declare module "file1" { + class foo {} + namespace foo { + class A {} + } + export = foo; + } + + +==== file2.ts (0 errors) ==== + /// + import x = require("file1"); + + // OK - './file1' is a namespace + declare module "file1" { + interface A { a: number } + } + +==== file3.ts (0 errors) ==== + import * as x from "file1"; + import "file2"; + let a: x.A; + let b = a.a; \ No newline at end of file diff --git a/tests/baselines/reference/augmentedTypesExternalModule1.errors.txt b/tests/baselines/reference/augmentedTypesExternalModule1.errors.txt new file mode 100644 index 0000000000000..ebcf0f2eb2e4a --- /dev/null +++ b/tests/baselines/reference/augmentedTypesExternalModule1.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== augmentedTypesExternalModule1.ts (0 errors) ==== + export var a = 1; + class c5 { public foo() { } } + namespace c5 { } // should be ok everywhere \ No newline at end of file diff --git a/tests/baselines/reference/autoAccessorDisallowedModifiers(target=es2017).errors.txt b/tests/baselines/reference/autoAccessorDisallowedModifiers(target=es2017).errors.txt index 666dd521e5f15..e9a61f9407b9c 100644 --- a/tests/baselines/reference/autoAccessorDisallowedModifiers(target=es2017).errors.txt +++ b/tests/baselines/reference/autoAccessorDisallowedModifiers(target=es2017).errors.txt @@ -25,7 +25,7 @@ autoAccessorDisallowedModifiers.ts(33,1): error TS1275: 'accessor' modifier can autoAccessorDisallowedModifiers.ts(34,1): error TS1275: 'accessor' modifier can only appear on a property declaration. autoAccessorDisallowedModifiers.ts(34,17): error TS2882: Cannot find module or type declarations for side-effect import of 'x'. 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. @@ -122,7 +122,7 @@ autoAccessorDisallowedModifiers.ts(38,1): error TS1275: 'accessor' modifier can ~~~~~~~~ !!! 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. diff --git a/tests/baselines/reference/autoAccessorDisallowedModifiers(target=esnext).errors.txt b/tests/baselines/reference/autoAccessorDisallowedModifiers(target=esnext).errors.txt index 666dd521e5f15..e9a61f9407b9c 100644 --- a/tests/baselines/reference/autoAccessorDisallowedModifiers(target=esnext).errors.txt +++ b/tests/baselines/reference/autoAccessorDisallowedModifiers(target=esnext).errors.txt @@ -25,7 +25,7 @@ autoAccessorDisallowedModifiers.ts(33,1): error TS1275: 'accessor' modifier can autoAccessorDisallowedModifiers.ts(34,1): error TS1275: 'accessor' modifier can only appear on a property declaration. autoAccessorDisallowedModifiers.ts(34,17): error TS2882: Cannot find module or type declarations for side-effect import of 'x'. 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. @@ -122,7 +122,7 @@ autoAccessorDisallowedModifiers.ts(38,1): error TS1275: 'accessor' modifier can ~~~~~~~~ !!! 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. diff --git a/tests/baselines/reference/awaitUsingDeclarationsTopLevelOfModule.1(module=system).errors.txt b/tests/baselines/reference/awaitUsingDeclarationsTopLevelOfModule.1(module=system).errors.txt new file mode 100644 index 0000000000000..a07b1781038df --- /dev/null +++ b/tests/baselines/reference/awaitUsingDeclarationsTopLevelOfModule.1(module=system).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== awaitUsingDeclarationsTopLevelOfModule.1.ts (0 errors) ==== + export const x = 1; + export { y }; + + await using z = { async [Symbol.asyncDispose]() {} }; + + const y = 2; + + export const w = 3; + + export default 4; + + console.log(w, x, y, z); + \ No newline at end of file diff --git a/tests/baselines/reference/badExternalModuleReference.errors.txt b/tests/baselines/reference/badExternalModuleReference.errors.txt index ade3bfb43c0f7..2f7280ef371cc 100644 --- a/tests/baselines/reference/badExternalModuleReference.errors.txt +++ b/tests/baselines/reference/badExternalModuleReference.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. badExternalModuleReference.ts(1,21): error TS2792: Cannot find module 'garbage'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== badExternalModuleReference.ts (1 errors) ==== import a1 = require("garbage"); ~~~~~~~~~ diff --git a/tests/baselines/reference/bangInModuleName.errors.txt b/tests/baselines/reference/bangInModuleName.errors.txt new file mode 100644 index 0000000000000..779592b870ea1 --- /dev/null +++ b/tests/baselines/reference/bangInModuleName.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + /// + + import * as http from 'intern/dojo/node!http'; +==== a.d.ts (0 errors) ==== + declare module "http" { + } + + declare module 'intern/dojo/node!http' { + import http = require('http'); + export = http; + } + \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.errors.txt b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.errors.txt index 175fd5671a294..9e05b46da745c 100644 --- a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.errors.txt +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. blockScopedFunctionDeclarationInStrictModule.ts(2,14): error TS1252: Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode. blockScopedFunctionDeclarationInStrictModule.ts(6,10): error TS2304: Cannot find name 'foo'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== blockScopedFunctionDeclarationInStrictModule.ts (2 errors) ==== if (true) { function foo() { } diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile.errors.txt b/tests/baselines/reference/blockScopedNamespaceDifferentFile.errors.txt new file mode 100644 index 0000000000000..fa5f3d7a5cc72 --- /dev/null +++ b/tests/baselines/reference/blockScopedNamespaceDifferentFile.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + namespace C { + export class Name { + static funcData = A.AA.func(); + static someConst = A.AA.foo; + + constructor(parameters) {} + } + } + +==== typings.d.ts (0 errors) ==== + declare namespace A { + namespace AA { + function func(): number; + const foo = ""; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile.types b/tests/baselines/reference/blockScopedNamespaceDifferentFile.types index e5529ff6a51f7..e64b0e174c0e6 100644 --- a/tests/baselines/reference/blockScopedNamespaceDifferentFile.types +++ b/tests/baselines/reference/blockScopedNamespaceDifferentFile.types @@ -41,6 +41,7 @@ namespace C { constructor(parameters) {} >parameters : any +> : ^^^ } } diff --git a/tests/baselines/reference/cacheResolutions.errors.txt b/tests/baselines/reference/cacheResolutions.errors.txt new file mode 100644 index 0000000000000..99544b47178b5 --- /dev/null +++ b/tests/baselines/reference/cacheResolutions.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /a/b/c/app.ts (0 errors) ==== + export let x = 1; + +==== /a/b/c/lib1.ts (0 errors) ==== + export let x = 1; + +==== /a/b/c/lib2.ts (0 errors) ==== + export let x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/capturedLetConstInLoop4.errors.txt b/tests/baselines/reference/capturedLetConstInLoop4.errors.txt new file mode 100644 index 0000000000000..8c5a24ed95a1c --- /dev/null +++ b/tests/baselines/reference/capturedLetConstInLoop4.errors.txt @@ -0,0 +1,147 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== capturedLetConstInLoop4.ts (0 errors) ==== + //======let + export function exportedFoo() { + return v0 + v00 + v1 + v2 + v3 + v4 + v5 + v6 + v7 + v8; + } + + for (let x of []) { + var v0 = x; + (function() { return x + v0}); + (() => x); + } + + for (let x in []) { + var v00 = x; + (function() { return x + v00}); + (() => x); + } + + for (let x = 0; x < 1; ++x) { + var v1 = x; + (function() { return x + v1}); + (() => x); + } + + while (1 === 1) { + let x; + var v2 = x; + (function() { return x + v2}); + (() => x); + } + + do { + let x; + var v3 = x; + (function() { return x + v3}); + (() => x); + } while (1 === 1) + + for (let y = 0; y < 1; ++y) { + let x = 1; + var v4 = x; + (function() { return x + v4}); + (() => x); + } + + for (let x = 0, y = 1; x < 1; ++x) { + var v5 = x; + (function() { return x + y + v5}); + (() => x + y); + } + + while (1 === 1) { + let x, y; + var v6 = x; + (function() { return x + y + v6}); + (() => x + y); + } + + do { + let x, y; + var v7 = x; + (function() { return x + y + v7}); + (() => x + y); + } while (1 === 1) + + for (let y = 0; y < 1; ++y) { + let x = 1; + var v8 = x; + (function() { return x + y + v8}); + (() => x + y); + } + + //======const + export function exportedFoo2() { + return v0_c + v00_c + v1_c + v2_c + v3_c + v4_c + v5_c + v6_c + v7_c + v8_c; + } + + for (const x of []) { + var v0_c = x; + (function() { return x + v0_c}); + (() => x); + } + + for (const x in []) { + var v00_c = x; + (function() { return x + v00}); + (() => x); + } + + for (const x = 0; x < 1;) { + var v1_c = x; + (function() { return x + v1_c}); + (() => x); + } + + while (1 === 1) { + const x =1; + var v2_c = x; + (function() { return x + v2_c}); + (() => x); + } + + do { + const x = 1; + var v3_c = x; + (function() { return x + v3_c}); + (() => x); + } while (1 === 1) + + for (const y = 0; y < 1;) { + const x = 1; + var v4_c = x; + (function() { return x + v4_c}); + (() => x); + } + + for (const x = 0, y = 1; x < 1;) { + var v5_c = x; + (function() { return x + y + v5_c}); + (() => x + y); + } + + while (1 === 1) { + const x = 1, y = 1; + var v6_c = x; + (function() { return x + y + v6_c}); + (() => x + y); + } + + do { + const x = 1, y = 1; + var v7_c = x; + (function() { return x + y + v7_c}); + (() => x + y); + } while (1 === 1) + + for (const y = 0; y < 1;) { + const x = 1; + var v8_c = x; + (function() { return x + y + v8_c}); + (() => x + y); + } + \ No newline at end of file diff --git a/tests/baselines/reference/capturedLetConstInLoop4.types b/tests/baselines/reference/capturedLetConstInLoop4.types index 000da5af1d3ea..2eb4d11566f45 100644 --- a/tests/baselines/reference/capturedLetConstInLoop4.types +++ b/tests/baselines/reference/capturedLetConstInLoop4.types @@ -26,30 +26,38 @@ export function exportedFoo() { >v0 + v00 : string > : ^^^^^^ >v0 : any +> : ^^^ >v00 : string > : ^^^^^^ >v1 : number > : ^^^^^^ >v2 : any +> : ^^^ >v3 : any +> : ^^^ >v4 : number > : ^^^^^^ >v5 : number > : ^^^^^^ >v6 : any +> : ^^^ >v7 : any +> : ^^^ >v8 : number > : ^^^^^^ } for (let x of []) { >x : any +> : ^^^ >[] : undefined[] > : ^^^^^^^^^^^ var v0 = x; >v0 : any +> : ^^^ >x : any +> : ^^^ (function() { return x + v0}); >(function() { return x + v0}) : () => any @@ -57,8 +65,11 @@ for (let x of []) { >function() { return x + v0} : () => any > : ^^^^^^^^^ >x + v0 : any +> : ^^^ >x : any +> : ^^^ >v0 : any +> : ^^^ (() => x); >(() => x) : () => any @@ -66,6 +77,7 @@ for (let x of []) { >() => x : () => any > : ^^^^^^^^^ >x : any +> : ^^^ } for (let x in []) { @@ -154,10 +166,13 @@ while (1 === 1) { let x; >x : any +> : ^^^ var v2 = x; >v2 : any +> : ^^^ >x : any +> : ^^^ (function() { return x + v2}); >(function() { return x + v2}) : () => any @@ -165,8 +180,11 @@ while (1 === 1) { >function() { return x + v2} : () => any > : ^^^^^^^^^ >x + v2 : any +> : ^^^ >x : any +> : ^^^ >v2 : any +> : ^^^ (() => x); >(() => x) : () => any @@ -174,15 +192,19 @@ while (1 === 1) { >() => x : () => any > : ^^^^^^^^^ >x : any +> : ^^^ } do { let x; >x : any +> : ^^^ var v3 = x; >v3 : any +> : ^^^ >x : any +> : ^^^ (function() { return x + v3}); >(function() { return x + v3}) : () => any @@ -190,8 +212,11 @@ do { >function() { return x + v3} : () => any > : ^^^^^^^^^ >x + v3 : any +> : ^^^ >x : any +> : ^^^ >v3 : any +> : ^^^ (() => x); >(() => x) : () => any @@ -199,6 +224,7 @@ do { >() => x : () => any > : ^^^^^^^^^ >x : any +> : ^^^ } while (1 === 1) >1 === 1 : boolean @@ -322,11 +348,15 @@ while (1 === 1) { let x, y; >x : any +> : ^^^ >y : any +> : ^^^ var v6 = x; >v6 : any +> : ^^^ >x : any +> : ^^^ (function() { return x + y + v6}); >(function() { return x + y + v6}) : () => any @@ -334,10 +364,15 @@ while (1 === 1) { >function() { return x + y + v6} : () => any > : ^^^^^^^^^ >x + y + v6 : any +> : ^^^ >x + y : any +> : ^^^ >x : any +> : ^^^ >y : any +> : ^^^ >v6 : any +> : ^^^ (() => x + y); >(() => x + y) : () => any @@ -345,18 +380,25 @@ while (1 === 1) { >() => x + y : () => any > : ^^^^^^^^^ >x + y : any +> : ^^^ >x : any +> : ^^^ >y : any +> : ^^^ } do { let x, y; >x : any +> : ^^^ >y : any +> : ^^^ var v7 = x; >v7 : any +> : ^^^ >x : any +> : ^^^ (function() { return x + y + v7}); >(function() { return x + y + v7}) : () => any @@ -364,10 +406,15 @@ do { >function() { return x + y + v7} : () => any > : ^^^^^^^^^ >x + y + v7 : any +> : ^^^ >x + y : any +> : ^^^ >x : any +> : ^^^ >y : any +> : ^^^ >v7 : any +> : ^^^ (() => x + y); >(() => x + y) : () => any @@ -375,8 +422,11 @@ do { >() => x + y : () => any > : ^^^^^^^^^ >x + y : any +> : ^^^ >x : any +> : ^^^ >y : any +> : ^^^ } while (1 === 1) >1 === 1 : boolean @@ -468,6 +518,7 @@ export function exportedFoo2() { >v0_c + v00_c : string > : ^^^^^^ >v0_c : any +> : ^^^ >v00_c : string > : ^^^^^^ >v1_c : number @@ -490,12 +541,15 @@ export function exportedFoo2() { for (const x of []) { >x : any +> : ^^^ >[] : undefined[] > : ^^^^^^^^^^^ var v0_c = x; >v0_c : any +> : ^^^ >x : any +> : ^^^ (function() { return x + v0_c}); >(function() { return x + v0_c}) : () => any @@ -503,8 +557,11 @@ for (const x of []) { >function() { return x + v0_c} : () => any > : ^^^^^^^^^ >x + v0_c : any +> : ^^^ >x : any +> : ^^^ >v0_c : any +> : ^^^ (() => x); >(() => x) : () => any @@ -512,6 +569,7 @@ for (const x of []) { >() => x : () => any > : ^^^^^^^^^ >x : any +> : ^^^ } for (const x in []) { diff --git a/tests/baselines/reference/classStaticBlock24(module=amd).errors.txt b/tests/baselines/reference/classStaticBlock24(module=amd).errors.txt new file mode 100644 index 0000000000000..a775df1810045 --- /dev/null +++ b/tests/baselines/reference/classStaticBlock24(module=amd).errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== classStaticBlock24.ts (0 errors) ==== + export class C { + static x: number; + static { + C.x = 1; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/classStaticBlock24(module=system).errors.txt b/tests/baselines/reference/classStaticBlock24(module=system).errors.txt new file mode 100644 index 0000000000000..6b5f7f745665d --- /dev/null +++ b/tests/baselines/reference/classStaticBlock24(module=system).errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== classStaticBlock24.ts (0 errors) ==== + export class C { + static x: number; + static { + C.x = 1; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/classStaticBlock24(module=umd).errors.txt b/tests/baselines/reference/classStaticBlock24(module=umd).errors.txt new file mode 100644 index 0000000000000..b26e6adcd95cf --- /dev/null +++ b/tests/baselines/reference/classStaticBlock24(module=umd).errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== classStaticBlock24.ts (0 errors) ==== + export class C { + static x: number; + static { + C.x = 1; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAlias.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAlias.errors.txt index 14abebcb75fcd..98e31fb4de94b 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAlias.errors.txt +++ b/tests/baselines/reference/collisionExportsRequireAndAlias.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== collisionExportsRequireAndAlias_file2.ts (2 errors) ==== import require = require('collisionExportsRequireAndAlias_file1'); // Error ~~~~~~~ diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientClass.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientClass.errors.txt new file mode 100644 index 0000000000000..009f437c249e2 --- /dev/null +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientClass.errors.txt @@ -0,0 +1,40 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== collisionExportsRequireAndAmbientClass_externalmodule.ts (0 errors) ==== + export declare class require { + } + export declare class exports { + } + declare namespace m1 { + class require { + } + class exports { + } + } + namespace m2 { + export declare class require { + } + export declare class exports { + } + } + +==== collisionExportsRequireAndAmbientClass_globalFile.ts (0 errors) ==== + declare class require { + } + declare class exports { + } + declare namespace m3 { + class require { + } + class exports { + } + } + namespace m4 { + export declare class require { + } + export declare class exports { + } + var a = 10; + } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.errors.txt new file mode 100644 index 0000000000000..fcd7288027b5d --- /dev/null +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.errors.txt @@ -0,0 +1,63 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== collisionExportsRequireAndAmbientEnum_externalmodule.ts (0 errors) ==== + export declare enum require { + _thisVal1, + _thisVal2, + } + export declare enum exports { + _thisVal1, + _thisVal2, + } + declare namespace m1 { + enum require { + _thisVal1, + _thisVal2, + } + enum exports { + _thisVal1, + _thisVal2, + } + } + namespace m2 { + export declare enum require { + _thisVal1, + _thisVal2, + } + export declare enum exports { + _thisVal1, + _thisVal2, + } + } + +==== collisionExportsRequireAndAmbientEnum_globalFile.ts (0 errors) ==== + declare enum require { + _thisVal1, + _thisVal2, + } + declare enum exports { + _thisVal1, + _thisVal2, + } + declare namespace m3 { + enum require { + _thisVal1, + _thisVal2, + } + enum exports { + _thisVal1, + _thisVal2, + } + } + namespace m4 { + export declare enum require { + _thisVal1, + _thisVal2, + } + export declare enum exports { + _thisVal1, + _thisVal2, + } + } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.errors.txt new file mode 100644 index 0000000000000..6438cb5d82075 --- /dev/null +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== collisionExportsRequireAndAmbientFunction.ts (0 errors) ==== + export declare function exports(): number; + + export declare function require(): string[]; + + declare namespace m1 { + function exports(): string; + function require(): number; + } + namespace m2 { + export declare function exports(): string; + export declare function require(): string[]; + var a = 10; + } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientModule.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientModule.errors.txt new file mode 100644 index 0000000000000..2e9180a7a6e05 --- /dev/null +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientModule.errors.txt @@ -0,0 +1,97 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== collisionExportsRequireAndAmbientModule_externalmodule.ts (0 errors) ==== + export declare namespace require { + export interface I { + } + export class C { + } + } + export function foo(): require.I { + return null; + } + export declare namespace exports { + export interface I { + } + export class C { + } + } + export function foo2(): exports.I { + return null; + } + declare namespace m1 { + namespace require { + export interface I { + } + export class C { + } + } + namespace exports { + export interface I { + } + export class C { + } + } + } + namespace m2 { + export declare namespace require { + export interface I { + } + export class C { + } + } + export declare namespace exports { + export interface I { + } + export class C { + } + } + var a = 10; + } + +==== collisionExportsRequireAndAmbientModule_globalFile.ts (0 errors) ==== + declare namespace require { + export interface I { + } + export class C { + } + } + declare namespace exports { + export interface I { + } + export class C { + } + } + declare namespace m3 { + namespace require { + export interface I { + } + export class C { + } + } + namespace exports { + export interface I { + } + export class C { + } + } + } + namespace m4 { + export declare namespace require { + export interface I { + } + export class C { + } + } + export declare namespace exports { + export interface I { + } + export class C { + } + } + + var a = 10; + } + \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientVar.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientVar.errors.txt new file mode 100644 index 0000000000000..fd9bef2b9bd66 --- /dev/null +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientVar.errors.txt @@ -0,0 +1,29 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== collisionExportsRequireAndAmbientVar_externalmodule.ts (0 errors) ==== + export declare var exports: number; + export declare var require: string; + declare namespace m1 { + var exports: string; + var require: number; + } + namespace m2 { + export declare var exports: number; + export declare var require: string; + var a = 10; + } + +==== collisionExportsRequireAndAmbientVar_globalFile.ts (0 errors) ==== + declare var exports: number; + declare var require: string; + declare namespace m3 { + var exports: string; + var require: number; + } + namespace m4 { + export declare var exports: string; + export declare var require: number; + var a = 10; + } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndClass.errors.txt b/tests/baselines/reference/collisionExportsRequireAndClass.errors.txt index a2635142096ff..4166e3d8a6835 100644 --- a/tests/baselines/reference/collisionExportsRequireAndClass.errors.txt +++ b/tests/baselines/reference/collisionExportsRequireAndClass.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. collisionExportsRequireAndClass_externalmodule.ts(1,14): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module. collisionExportsRequireAndClass_externalmodule.ts(3,14): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== collisionExportsRequireAndClass_externalmodule.ts (2 errors) ==== export class require { ~~~~~~~ diff --git a/tests/baselines/reference/collisionExportsRequireAndEnum.errors.txt b/tests/baselines/reference/collisionExportsRequireAndEnum.errors.txt index c929a282c8d49..26bcf5ab58f4f 100644 --- a/tests/baselines/reference/collisionExportsRequireAndEnum.errors.txt +++ b/tests/baselines/reference/collisionExportsRequireAndEnum.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. collisionExportsRequireAndEnum_externalmodule.ts(1,13): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module. collisionExportsRequireAndEnum_externalmodule.ts(5,13): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== collisionExportsRequireAndEnum_externalmodule.ts (2 errors) ==== export enum require { // Error ~~~~~~~ diff --git a/tests/baselines/reference/collisionExportsRequireAndFunction.errors.txt b/tests/baselines/reference/collisionExportsRequireAndFunction.errors.txt index 414dfe834f90f..f1131515da2e0 100644 --- a/tests/baselines/reference/collisionExportsRequireAndFunction.errors.txt +++ b/tests/baselines/reference/collisionExportsRequireAndFunction.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. collisionExportsRequireAndFunction.ts(1,17): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module. collisionExportsRequireAndFunction.ts(4,17): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== collisionExportsRequireAndFunction.ts (2 errors) ==== export function exports() { ~~~~~~~ diff --git a/tests/baselines/reference/collisionExportsRequireAndInternalModuleAlias.errors.txt b/tests/baselines/reference/collisionExportsRequireAndInternalModuleAlias.errors.txt index 6eb1079637611..c46911ce9f906 100644 --- a/tests/baselines/reference/collisionExportsRequireAndInternalModuleAlias.errors.txt +++ b/tests/baselines/reference/collisionExportsRequireAndInternalModuleAlias.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. collisionExportsRequireAndInternalModuleAlias.ts(5,8): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module. collisionExportsRequireAndInternalModuleAlias.ts(6,8): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== collisionExportsRequireAndInternalModuleAlias.ts (2 errors) ==== export namespace m { export class c { diff --git a/tests/baselines/reference/collisionExportsRequireAndModule.errors.txt b/tests/baselines/reference/collisionExportsRequireAndModule.errors.txt index 8f0bad198b7f1..4047235cb1366 100644 --- a/tests/baselines/reference/collisionExportsRequireAndModule.errors.txt +++ b/tests/baselines/reference/collisionExportsRequireAndModule.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. collisionExportsRequireAndModule_externalmodule.ts(1,18): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module. collisionExportsRequireAndModule_externalmodule.ts(10,18): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== collisionExportsRequireAndModule_externalmodule.ts (2 errors) ==== export namespace require { ~~~~~~~ diff --git a/tests/baselines/reference/collisionExportsRequireAndUninstantiatedModule.errors.txt b/tests/baselines/reference/collisionExportsRequireAndUninstantiatedModule.errors.txt new file mode 100644 index 0000000000000..b74aa3662bb84 --- /dev/null +++ b/tests/baselines/reference/collisionExportsRequireAndUninstantiatedModule.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== collisionExportsRequireAndUninstantiatedModule.ts (0 errors) ==== + export namespace require { // no error + export interface I { + } + } + export function foo(): require.I { + return null; + } + export namespace exports { // no error + export interface I { + } + } + export function foo2(): exports.I { + return null; + } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndVar.errors.txt b/tests/baselines/reference/collisionExportsRequireAndVar.errors.txt index 5d6c84e914cdd..71df615719c91 100644 --- a/tests/baselines/reference/collisionExportsRequireAndVar.errors.txt +++ b/tests/baselines/reference/collisionExportsRequireAndVar.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. collisionExportsRequireAndVar_externalmodule.ts(3,5): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module. collisionExportsRequireAndVar_externalmodule.ts(4,5): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== collisionExportsRequireAndVar_externalmodule.ts (2 errors) ==== export function foo() { } diff --git a/tests/baselines/reference/commentOnImportStatement1.errors.txt b/tests/baselines/reference/commentOnImportStatement1.errors.txt index 752db3d4fecc1..e1b2376d39b48 100644 --- a/tests/baselines/reference/commentOnImportStatement1.errors.txt +++ b/tests/baselines/reference/commentOnImportStatement1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentOnImportStatement1.ts(3,22): 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 TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentOnImportStatement1.ts (1 errors) ==== /* Copyright */ diff --git a/tests/baselines/reference/commentsBeforeVariableStatement1.errors.txt b/tests/baselines/reference/commentsBeforeVariableStatement1.errors.txt new file mode 100644 index 0000000000000..39265bd0f71fa --- /dev/null +++ b/tests/baselines/reference/commentsBeforeVariableStatement1.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsBeforeVariableStatement1.ts (0 errors) ==== + /** b's comment*/ + export var b: number; + \ No newline at end of file diff --git a/tests/baselines/reference/commentsDottedModuleName.errors.txt b/tests/baselines/reference/commentsDottedModuleName.errors.txt new file mode 100644 index 0000000000000..4893cf17c42f3 --- /dev/null +++ b/tests/baselines/reference/commentsDottedModuleName.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsDottedModuleName.ts (0 errors) ==== + /** this is multi declare module*/ + export namespace outerModule.InnerModule { + /// class b comment + export class b { + } + } \ No newline at end of file diff --git a/tests/baselines/reference/commentsExternalModules.errors.txt b/tests/baselines/reference/commentsExternalModules.errors.txt new file mode 100644 index 0000000000000..1e2d583d84131 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules.errors.txt @@ -0,0 +1,63 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsExternalModules_1.ts (0 errors) ==== + /**This is on import declaration*/ + import extMod = require("commentsExternalModules_0"); // trailing comment1 + extMod.m1.fooExport(); + var newVar = new extMod.m1.m2.c(); + extMod.m4.fooExport(); + var newVar2 = new extMod.m4.m2.c(); + +==== commentsExternalModules_0.ts (0 errors) ==== + /** Module comment*/ + export namespace m1 { + /** b's comment*/ + export var b: number; + /** foo's comment*/ + function foo() { + return b; + } + /** m2 comments*/ + export namespace m2 { + /** class comment;*/ + export class c { + }; + /** i*/ + export var i = new c(); + } + /** exported function*/ + export function fooExport() { + return foo(); + } + } + m1.fooExport(); + var myvar = new m1.m2.c(); + + /** Module comment */ + export namespace m4 { + /** b's comment */ + export var b: number; + /** foo's comment + */ + function foo() { + return b; + } + /** m2 comments + */ + export namespace m2 { + /** class comment; */ + export class c { + }; + /** i */ + export var i = new c(); + } + /** exported function */ + export function fooExport() { + return foo(); + } + } + m4.fooExport(); + var myvar2 = new m4.m2.c(); + \ No newline at end of file diff --git a/tests/baselines/reference/commentsExternalModules2.errors.txt b/tests/baselines/reference/commentsExternalModules2.errors.txt new file mode 100644 index 0000000000000..859f2c1134ec3 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules2.errors.txt @@ -0,0 +1,63 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsExternalModules_1.ts (0 errors) ==== + /**This is on import declaration*/ + import extMod = require("commentsExternalModules2_0"); // trailing comment 1 + extMod.m1.fooExport(); + export var newVar = new extMod.m1.m2.c(); + extMod.m4.fooExport(); + export var newVar2 = new extMod.m4.m2.c(); + +==== commentsExternalModules2_0.ts (0 errors) ==== + /** Module comment*/ + export namespace m1 { + /** b's comment*/ + export var b: number; + /** foo's comment*/ + function foo() { + return b; + } + /** m2 comments*/ + export namespace m2 { + /** class comment;*/ + export class c { + }; + /** i*/ + export var i = new c(); + } + /** exported function*/ + export function fooExport() { + return foo(); + } + } + m1.fooExport(); + var myvar = new m1.m2.c(); + + /** Module comment */ + export namespace m4 { + /** b's comment */ + export var b: number; + /** foo's comment + */ + function foo() { + return b; + } + /** m2 comments + */ + export namespace m2 { + /** class comment; */ + export class c { + }; + /** i */ + export var i = new c(); + } + /** exported function */ + export function fooExport() { + return foo(); + } + } + m4.fooExport(); + var myvar2 = new m4.m2.c(); + \ No newline at end of file diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile.errors.txt b/tests/baselines/reference/commentsMultiModuleMultiFile.errors.txt new file mode 100644 index 0000000000000..7bba5d1ad20e3 --- /dev/null +++ b/tests/baselines/reference/commentsMultiModuleMultiFile.errors.txt @@ -0,0 +1,38 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsMultiModuleMultiFile_1.ts (0 errors) ==== + import m = require('commentsMultiModuleMultiFile_0'); + /** this is multi module 3 comment*/ + export namespace multiM { + /** class d comment*/ + export class d { + } + + /// class f comment + export class f { + } + } + new multiM.d(); +==== commentsMultiModuleMultiFile_0.ts (0 errors) ==== + /** this is multi declare module*/ + export namespace multiM { + /// class b comment + export class b { + } + } + /** thi is multi module 2*/ + export namespace multiM { + /** class c comment*/ + export class c { + } + + // class e comment + export class e { + } + } + + new multiM.b(); + new multiM.c(); + \ No newline at end of file diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=auto).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=auto).errors.txt new file mode 100644 index 0000000000000..0ab9bcb53b3e2 --- /dev/null +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=auto).errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsOnJSXExpressionsArePreserved.tsx (0 errors) ==== + // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs + namespace JSX {} + class Component { + render() { + return
+ {/* missing */} + {null/* preserved */} + { + // ??? 1 + } + { // ??? 2 + } + {// ??? 3 + } + { + // ??? 4 + /* ??? 5 */} +
; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=auto).types b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=auto).types index bdb53395ee523..f4ceb70601f1e 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=auto).types +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=auto).types @@ -12,7 +12,8 @@ class Component { > : ^^^^^^^^^ return
->
{/* missing */} {null/* preserved */} { // ??? 1 } { // ??? 2 } {// ??? 3 } { // ??? 4 /* ??? 5 */}
: error +>
{/* missing */} {null/* preserved */} { // ??? 1 } { // ??? 2 } {// ??? 3 } { // ??? 4 /* ??? 5 */}
: any +> : ^^^ >div : any > : ^^^ diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=force).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=force).errors.txt new file mode 100644 index 0000000000000..0ab9bcb53b3e2 --- /dev/null +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=force).errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsOnJSXExpressionsArePreserved.tsx (0 errors) ==== + // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs + namespace JSX {} + class Component { + render() { + return
+ {/* missing */} + {null/* preserved */} + { + // ??? 1 + } + { // ??? 2 + } + {// ??? 3 + } + { + // ??? 4 + /* ??? 5 */} +
; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=force).types b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=force).types index bdb53395ee523..f4ceb70601f1e 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=force).types +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=force).types @@ -12,7 +12,8 @@ class Component { > : ^^^^^^^^^ return
->
{/* missing */} {null/* preserved */} { // ??? 1 } { // ??? 2 } {// ??? 3 } { // ??? 4 /* ??? 5 */}
: error +>
{/* missing */} {null/* preserved */} { // ??? 1 } { // ??? 2 } {// ??? 3 } { // ??? 4 /* ??? 5 */}
: any +> : ^^^ >div : any > : ^^^ diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=legacy).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=legacy).errors.txt new file mode 100644 index 0000000000000..0ab9bcb53b3e2 --- /dev/null +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=legacy).errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsOnJSXExpressionsArePreserved.tsx (0 errors) ==== + // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs + namespace JSX {} + class Component { + render() { + return
+ {/* missing */} + {null/* preserved */} + { + // ??? 1 + } + { // ??? 2 + } + {// ??? 3 + } + { + // ??? 4 + /* ??? 5 */} +
; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=legacy).types b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=legacy).types index bdb53395ee523..f4ceb70601f1e 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=legacy).types +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=preserve,module=system,moduledetection=legacy).types @@ -12,7 +12,8 @@ class Component { > : ^^^^^^^^^ return
->
{/* missing */} {null/* preserved */} { // ??? 1 } { // ??? 2 } {// ??? 3 } { // ??? 4 /* ??? 5 */}
: error +>
{/* missing */} {null/* preserved */} { // ??? 1 } { // ??? 2 } {// ??? 3 } { // ??? 4 /* ??? 5 */}
: any +> : ^^^ >div : any > : ^^^ diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=auto).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=auto).errors.txt index b0f02293888ef..b338d2b06acca 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=auto).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=auto).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,17): error TS2874: This JSX tag requires 'React' to be in scope, but it could not be found. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=force).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=force).errors.txt index b0f02293888ef..b338d2b06acca 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=force).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=force).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,17): error TS2874: This JSX tag requires 'React' to be in scope, but it could not be found. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=legacy).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=legacy).errors.txt index b0f02293888ef..b338d2b06acca 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=legacy).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react,module=system,moduledetection=legacy).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,17): error TS2874: This JSX tag requires 'React' to be in scope, but it could not be found. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=auto).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=auto).errors.txt index 14edadd8849fa..df6ef89966412 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=auto).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=auto).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,16): 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 TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=force).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=force).errors.txt index 14edadd8849fa..df6ef89966412 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=force).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=force).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,16): 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 TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=legacy).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=legacy).errors.txt index 14edadd8849fa..df6ef89966412 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=legacy).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=legacy).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,16): 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 TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=auto).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=auto).errors.txt index c7df0dceaad77..d87ec056015c4 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=auto).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=auto).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,16): 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 TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=force).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=force).errors.txt index c7df0dceaad77..d87ec056015c4 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=force).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=force).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,16): 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 TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=legacy).errors.txt b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=legacy).errors.txt index c7df0dceaad77..d87ec056015c4 100644 --- a/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=legacy).errors.txt +++ b/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=legacy).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. commentsOnJSXExpressionsArePreserved.tsx(5,16): 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 TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs namespace JSX {} diff --git a/tests/baselines/reference/commonSourceDir5.errors.txt b/tests/baselines/reference/commonSourceDir5.errors.txt index f7ee068ce8474..080f8a47afcd0 100644 --- a/tests/baselines/reference/commonSourceDir5.errors.txt +++ b/tests/baselines/reference/commonSourceDir5.errors.txt @@ -1,7 +1,9 @@ error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== A:/bar.ts (0 errors) ==== import {z} from "./foo"; export var x = z + z; diff --git a/tests/baselines/reference/commonSourceDir6.errors.txt b/tests/baselines/reference/commonSourceDir6.errors.txt new file mode 100644 index 0000000000000..fe46c907271ff --- /dev/null +++ b/tests/baselines/reference/commonSourceDir6.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a/bar.ts (0 errors) ==== + import {z} from "./foo"; + export var x = z + z; + +==== a/foo.ts (0 errors) ==== + import {pi} from "../baz"; + export var i = Math.sqrt(-1); + export var z = pi * pi; + +==== baz.ts (0 errors) ==== + import {x} from "a/bar"; + import {i} from "a/foo"; + export var pi = Math.PI; + export var y = x * i; \ No newline at end of file diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --module.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --module.js index 69a03af11011b..55a526b03dce5 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --module.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --module.js @@ -7,4 +7,4 @@ FileNames:: 0.ts Errors:: error TS6044: Compiler option 'module' expects an argument. -error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --moduleResolution.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --moduleResolution.js index d4a79bbd281e8..d9f02017608e8 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --moduleResolution.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --moduleResolution.js @@ -7,4 +7,4 @@ FileNames:: 0.ts Errors:: error TS6044: Compiler option 'moduleResolution' expects an argument. -error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. +error TS6046: Argument for '--moduleResolution' option must be: 'node16', 'nodenext', 'bundler'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js index 469feff50a44e..95145439db753 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js @@ -25,5 +25,5 @@ CompilerOptions:: "configFilePath": "/apath/tsconfig.json" } Errors:: -error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js index 319a40dc19c17..f2c89c02144f3 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js @@ -25,7 +25,7 @@ CompilerOptions:: "configFilePath": "/apath/tsconfig.json" } Errors:: -tsconfig.json:3:15 - error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +tsconfig.json:3:15 - error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. 3 "module": "",    ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js index 3ca29cf41cf23..9a1269d4e9957 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js @@ -23,5 +23,5 @@ CompilerOptions:: "configFilePath": "/apath/tsconfig.json" } Errors:: -error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. +error TS6046: Argument for '--moduleResolution' option must be: 'node16', 'nodenext', 'bundler'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js index e180d422e0f3e..b947f732dd46c 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js @@ -23,7 +23,7 @@ CompilerOptions:: "configFilePath": "/apath/tsconfig.json" } Errors:: -tsconfig.json:3:25 - error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. +tsconfig.json:3:25 - error TS6046: Argument for '--moduleResolution' option must be: 'node16', 'nodenext', 'bundler'. 3 "moduleResolution": "",    ~~ diff --git a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/module/tsconfig.json b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/module/tsconfig.json index 76640f8c61e97..e7f1c93b4ccb7 100644 --- a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/module/tsconfig.json +++ b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/module/tsconfig.json @@ -1,9 +1,5 @@ { "compilerOptions": { - "module": "none", - "moduleResolution": "classic", - "resolvePackageJsonExports": false, - "resolvePackageJsonImports": false, - "resolveJsonModule": false + "module": "none" } } diff --git a/tests/baselines/reference/constDeclarations-access5.errors.txt b/tests/baselines/reference/constDeclarations-access5.errors.txt index d1751cdb12dd3..08a413a637dda 100644 --- a/tests/baselines/reference/constDeclarations-access5.errors.txt +++ b/tests/baselines/reference/constDeclarations-access5.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. @@ -18,6 +19,7 @@ constDeclarations_access_2.ts(22,7): error TS2540: Cannot assign to 'x' because constDeclarations_access_2.ts(24,3): error TS2540: Cannot assign to 'x' because it is a read-only property. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== constDeclarations_access_2.ts (18 errors) ==== /// import m = require('constDeclarations_access_1'); diff --git a/tests/baselines/reference/constEnumExternalModule.errors.txt b/tests/baselines/reference/constEnumExternalModule.errors.txt new file mode 100644 index 0000000000000..d08f6cfde81f6 --- /dev/null +++ b/tests/baselines/reference/constEnumExternalModule.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m2.ts (0 errors) ==== + import A = require('m1') + var v = A.V; +==== m1.ts (0 errors) ==== + const enum E { + V = 100 + } + + export = E \ No newline at end of file diff --git a/tests/baselines/reference/constEnumMergingWithValues1.errors.txt b/tests/baselines/reference/constEnumMergingWithValues1.errors.txt new file mode 100644 index 0000000000000..89a9781a77439 --- /dev/null +++ b/tests/baselines/reference/constEnumMergingWithValues1.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + function foo() {} + namespace foo { + const enum E { X } + } + + export = foo \ No newline at end of file diff --git a/tests/baselines/reference/constEnumMergingWithValues2.errors.txt b/tests/baselines/reference/constEnumMergingWithValues2.errors.txt new file mode 100644 index 0000000000000..41c37c230e61a --- /dev/null +++ b/tests/baselines/reference/constEnumMergingWithValues2.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + class foo {} + namespace foo { + const enum E { X } + } + + export = foo \ No newline at end of file diff --git a/tests/baselines/reference/constEnumMergingWithValues3.errors.txt b/tests/baselines/reference/constEnumMergingWithValues3.errors.txt new file mode 100644 index 0000000000000..392e81fe5db77 --- /dev/null +++ b/tests/baselines/reference/constEnumMergingWithValues3.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + enum foo { A } + namespace foo { + const enum E { X } + } + + export = foo \ No newline at end of file diff --git a/tests/baselines/reference/constEnumMergingWithValues4.errors.txt b/tests/baselines/reference/constEnumMergingWithValues4.errors.txt new file mode 100644 index 0000000000000..e46dea07f4330 --- /dev/null +++ b/tests/baselines/reference/constEnumMergingWithValues4.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + namespace foo { + const enum E { X } + } + + namespace foo { + var x = 1; + } + + + export = foo \ No newline at end of file diff --git a/tests/baselines/reference/constEnumMergingWithValues5.errors.txt b/tests/baselines/reference/constEnumMergingWithValues5.errors.txt new file mode 100644 index 0000000000000..2fa0a85fe0dbd --- /dev/null +++ b/tests/baselines/reference/constEnumMergingWithValues5.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + namespace foo { + const enum E { X } + } + + export = foo \ No newline at end of file diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt index 4adb70251deaf..642bdd0427dd6 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(27,64): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -32,6 +33,7 @@ file.tsx(36,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assi Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (6 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/copyrightWithNewLine1.errors.txt b/tests/baselines/reference/copyrightWithNewLine1.errors.txt index 1f1e7b1fb1c73..57df136c0d4fd 100644 --- a/tests/baselines/reference/copyrightWithNewLine1.errors.txt +++ b/tests/baselines/reference/copyrightWithNewLine1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. copyrightWithNewLine1.ts(5,24): error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== copyrightWithNewLine1.ts (1 errors) ==== /***************************** * (c) Copyright - Important diff --git a/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt b/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt index 792459828a902..5392f7a6d3d13 100644 --- a/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt +++ b/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. copyrightWithoutNewLine1.ts(4,24): error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== copyrightWithoutNewLine1.ts (1 errors) ==== /***************************** * (c) Copyright - Important diff --git a/tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt b/tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt index d8e595afe59d8..0e123af520395 100644 --- a/tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt +++ b/tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== crashIntypeCheckInvocationExpression.ts (4 errors) ==== var nake; function doCompile(fileset: P0, moduleType: P1) { diff --git a/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.errors.txt b/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.errors.txt index b1c070056b052..499536fc2566f 100644 --- a/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.errors.txt +++ b/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. crashIntypeCheckObjectCreationExpression.ts(3,45): error TS2304: Cannot find name 'X'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== crashIntypeCheckObjectCreationExpression.ts (1 errors) ==== export class BuildWorkspaceService { public injectRequestService(service: P0) { diff --git a/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.errors.txt b/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.errors.txt new file mode 100644 index 0000000000000..1db94ea8bda4c --- /dev/null +++ b/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== declFileExportAssignmentOfGenericInterface_1.ts (0 errors) ==== + import a = require('declFileExportAssignmentOfGenericInterface_0'); + export var x: a>; + x.a; +==== declFileExportAssignmentOfGenericInterface_0.ts (0 errors) ==== + interface Foo { + a: string; + } + export = Foo; + \ No newline at end of file diff --git a/tests/baselines/reference/declFileExportImportChain.errors.txt b/tests/baselines/reference/declFileExportImportChain.errors.txt new file mode 100644 index 0000000000000..ada1a14a394ee --- /dev/null +++ b/tests/baselines/reference/declFileExportImportChain.errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== declFileExportImportChain_d.ts (0 errors) ==== + import c = require("declFileExportImportChain_c"); + export var x: c.b1.a.m2.c1; +==== declFileExportImportChain_a.ts (0 errors) ==== + namespace m1 { + export namespace m2 { + export class c1 { + } + } + } + export = m1; + +==== declFileExportImportChain_b.ts (0 errors) ==== + export import a = require("declFileExportImportChain_a"); + +==== declFileExportImportChain_b1.ts (0 errors) ==== + import b = require("declFileExportImportChain_b"); + export = b; + +==== declFileExportImportChain_c.ts (0 errors) ==== + export import b1 = require("declFileExportImportChain_b1"); + \ No newline at end of file diff --git a/tests/baselines/reference/declFileExportImportChain2.errors.txt b/tests/baselines/reference/declFileExportImportChain2.errors.txt new file mode 100644 index 0000000000000..f9049968335b9 --- /dev/null +++ b/tests/baselines/reference/declFileExportImportChain2.errors.txt @@ -0,0 +1,23 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== declFileExportImportChain2_d.ts (0 errors) ==== + import c = require("declFileExportImportChain2_c"); + export var x: c.b.m2.c1; +==== declFileExportImportChain2_a.ts (0 errors) ==== + namespace m1 { + export namespace m2 { + export class c1 { + } + } + } + export = m1; + +==== declFileExportImportChain2_b.ts (0 errors) ==== + import a = require("declFileExportImportChain2_a"); + export = a; + +==== declFileExportImportChain2_c.ts (0 errors) ==== + export import b = require("declFileExportImportChain2_b"); + \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitAmdModuleDefault.errors.txt b/tests/baselines/reference/declarationEmitAmdModuleDefault.errors.txt new file mode 100644 index 0000000000000..f5d93de80e5ea --- /dev/null +++ b/tests/baselines/reference/declarationEmitAmdModuleDefault.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== declarationEmitAmdModuleDefault.ts (0 errors) ==== + export default class DefaultClass { } \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitAmdModuleNameDirective.errors.txt b/tests/baselines/reference/declarationEmitAmdModuleNameDirective.errors.txt new file mode 100644 index 0000000000000..b6433574483c9 --- /dev/null +++ b/tests/baselines/reference/declarationEmitAmdModuleNameDirective.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + /// + export const foo = 1; +==== bar.ts (0 errors) ==== + /// + import {foo} from './foo'; + void foo; \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.errors.txt b/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.errors.txt new file mode 100644 index 0000000000000..50a797b87f127 --- /dev/null +++ b/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.errors.txt @@ -0,0 +1,23 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== lib/lib.d.ts (0 errors) ==== + declare module "lib/result" { + export type Result = (E & Failure) | (T & Success); + export interface Failure { } + export interface Success { } + } + +==== src/datastore_result.ts (0 errors) ==== + import { Result } from "lib/result"; + + export type T = Result; + +==== src/conditional_directive_field.ts (0 errors) ==== + import * as DatastoreResult from "src/datastore_result"; + + export const build = (): DatastoreResult.T => { + return null; + }; + \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitDefaultExportWithTempVarName.errors.txt b/tests/baselines/reference/declarationEmitDefaultExportWithTempVarName.errors.txt new file mode 100644 index 0000000000000..6e43f0a6d1213 --- /dev/null +++ b/tests/baselines/reference/declarationEmitDefaultExportWithTempVarName.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== pi.ts (0 errors) ==== + export default 3.14159; \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitDefaultExportWithTempVarNameWithBundling.errors.txt b/tests/baselines/reference/declarationEmitDefaultExportWithTempVarNameWithBundling.errors.txt new file mode 100644 index 0000000000000..6e43f0a6d1213 --- /dev/null +++ b/tests/baselines/reference/declarationEmitDefaultExportWithTempVarNameWithBundling.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== pi.ts (0 errors) ==== + export default 3.14159; \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.errors.txt b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.errors.txt index b973b452e13b5..61dd1f4f22343 100644 --- a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.errors.txt +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.errors.txt @@ -1,9 +1,11 @@ error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5101: Visit https://aka.ms/ts6 for migration information. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== src/lib/operators/scalar.ts (0 errors) ==== export interface Scalar { (): string; diff --git a/tests/baselines/reference/declarationMapsOutFile.errors.txt b/tests/baselines/reference/declarationMapsOutFile.errors.txt new file mode 100644 index 0000000000000..8732b01aa92ca --- /dev/null +++ b/tests/baselines/reference/declarationMapsOutFile.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class Foo { + doThing(x: {a: number}) { + return {b: x.a}; + } + static make() { + return new Foo(); + } + } +==== index.ts (0 errors) ==== + import {Foo} from "./a"; + + const c = new Foo(); + c.doThing({a: 42}); + + export let x = c.doThing({a: 12}); + export { c, Foo }; + \ No newline at end of file diff --git a/tests/baselines/reference/declarationMerging2.errors.txt b/tests/baselines/reference/declarationMerging2.errors.txt new file mode 100644 index 0000000000000..e7d98bca5e94b --- /dev/null +++ b/tests/baselines/reference/declarationMerging2.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { + protected _f: number; + getF() { return this._f; } + } + +==== b.ts (0 errors) ==== + export {} + declare module "./a" { + interface A { + run(); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratedClassExportsSystem1.errors.txt b/tests/baselines/reference/decoratedClassExportsSystem1.errors.txt new file mode 100644 index 0000000000000..eb58f2d11abb0 --- /dev/null +++ b/tests/baselines/reference/decoratedClassExportsSystem1.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + declare function forwardRef(x: any): any; + declare var Something: any; + @Something({ v: () => Testing123 }) + export class Testing123 { + static prop0: string; + static prop1 = Testing123.prop0; + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratedClassExportsSystem1.types b/tests/baselines/reference/decoratedClassExportsSystem1.types index 26ab62feeecf0..b58772b93a374 100644 --- a/tests/baselines/reference/decoratedClassExportsSystem1.types +++ b/tests/baselines/reference/decoratedClassExportsSystem1.types @@ -5,13 +5,17 @@ declare function forwardRef(x: any): any; >forwardRef : (x: any) => any > : ^ ^^ ^^^^^ >x : any +> : ^^^ declare var Something: any; >Something : any +> : ^^^ @Something({ v: () => Testing123 }) >Something({ v: () => Testing123 }) : any +> : ^^^ >Something : any +> : ^^^ >{ v: () => Testing123 } : { v: () => typeof Testing123; } > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >v : () => typeof Testing123 diff --git a/tests/baselines/reference/decoratedClassExportsSystem2.errors.txt b/tests/baselines/reference/decoratedClassExportsSystem2.errors.txt new file mode 100644 index 0000000000000..5941fbc37f44f --- /dev/null +++ b/tests/baselines/reference/decoratedClassExportsSystem2.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + declare function forwardRef(x: any): any; + declare var Something: any; + @Something({ v: () => Testing123 }) + export class Testing123 { } \ No newline at end of file diff --git a/tests/baselines/reference/decoratedClassExportsSystem2.types b/tests/baselines/reference/decoratedClassExportsSystem2.types index 3da3d09187ff4..b8f242fc8fa87 100644 --- a/tests/baselines/reference/decoratedClassExportsSystem2.types +++ b/tests/baselines/reference/decoratedClassExportsSystem2.types @@ -5,13 +5,17 @@ declare function forwardRef(x: any): any; >forwardRef : (x: any) => any > : ^ ^^ ^^^^^ >x : any +> : ^^^ declare var Something: any; >Something : any +> : ^^^ @Something({ v: () => Testing123 }) >Something({ v: () => Testing123 }) : any +> : ^^^ >Something : any +> : ^^^ >{ v: () => Testing123 } : { v: () => typeof Testing123; } > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >v : () => typeof Testing123 diff --git a/tests/baselines/reference/decoratedClassFromExternalModule.errors.txt b/tests/baselines/reference/decoratedClassFromExternalModule.errors.txt new file mode 100644 index 0000000000000..a12f24078e41e --- /dev/null +++ b/tests/baselines/reference/decoratedClassFromExternalModule.errors.txt @@ -0,0 +1,13 @@ +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/tests/baselines/reference/decoratedClassFromExternalModule.types b/tests/baselines/reference/decoratedClassFromExternalModule.types index 49b9730a3ea7f..5b4c4a914f0e5 100644 --- a/tests/baselines/reference/decoratedClassFromExternalModule.types +++ b/tests/baselines/reference/decoratedClassFromExternalModule.types @@ -5,6 +5,7 @@ function decorate(target: any) { } >decorate : (target: any) => void > : ^ ^^ ^^^^^^^^^ >target : any +> : ^^^ @decorate >decorate : (target: any) => void @@ -16,6 +17,6 @@ export default class Decorated { } === undecorated.ts === import Decorated from 'decorated'; ->Decorated : typeof Decorated -> : ^^^^^^^^^^^^^^^^ +>Decorated : any +> : ^^^ diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.errors.txt b/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.errors.txt new file mode 100644 index 0000000000000..b64a7fd4844e6 --- /dev/null +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + var decorator: ClassDecorator; + + @decorator + export default class Foo {} + +==== b.ts (0 errors) ==== + var decorator: ClassDecorator; + + @decorator + export default class {} + \ No newline at end of file diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.errors.txt b/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.errors.txt new file mode 100644 index 0000000000000..28709a2ceab5d --- /dev/null +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + var decorator: ClassDecorator; + + @decorator + export default class Foo {} + +==== b.ts (0 errors) ==== + var decorator: ClassDecorator; + + @decorator + export default class {} \ No newline at end of file diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.errors.txt b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.errors.txt new file mode 100644 index 0000000000000..c27488d906117 --- /dev/null +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + var decorator: ClassDecorator; + + @decorator + export default class Foo {} + +==== b.ts (0 errors) ==== + var decorator: ClassDecorator; + + @decorator + export default class {} + \ No newline at end of file diff --git a/tests/baselines/reference/deduplicateImportsInSystem.errors.txt b/tests/baselines/reference/deduplicateImportsInSystem.errors.txt index 1436db7ab264b..7b2b25dcce818 100644 --- a/tests/baselines/reference/deduplicateImportsInSystem.errors.txt +++ b/tests/baselines/reference/deduplicateImportsInSystem.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. deduplicateImportsInSystem.ts(1,17): error TS2792: Cannot find module 'f1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? deduplicateImportsInSystem.ts(2,17): error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? deduplicateImportsInSystem.ts(3,17): error TS2792: Cannot find module 'f3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? @@ -6,6 +7,7 @@ deduplicateImportsInSystem.ts(5,17): error TS2792: Cannot find module 'f2'. Did deduplicateImportsInSystem.ts(6,17): error TS2792: Cannot find module 'f1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== deduplicateImportsInSystem.ts (6 errors) ==== import {A} from "f1"; ~~~~ diff --git a/tests/baselines/reference/defaultExportInAwaitExpression01.errors.txt b/tests/baselines/reference/defaultExportInAwaitExpression01.errors.txt new file mode 100644 index 0000000000000..c732d5e0374d7 --- /dev/null +++ b/tests/baselines/reference/defaultExportInAwaitExpression01.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + const x = new Promise( ( resolve, reject ) => { resolve( {} ); } ); + export default x; + +==== b.ts (0 errors) ==== + import x from './a'; + + ( async function() { + const value = await x; + }() ); + \ No newline at end of file diff --git a/tests/baselines/reference/defaultExportsGetExportedAmd.errors.txt b/tests/baselines/reference/defaultExportsGetExportedAmd.errors.txt new file mode 100644 index 0000000000000..732344d6d0767 --- /dev/null +++ b/tests/baselines/reference/defaultExportsGetExportedAmd.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class Foo {} + +==== b.ts (0 errors) ==== + export default function foo() {} + \ No newline at end of file diff --git a/tests/baselines/reference/defaultExportsGetExportedSystem.errors.txt b/tests/baselines/reference/defaultExportsGetExportedSystem.errors.txt new file mode 100644 index 0000000000000..ef493e8916dc0 --- /dev/null +++ b/tests/baselines/reference/defaultExportsGetExportedSystem.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class Foo {} + +==== b.ts (0 errors) ==== + export default function foo() {} + \ No newline at end of file diff --git a/tests/baselines/reference/defaultExportsGetExportedUmd.errors.txt b/tests/baselines/reference/defaultExportsGetExportedUmd.errors.txt new file mode 100644 index 0000000000000..de3992a2ab2c9 --- /dev/null +++ b/tests/baselines/reference/defaultExportsGetExportedUmd.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class Foo {} + +==== b.ts (0 errors) ==== + export default function foo() {} + \ No newline at end of file diff --git a/tests/baselines/reference/dependencyViaImportAlias.errors.txt b/tests/baselines/reference/dependencyViaImportAlias.errors.txt new file mode 100644 index 0000000000000..844e280bc7f53 --- /dev/null +++ b/tests/baselines/reference/dependencyViaImportAlias.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== B.ts (0 errors) ==== + import a = require('A'); + + import A = a.A; + + export = A; +==== A.ts (0 errors) ==== + export class A { + } \ No newline at end of file diff --git a/tests/baselines/reference/deprecatedCompilerOptions2.errors.txt b/tests/baselines/reference/deprecatedCompilerOptions2.errors.txt new file mode 100644 index 0000000000000..4e16fb63f207d --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions2.errors.txt @@ -0,0 +1,24 @@ +/foo/tsconfig.json(3,19): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== /foo/tsconfig.json (1 errors) ==== + { + "compilerOptions": { + "module": "amd", + ~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "target": "ES3", + "noImplicitUseStrict": true, + "keyofStringsOnly": true, + "suppressExcessPropertyErrors": true, + "suppressImplicitAnyIndexErrors": true, + "noStrictGenericChecks": true, + "charset": "utf8", + "out": "dist.js", + "ignoreDeprecations": "5.0" + } + } + +==== /foo/a.ts (0 errors) ==== + const a = 1; + \ No newline at end of file diff --git a/tests/baselines/reference/deprecatedCompilerOptions6.errors.txt b/tests/baselines/reference/deprecatedCompilerOptions6.errors.txt index 1d97da4493ad2..401c87dd813f0 100644 --- a/tests/baselines/reference/deprecatedCompilerOptions6.errors.txt +++ b/tests/baselines/reference/deprecatedCompilerOptions6.errors.txt @@ -1,3 +1,4 @@ +/foo/tsconfig.json(3,19): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /foo/tsconfig.json(4,19): error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. /foo/tsconfig.json(5,9): error TS5101: Option 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. /foo/tsconfig.json(6,9): error TS5101: Option 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. @@ -10,10 +11,12 @@ /foo/tsconfig.json(12,31): error TS5103: Invalid value for '--ignoreDeprecations'. -==== /foo/tsconfig.json (9 errors) ==== +==== /foo/tsconfig.json (10 errors) ==== { "compilerOptions": { "module": "amd", + ~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "target": "ES3", ~~~~~ !!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. diff --git a/tests/baselines/reference/destructuringInVariableDeclarations3.errors.txt b/tests/baselines/reference/destructuringInVariableDeclarations3.errors.txt new file mode 100644 index 0000000000000..f96056623b6ac --- /dev/null +++ b/tests/baselines/reference/destructuringInVariableDeclarations3.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== destructuringInVariableDeclarations3.ts (0 errors) ==== + export let { toString } = 1; + { + let { toFixed } = 1; + } + \ No newline at end of file diff --git a/tests/baselines/reference/destructuringInVariableDeclarations4.errors.txt b/tests/baselines/reference/destructuringInVariableDeclarations4.errors.txt new file mode 100644 index 0000000000000..3604304be0b31 --- /dev/null +++ b/tests/baselines/reference/destructuringInVariableDeclarations4.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== destructuringInVariableDeclarations4.ts (0 errors) ==== + let { toString } = 1; + { + let { toFixed } = 1; + } + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/destructuringInVariableDeclarations5.errors.txt b/tests/baselines/reference/destructuringInVariableDeclarations5.errors.txt new file mode 100644 index 0000000000000..7de7f1e7395cf --- /dev/null +++ b/tests/baselines/reference/destructuringInVariableDeclarations5.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== destructuringInVariableDeclarations5.ts (0 errors) ==== + export let { toString } = 1; + { + let { toFixed } = 1; + } + \ No newline at end of file diff --git a/tests/baselines/reference/destructuringInVariableDeclarations6.errors.txt b/tests/baselines/reference/destructuringInVariableDeclarations6.errors.txt new file mode 100644 index 0000000000000..2027d59a689c4 --- /dev/null +++ b/tests/baselines/reference/destructuringInVariableDeclarations6.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== destructuringInVariableDeclarations6.ts (0 errors) ==== + let { toString } = 1; + { + let { toFixed } = 1; + } + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/destructuringInVariableDeclarations7.errors.txt b/tests/baselines/reference/destructuringInVariableDeclarations7.errors.txt new file mode 100644 index 0000000000000..81fbe072046eb --- /dev/null +++ b/tests/baselines/reference/destructuringInVariableDeclarations7.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== destructuringInVariableDeclarations7.ts (0 errors) ==== + export let { toString } = 1; + { + let { toFixed } = 1; + } + \ No newline at end of file diff --git a/tests/baselines/reference/destructuringInVariableDeclarations8.errors.txt b/tests/baselines/reference/destructuringInVariableDeclarations8.errors.txt new file mode 100644 index 0000000000000..6065428600add --- /dev/null +++ b/tests/baselines/reference/destructuringInVariableDeclarations8.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== destructuringInVariableDeclarations8.ts (0 errors) ==== + let { toString } = 1; + { + let { toFixed } = 1; + } + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/dottedNamesInSystem.errors.txt b/tests/baselines/reference/dottedNamesInSystem.errors.txt new file mode 100644 index 0000000000000..c2edb41183fd0 --- /dev/null +++ b/tests/baselines/reference/dottedNamesInSystem.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== dottedNamesInSystem.ts (0 errors) ==== + export namespace A.B.C { + export function foo() {} + } + + export function bar() { + return A.B.C.foo(); + } \ No newline at end of file diff --git a/tests/baselines/reference/duplicateIdentifierShouldNotShortCircuitBaseTypeBinding.errors.txt b/tests/baselines/reference/duplicateIdentifierShouldNotShortCircuitBaseTypeBinding.errors.txt new file mode 100644 index 0000000000000..b77245686dbd9 --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierShouldNotShortCircuitBaseTypeBinding.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== duplicateIdentifierShouldNotShortCircuitBaseTypeBinding_0.ts (0 errors) ==== + export interface IPoint {} + + export namespace Shapes { + + export class Point implements IPoint {} + + } + +==== duplicateIdentifierShouldNotShortCircuitBaseTypeBinding_1.ts (0 errors) ==== + //var x = new Shapes.Point(); + //interface IPoint {} + + //namespace Shapes { + + // export class Point implements IPoint {} + + //} \ No newline at end of file diff --git a/tests/baselines/reference/duplicateLocalVariable2.errors.txt b/tests/baselines/reference/duplicateLocalVariable2.errors.txt index 4760ee1c0a52b..e3c5de61d131c 100644 --- a/tests/baselines/reference/duplicateLocalVariable2.errors.txt +++ b/tests/baselines/reference/duplicateLocalVariable2.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== duplicateLocalVariable2.ts (3 errors) ==== export class TestCase { constructor (public name: string, public test: ()=>boolean, public errorMessageRegEx?: string) { diff --git a/tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt b/tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt index 188c7da0fc336..f5e82e17b5d13 100644 --- a/tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt +++ b/tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. duplicateSymbolsExportMatching.ts(24,15): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local. duplicateSymbolsExportMatching.ts(25,22): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local. duplicateSymbolsExportMatching.ts(26,22): error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local. @@ -18,6 +19,7 @@ duplicateSymbolsExportMatching.ts(64,11): error TS2395: Individual declarations duplicateSymbolsExportMatching.ts(65,18): error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== duplicateSymbolsExportMatching.ts (18 errors) ==== namespace M { export interface E { } diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es2015.errors.txt b/tests/baselines/reference/dynamicImportWithNestedThis_es2015.errors.txt new file mode 100644 index 0000000000000..485d3a55c6717 --- /dev/null +++ b/tests/baselines/reference/dynamicImportWithNestedThis_es2015.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== dynamicImportWithNestedThis_es2015.ts (0 errors) ==== + // https://github.com/Microsoft/TypeScript/issues/17564 + class C { + private _path = './other'; + + dynamic() { + return import(this._path); + } + } + + const c = new C(); + c.dynamic(); \ No newline at end of file diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5.errors.txt b/tests/baselines/reference/dynamicImportWithNestedThis_es5.errors.txt new file mode 100644 index 0000000000000..dc99f48efb5e0 --- /dev/null +++ b/tests/baselines/reference/dynamicImportWithNestedThis_es5.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== dynamicImportWithNestedThis_es5.ts (0 errors) ==== + // https://github.com/Microsoft/TypeScript/issues/17564 + class C { + private _path = './other'; + + dynamic() { + return import(this._path); + } + } + + const c = new C(); + c.dynamic(); \ No newline at end of file diff --git a/tests/baselines/reference/dynamicRequire.errors.txt b/tests/baselines/reference/dynamicRequire.errors.txt new file mode 100644 index 0000000000000..7fb9861b1c809 --- /dev/null +++ b/tests/baselines/reference/dynamicRequire.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.js (0 errors) ==== + function foo(name) { + var s = require("t/" + name) + } + \ No newline at end of file diff --git a/tests/baselines/reference/dynamicRequire.types b/tests/baselines/reference/dynamicRequire.types index fb62d1b5bf8a1..9e4308870ea39 100644 --- a/tests/baselines/reference/dynamicRequire.types +++ b/tests/baselines/reference/dynamicRequire.types @@ -5,15 +5,20 @@ function foo(name) { >foo : (name: any) => void > : ^ ^^^^^^^^^^^^^^ >name : any +> : ^^^ var s = require("t/" + name) >s : any +> : ^^^ >require("t/" + name) : any +> : ^^^ >require : any +> : ^^^ >"t/" + name : string > : ^^^^^^ >"t/" : "t/" > : ^^^^ >name : any +> : ^^^ } diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1.errors.txt b/tests/baselines/reference/emitBundleWithPrologueDirectives1.errors.txt new file mode 100644 index 0000000000000..be3f26e9f4f17 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithPrologueDirectives1.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + /* Detached Comment */ + + // Class Doo Comment + export class Doo {} + class Scooby extends Doo {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithShebang1.errors.txt b/tests/baselines/reference/emitBundleWithShebang1.errors.txt new file mode 100644 index 0000000000000..021ac05175bd5 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang1.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== emitBundleWithShebang1.ts (0 errors) ==== + #!/usr/bin/env gjs + class Doo {} + class Scooby extends Doo {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithShebang2.errors.txt b/tests/baselines/reference/emitBundleWithShebang2.errors.txt new file mode 100644 index 0000000000000..a03d46fc493a9 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang2.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + #!/usr/bin/env gjs + class Doo {} + class Scooby extends Doo {} + +==== test2.ts (0 errors) ==== + #!/usr/bin/env js + class Dood {} + class Scoobyd extends Dood {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.errors.txt b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.errors.txt new file mode 100644 index 0000000000000..1664ccbe0bf8a --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + #!/usr/bin/env gjs + "use strict" + class Doo {} + class Scooby extends Doo {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.errors.txt b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.errors.txt new file mode 100644 index 0000000000000..5aa3055ef8c13 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + #!/usr/bin/env gjs + "use strict" + class Doo {} + class Scooby extends Doo {} + +==== test1.ts (0 errors) ==== + #!/usr/bin/env gjs + "use strict" + "Another prologue" + class Dood {} + class Scoobyd extends Dood {} \ No newline at end of file diff --git a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=amd).errors.txt b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=amd).errors.txt new file mode 100644 index 0000000000000..4e61d07e8b4ba --- /dev/null +++ b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=amd).errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' 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/tests/baselines/reference/emitHelpersWithLocalCollisions(module=none).errors.txt b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=none).errors.txt new file mode 100644 index 0000000000000..a834448c84956 --- /dev/null +++ b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=none).errors.txt @@ -0,0 +1,12 @@ +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/tests/baselines/reference/emitHelpersWithLocalCollisions(module=system).errors.txt b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=system).errors.txt new file mode 100644 index 0000000000000..52bbe25be4955 --- /dev/null +++ b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=system).errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' 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/tests/baselines/reference/emitHelpersWithLocalCollisions(module=umd).errors.txt b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=umd).errors.txt new file mode 100644 index 0000000000000..ca96dc816818a --- /dev/null +++ b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=umd).errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' 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/tests/baselines/reference/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt b/tests/baselines/reference/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt index 48c2dfaf4dba8..2aaff41831d1c 100644 --- a/tests/baselines/reference/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt +++ b/tests/baselines/reference/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt @@ -1,4 +1,4 @@ -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) ==== @@ -6,6 +6,6 @@ errorForBareSpecifierWithImplicitModuleResolutionNone.ts(3,23): error TS2792: Ca 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/tests/baselines/reference/es5-amd.errors.txt b/tests/baselines/reference/es5-amd.errors.txt new file mode 100644 index 0000000000000..894e40177a85b --- /dev/null +++ b/tests/baselines/reference/es5-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es5-declaration-amd.errors.txt b/tests/baselines/reference/es5-declaration-amd.errors.txt new file mode 100644 index 0000000000000..3fe9c569c8803 --- /dev/null +++ b/tests/baselines/reference/es5-declaration-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-declaration-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es5-souremap-amd.errors.txt b/tests/baselines/reference/es5-souremap-amd.errors.txt new file mode 100644 index 0000000000000..93608b3b5a9e3 --- /dev/null +++ b/tests/baselines/reference/es5-souremap-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-souremap-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es5-system.errors.txt b/tests/baselines/reference/es5-system.errors.txt new file mode 100644 index 0000000000000..06a0b65c67577 --- /dev/null +++ b/tests/baselines/reference/es5-system.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-system.ts (0 errors) ==== + export default class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/es5-system2.errors.txt b/tests/baselines/reference/es5-system2.errors.txt new file mode 100644 index 0000000000000..83ae01c4962f9 --- /dev/null +++ b/tests/baselines/reference/es5-system2.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-system2.ts (0 errors) ==== + export var __esModule = 1; \ No newline at end of file diff --git a/tests/baselines/reference/es5-umd.errors.txt b/tests/baselines/reference/es5-umd.errors.txt new file mode 100644 index 0000000000000..be610e68b84f1 --- /dev/null +++ b/tests/baselines/reference/es5-umd.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-umd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/es5-umd2.errors.txt b/tests/baselines/reference/es5-umd2.errors.txt new file mode 100644 index 0000000000000..e4bde504f3a15 --- /dev/null +++ b/tests/baselines/reference/es5-umd2.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-umd2.ts (0 errors) ==== + export class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/es5-umd3.errors.txt b/tests/baselines/reference/es5-umd3.errors.txt new file mode 100644 index 0000000000000..ce88775497f94 --- /dev/null +++ b/tests/baselines/reference/es5-umd3.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-umd3.ts (0 errors) ==== + export default class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/es5-umd4.errors.txt b/tests/baselines/reference/es5-umd4.errors.txt new file mode 100644 index 0000000000000..2f87d8562faf1 --- /dev/null +++ b/tests/baselines/reference/es5-umd4.errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-umd4.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + + export = A; + \ No newline at end of file diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt b/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt index 0963c4ef7fcbe..369620d7c3a9c 100644 --- a/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt +++ b/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. @@ -12,6 +13,7 @@ es5ModuleInternalNamedImports.ts(32,32): error TS1147: Import declarations in a es5ModuleInternalNamedImports.ts(34,16): error TS2792: Cannot find module 'M3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== es5ModuleInternalNamedImports.ts (12 errors) ==== export namespace M { // variable diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.errors.txt b/tests/baselines/reference/es5ModuleWithModuleGenAmd.errors.txt new file mode 100644 index 0000000000000..3e6978b3c6df0 --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5ModuleWithModuleGenAmd.ts (0 errors) ==== + export class A + { + constructor () + { + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es6-amd.errors.txt b/tests/baselines/reference/es6-amd.errors.txt new file mode 100644 index 0000000000000..833994836117f --- /dev/null +++ b/tests/baselines/reference/es6-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es6-declaration-amd.errors.txt b/tests/baselines/reference/es6-declaration-amd.errors.txt new file mode 100644 index 0000000000000..3692c46db4068 --- /dev/null +++ b/tests/baselines/reference/es6-declaration-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6-declaration-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es6-sourcemap-amd.errors.txt b/tests/baselines/reference/es6-sourcemap-amd.errors.txt new file mode 100644 index 0000000000000..92d35757e0569 --- /dev/null +++ b/tests/baselines/reference/es6-sourcemap-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6-sourcemap-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es6-umd.errors.txt b/tests/baselines/reference/es6-umd.errors.txt new file mode 100644 index 0000000000000..a05e673c52789 --- /dev/null +++ b/tests/baselines/reference/es6-umd.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6-umd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es6-umd2.errors.txt b/tests/baselines/reference/es6-umd2.errors.txt new file mode 100644 index 0000000000000..ce0182d579719 --- /dev/null +++ b/tests/baselines/reference/es6-umd2.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6-umd2.ts (0 errors) ==== + export class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es6ExportAll.errors.txt b/tests/baselines/reference/es6ExportAll.errors.txt new file mode 100644 index 0000000000000..b4a0ac07bb257 --- /dev/null +++ b/tests/baselines/reference/es6ExportAll.errors.txt @@ -0,0 +1,19 @@ +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 namespace m { + export var x = 10; + } + export var x = 10; + export namespace 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/tests/baselines/reference/es6ExportAssignment2.errors.txt b/tests/baselines/reference/es6ExportAssignment2.errors.txt index 8edce04a105c1..e592d4375e859 100644 --- a/tests/baselines/reference/es6ExportAssignment2.errors.txt +++ b/tests/baselines/reference/es6ExportAssignment2.errors.txt @@ -1,4 +1,5 @@ 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) ==== @@ -7,6 +8,8 @@ a.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScr ~~~~~~~~~~~ !!! 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/tests/baselines/reference/es6ExportAssignment2.types b/tests/baselines/reference/es6ExportAssignment2.types index f1549da945959..782c1b4d6a168 100644 --- a/tests/baselines/reference/es6ExportAssignment2.types +++ b/tests/baselines/reference/es6ExportAssignment2.types @@ -13,6 +13,6 @@ export = a; // Error: export = not allowed in ES6 === b.ts === import * as a from "a"; ->a : number -> : ^^^^^^ +>a : any +> : ^^^ diff --git a/tests/baselines/reference/es6ExportAssignment3.errors.txt b/tests/baselines/reference/es6ExportAssignment3.errors.txt new file mode 100644 index 0000000000000..9ae1143e42d99 --- /dev/null +++ b/tests/baselines/reference/es6ExportAssignment3.errors.txt @@ -0,0 +1,12 @@ +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/tests/baselines/reference/es6ExportAssignment3.types b/tests/baselines/reference/es6ExportAssignment3.types index f22df17b39120..8ce50d2cd7a78 100644 --- a/tests/baselines/reference/es6ExportAssignment3.types +++ b/tests/baselines/reference/es6ExportAssignment3.types @@ -11,6 +11,6 @@ export = a; // OK, in ambient context === b.ts === import * as a from "a"; ->a : number -> : ^^^^^^ +>a : any +> : ^^^ diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.errors.txt b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.errors.txt new file mode 100644 index 0000000000000..2a922063829fa --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.errors.txt @@ -0,0 +1,35 @@ +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 namespace m { + export var x = 10; + } + export var x = 10; + export namespace 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/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js index 5b97b10bc72f6..2daf4a31a2cf4 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js @@ -30,7 +30,8 @@ export var x = 10; //// [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"; diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.symbols b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.symbols index 8138b7480650f..8a2a2cc1f585c 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.symbols +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.symbols @@ -25,12 +25,10 @@ export { c } from "server"; >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"; diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types index 780c37727aa5c..757835e6a5d7d 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types @@ -28,28 +28,28 @@ export namespace uninstantiated { === 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/tests/baselines/reference/es6ImportDefaultBinding.errors.txt b/tests/baselines/reference/es6ImportDefaultBinding.errors.txt new file mode 100644 index 0000000000000..6512953174392 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBinding.errors.txt @@ -0,0 +1,17 @@ +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/tests/baselines/reference/es6ImportDefaultBinding.types b/tests/baselines/reference/es6ImportDefaultBinding.types index 7259ff29b1dba..01d45fb51be4b 100644 --- a/tests/baselines/reference/es6ImportDefaultBinding.types +++ b/tests/baselines/reference/es6ImportDefaultBinding.types @@ -13,16 +13,16 @@ export default a; === 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/tests/baselines/reference/es6ImportDefaultBindingAmd.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingAmd.errors.txt new file mode 100644 index 0000000000000..9ccf2ad6667b6 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingAmd.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6ImportDefaultBindingAmd_0.ts (0 errors) ==== + var a = 10; + export default a; + +==== es6ImportDefaultBindingAmd_1.ts (0 errors) ==== + import defaultBinding from "es6ImportDefaultBindingAmd_0"; + var x = defaultBinding; + import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt index b097a3089c190..f2a172092a0b7 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt @@ -1,9 +1,9 @@ -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) ==== @@ -12,27 +12,27 @@ es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,27): error TS2614: Modul ==== 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.types index cc848577ff58d..2825d5a589738 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.types @@ -13,30 +13,30 @@ export default a; === 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 @@ -45,12 +45,12 @@ import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithName 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 @@ -61,12 +61,12 @@ import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithN 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 @@ -75,18 +75,18 @@ import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNa 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt index 6e6ad7a586eac..e83c7caf32971 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -12,6 +13,7 @@ client.ts(11,1): error TS1191: An import declaration cannot have modifiers. client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== server.ts (0 errors) ==== export var a = 10; export var x = a; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt index 2a8a666ba905b..61a05e784f2e8 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt @@ -1,4 +1,4 @@ -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) ==== @@ -6,6 +6,6 @@ es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,8): error TS1192: Mod ==== 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols index f6c055019ee63..52ba79bf97ab2 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols @@ -11,7 +11,5 @@ import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollo 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.types index 37df16e07fe3b..7a3e50dc097a7 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.types @@ -11,16 +11,16 @@ export var a = 10; 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt new file mode 100644 index 0000000000000..76a13afad5d47 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt @@ -0,0 +1,12 @@ +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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types index e96874529a3eb..2175e53c77bfc 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types @@ -13,14 +13,14 @@ export default a; === 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt index c4e493e1c80c8..39c67cbf27b1a 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. client.ts(1,1): error TS1191: An import declaration cannot have modifiers. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== server.ts (0 errors) ==== var a = 10; export default a; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt new file mode 100644 index 0000000000000..5cc5f7f706b43 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== server.ts (0 errors) ==== + class a { } + export default a; + +==== client.ts (0 errors) ==== + import defaultBinding, * as nameSpaceBinding from "server"; + export var x = new defaultBinding(); \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt index 467c76ca83a13..73aae3037addf 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. client.ts(1,1): error TS1191: An import declaration cannot have modifiers. client.ts(3,1): error TS1191: An import declaration cannot have modifiers. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== server.ts (0 errors) ==== var a = 10; export default a; diff --git a/tests/baselines/reference/es6ImportEqualsDeclaration.errors.txt b/tests/baselines/reference/es6ImportEqualsDeclaration.errors.txt index ee2508c95b4d1..13769af4d3819 100644 --- a/tests/baselines/reference/es6ImportEqualsDeclaration.errors.txt +++ b/tests/baselines/reference/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. -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,20): error TS2307: Cannot find module 'server' or its corresponding type declarations. -==== client.ts (1 errors) ==== +==== 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/tests/baselines/reference/es6ImportEqualsDeclaration.js b/tests/baselines/reference/es6ImportEqualsDeclaration.js index 506c22a351e93..f1d1f9d352b41 100644 --- a/tests/baselines/reference/es6ImportEqualsDeclaration.js +++ b/tests/baselines/reference/es6ImportEqualsDeclaration.js @@ -7,8 +7,5 @@ export = a; //// [client.ts] import a = require("server"); -//// [server.js] -var a = 10; -export {}; //// [client.js] export {}; diff --git a/tests/baselines/reference/es6ImportEqualsDeclaration.symbols b/tests/baselines/reference/es6ImportEqualsDeclaration.symbols index ad1c83d5aae0a..2cf648276726f 100644 --- a/tests/baselines/reference/es6ImportEqualsDeclaration.symbols +++ b/tests/baselines/reference/es6ImportEqualsDeclaration.symbols @@ -4,10 +4,3 @@ 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/tests/baselines/reference/es6ImportEqualsDeclaration.types b/tests/baselines/reference/es6ImportEqualsDeclaration.types index 8a66b5d3097aa..6f15bcdaeaa8f 100644 --- a/tests/baselines/reference/es6ImportEqualsDeclaration.types +++ b/tests/baselines/reference/es6ImportEqualsDeclaration.types @@ -2,17 +2,6 @@ === 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/tests/baselines/reference/es6ImportNameSpaceImportAmd.errors.txt b/tests/baselines/reference/es6ImportNameSpaceImportAmd.errors.txt new file mode 100644 index 0000000000000..7b0a5f46c0724 --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportAmd.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6ImportNameSpaceImportAmd_0.ts (0 errors) ==== + export var a = 10; + +==== es6ImportNameSpaceImportAmd_1.ts (0 errors) ==== + import * as nameSpaceBinding from "es6ImportNameSpaceImportAmd_0"; + var x = nameSpaceBinding.a; + import * as nameSpaceBinding2 from "es6ImportNameSpaceImportAmd_0"; // elide this + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportNameSpaceImportWithExport.errors.txt b/tests/baselines/reference/es6ImportNameSpaceImportWithExport.errors.txt index 48bef0dde35ea..fabe4072ec1b0 100644 --- a/tests/baselines/reference/es6ImportNameSpaceImportWithExport.errors.txt +++ b/tests/baselines/reference/es6ImportNameSpaceImportWithExport.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. client.ts(1,1): error TS1191: An import declaration cannot have modifiers. client.ts(3,1): error TS1191: An import declaration cannot have modifiers. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== server.ts (0 errors) ==== export var a = 10; diff --git a/tests/baselines/reference/es6ImportNamedImportAmd.errors.txt b/tests/baselines/reference/es6ImportNamedImportAmd.errors.txt new file mode 100644 index 0000000000000..dd45c162b6406 --- /dev/null +++ b/tests/baselines/reference/es6ImportNamedImportAmd.errors.txt @@ -0,0 +1,43 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6ImportNamedImportAmd_0.ts (0 errors) ==== + export var a = 10; + export var x = a; + export var m = a; + export var a1 = 10; + export var x1 = 10; + export var z1 = 10; + export var z2 = 10; + export var aaaa = 10; + +==== es6ImportNamedImportAmd_1.ts (0 errors) ==== + import { } from "es6ImportNamedImportAmd_0"; + import { a } from "es6ImportNamedImportAmd_0"; + var xxxx = a; + import { a as b } from "es6ImportNamedImportAmd_0"; + var xxxx = b; + import { x, a as y } from "es6ImportNamedImportAmd_0"; + var xxxx = x; + var xxxx = y; + import { x as z, } from "es6ImportNamedImportAmd_0"; + var xxxx = z; + import { m, } from "es6ImportNamedImportAmd_0"; + var xxxx = m; + import { a1, x1 } from "es6ImportNamedImportAmd_0"; + var xxxx = a1; + var xxxx = x1; + import { a1 as a11, x1 as x11 } from "es6ImportNamedImportAmd_0"; + var xxxx = a11; + var xxxx = x11; + import { z1 } from "es6ImportNamedImportAmd_0"; + var z111 = z1; + import { z2 as z3 } from "es6ImportNamedImportAmd_0"; + var z2 = z3; // z2 shouldn't give redeclare error + + // These are elided + import { aaaa } from "es6ImportNamedImportAmd_0"; + // These are elided + import { aaaa as bbbb } from "es6ImportNamedImportAmd_0"; + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportNamedImportIdentifiersParsing.errors.txt b/tests/baselines/reference/es6ImportNamedImportIdentifiersParsing.errors.txt index e8c9ac41c4ad4..9d62c047bc46c 100644 --- a/tests/baselines/reference/es6ImportNamedImportIdentifiersParsing.errors.txt +++ b/tests/baselines/reference/es6ImportNamedImportIdentifiersParsing.errors.txt @@ -1,16 +1,16 @@ 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) ==== @@ -18,30 +18,30 @@ es6ImportNamedImportIdentifiersParsing.ts(5,36): error TS2792: Cannot find modul ~~~~~ !!! 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? \ No newline at end of file +!!! error TS2307: Cannot find module 'somemodule' or its corresponding type declarations. \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportNamedImportParsingError.errors.txt b/tests/baselines/reference/es6ImportNamedImportParsingError.errors.txt index 520bcea042994..34ba5ce6972b6 100644 --- a/tests/baselines/reference/es6ImportNamedImportParsingError.errors.txt +++ b/tests/baselines/reference/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. @@ -32,10 +32,10 @@ es6ImportNamedImportParsingError_1.ts(4,20): error TS1005: ';' expected. ~~~~ !!! 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. diff --git a/tests/baselines/reference/es6ImportWithoutFromClause.errors.txt b/tests/baselines/reference/es6ImportWithoutFromClause.errors.txt new file mode 100644 index 0000000000000..a6ae72d663c4b --- /dev/null +++ b/tests/baselines/reference/es6ImportWithoutFromClause.errors.txt @@ -0,0 +1,11 @@ +es6ImportWithoutFromClause_1.ts(1,8): error TS2882: Cannot find module or type declarations for side-effect import of 'es6ImportWithoutFromClause_0'. + + +==== es6ImportWithoutFromClause_0.ts (0 errors) ==== + export var a = 10; + +==== es6ImportWithoutFromClause_1.ts (1 errors) ==== + import "es6ImportWithoutFromClause_0"; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2882: Cannot find module or type declarations for side-effect import of 'es6ImportWithoutFromClause_0'. + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseAmd.errors.txt b/tests/baselines/reference/es6ImportWithoutFromClauseAmd.errors.txt new file mode 100644 index 0000000000000..62a89df938e50 --- /dev/null +++ b/tests/baselines/reference/es6ImportWithoutFromClauseAmd.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6ImportWithoutFromClauseAmd_0.ts (0 errors) ==== + export var a = 10; + +==== es6ImportWithoutFromClauseAmd_1.ts (0 errors) ==== + export var b = 10; + +==== es6ImportWithoutFromClauseAmd_2.ts (0 errors) ==== + import "es6ImportWithoutFromClauseAmd_0"; + import "es6ImportWithoutFromClauseAmd_2"; + var _a = 10; + var _b = 10; \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseNonInstantiatedModule.errors.txt b/tests/baselines/reference/es6ImportWithoutFromClauseNonInstantiatedModule.errors.txt new file mode 100644 index 0000000000000..114a6e0d44a14 --- /dev/null +++ b/tests/baselines/reference/es6ImportWithoutFromClauseNonInstantiatedModule.errors.txt @@ -0,0 +1,11 @@ +es6ImportWithoutFromClauseNonInstantiatedModule_1.ts(1,8): error TS2882: Cannot find module or type declarations for side-effect import of 'es6ImportWithoutFromClauseNonInstantiatedModule_0'. + + +==== es6ImportWithoutFromClauseNonInstantiatedModule_0.ts (0 errors) ==== + export interface i { + } + +==== es6ImportWithoutFromClauseNonInstantiatedModule_1.ts (1 errors) ==== + import "es6ImportWithoutFromClauseNonInstantiatedModule_0"; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2882: Cannot find module or type declarations for side-effect import of 'es6ImportWithoutFromClauseNonInstantiatedModule_0'. \ No newline at end of file diff --git a/tests/baselines/reference/es6ModuleWithModuleGenTargetAmd.errors.txt b/tests/baselines/reference/es6ModuleWithModuleGenTargetAmd.errors.txt new file mode 100644 index 0000000000000..daf9bb741924e --- /dev/null +++ b/tests/baselines/reference/es6ModuleWithModuleGenTargetAmd.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6ModuleWithModuleGenTargetAmd.ts (0 errors) ==== + export class A + { + constructor () + { + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt b/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt index b186d3622092f..8b45346535972 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt +++ b/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt @@ -1,5 +1,5 @@ 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. @@ -8,7 +8,7 @@ es6modulekindWithES5Target10.ts(6,1): error TS1203: Export assignment cannot be ~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! 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 { diff --git a/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt b/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt index eb4cb6d4feda0..7753787618825 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt +++ b/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt @@ -1,22 +1,22 @@ -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}; @@ -26,11 +26,11 @@ es6modulekindWithES5Target9.ts(15,17): error TS2792: Cannot find module 'mod'. D 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/tests/baselines/reference/esnextmodulekindWithES5Target10.errors.txt b/tests/baselines/reference/esnextmodulekindWithES5Target10.errors.txt index f4acb47125619..6d6f0ee1c7f09 100644 --- a/tests/baselines/reference/esnextmodulekindWithES5Target10.errors.txt +++ b/tests/baselines/reference/esnextmodulekindWithES5Target10.errors.txt @@ -1,5 +1,5 @@ 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. @@ -8,7 +8,7 @@ esnextmodulekindWithES5Target10.ts(6,1): error TS1203: Export assignment cannot ~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! 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 { diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt b/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt index d41afa4b5bc8f..191ac8fdf02ea 100644 --- a/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt +++ b/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt @@ -1,22 +1,22 @@ -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}; @@ -26,11 +26,11 @@ esnextmodulekindWithES5Target9.ts(15,17): error TS2792: Cannot find module 'mod' 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/tests/baselines/reference/exportAndImport-es5-amd.errors.txt b/tests/baselines/reference/exportAndImport-es5-amd.errors.txt new file mode 100644 index 0000000000000..fbd8e108ce86b --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es5-amd.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export default function f1() { + } + +==== m2.ts (0 errors) ==== + import f1 from "./m1"; + export default function f2() { + f1(); + } + \ No newline at end of file diff --git a/tests/baselines/reference/exportAsNamespace1(module=amd).errors.txt b/tests/baselines/reference/exportAsNamespace1(module=amd).errors.txt index ff31f3962ef4c..1159c91568a33 100644 --- a/tests/baselines/reference/exportAsNamespace1(module=amd).errors.txt +++ b/tests/baselines/reference/exportAsNamespace1(module=amd).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2304: Cannot find name 'ns'. 1.ts(3,1): error TS2304: Cannot find name 'ns'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace1(module=system).errors.txt b/tests/baselines/reference/exportAsNamespace1(module=system).errors.txt index ff31f3962ef4c..df44389973192 100644 --- a/tests/baselines/reference/exportAsNamespace1(module=system).errors.txt +++ b/tests/baselines/reference/exportAsNamespace1(module=system).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2304: Cannot find name 'ns'. 1.ts(3,1): error TS2304: Cannot find name 'ns'. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace1(module=umd).errors.txt b/tests/baselines/reference/exportAsNamespace1(module=umd).errors.txt index ff31f3962ef4c..3ee3aa98ebae4 100644 --- a/tests/baselines/reference/exportAsNamespace1(module=umd).errors.txt +++ b/tests/baselines/reference/exportAsNamespace1(module=umd).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2304: Cannot find name 'ns'. 1.ts(3,1): error TS2304: Cannot find name 'ns'. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace2(module=amd).errors.txt b/tests/baselines/reference/exportAsNamespace2(module=amd).errors.txt index ff31f3962ef4c..1159c91568a33 100644 --- a/tests/baselines/reference/exportAsNamespace2(module=amd).errors.txt +++ b/tests/baselines/reference/exportAsNamespace2(module=amd).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2304: Cannot find name 'ns'. 1.ts(3,1): error TS2304: Cannot find name 'ns'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace2(module=system).errors.txt b/tests/baselines/reference/exportAsNamespace2(module=system).errors.txt index ff31f3962ef4c..df44389973192 100644 --- a/tests/baselines/reference/exportAsNamespace2(module=system).errors.txt +++ b/tests/baselines/reference/exportAsNamespace2(module=system).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2304: Cannot find name 'ns'. 1.ts(3,1): error TS2304: Cannot find name 'ns'. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace2(module=umd).errors.txt b/tests/baselines/reference/exportAsNamespace2(module=umd).errors.txt index ff31f3962ef4c..3ee3aa98ebae4 100644 --- a/tests/baselines/reference/exportAsNamespace2(module=umd).errors.txt +++ b/tests/baselines/reference/exportAsNamespace2(module=umd).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2304: Cannot find name 'ns'. 1.ts(3,1): error TS2304: Cannot find name 'ns'. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace3(module=amd).errors.txt b/tests/baselines/reference/exportAsNamespace3(module=amd).errors.txt index 0e4bd2c40ddf8..f03649ce2aa4c 100644 --- a/tests/baselines/reference/exportAsNamespace3(module=amd).errors.txt +++ b/tests/baselines/reference/exportAsNamespace3(module=amd).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2448: Block-scoped variable 'ns' used before its declaration. 1.ts(3,1): error TS2448: Block-scoped variable 'ns' used before its declaration. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace3(module=system).errors.txt b/tests/baselines/reference/exportAsNamespace3(module=system).errors.txt index 0e4bd2c40ddf8..6a32c48a93bfc 100644 --- a/tests/baselines/reference/exportAsNamespace3(module=system).errors.txt +++ b/tests/baselines/reference/exportAsNamespace3(module=system).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2448: Block-scoped variable 'ns' used before its declaration. 1.ts(3,1): error TS2448: Block-scoped variable 'ns' used before its declaration. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace3(module=umd).errors.txt b/tests/baselines/reference/exportAsNamespace3(module=umd).errors.txt index 0e4bd2c40ddf8..e62ed7ccf9f5f 100644 --- a/tests/baselines/reference/exportAsNamespace3(module=umd).errors.txt +++ b/tests/baselines/reference/exportAsNamespace3(module=umd).errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(2,1): error TS2448: Block-scoped variable 'ns' used before its declaration. 1.ts(3,1): error TS2448: Block-scoped variable 'ns' used before its declaration. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export const a = 1; export const b = 2; diff --git a/tests/baselines/reference/exportAsNamespace4(module=amd).errors.txt b/tests/baselines/reference/exportAsNamespace4(module=amd).errors.txt new file mode 100644 index 0000000000000..e46e730ffe438 --- /dev/null +++ b/tests/baselines/reference/exportAsNamespace4(module=amd).errors.txt @@ -0,0 +1,24 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export const a = 1; + export const b = 2; + +==== 1.ts (0 errors) ==== + export * as default from './0'; + +==== 11.ts (0 errors) ==== + import * as ns from './0'; + export default ns; + +==== 2.ts (0 errors) ==== + import foo from './1' + import foo1 from './11' + + foo.a; + foo1.a; + + foo.b; + foo1.b; \ No newline at end of file diff --git a/tests/baselines/reference/exportAsNamespace4(module=system).errors.txt b/tests/baselines/reference/exportAsNamespace4(module=system).errors.txt new file mode 100644 index 0000000000000..7463cadac52aa --- /dev/null +++ b/tests/baselines/reference/exportAsNamespace4(module=system).errors.txt @@ -0,0 +1,24 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export const a = 1; + export const b = 2; + +==== 1.ts (0 errors) ==== + export * as default from './0'; + +==== 11.ts (0 errors) ==== + import * as ns from './0'; + export default ns; + +==== 2.ts (0 errors) ==== + import foo from './1' + import foo1 from './11' + + foo.a; + foo1.a; + + foo.b; + foo1.b; \ No newline at end of file diff --git a/tests/baselines/reference/exportAsNamespace4(module=umd).errors.txt b/tests/baselines/reference/exportAsNamespace4(module=umd).errors.txt new file mode 100644 index 0000000000000..e75848124401b --- /dev/null +++ b/tests/baselines/reference/exportAsNamespace4(module=umd).errors.txt @@ -0,0 +1,24 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export const a = 1; + export const b = 2; + +==== 1.ts (0 errors) ==== + export * as default from './0'; + +==== 11.ts (0 errors) ==== + import * as ns from './0'; + export default ns; + +==== 2.ts (0 errors) ==== + import foo from './1' + import foo1 from './11' + + foo.a; + foo1.a; + + foo.b; + foo1.b; \ No newline at end of file diff --git a/tests/baselines/reference/exportAsNamespace_nonExistent.errors.txt b/tests/baselines/reference/exportAsNamespace_nonExistent.errors.txt index 32dc546b4b404..2a8a7b7e7c210 100644 --- a/tests/baselines/reference/exportAsNamespace_nonExistent.errors.txt +++ b/tests/baselines/reference/exportAsNamespace_nonExistent.errors.txt @@ -1,8 +1,8 @@ -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/tests/baselines/reference/exportAssignedTypeAsTypeAnnotation.errors.txt b/tests/baselines/reference/exportAssignedTypeAsTypeAnnotation.errors.txt new file mode 100644 index 0000000000000..af55cf2bcb992 --- /dev/null +++ b/tests/baselines/reference/exportAssignedTypeAsTypeAnnotation.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportAssignedTypeAsTypeAnnotation_1.ts (0 errors) ==== + /// + import test = require('exportAssignedTypeAsTypeAnnotation_0'); + var t2: test; // should not raise a 'container type' error + +==== exportAssignedTypeAsTypeAnnotation_0.ts (0 errors) ==== + interface x { + (): Date; + foo: string; + } + export = x; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentAndDeclaration.errors.txt b/tests/baselines/reference/exportAssignmentAndDeclaration.errors.txt index c4c85ea569b06..58d8bba335bf7 100644 --- a/tests/baselines/reference/exportAssignmentAndDeclaration.errors.txt +++ b/tests/baselines/reference/exportAssignmentAndDeclaration.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. foo_0.ts(10,1): error TS2309: An export assignment cannot be used in a module with other exported elements. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== foo_0.ts (1 errors) ==== export enum E1 { A,B,C diff --git a/tests/baselines/reference/exportAssignmentCircularModules.errors.txt b/tests/baselines/reference/exportAssignmentCircularModules.errors.txt new file mode 100644 index 0000000000000..8139a2496da62 --- /dev/null +++ b/tests/baselines/reference/exportAssignmentCircularModules.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_2.ts (0 errors) ==== + import foo0 = require("./foo_0"); + namespace Foo { + export var x = foo0.x; + } + export = Foo; + +==== foo_0.ts (0 errors) ==== + import foo1 = require('./foo_1'); + namespace Foo { + export var x = foo1.x; + } + export = Foo; + +==== foo_1.ts (0 errors) ==== + import foo2 = require("./foo_2"); + namespace Foo { + export var x = foo2.x; + } + export = Foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentCircularModules.types b/tests/baselines/reference/exportAssignmentCircularModules.types index 151ac1b4bd314..120a5f84eb82f 100644 --- a/tests/baselines/reference/exportAssignmentCircularModules.types +++ b/tests/baselines/reference/exportAssignmentCircularModules.types @@ -11,7 +11,9 @@ namespace Foo { export var x = foo0.x; >x : any +> : ^^^ >foo0.x : any +> : ^^^ >foo0 : typeof foo0 > : ^^^^^^^^^^^ >x : any @@ -32,7 +34,9 @@ namespace Foo { export var x = foo1.x; >x : any +> : ^^^ >foo1.x : any +> : ^^^ >foo1 : typeof foo1 > : ^^^^^^^^^^^ >x : any @@ -53,7 +57,9 @@ namespace Foo { export var x = foo2.x; >x : any +> : ^^^ >foo2.x : any +> : ^^^ >foo2 : typeof foo2 > : ^^^^^^^^^^^ >x : any diff --git a/tests/baselines/reference/exportAssignmentClass.errors.txt b/tests/baselines/reference/exportAssignmentClass.errors.txt new file mode 100644 index 0000000000000..08cfa54b0ddbd --- /dev/null +++ b/tests/baselines/reference/exportAssignmentClass.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportAssignmentClass_B.ts (0 errors) ==== + import D = require("exportAssignmentClass_A"); + + var d = new D(); + var x = d.p; +==== exportAssignmentClass_A.ts (0 errors) ==== + class C { public p = 0; } + + export = C; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentError.errors.txt b/tests/baselines/reference/exportAssignmentError.errors.txt new file mode 100644 index 0000000000000..e61d4a7a08bfe --- /dev/null +++ b/tests/baselines/reference/exportAssignmentError.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEqualsModule_A.ts (0 errors) ==== + namespace M { + export var x; + } + + import M2 = M; + + export = M2; // should not error + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentError.types b/tests/baselines/reference/exportAssignmentError.types index 4d8c3914486fc..41a4bf2a71d40 100644 --- a/tests/baselines/reference/exportAssignmentError.types +++ b/tests/baselines/reference/exportAssignmentError.types @@ -7,6 +7,7 @@ namespace M { export var x; >x : any +> : ^^^ } import M2 = M; diff --git a/tests/baselines/reference/exportAssignmentFunction.errors.txt b/tests/baselines/reference/exportAssignmentFunction.errors.txt new file mode 100644 index 0000000000000..f50cfd3039c89 --- /dev/null +++ b/tests/baselines/reference/exportAssignmentFunction.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportAssignmentFunction_B.ts (0 errors) ==== + import fooFunc = require("exportAssignmentFunction_A"); + + var n: number = fooFunc(); +==== exportAssignmentFunction_A.ts (0 errors) ==== + function foo() { return 0; } + + export = foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentInterface.errors.txt b/tests/baselines/reference/exportAssignmentInterface.errors.txt new file mode 100644 index 0000000000000..5819cbfb57ba1 --- /dev/null +++ b/tests/baselines/reference/exportAssignmentInterface.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportAssignmentInterface_B.ts (0 errors) ==== + import I1 = require("exportAssignmentInterface_A"); + + var i: I1; + + var n: number = i.p1; +==== exportAssignmentInterface_A.ts (0 errors) ==== + interface A { + p1: number; + } + + export = A; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentInternalModule.errors.txt b/tests/baselines/reference/exportAssignmentInternalModule.errors.txt new file mode 100644 index 0000000000000..08a6ff256afc4 --- /dev/null +++ b/tests/baselines/reference/exportAssignmentInternalModule.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportAssignmentInternalModule_B.ts (0 errors) ==== + import modM = require("exportAssignmentInternalModule_A"); + + var n: number = modM.x; +==== exportAssignmentInternalModule_A.ts (0 errors) ==== + namespace M { + export var x; + } + + export = M; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentInternalModule.types b/tests/baselines/reference/exportAssignmentInternalModule.types index 4252f9a9762e9..fdf464092b80c 100644 --- a/tests/baselines/reference/exportAssignmentInternalModule.types +++ b/tests/baselines/reference/exportAssignmentInternalModule.types @@ -9,6 +9,7 @@ var n: number = modM.x; >n : number > : ^^^^^^ >modM.x : any +> : ^^^ >modM : typeof modM > : ^^^^^^^^^^^ >x : any @@ -21,6 +22,7 @@ namespace M { export var x; >x : any +> : ^^^ } export = M; diff --git a/tests/baselines/reference/exportAssignmentMergedInterface.errors.txt b/tests/baselines/reference/exportAssignmentMergedInterface.errors.txt new file mode 100644 index 0000000000000..a59a87835dcdd --- /dev/null +++ b/tests/baselines/reference/exportAssignmentMergedInterface.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_1.ts (0 errors) ==== + import foo = require("./foo_0"); + var x: foo; + x("test"); + x(42); + var y: string = x.b; + if(!!x.c){ } + var z = {x: 1, y: 2}; + z = x.d; +==== foo_0.ts (0 errors) ==== + interface Foo { + (a: string): void; + b: string; + } + interface Foo { + (a: number): number; + c: boolean; + d: {x: number; y: number}; + } + export = Foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentOfGenericType1.errors.txt b/tests/baselines/reference/exportAssignmentOfGenericType1.errors.txt new file mode 100644 index 0000000000000..57ef430040935 --- /dev/null +++ b/tests/baselines/reference/exportAssignmentOfGenericType1.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportAssignmentOfGenericType1_1.ts (0 errors) ==== + /// + import q = require("exportAssignmentOfGenericType1_0"); + + class M extends q { } + var m: M; + var r: string = m.foo; + +==== exportAssignmentOfGenericType1_0.ts (0 errors) ==== + export = T; + class T { foo: X; } + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentTopLevelClodule.errors.txt b/tests/baselines/reference/exportAssignmentTopLevelClodule.errors.txt new file mode 100644 index 0000000000000..4871c9caa789a --- /dev/null +++ b/tests/baselines/reference/exportAssignmentTopLevelClodule.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_1.ts (0 errors) ==== + import foo = require("./foo_0"); + if(foo.answer === 42){ + var x = new foo(); + } + +==== foo_0.ts (0 errors) ==== + class Foo { + test = "test"; + } + namespace Foo { + export var answer = 42; + } + export = Foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentTopLevelEnumdule.errors.txt b/tests/baselines/reference/exportAssignmentTopLevelEnumdule.errors.txt new file mode 100644 index 0000000000000..47a3c979cdc64 --- /dev/null +++ b/tests/baselines/reference/exportAssignmentTopLevelEnumdule.errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_1.ts (0 errors) ==== + import foo = require("./foo_0"); + var color: foo; + if(color === foo.green){ + color = foo.answer; + } + +==== foo_0.ts (0 errors) ==== + enum foo { + red, green, blue + } + namespace foo { + export var answer = 42; + } + export = foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentTopLevelFundule.errors.txt b/tests/baselines/reference/exportAssignmentTopLevelFundule.errors.txt new file mode 100644 index 0000000000000..3194b2bcde931 --- /dev/null +++ b/tests/baselines/reference/exportAssignmentTopLevelFundule.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_1.ts (0 errors) ==== + import foo = require("./foo_0"); + if(foo.answer === 42){ + var x = foo(); + } + +==== foo_0.ts (0 errors) ==== + function foo() { + return "test"; + } + namespace foo { + export var answer = 42; + } + export = foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentTopLevelIdentifier.errors.txt b/tests/baselines/reference/exportAssignmentTopLevelIdentifier.errors.txt new file mode 100644 index 0000000000000..e6bee6ac2e5bb --- /dev/null +++ b/tests/baselines/reference/exportAssignmentTopLevelIdentifier.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_1.ts (0 errors) ==== + import foo = require("./foo_0"); + if(foo.answer === 42){ + + } + +==== foo_0.ts (0 errors) ==== + namespace Foo { + export var answer = 42; + } + export = Foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.errors.txt b/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.errors.txt new file mode 100644 index 0000000000000..9059f5e6fa00c --- /dev/null +++ b/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportAssignmentWithImportStatementPrivacyError.ts (0 errors) ==== + namespace m2 { + export interface connectModule { + (res, req, next): void; + } + export interface connectExport { + use: (mod: connectModule) => connectExport; + listen: (port: number) => void; + } + + } + + namespace M { + export var server: { + (): m2.connectExport; + test1: m2.connectModule; + test2(): m2.connectModule; + }; + } + import M22 = M; + + export = M; \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.types b/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.types index b435a095a4ca4..b686a55db029b 100644 --- a/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.types +++ b/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.types @@ -5,8 +5,11 @@ namespace m2 { export interface connectModule { (res, req, next): void; >res : any +> : ^^^ >req : any +> : ^^^ >next : any +> : ^^^ } export interface connectExport { use: (mod: connectModule) => connectExport; diff --git a/tests/baselines/reference/exportAssignmentWithPrivacyError.errors.txt b/tests/baselines/reference/exportAssignmentWithPrivacyError.errors.txt new file mode 100644 index 0000000000000..4687a3ce4e308 --- /dev/null +++ b/tests/baselines/reference/exportAssignmentWithPrivacyError.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportAssignmentWithPrivacyError.ts (0 errors) ==== + interface connectmodule { + (res, req, next): void; + } + interface connectexport { + use: (mod: connectmodule) => connectexport; + listen: (port: number) => void; + } + + var server: { + (): connectexport; + test1: connectmodule; + test2(): connectmodule; + }; + + export = server; + + \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignmentWithPrivacyError.types b/tests/baselines/reference/exportAssignmentWithPrivacyError.types index 2119f68a7ff33..3ec8b1fdf2cf7 100644 --- a/tests/baselines/reference/exportAssignmentWithPrivacyError.types +++ b/tests/baselines/reference/exportAssignmentWithPrivacyError.types @@ -4,8 +4,11 @@ interface connectmodule { (res, req, next): void; >res : any +> : ^^^ >req : any +> : ^^^ >next : any +> : ^^^ } interface connectexport { use: (mod: connectmodule) => connectexport; diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD.errors.txt b/tests/baselines/reference/exportClassNameWithObjectAMD.errors.txt index 465856a9af92f..d1f275d2c57fe 100644 --- a/tests/baselines/reference/exportClassNameWithObjectAMD.errors.txt +++ b/tests/baselines/reference/exportClassNameWithObjectAMD.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportClassNameWithObjectAMD.ts(1,14): error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module AMD. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportClassNameWithObjectAMD.ts (1 errors) ==== export class Object {} ~~~~~~ diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem.errors.txt b/tests/baselines/reference/exportClassNameWithObjectSystem.errors.txt index e7d609e955497..1bdf1d731f8dc 100644 --- a/tests/baselines/reference/exportClassNameWithObjectSystem.errors.txt +++ b/tests/baselines/reference/exportClassNameWithObjectSystem.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportClassNameWithObjectSystem.ts(1,14): error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module System. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportClassNameWithObjectSystem.ts (1 errors) ==== export class Object {} ~~~~~~ diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD.errors.txt b/tests/baselines/reference/exportClassNameWithObjectUMD.errors.txt index eaf05918ac298..be409a0a7c40d 100644 --- a/tests/baselines/reference/exportClassNameWithObjectUMD.errors.txt +++ b/tests/baselines/reference/exportClassNameWithObjectUMD.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportClassNameWithObjectUMD.ts(1,14): error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module UMD. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportClassNameWithObjectUMD.ts (1 errors) ==== export class Object {} ~~~~~~ diff --git a/tests/baselines/reference/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=system).errors.txt b/tests/baselines/reference/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=system).errors.txt new file mode 100644 index 0000000000000..6adc1bffd0dce --- /dev/null +++ b/tests/baselines/reference/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=system).errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportDeclarationForModuleOrEnumWithMemberOfSameName.ts (0 errors) ==== + // https://github.com/microsoft/TypeScript/issues/55038 + + namespace A { + export const A = 0; + } + + export { A } + + enum B { + B + } + + export { B } + \ No newline at end of file diff --git a/tests/baselines/reference/exportDeclareClass1.errors.txt b/tests/baselines/reference/exportDeclareClass1.errors.txt index d175c12c003d0..979518dae9778 100644 --- a/tests/baselines/reference/exportDeclareClass1.errors.txt +++ b/tests/baselines/reference/exportDeclareClass1.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportDeclareClass1.ts (2 errors) ==== export declare class eaC { static tF() { }; diff --git a/tests/baselines/reference/exportDefaultAsyncFunction2.errors.txt b/tests/baselines/reference/exportDefaultAsyncFunction2.errors.txt index 1493eabe3f369..0a8853c29ea2a 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.errors.txt +++ b/tests/baselines/reference/exportDefaultAsyncFunction2.errors.txt @@ -1,8 +1,12 @@ 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) ==== @@ -11,32 +15,40 @@ e.ts(1,17): error TS1262: Identifier expected. 'await' is a reserved word at the ~~~~~ !!! 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 diff --git a/tests/baselines/reference/exportDefaultAsyncFunction2.types b/tests/baselines/reference/exportDefaultAsyncFunction2.types index e99b663eddc9c..8abb5526e1775 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.types +++ b/tests/baselines/reference/exportDefaultAsyncFunction2.types @@ -15,22 +15,22 @@ export function await(...args: any[]): any { } === 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>; } @@ -51,38 +51,38 @@ export default async () => { return 0; }; === 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 diff --git a/tests/baselines/reference/exportEmptyArrayBindingPattern(module=amd,target=es5).errors.txt b/tests/baselines/reference/exportEmptyArrayBindingPattern(module=amd,target=es5).errors.txt new file mode 100644 index 0000000000000..8d8f3cb86598a --- /dev/null +++ b/tests/baselines/reference/exportEmptyArrayBindingPattern(module=amd,target=es5).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEmptyArrayBindingPattern.ts (0 errors) ==== + export const [] = []; \ No newline at end of file diff --git a/tests/baselines/reference/exportEmptyArrayBindingPattern(module=amd,target=esnext).errors.txt b/tests/baselines/reference/exportEmptyArrayBindingPattern(module=amd,target=esnext).errors.txt new file mode 100644 index 0000000000000..8d8f3cb86598a --- /dev/null +++ b/tests/baselines/reference/exportEmptyArrayBindingPattern(module=amd,target=esnext).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEmptyArrayBindingPattern.ts (0 errors) ==== + export const [] = []; \ No newline at end of file diff --git a/tests/baselines/reference/exportEmptyArrayBindingPattern(module=system,target=es5).errors.txt b/tests/baselines/reference/exportEmptyArrayBindingPattern(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..94c89d6851f79 --- /dev/null +++ b/tests/baselines/reference/exportEmptyArrayBindingPattern(module=system,target=es5).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEmptyArrayBindingPattern.ts (0 errors) ==== + export const [] = []; \ No newline at end of file diff --git a/tests/baselines/reference/exportEmptyArrayBindingPattern(module=system,target=esnext).errors.txt b/tests/baselines/reference/exportEmptyArrayBindingPattern(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..94c89d6851f79 --- /dev/null +++ b/tests/baselines/reference/exportEmptyArrayBindingPattern(module=system,target=esnext).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEmptyArrayBindingPattern.ts (0 errors) ==== + export const [] = []; \ No newline at end of file diff --git a/tests/baselines/reference/exportEmptyObjectBindingPattern(module=amd,target=es5).errors.txt b/tests/baselines/reference/exportEmptyObjectBindingPattern(module=amd,target=es5).errors.txt new file mode 100644 index 0000000000000..e4c070bf9a248 --- /dev/null +++ b/tests/baselines/reference/exportEmptyObjectBindingPattern(module=amd,target=es5).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEmptyObjectBindingPattern.ts (0 errors) ==== + export const {} = {}; \ No newline at end of file diff --git a/tests/baselines/reference/exportEmptyObjectBindingPattern(module=amd,target=esnext).errors.txt b/tests/baselines/reference/exportEmptyObjectBindingPattern(module=amd,target=esnext).errors.txt new file mode 100644 index 0000000000000..e4c070bf9a248 --- /dev/null +++ b/tests/baselines/reference/exportEmptyObjectBindingPattern(module=amd,target=esnext).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEmptyObjectBindingPattern.ts (0 errors) ==== + export const {} = {}; \ No newline at end of file diff --git a/tests/baselines/reference/exportEmptyObjectBindingPattern(module=system,target=es5).errors.txt b/tests/baselines/reference/exportEmptyObjectBindingPattern(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..5b1950bd36383 --- /dev/null +++ b/tests/baselines/reference/exportEmptyObjectBindingPattern(module=system,target=es5).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEmptyObjectBindingPattern.ts (0 errors) ==== + export const {} = {}; \ No newline at end of file diff --git a/tests/baselines/reference/exportEmptyObjectBindingPattern(module=system,target=esnext).errors.txt b/tests/baselines/reference/exportEmptyObjectBindingPattern(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..5b1950bd36383 --- /dev/null +++ b/tests/baselines/reference/exportEmptyObjectBindingPattern(module=system,target=esnext).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEmptyObjectBindingPattern.ts (0 errors) ==== + export const {} = {}; \ No newline at end of file diff --git a/tests/baselines/reference/exportEqualCallable.errors.txt b/tests/baselines/reference/exportEqualCallable.errors.txt new file mode 100644 index 0000000000000..7475b379fa220 --- /dev/null +++ b/tests/baselines/reference/exportEqualCallable.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEqualCallable_1.ts (0 errors) ==== + /// + import connect = require('exportEqualCallable_0'); + connect(); + +==== exportEqualCallable_0.ts (0 errors) ==== + var server: { + (): any; + }; + export = server; + \ No newline at end of file diff --git a/tests/baselines/reference/exportEqualCallable.types b/tests/baselines/reference/exportEqualCallable.types index 5b8019a84ef5c..32737681c30b4 100644 --- a/tests/baselines/reference/exportEqualCallable.types +++ b/tests/baselines/reference/exportEqualCallable.types @@ -8,6 +8,7 @@ import connect = require('exportEqualCallable_0'); connect(); >connect() : any +> : ^^^ >connect : () => any > : ^^^^^^ diff --git a/tests/baselines/reference/exportEqualErrorType.errors.txt b/tests/baselines/reference/exportEqualErrorType.errors.txt index 353d337102237..cb859d38c3d4a 100644 --- a/tests/baselines/reference/exportEqualErrorType.errors.txt +++ b/tests/baselines/reference/exportEqualErrorType.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportEqualErrorType_1.ts(3,23): error TS2339: Property 'static' does not exist on type '{ (): connectExport; foo: Date; }'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportEqualErrorType_1.ts (1 errors) ==== /// import connect = require('exportEqualErrorType_0'); diff --git a/tests/baselines/reference/exportEqualNamespaces.errors.txt b/tests/baselines/reference/exportEqualNamespaces.errors.txt new file mode 100644 index 0000000000000..ca17006547792 --- /dev/null +++ b/tests/baselines/reference/exportEqualNamespaces.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEqualNamespaces.ts (0 errors) ==== + declare namespace server { + interface Server extends Object { } + } + + interface server { + (): server.Server; + startTime: Date; + } + + var x = 5; + var server = new Date(); + export = server; + \ No newline at end of file diff --git a/tests/baselines/reference/exportEqualsAmd.errors.txt b/tests/baselines/reference/exportEqualsAmd.errors.txt new file mode 100644 index 0000000000000..109ada07a0b38 --- /dev/null +++ b/tests/baselines/reference/exportEqualsAmd.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEqualsAmd.ts (0 errors) ==== + export = { ["hi"]: "there" }; \ No newline at end of file diff --git a/tests/baselines/reference/exportEqualsUmd.errors.txt b/tests/baselines/reference/exportEqualsUmd.errors.txt new file mode 100644 index 0000000000000..b0deffd6c65f7 --- /dev/null +++ b/tests/baselines/reference/exportEqualsUmd.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportEqualsUmd.ts (0 errors) ==== + export = { ["hi"]: "there" }; \ No newline at end of file diff --git a/tests/baselines/reference/exportImport.errors.txt b/tests/baselines/reference/exportImport.errors.txt new file mode 100644 index 0000000000000..b48d4b1a5ddb8 --- /dev/null +++ b/tests/baselines/reference/exportImport.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== consumer.ts (0 errors) ==== + import e = require('./exporter'); + + export function w(): e.w { // Should be OK + return new e.w(); + } +==== w1.ts (0 errors) ==== + export = Widget1 + class Widget1 { name = 'one'; } + +==== exporter.ts (0 errors) ==== + export import w = require('./w1'); + \ No newline at end of file diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.errors.txt b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.errors.txt new file mode 100644 index 0000000000000..08a44fab214f6 --- /dev/null +++ b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.errors.txt @@ -0,0 +1,63 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportImportCanSubstituteConstEnumForValue.ts (0 errors) ==== + namespace MsPortalFx.ViewModels.Dialogs { + + export const enum DialogResult { + Abort, + Cancel, + Ignore, + No, + Ok, + Retry, + Yes, + } + + export interface DialogResultCallback { + (result: MsPortalFx.ViewModels.Dialogs.DialogResult): void; + } + + export function someExportedFunction() { + } + + export const enum MessageBoxButtons { + AbortRetryIgnore, + OK, + OKCancel, + RetryCancel, + YesNo, + YesNoCancel, + } + } + + + namespace MsPortalFx.ViewModels { + + /** + * For some reason javascript code is emitted for this re-exported const enum. + */ + export import ReExportedEnum = Dialogs.DialogResult; + + /** + * Not exported to show difference. No javascript is emmitted (as expected) + */ + import DialogButtons = Dialogs.MessageBoxButtons; + + /** + * Re-exporting a function type to show difference. No javascript is emmitted (as expected) + */ + export import Callback = Dialogs.DialogResultCallback; + + export class SomeUsagesOfTheseConsts { + constructor() { + // these do get replaced by the const value + const value1 = ReExportedEnum.Cancel; + console.log(value1); + const value2 = DialogButtons.OKCancel; + console.log(value2); + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/exportImportMultipleFiles.errors.txt b/tests/baselines/reference/exportImportMultipleFiles.errors.txt new file mode 100644 index 0000000000000..a9e71232f82a7 --- /dev/null +++ b/tests/baselines/reference/exportImportMultipleFiles.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportImportMultipleFiles_userCode.ts (0 errors) ==== + import lib = require('./exportImportMultipleFiles_library'); + lib.math.add(3, 4); // Shouldnt be error + +==== exportImportMultipleFiles_math.ts (0 errors) ==== + export function add(a, b) { return a + b; } + +==== exportImportMultipleFiles_library.ts (0 errors) ==== + export import math = require("exportImportMultipleFiles_math"); + math.add(3, 4); // OK + \ No newline at end of file diff --git a/tests/baselines/reference/exportImportMultipleFiles.types b/tests/baselines/reference/exportImportMultipleFiles.types index a48cac713405b..0dc9157861f77 100644 --- a/tests/baselines/reference/exportImportMultipleFiles.types +++ b/tests/baselines/reference/exportImportMultipleFiles.types @@ -7,6 +7,7 @@ import lib = require('./exportImportMultipleFiles_library'); lib.math.add(3, 4); // Shouldnt be error >lib.math.add(3, 4) : any +> : ^^^ >lib.math.add : (a: any, b: any) => any > : ^ ^^^^^^^ ^^^^^^^^^^^^^ >lib.math : typeof lib.math @@ -27,10 +28,15 @@ export function add(a, b) { return a + b; } >add : (a: any, b: any) => any > : ^ ^^^^^^^ ^^^^^^^^^^^^^ >a : any +> : ^^^ >b : any +> : ^^^ >a + b : any +> : ^^^ >a : any +> : ^^^ >b : any +> : ^^^ === exportImportMultipleFiles_library.ts === export import math = require("exportImportMultipleFiles_math"); @@ -39,6 +45,7 @@ export import math = require("exportImportMultipleFiles_math"); math.add(3, 4); // OK >math.add(3, 4) : any +> : ^^^ >math.add : (a: any, b: any) => any > : ^ ^^^^^^^ ^^^^^^^^^^^^^ >math : typeof math diff --git a/tests/baselines/reference/exportImportNonInstantiatedModule2.errors.txt b/tests/baselines/reference/exportImportNonInstantiatedModule2.errors.txt new file mode 100644 index 0000000000000..87b37a469c97e --- /dev/null +++ b/tests/baselines/reference/exportImportNonInstantiatedModule2.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== consumer.ts (0 errors) ==== + import e = require('./exporter'); + + export function w(): e.w { // Should be OK + return {name: 'value' }; + } +==== w1.ts (0 errors) ==== + export = Widget1 + interface Widget1 { name: string; } + +==== exporter.ts (0 errors) ==== + export import w = require('./w1'); + \ No newline at end of file diff --git a/tests/baselines/reference/exportNonInitializedVariablesAMD.errors.txt b/tests/baselines/reference/exportNonInitializedVariablesAMD.errors.txt index 520ff7afd5b52..664639988cfeb 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesAMD.errors.txt +++ b/tests/baselines/reference/exportNonInitializedVariablesAMD.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportNonInitializedVariablesAMD.ts(1,4): error TS1123: Variable declaration list cannot be empty. exportNonInitializedVariablesAMD.ts(2,1): error TS1214: Identifier expected. 'let' is a reserved word in strict mode. Modules are automatically in strict mode. exportNonInitializedVariablesAMD.ts(2,1): error TS2304: Cannot find name 'let'. exportNonInitializedVariablesAMD.ts(3,6): error TS1123: Variable declaration list cannot be empty. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportNonInitializedVariablesAMD.ts (4 errors) ==== var; diff --git a/tests/baselines/reference/exportNonInitializedVariablesInIfThenStatementNoCrash1(module=system).errors.txt b/tests/baselines/reference/exportNonInitializedVariablesInIfThenStatementNoCrash1(module=system).errors.txt index dd7b763f5af3b..b95c5b458b001 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesInIfThenStatementNoCrash1(module=system).errors.txt +++ b/tests/baselines/reference/exportNonInitializedVariablesInIfThenStatementNoCrash1(module=system).errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportNonInitializedVariablesInIfThenStatementNoCrash1.ts(4,1): error TS1184: Modifiers cannot appear here. exportNonInitializedVariablesInIfThenStatementNoCrash1.ts(4,14): error TS1155: 'const' declarations must be initialized. exportNonInitializedVariablesInIfThenStatementNoCrash1.ts(4,26): error TS2304: Cannot find name 'CssExports'. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportNonInitializedVariablesInIfThenStatementNoCrash1.ts (3 errors) ==== // https://github.com/microsoft/TypeScript/issues/59373 diff --git a/tests/baselines/reference/exportNonInitializedVariablesSystem.errors.txt b/tests/baselines/reference/exportNonInitializedVariablesSystem.errors.txt index 76b499d5a09e3..ee1371e651cff 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesSystem.errors.txt +++ b/tests/baselines/reference/exportNonInitializedVariablesSystem.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportNonInitializedVariablesSystem.ts(1,4): error TS1123: Variable declaration list cannot be empty. exportNonInitializedVariablesSystem.ts(2,1): error TS1214: Identifier expected. 'let' is a reserved word in strict mode. Modules are automatically in strict mode. exportNonInitializedVariablesSystem.ts(2,1): error TS2304: Cannot find name 'let'. exportNonInitializedVariablesSystem.ts(3,6): error TS1123: Variable declaration list cannot be empty. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportNonInitializedVariablesSystem.ts (4 errors) ==== var; diff --git a/tests/baselines/reference/exportNonInitializedVariablesUMD.errors.txt b/tests/baselines/reference/exportNonInitializedVariablesUMD.errors.txt index dfb9b25e27521..34d3e8a5268a8 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesUMD.errors.txt +++ b/tests/baselines/reference/exportNonInitializedVariablesUMD.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportNonInitializedVariablesUMD.ts(1,4): error TS1123: Variable declaration list cannot be empty. exportNonInitializedVariablesUMD.ts(2,1): error TS1214: Identifier expected. 'let' is a reserved word in strict mode. Modules are automatically in strict mode. exportNonInitializedVariablesUMD.ts(2,1): error TS2304: Cannot find name 'let'. exportNonInitializedVariablesUMD.ts(3,6): error TS1123: Variable declaration list cannot be empty. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportNonInitializedVariablesUMD.ts (4 errors) ==== var; diff --git a/tests/baselines/reference/exportObjectRest(module=amd,target=es5).errors.txt b/tests/baselines/reference/exportObjectRest(module=amd,target=es5).errors.txt new file mode 100644 index 0000000000000..0784723ac4eba --- /dev/null +++ b/tests/baselines/reference/exportObjectRest(module=amd,target=es5).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportObjectRest.ts (0 errors) ==== + export const { x, ...rest } = { x: 'x', y: 'y' }; \ No newline at end of file diff --git a/tests/baselines/reference/exportObjectRest(module=amd,target=esnext).errors.txt b/tests/baselines/reference/exportObjectRest(module=amd,target=esnext).errors.txt new file mode 100644 index 0000000000000..0784723ac4eba --- /dev/null +++ b/tests/baselines/reference/exportObjectRest(module=amd,target=esnext).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportObjectRest.ts (0 errors) ==== + export const { x, ...rest } = { x: 'x', y: 'y' }; \ No newline at end of file diff --git a/tests/baselines/reference/exportObjectRest(module=system,target=es5).errors.txt b/tests/baselines/reference/exportObjectRest(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..853c7607d5bd4 --- /dev/null +++ b/tests/baselines/reference/exportObjectRest(module=system,target=es5).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportObjectRest.ts (0 errors) ==== + export const { x, ...rest } = { x: 'x', y: 'y' }; \ No newline at end of file diff --git a/tests/baselines/reference/exportObjectRest(module=system,target=esnext).errors.txt b/tests/baselines/reference/exportObjectRest(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..853c7607d5bd4 --- /dev/null +++ b/tests/baselines/reference/exportObjectRest(module=system,target=esnext).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportObjectRest.ts (0 errors) ==== + export const { x, ...rest } = { x: 'x', y: 'y' }; \ No newline at end of file diff --git a/tests/baselines/reference/exportSameNameFuncVar.errors.txt b/tests/baselines/reference/exportSameNameFuncVar.errors.txt index d81f9c5566b4e..81e96c2551652 100644 --- a/tests/baselines/reference/exportSameNameFuncVar.errors.txt +++ b/tests/baselines/reference/exportSameNameFuncVar.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportSameNameFuncVar.ts(1,12): error TS2300: Duplicate identifier 'a'. exportSameNameFuncVar.ts(2,17): error TS2300: Duplicate identifier 'a'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportSameNameFuncVar.ts (2 errors) ==== export var a = 10; ~ diff --git a/tests/baselines/reference/exportStar-amd.errors.txt b/tests/baselines/reference/exportStar-amd.errors.txt index 4402aed8a528c..8748c15b93066 100644 --- a/tests/baselines/reference/exportStar-amd.errors.txt +++ b/tests/baselines/reference/exportStar-amd.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,8): error TS1192: Module '"t4"' has no default export. t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== t1.ts (0 errors) ==== export var x = 1; export var y = 2; diff --git a/tests/baselines/reference/exportStarForValues.errors.txt b/tests/baselines/reference/exportStarForValues.errors.txt new file mode 100644 index 0000000000000..b4d58eee90433 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export * from "file1" + var x; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues.types b/tests/baselines/reference/exportStarForValues.types index aa9264c0320ef..871cd5b0f56e1 100644 --- a/tests/baselines/reference/exportStarForValues.types +++ b/tests/baselines/reference/exportStarForValues.types @@ -3,9 +3,11 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export * from "file1" var x; >x : any +> : ^^^ diff --git a/tests/baselines/reference/exportStarForValues10.errors.txt b/tests/baselines/reference/exportStarForValues10.errors.txt new file mode 100644 index 0000000000000..3142d441005e9 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues10.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file0.ts (0 errors) ==== + export var v = 1; + +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export * from "file0"; + export * from "file1"; + var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues10.types b/tests/baselines/reference/exportStarForValues10.types index 802ef0b3fa4de..6247012e71de2 100644 --- a/tests/baselines/reference/exportStarForValues10.types +++ b/tests/baselines/reference/exportStarForValues10.types @@ -10,6 +10,7 @@ export var v = 1; === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export * from "file0"; diff --git a/tests/baselines/reference/exportStarForValues2.errors.txt b/tests/baselines/reference/exportStarForValues2.errors.txt new file mode 100644 index 0000000000000..5680653d5a3fb --- /dev/null +++ b/tests/baselines/reference/exportStarForValues2.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export * from "file1" + var x = 1; + +==== file3.ts (0 errors) ==== + export * from "file2" + var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues2.types b/tests/baselines/reference/exportStarForValues2.types index a29af65fda472..fc56e15a695df 100644 --- a/tests/baselines/reference/exportStarForValues2.types +++ b/tests/baselines/reference/exportStarForValues2.types @@ -3,6 +3,7 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export * from "file1" diff --git a/tests/baselines/reference/exportStarForValues3.errors.txt b/tests/baselines/reference/exportStarForValues3.errors.txt new file mode 100644 index 0000000000000..0640eb34d952a --- /dev/null +++ b/tests/baselines/reference/exportStarForValues3.errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export interface A { x } + export * from "file1" + var x = 1; + +==== file3.ts (0 errors) ==== + export interface B { x } + export * from "file1" + var x = 1; + +==== file4.ts (0 errors) ==== + export interface C { x } + export * from "file2" + export * from "file3" + var x = 1; + +==== file5.ts (0 errors) ==== + export * from "file4" + var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues3.types b/tests/baselines/reference/exportStarForValues3.types index 5462a43e429be..a148ed78e8bb0 100644 --- a/tests/baselines/reference/exportStarForValues3.types +++ b/tests/baselines/reference/exportStarForValues3.types @@ -3,10 +3,12 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export interface A { x } >x : any +> : ^^^ export * from "file1" var x = 1; @@ -18,6 +20,7 @@ var x = 1; === file3.ts === export interface B { x } >x : any +> : ^^^ export * from "file1" var x = 1; @@ -29,6 +32,7 @@ var x = 1; === file4.ts === export interface C { x } >x : any +> : ^^^ export * from "file2" export * from "file3" diff --git a/tests/baselines/reference/exportStarForValues4.errors.txt b/tests/baselines/reference/exportStarForValues4.errors.txt new file mode 100644 index 0000000000000..fd09144bdd859 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues4.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export interface A { x } + export * from "file1" + export * from "file3" + var x = 1; + +==== file3.ts (0 errors) ==== + export interface B { x } + export * from "file2" + var x = 1; + \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues4.types b/tests/baselines/reference/exportStarForValues4.types index a2fb7cee6f67f..3d6fb0b98bd78 100644 --- a/tests/baselines/reference/exportStarForValues4.types +++ b/tests/baselines/reference/exportStarForValues4.types @@ -3,10 +3,12 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export interface A { x } >x : any +> : ^^^ export * from "file1" export * from "file3" @@ -19,6 +21,7 @@ var x = 1; === file3.ts === export interface B { x } >x : any +> : ^^^ export * from "file2" var x = 1; diff --git a/tests/baselines/reference/exportStarForValues5.errors.txt b/tests/baselines/reference/exportStarForValues5.errors.txt new file mode 100644 index 0000000000000..04e9a2de78350 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues5.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export * from "file1" + export var x; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues5.types b/tests/baselines/reference/exportStarForValues5.types index bbb495b7d300c..a4c35c407a189 100644 --- a/tests/baselines/reference/exportStarForValues5.types +++ b/tests/baselines/reference/exportStarForValues5.types @@ -3,9 +3,11 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export * from "file1" export var x; >x : any +> : ^^^ diff --git a/tests/baselines/reference/exportStarForValues6.errors.txt b/tests/baselines/reference/exportStarForValues6.errors.txt new file mode 100644 index 0000000000000..61aeeb4d979fb --- /dev/null +++ b/tests/baselines/reference/exportStarForValues6.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export * from "file1" + export var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues6.types b/tests/baselines/reference/exportStarForValues6.types index 52c9f8b191aa2..e1cbed0fcea6e 100644 --- a/tests/baselines/reference/exportStarForValues6.types +++ b/tests/baselines/reference/exportStarForValues6.types @@ -3,6 +3,7 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export * from "file1" diff --git a/tests/baselines/reference/exportStarForValues7.errors.txt b/tests/baselines/reference/exportStarForValues7.errors.txt new file mode 100644 index 0000000000000..7f3335da1330a --- /dev/null +++ b/tests/baselines/reference/exportStarForValues7.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export * from "file1" + export var x = 1; + +==== file3.ts (0 errors) ==== + export * from "file2" + export var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues7.types b/tests/baselines/reference/exportStarForValues7.types index feb0e4b106698..922de7ca91316 100644 --- a/tests/baselines/reference/exportStarForValues7.types +++ b/tests/baselines/reference/exportStarForValues7.types @@ -3,6 +3,7 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export * from "file1" diff --git a/tests/baselines/reference/exportStarForValues8.errors.txt b/tests/baselines/reference/exportStarForValues8.errors.txt new file mode 100644 index 0000000000000..b497d6a214095 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues8.errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export interface A { x } + export * from "file1" + export var x = 1; + +==== file3.ts (0 errors) ==== + export interface B { x } + export * from "file1" + export var x = 1; + +==== file4.ts (0 errors) ==== + export interface C { x } + export * from "file2" + export * from "file3" + export var x = 1; + +==== file5.ts (0 errors) ==== + export * from "file4" + export var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues8.types b/tests/baselines/reference/exportStarForValues8.types index 9a9b611509790..1db59be84051b 100644 --- a/tests/baselines/reference/exportStarForValues8.types +++ b/tests/baselines/reference/exportStarForValues8.types @@ -3,10 +3,12 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export interface A { x } >x : any +> : ^^^ export * from "file1" export var x = 1; @@ -18,6 +20,7 @@ export var x = 1; === file3.ts === export interface B { x } >x : any +> : ^^^ export * from "file1" export var x = 1; @@ -29,6 +32,7 @@ export var x = 1; === file4.ts === export interface C { x } >x : any +> : ^^^ export * from "file2" export * from "file3" diff --git a/tests/baselines/reference/exportStarForValues9.errors.txt b/tests/baselines/reference/exportStarForValues9.errors.txt new file mode 100644 index 0000000000000..aaf8f74716874 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues9.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export interface A { x } + export * from "file1" + export * from "file3" + export var x = 1; + +==== file3.ts (0 errors) ==== + export interface B { x } + export * from "file2" + export var x = 1; + \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValues9.types b/tests/baselines/reference/exportStarForValues9.types index 470cd248d08b2..ddc9317942a05 100644 --- a/tests/baselines/reference/exportStarForValues9.types +++ b/tests/baselines/reference/exportStarForValues9.types @@ -3,10 +3,12 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export interface A { x } >x : any +> : ^^^ export * from "file1" export * from "file3" @@ -19,6 +21,7 @@ export var x = 1; === file3.ts === export interface B { x } >x : any +> : ^^^ export * from "file2" export var x = 1; diff --git a/tests/baselines/reference/exportStarForValuesInSystem.errors.txt b/tests/baselines/reference/exportStarForValuesInSystem.errors.txt new file mode 100644 index 0000000000000..3f7dfcd355d4f --- /dev/null +++ b/tests/baselines/reference/exportStarForValuesInSystem.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export interface Foo { x } + +==== file2.ts (0 errors) ==== + export * from "file1" + var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/exportStarForValuesInSystem.types b/tests/baselines/reference/exportStarForValuesInSystem.types index 104f06d759b66..f33c43ad73c9c 100644 --- a/tests/baselines/reference/exportStarForValuesInSystem.types +++ b/tests/baselines/reference/exportStarForValuesInSystem.types @@ -3,6 +3,7 @@ === file1.ts === export interface Foo { x } >x : any +> : ^^^ === file2.ts === export * from "file1" diff --git a/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt b/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt index d6069e99b6875..a992bbd8a240e 100644 --- a/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt +++ b/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. @@ -8,6 +9,7 @@ exportedBlockScopedDeclarations.ts(13,14): error TS2448: Block-scoped variable ' exportedBlockScopedDeclarations.ts(16,21): error TS2448: Block-scoped variable 'bar1' used before its declaration. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportedBlockScopedDeclarations.ts (8 errors) ==== const foo = foo; // compile error ~~~ diff --git a/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.errors.txt b/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.errors.txt new file mode 100644 index 0000000000000..fcc06f0751d10 --- /dev/null +++ b/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportedInterfaceInaccessibleInCallbackInModule.ts (0 errors) ==== + export interface ProgressCallback { + (progress:any):any; + } + + // --- Generic promise + export declare class TPromise { + + constructor(init:(complete: (value:V)=>void, error:(err:any)=>void, progress:ProgressCallback)=>void, oncancel?: any); + + // removing this method fixes the error squiggle..... + public then(success?: (value:V)=>TPromise, error?: (err:any)=>TPromise, progress?:ProgressCallback): TPromise; + } \ No newline at end of file diff --git a/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types b/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types index 935afdee8bc0c..0900ab173c2cb 100644 --- a/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types +++ b/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types @@ -4,6 +4,7 @@ export interface ProgressCallback { (progress:any):any; >progress : any +> : ^^^ } // --- Generic promise @@ -21,9 +22,11 @@ export declare class TPromise { >error : (err: any) => void > : ^ ^^ ^^^^^ >err : any +> : ^^^ >progress : ProgressCallback > : ^^^^^^^^^^^^^^^^ >oncancel : any +> : ^^^ // removing this method fixes the error squiggle..... public then(success?: (value:V)=>TPromise, error?: (err:any)=>TPromise, progress?:ProgressCallback): TPromise; @@ -36,6 +39,7 @@ export declare class TPromise { >error : (err: any) => TPromise > : ^ ^^ ^^^^^ >err : any +> : ^^^ >progress : ProgressCallback > : ^^^^^^^^^^^^^^^^ } diff --git a/tests/baselines/reference/exportedVariable1.errors.txt b/tests/baselines/reference/exportedVariable1.errors.txt new file mode 100644 index 0000000000000..fb6b7a2743519 --- /dev/null +++ b/tests/baselines/reference/exportedVariable1.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportedVariable1.ts (0 errors) ==== + export var foo = {name: "Bill"}; + var upper = foo.name.toUpperCase(); + \ No newline at end of file diff --git a/tests/baselines/reference/exportingContainingVisibleType.errors.txt b/tests/baselines/reference/exportingContainingVisibleType.errors.txt new file mode 100644 index 0000000000000..6356281c9e6b6 --- /dev/null +++ b/tests/baselines/reference/exportingContainingVisibleType.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportingContainingVisibleType.ts (0 errors) ==== + class Foo { + public get foo() { + var i: Foo; + return i; // Should be fine (previous bug report visibility error). + + } + } + + export var x = 5; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImports1-amd.errors.txt b/tests/baselines/reference/exportsAndImports1-amd.errors.txt new file mode 100644 index 0000000000000..0e8bd2772b0ce --- /dev/null +++ b/tests/baselines/reference/exportsAndImports1-amd.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t1.ts (0 errors) ==== + var v = 1; + function f() { } + class C { + } + interface I { + } + enum E { + A, B, C + } + const enum D { + A, B, C + } + namespace M { + export var x; + } + namespace N { + export interface I { + } + } + type T = number; + import a = M.x; + + export { v, f, C, I, E, D, M, N, T, a }; + +==== t2.ts (0 errors) ==== + export { v, f, C, I, E, D, M, N, T, a } from "./t1"; + +==== t3.ts (0 errors) ==== + import { v, f, C, I, E, D, M, N, T, a } from "./t1"; + export { v, f, C, I, E, D, M, N, T, a }; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImports1-amd.types b/tests/baselines/reference/exportsAndImports1-amd.types index 9039c856cffd0..39fb5dd6daa39 100644 --- a/tests/baselines/reference/exportsAndImports1-amd.types +++ b/tests/baselines/reference/exportsAndImports1-amd.types @@ -47,6 +47,7 @@ namespace M { export var x; >x : any +> : ^^^ } namespace N { export interface I { diff --git a/tests/baselines/reference/exportsAndImports2-amd.errors.txt b/tests/baselines/reference/exportsAndImports2-amd.errors.txt new file mode 100644 index 0000000000000..63063504aa904 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports2-amd.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t1.ts (0 errors) ==== + export var x = "x"; + export var y = "y"; + +==== t2.ts (0 errors) ==== + export { x as y, y as x } from "./t1"; + +==== t3.ts (0 errors) ==== + import { x, y } from "./t1"; + export { x as y, y as x }; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImports3-amd.errors.txt b/tests/baselines/reference/exportsAndImports3-amd.errors.txt new file mode 100644 index 0000000000000..524d3ac67f62d --- /dev/null +++ b/tests/baselines/reference/exportsAndImports3-amd.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t1.ts (0 errors) ==== + export var v = 1; + export function f() { } + export class C { + } + export interface I { + } + export enum E { + A, B, C + } + export const enum D { + A, B, C + } + export namespace M { + export var x; + } + export namespace N { + export interface I { + } + } + export type T = number; + export import a = M.x; + + export { v as v1, f as f1, C as C1, I as I1, E as E1, D as D1, M as M1, N as N1, T as T1, a as a1 }; + +==== t2.ts (0 errors) ==== + export { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; + +==== t3.ts (0 errors) ==== + import { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; + export { v, f, C, I, E, D, M, N, T, a }; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImports3-amd.types b/tests/baselines/reference/exportsAndImports3-amd.types index 4616001d45901..2e58b968f8509 100644 --- a/tests/baselines/reference/exportsAndImports3-amd.types +++ b/tests/baselines/reference/exportsAndImports3-amd.types @@ -47,6 +47,7 @@ export namespace M { export var x; >x : any +> : ^^^ } export namespace N { export interface I { diff --git a/tests/baselines/reference/exportsAndImports4-amd.errors.txt b/tests/baselines/reference/exportsAndImports4-amd.errors.txt new file mode 100644 index 0000000000000..9551ab300f3e3 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports4-amd.errors.txt @@ -0,0 +1,41 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t3.ts (0 errors) ==== + import a = require("./t1"); + a.default; + import b from "./t1"; + b; + import * as c from "./t1"; + c.default; + import { default as d } from "./t1"; + d; + import e1, * as e2 from "./t1"; + e1; + e2.default; + import f1, { default as f2 } from "./t1"; + f1; + f2; + export { a, b, c, d, e1, e2, f1, f2 }; + +==== t1.ts (0 errors) ==== + export default "hello"; + +==== t2.ts (0 errors) ==== + import a = require("./t1"); + a.default; + import b from "./t1"; + b; + import * as c from "./t1"; + c.default; + import { default as d } from "./t1"; + d; + import e1, * as e2 from "./t1"; + e1; + e2.default; + import f1, { default as f2 } from "./t1"; + f1; + f2; + import "./t1"; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsInAmbientModules1.errors.txt b/tests/baselines/reference/exportsInAmbientModules1.errors.txt new file mode 100644 index 0000000000000..51aeb42533ebe --- /dev/null +++ b/tests/baselines/reference/exportsInAmbientModules1.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== external.d.ts (0 errors) ==== + export var x: number + +==== main.ts (0 errors) ==== + declare module "M" { + export {x} from "external" + } \ No newline at end of file diff --git a/tests/baselines/reference/exportsInAmbientModules2.errors.txt b/tests/baselines/reference/exportsInAmbientModules2.errors.txt new file mode 100644 index 0000000000000..2e7d3fd651591 --- /dev/null +++ b/tests/baselines/reference/exportsInAmbientModules2.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== external.d.ts (0 errors) ==== + export default class C {} + +==== main.ts (0 errors) ==== + declare module "M" { + export * from "external" + } \ No newline at end of file diff --git a/tests/baselines/reference/externalModuleAssignToVar.errors.txt b/tests/baselines/reference/externalModuleAssignToVar.errors.txt new file mode 100644 index 0000000000000..bf716b236578c --- /dev/null +++ b/tests/baselines/reference/externalModuleAssignToVar.errors.txt @@ -0,0 +1,29 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== externalModuleAssignToVar_core.ts (0 errors) ==== + /// + import ext = require('externalModuleAssignToVar_core_require'); + var y1: { C: new() => ext.C; } = ext; + y1 = ext; // ok + + import ext2 = require('externalModuleAssignToVar_core_require2'); + var y2: new() => ext2 = ext2; + y2 = ext2; // ok + + import ext3 = require('externalModuleAssignToVar_ext'); + var y3: new () => ext3 = ext3; + y3 = ext3; // ok + +==== externalModuleAssignToVar_ext.ts (0 errors) ==== + class D { foo: string; } + export = D; + +==== externalModuleAssignToVar_core_require.ts (0 errors) ==== + export class C { bar: string; } + +==== externalModuleAssignToVar_core_require2.ts (0 errors) ==== + class C { baz: string; } + export = C; + \ No newline at end of file diff --git a/tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.errors.txt b/tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.errors.txt new file mode 100644 index 0000000000000..3a0d449b2a0cf --- /dev/null +++ b/tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== externalModuleReferenceOfImportDeclarationWithExportModifier_1.ts (0 errors) ==== + export import file1 = require('externalModuleReferenceOfImportDeclarationWithExportModifier_0'); + file1.foo(); + +==== externalModuleReferenceOfImportDeclarationWithExportModifier_0.ts (0 errors) ==== + export function foo() { }; + \ No newline at end of file diff --git a/tests/baselines/reference/fieldAndGetterWithSameName.errors.txt b/tests/baselines/reference/fieldAndGetterWithSameName.errors.txt index 048144f971ecd..1eebfe70672fd 100644 --- a/tests/baselines/reference/fieldAndGetterWithSameName.errors.txt +++ b/tests/baselines/reference/fieldAndGetterWithSameName.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. fieldAndGetterWithSameName.ts(2,5): error TS2300: Duplicate identifier 'x'. fieldAndGetterWithSameName.ts(3,7): error TS2300: Duplicate identifier 'x'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== fieldAndGetterWithSameName.ts (2 errors) ==== export class C { x: number; diff --git a/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.errors.txt b/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.errors.txt new file mode 100644 index 0000000000000..71d1329b520c5 --- /dev/null +++ b/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class c { + } + +==== b.ts (0 errors) ==== + function foo() { + } + \ No newline at end of file diff --git a/tests/baselines/reference/generatorES6InAMDModule.errors.txt b/tests/baselines/reference/generatorES6InAMDModule.errors.txt new file mode 100644 index 0000000000000..d7717ef85086b --- /dev/null +++ b/tests/baselines/reference/generatorES6InAMDModule.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== generatorES6InAMDModule.ts (0 errors) ==== + export function* foo() { + yield + } \ No newline at end of file diff --git a/tests/baselines/reference/generatorES6InAMDModule.types b/tests/baselines/reference/generatorES6InAMDModule.types index c2e2afd76a4e6..dec20f112f4de 100644 --- a/tests/baselines/reference/generatorES6InAMDModule.types +++ b/tests/baselines/reference/generatorES6InAMDModule.types @@ -7,4 +7,5 @@ export function* foo() { yield >yield : any +> : ^^^ } diff --git a/tests/baselines/reference/genericClassesInModule2.errors.txt b/tests/baselines/reference/genericClassesInModule2.errors.txt new file mode 100644 index 0000000000000..f17d50109f04d --- /dev/null +++ b/tests/baselines/reference/genericClassesInModule2.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== genericClassesInModule2.ts (0 errors) ==== + export class A{ + constructor( public callback: (self: A) => void) { + var child = new B(this); + } + AAA( callback: (self: A) => void) { + var child = new B(this); + } + } + + export interface C{ + child: B; + (self: C): void; + new(callback: (self: C) => void) + } + + export class B { + constructor(public parent: T2) { } + } + + \ No newline at end of file diff --git a/tests/baselines/reference/genericInterfaceFunctionTypeParameter.errors.txt b/tests/baselines/reference/genericInterfaceFunctionTypeParameter.errors.txt new file mode 100644 index 0000000000000..208c4e760cb76 --- /dev/null +++ b/tests/baselines/reference/genericInterfaceFunctionTypeParameter.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== genericInterfaceFunctionTypeParameter.ts (0 errors) ==== + export interface IFoo { } + export function foo(fn: (ifoo: IFoo) => void) { + foo(fn); // Invocation is necessary to repro (!) + } + + + \ No newline at end of file diff --git a/tests/baselines/reference/genericMemberFunction.errors.txt b/tests/baselines/reference/genericMemberFunction.errors.txt index 16af2975230f1..072a793bc5ed5 100644 --- a/tests/baselines/reference/genericMemberFunction.errors.txt +++ b/tests/baselines/reference/genericMemberFunction.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== genericMemberFunction.ts (3 errors) ==== export class BuildError{ public parent(): FileWithErrors { diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors1.errors.txt b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors1.errors.txt index 2e2efb0b33045..8bdc02cdf3b76 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors1.errors.txt +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. genericRecursiveImplicitConstructorErrors1.ts(9,49): error TS2314: Generic type 'PullTypeSymbol' requires 3 type argument(s). +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== genericRecursiveImplicitConstructorErrors1.ts (1 errors) ==== export declare namespace TypeScript { class PullSymbol { } diff --git a/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt b/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt index 80cb5a9db80bd..415b3115b1fb5 100644 --- a/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt +++ b/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. genericReturnTypeFromGetter1.ts(5,18): error TS2314: Generic type 'A' requires 1 type argument(s). +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== genericReturnTypeFromGetter1.ts (1 errors) ==== export interface A { new (dbSet: DbSet): T; diff --git a/tests/baselines/reference/genericTypeWithMultipleBases2.errors.txt b/tests/baselines/reference/genericTypeWithMultipleBases2.errors.txt new file mode 100644 index 0000000000000..a1058a1f87dd2 --- /dev/null +++ b/tests/baselines/reference/genericTypeWithMultipleBases2.errors.txt @@ -0,0 +1,23 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== genericTypeWithMultipleBases2.ts (0 errors) ==== + export interface I1 { + m1: () => void; + } + + export interface I2 { + m2: () => void; + } + + export interface I3 extends I2, I1 { + p1: T; + } + + var x: I3; + x.p1; + x.m1(); + x.m2(); + + \ No newline at end of file diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.errors.txt b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.errors.txt new file mode 100644 index 0000000000000..a24f0f4bdf5da --- /dev/null +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== genericWithIndexerOfTypeParameterType2.ts (0 errors) ==== + export class Collection { + _itemsByKey: { [key: string]: TItem; }; + } + + export class List extends Collection{ + Bar() {} + } + + export class CollectionItem {} + + export class ListItem extends CollectionItem { + __isNew: boolean; + } + \ No newline at end of file diff --git a/tests/baselines/reference/giant.errors.txt b/tests/baselines/reference/giant.errors.txt index 248efb5e0f8a7..2485a881dba29 100644 --- a/tests/baselines/reference/giant.errors.txt +++ b/tests/baselines/reference/giant.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. @@ -231,6 +232,7 @@ 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== giant.ts (231 errors) ==== /* Prefixes diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).errors.txt index 7a67132f7f441..0651e0692d375 100644 --- a/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).errors.txt +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).errors.txt @@ -1,7 +1,9 @@ error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /a.ts (0 errors) ==== export const _ = 0; diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=system).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit1(module=system).errors.txt index f14c00104a9b4..5977c517fad8c 100644 --- a/tests/baselines/reference/impliedNodeFormatEmit1(module=system).errors.txt +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=system).errors.txt @@ -1,9 +1,11 @@ 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=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! 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=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /a.ts (0 errors) ==== export const _ = 0; diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).errors.txt index f14c00104a9b4..dcaba12d2bfd4 100644 --- a/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).errors.txt +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).errors.txt @@ -1,9 +1,11 @@ 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=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! 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=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /a.ts (0 errors) ==== export const _ = 0; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5AMD.errors.txt new file mode 100644 index 0000000000000..e9e9f0fcf2e97 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5AMD.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5System.errors.txt new file mode 100644 index 0000000000000..8dd6a353a2554 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5System.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5UMD.errors.txt new file mode 100644 index 0000000000000..346e820da515c --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5UMD.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES6AMD.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES6AMD.errors.txt new file mode 100644 index 0000000000000..e9e9f0fcf2e97 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES6AMD.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES6System.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES6System.errors.txt new file mode 100644 index 0000000000000..8dd6a353a2554 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES6System.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES6UMD.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES6UMD.errors.txt new file mode 100644 index 0000000000000..346e820da515c --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES6UMD.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES5AMD.errors.txt b/tests/baselines/reference/importCallExpressionES5AMD.errors.txt new file mode 100644 index 0000000000000..31f9e39e63788 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5AMD.errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES5System.errors.txt b/tests/baselines/reference/importCallExpressionES5System.errors.txt new file mode 100644 index 0000000000000..0fb7315d37773 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5System.errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES5UMD.errors.txt b/tests/baselines/reference/importCallExpressionES5UMD.errors.txt new file mode 100644 index 0000000000000..ff981b39efa20 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5UMD.errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES6AMD.errors.txt b/tests/baselines/reference/importCallExpressionES6AMD.errors.txt new file mode 100644 index 0000000000000..31f9e39e63788 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES6AMD.errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES6System.errors.txt b/tests/baselines/reference/importCallExpressionES6System.errors.txt new file mode 100644 index 0000000000000..0fb7315d37773 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES6System.errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES6UMD.errors.txt b/tests/baselines/reference/importCallExpressionES6UMD.errors.txt new file mode 100644 index 0000000000000..ff981b39efa20 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES6UMD.errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInAMD1.errors.txt b/tests/baselines/reference/importCallExpressionInAMD1.errors.txt new file mode 100644 index 0000000000000..cbb94db928731 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInAMD1.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInAMD2.errors.txt b/tests/baselines/reference/importCallExpressionInAMD2.errors.txt new file mode 100644 index 0000000000000..ba22b5c026a43 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInAMD2.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + +==== 2.ts (0 errors) ==== + // We use Promise for now as there is no way to specify shape of module object + function foo(x: Promise) { + x.then(value => { + let b = new value.B(); + b.print(); + }) + } + + foo(import("./0")); \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInAMD2.types b/tests/baselines/reference/importCallExpressionInAMD2.types index 940c187c061dc..e3ce512be2beb 100644 --- a/tests/baselines/reference/importCallExpressionInAMD2.types +++ b/tests/baselines/reference/importCallExpressionInAMD2.types @@ -32,11 +32,15 @@ function foo(x: Promise) { >value => { let b = new value.B(); b.print(); } : (value: any) => void > : ^ ^^^^^^^^^^^^^^ >value : any +> : ^^^ let b = new value.B(); >b : any +> : ^^^ >new value.B() : any +> : ^^^ >value.B : any +> : ^^^ >value : any > : ^^^ >B : any @@ -44,7 +48,9 @@ function foo(x: Promise) { b.print(); >b.print() : any +> : ^^^ >b.print : any +> : ^^^ >b : any > : ^^^ >print : any diff --git a/tests/baselines/reference/importCallExpressionInAMD3.errors.txt b/tests/baselines/reference/importCallExpressionInAMD3.errors.txt new file mode 100644 index 0000000000000..a63ab9546cebf --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInAMD3.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + +==== 2.ts (0 errors) ==== + async function foo() { + class C extends (await import("./0")).B {} + var c = new C(); + c.print(); + } + foo(); \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInAMD4.errors.txt b/tests/baselines/reference/importCallExpressionInAMD4.errors.txt new file mode 100644 index 0000000000000..ddcb02d3e13df --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInAMD4.errors.txt @@ -0,0 +1,43 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + + export function foo() { return "foo" } + +==== 1.ts (0 errors) ==== + export function backup() { return "backup"; } + +==== 2.ts (0 errors) ==== + declare var console: any; + class C { + private myModule = import("./0"); + method() { + const loadAsync = import("./0"); + this.myModule.then(Zero => { + console.log(Zero.foo()); + }, async err => { + console.log(err); + let one = await import("./1"); + console.log(one.backup()); + }); + } + } + + export class D { + private myModule = import("./0"); + method() { + const loadAsync = import("./0"); + this.myModule.then(Zero => { + console.log(Zero.foo()); + }, async err => { + console.log(err); + let one = await import("./1"); + console.log(one.backup()); + }); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInAMD4.types b/tests/baselines/reference/importCallExpressionInAMD4.types index 1f5c390e64b71..2b2ca33e0e0da 100644 --- a/tests/baselines/reference/importCallExpressionInAMD4.types +++ b/tests/baselines/reference/importCallExpressionInAMD4.types @@ -28,6 +28,7 @@ export function backup() { return "backup"; } === 2.ts === declare var console: any; >console : any +> : ^^^ class C { >C : C @@ -73,7 +74,9 @@ class C { console.log(Zero.foo()); >console.log(Zero.foo()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -91,15 +94,19 @@ class C { >async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); } : (err: any) => Promise > : ^ ^^^^^^^^^^^^^^^^^^^^^^^ >err : any +> : ^^^ console.log(err); >console.log(err) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any > : ^^^ >err : any +> : ^^^ let one = await import("./1"); >one : typeof import("1") @@ -113,7 +120,9 @@ class C { console.log(one.backup()); >console.log(one.backup()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -175,7 +184,9 @@ export class D { console.log(Zero.foo()); >console.log(Zero.foo()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -193,15 +204,19 @@ export class D { >async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); } : (err: any) => Promise > : ^ ^^^^^^^^^^^^^^^^^^^^^^^ >err : any +> : ^^^ console.log(err); >console.log(err) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any > : ^^^ >err : any +> : ^^^ let one = await import("./1"); >one : typeof import("1") @@ -215,7 +230,9 @@ export class D { console.log(one.backup()); >console.log(one.backup()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any diff --git a/tests/baselines/reference/importCallExpressionInExportEqualsAMD.errors.txt b/tests/baselines/reference/importCallExpressionInExportEqualsAMD.errors.txt new file mode 100644 index 0000000000000..02fb46d036916 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInExportEqualsAMD.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== something.ts (0 errors) ==== + export = 42; + +==== index.ts (0 errors) ==== + export = async function() { + const something = await import("./something"); + }; \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInExportEqualsUMD.errors.txt b/tests/baselines/reference/importCallExpressionInExportEqualsUMD.errors.txt new file mode 100644 index 0000000000000..2da8a6aaacf89 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInExportEqualsUMD.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== something.ts (0 errors) ==== + export = 42; + +==== index.ts (0 errors) ==== + export = async function() { + const something = await import("./something"); + }; \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInSystem1.errors.txt b/tests/baselines/reference/importCallExpressionInSystem1.errors.txt new file mode 100644 index 0000000000000..9d27f4d7981f3 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInSystem1.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInSystem2.errors.txt b/tests/baselines/reference/importCallExpressionInSystem2.errors.txt new file mode 100644 index 0000000000000..8be7f76ab8ad7 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInSystem2.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + +==== 2.ts (0 errors) ==== + // We use Promise for now as there is no way to specify shape of module object + function foo(x: Promise) { + x.then(value => { + let b = new value.B(); + b.print(); + }) + } + + foo(import("./0")); \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInSystem2.types b/tests/baselines/reference/importCallExpressionInSystem2.types index 2ffd403bec514..9cb7891c26e74 100644 --- a/tests/baselines/reference/importCallExpressionInSystem2.types +++ b/tests/baselines/reference/importCallExpressionInSystem2.types @@ -32,11 +32,15 @@ function foo(x: Promise) { >value => { let b = new value.B(); b.print(); } : (value: any) => void > : ^ ^^^^^^^^^^^^^^ >value : any +> : ^^^ let b = new value.B(); >b : any +> : ^^^ >new value.B() : any +> : ^^^ >value.B : any +> : ^^^ >value : any > : ^^^ >B : any @@ -44,7 +48,9 @@ function foo(x: Promise) { b.print(); >b.print() : any +> : ^^^ >b.print : any +> : ^^^ >b : any > : ^^^ >print : any diff --git a/tests/baselines/reference/importCallExpressionInSystem3.errors.txt b/tests/baselines/reference/importCallExpressionInSystem3.errors.txt new file mode 100644 index 0000000000000..32beb24605369 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInSystem3.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + +==== 2.ts (0 errors) ==== + async function foo() { + class C extends (await import("./0")).B {} + var c = new C(); + c.print(); + } + foo(); \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInSystem4.errors.txt b/tests/baselines/reference/importCallExpressionInSystem4.errors.txt new file mode 100644 index 0000000000000..2551f3a90f1b7 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInSystem4.errors.txt @@ -0,0 +1,43 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + + export function foo() { return "foo" } + +==== 1.ts (0 errors) ==== + export function backup() { return "backup"; } + +==== 2.ts (0 errors) ==== + declare var console: any; + class C { + private myModule = import("./0"); + method() { + const loadAsync = import("./0"); + this.myModule.then(Zero => { + console.log(Zero.foo()); + }, async err => { + console.log(err); + let one = await import("./1"); + console.log(one.backup()); + }); + } + } + + export class D { + private myModule = import("./0"); + method() { + const loadAsync = import("./0"); + this.myModule.then(Zero => { + console.log(Zero.foo()); + }, async err => { + console.log(err); + let one = await import("./1"); + console.log(one.backup()); + }); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInSystem4.types b/tests/baselines/reference/importCallExpressionInSystem4.types index cef7710895ee0..5392040581edf 100644 --- a/tests/baselines/reference/importCallExpressionInSystem4.types +++ b/tests/baselines/reference/importCallExpressionInSystem4.types @@ -28,6 +28,7 @@ export function backup() { return "backup"; } === 2.ts === declare var console: any; >console : any +> : ^^^ class C { >C : C @@ -73,7 +74,9 @@ class C { console.log(Zero.foo()); >console.log(Zero.foo()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -91,15 +94,19 @@ class C { >async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); } : (err: any) => Promise > : ^ ^^^^^^^^^^^^^^^^^^^^^^^ >err : any +> : ^^^ console.log(err); >console.log(err) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any > : ^^^ >err : any +> : ^^^ let one = await import("./1"); >one : typeof import("1") @@ -113,7 +120,9 @@ class C { console.log(one.backup()); >console.log(one.backup()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -175,7 +184,9 @@ export class D { console.log(Zero.foo()); >console.log(Zero.foo()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -193,15 +204,19 @@ export class D { >async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); } : (err: any) => Promise > : ^ ^^^^^^^^^^^^^^^^^^^^^^^ >err : any +> : ^^^ console.log(err); >console.log(err) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any > : ^^^ >err : any +> : ^^^ let one = await import("./1"); >one : typeof import("1") @@ -215,7 +230,9 @@ export class D { console.log(one.backup()); >console.log(one.backup()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any diff --git a/tests/baselines/reference/importCallExpressionInUMD1.errors.txt b/tests/baselines/reference/importCallExpressionInUMD1.errors.txt new file mode 100644 index 0000000000000..bf7033337d29f --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInUMD1.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInUMD2.errors.txt b/tests/baselines/reference/importCallExpressionInUMD2.errors.txt new file mode 100644 index 0000000000000..1cf69496ef60f --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInUMD2.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + +==== 2.ts (0 errors) ==== + // We use Promise for now as there is no way to specify shape of module object + function foo(x: Promise) { + x.then(value => { + let b = new value.B(); + b.print(); + }) + } + + foo(import("./0")); \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInUMD2.types b/tests/baselines/reference/importCallExpressionInUMD2.types index 55a9c46617fe4..aa3ac180655b9 100644 --- a/tests/baselines/reference/importCallExpressionInUMD2.types +++ b/tests/baselines/reference/importCallExpressionInUMD2.types @@ -32,11 +32,15 @@ function foo(x: Promise) { >value => { let b = new value.B(); b.print(); } : (value: any) => void > : ^ ^^^^^^^^^^^^^^ >value : any +> : ^^^ let b = new value.B(); >b : any +> : ^^^ >new value.B() : any +> : ^^^ >value.B : any +> : ^^^ >value : any > : ^^^ >B : any @@ -44,7 +48,9 @@ function foo(x: Promise) { b.print(); >b.print() : any +> : ^^^ >b.print : any +> : ^^^ >b : any > : ^^^ >print : any diff --git a/tests/baselines/reference/importCallExpressionInUMD3.errors.txt b/tests/baselines/reference/importCallExpressionInUMD3.errors.txt new file mode 100644 index 0000000000000..0bcdd58f718b6 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInUMD3.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + +==== 2.ts (0 errors) ==== + async function foo() { + class C extends (await import("./0")).B {} + var c = new C(); + c.print(); + } + foo(); \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInUMD4.errors.txt b/tests/baselines/reference/importCallExpressionInUMD4.errors.txt new file mode 100644 index 0000000000000..f3dfe5f8d8181 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInUMD4.errors.txt @@ -0,0 +1,43 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export class B { + print() { return "I am B"} + } + + export function foo() { return "foo" } + +==== 1.ts (0 errors) ==== + export function backup() { return "backup"; } + +==== 2.ts (0 errors) ==== + declare var console: any; + class C { + private myModule = import("./0"); + method() { + const loadAsync = import("./0"); + this.myModule.then(Zero => { + console.log(Zero.foo()); + }, async err => { + console.log(err); + let one = await import("./1"); + console.log(one.backup()); + }); + } + } + + export class D { + private myModule = import("./0"); + method() { + const loadAsync = import("./0"); + this.myModule.then(Zero => { + console.log(Zero.foo()); + }, async err => { + console.log(err); + let one = await import("./1"); + console.log(one.backup()); + }); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInUMD4.types b/tests/baselines/reference/importCallExpressionInUMD4.types index 4cb77bf0414a0..e5f99a161eab3 100644 --- a/tests/baselines/reference/importCallExpressionInUMD4.types +++ b/tests/baselines/reference/importCallExpressionInUMD4.types @@ -28,6 +28,7 @@ export function backup() { return "backup"; } === 2.ts === declare var console: any; >console : any +> : ^^^ class C { >C : C @@ -73,7 +74,9 @@ class C { console.log(Zero.foo()); >console.log(Zero.foo()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -91,15 +94,19 @@ class C { >async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); } : (err: any) => Promise > : ^ ^^^^^^^^^^^^^^^^^^^^^^^ >err : any +> : ^^^ console.log(err); >console.log(err) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any > : ^^^ >err : any +> : ^^^ let one = await import("./1"); >one : typeof import("1") @@ -113,7 +120,9 @@ class C { console.log(one.backup()); >console.log(one.backup()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -175,7 +184,9 @@ export class D { console.log(Zero.foo()); >console.log(Zero.foo()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any @@ -193,15 +204,19 @@ export class D { >async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); } : (err: any) => Promise > : ^ ^^^^^^^^^^^^^^^^^^^^^^^ >err : any +> : ^^^ console.log(err); >console.log(err) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any > : ^^^ >err : any +> : ^^^ let one = await import("./1"); >one : typeof import("1") @@ -215,7 +230,9 @@ export class D { console.log(one.backup()); >console.log(one.backup()) : any +> : ^^^ >console.log : any +> : ^^^ >console : any > : ^^^ >log : any diff --git a/tests/baselines/reference/importCallExpressionInUMD5.errors.txt b/tests/baselines/reference/importCallExpressionInUMD5.errors.txt new file mode 100644 index 0000000000000..3c63be1145fa7 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionInUMD5.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + // https://github.com/microsoft/TypeScript/issues/36780 + async function func() { + const packageName = '.'; + const packageJson = await import(packageName + '/package.json'); + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionInUMD5.types b/tests/baselines/reference/importCallExpressionInUMD5.types index a597d0eff5a03..4de7478aab0df 100644 --- a/tests/baselines/reference/importCallExpressionInUMD5.types +++ b/tests/baselines/reference/importCallExpressionInUMD5.types @@ -21,7 +21,9 @@ async function func() { const packageJson = await import(packageName + '/package.json'); >packageJson : any +> : ^^^ >await import(packageName + '/package.json') : any +> : ^^^ >import(packageName + '/package.json') : Promise > : ^^^^^^^^^^^^ >packageName + '/package.json' : string diff --git a/tests/baselines/reference/importCallExpressionNestedAMD.errors.txt b/tests/baselines/reference/importCallExpressionNestedAMD.errors.txt new file mode 100644 index 0000000000000..076931f140681 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedAMD.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedAMD.types b/tests/baselines/reference/importCallExpressionNestedAMD.types index b6d446cf46507..11c285a30fdde 100644 --- a/tests/baselines/reference/importCallExpressionNestedAMD.types +++ b/tests/baselines/reference/importCallExpressionNestedAMD.types @@ -11,6 +11,7 @@ async function foo() { return await import((await import("./foo")).default); >await import((await import("./foo")).default) : any +> : ^^^ >import((await import("./foo")).default) : Promise > : ^^^^^^^^^^^^ >(await import("./foo")).default : "./foo" diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2.errors.txt b/tests/baselines/reference/importCallExpressionNestedAMD2.errors.txt new file mode 100644 index 0000000000000..076931f140681 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedAMD2.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2.types b/tests/baselines/reference/importCallExpressionNestedAMD2.types index 7d66061c112fd..f8d6a4bf19c03 100644 --- a/tests/baselines/reference/importCallExpressionNestedAMD2.types +++ b/tests/baselines/reference/importCallExpressionNestedAMD2.types @@ -11,6 +11,7 @@ async function foo() { return await import((await import("./foo")).default); >await import((await import("./foo")).default) : any +> : ^^^ >import((await import("./foo")).default) : Promise > : ^^^^^^^^^^^^ >(await import("./foo")).default : "./foo" diff --git a/tests/baselines/reference/importCallExpressionNestedSystem.errors.txt b/tests/baselines/reference/importCallExpressionNestedSystem.errors.txt new file mode 100644 index 0000000000000..df96a9b44fa78 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedSystem.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedSystem.types b/tests/baselines/reference/importCallExpressionNestedSystem.types index 016d56fbe7dd7..3d320c72d33b6 100644 --- a/tests/baselines/reference/importCallExpressionNestedSystem.types +++ b/tests/baselines/reference/importCallExpressionNestedSystem.types @@ -11,6 +11,7 @@ async function foo() { return await import((await import("./foo")).default); >await import((await import("./foo")).default) : any +> : ^^^ >import((await import("./foo")).default) : Promise > : ^^^^^^^^^^^^ >(await import("./foo")).default : "./foo" diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2.errors.txt b/tests/baselines/reference/importCallExpressionNestedSystem2.errors.txt new file mode 100644 index 0000000000000..df96a9b44fa78 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedSystem2.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2.types b/tests/baselines/reference/importCallExpressionNestedSystem2.types index b6112d640a3ed..2704d3a6d0986 100644 --- a/tests/baselines/reference/importCallExpressionNestedSystem2.types +++ b/tests/baselines/reference/importCallExpressionNestedSystem2.types @@ -11,6 +11,7 @@ async function foo() { return await import((await import("./foo")).default); >await import((await import("./foo")).default) : any +> : ^^^ >import((await import("./foo")).default) : Promise > : ^^^^^^^^^^^^ >(await import("./foo")).default : "./foo" diff --git a/tests/baselines/reference/importCallExpressionNestedUMD.errors.txt b/tests/baselines/reference/importCallExpressionNestedUMD.errors.txt new file mode 100644 index 0000000000000..44fd274c9d149 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedUMD.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedUMD.types b/tests/baselines/reference/importCallExpressionNestedUMD.types index a4bcb595521bb..0987715c279a7 100644 --- a/tests/baselines/reference/importCallExpressionNestedUMD.types +++ b/tests/baselines/reference/importCallExpressionNestedUMD.types @@ -11,6 +11,7 @@ async function foo() { return await import((await import("./foo")).default); >await import((await import("./foo")).default) : any +> : ^^^ >import((await import("./foo")).default) : Promise > : ^^^^^^^^^^^^ >(await import("./foo")).default : "./foo" diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2.errors.txt b/tests/baselines/reference/importCallExpressionNestedUMD2.errors.txt new file mode 100644 index 0000000000000..44fd274c9d149 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedUMD2.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2.types b/tests/baselines/reference/importCallExpressionNestedUMD2.types index c4cbc3ebb08a0..e0a8d1db3e130 100644 --- a/tests/baselines/reference/importCallExpressionNestedUMD2.types +++ b/tests/baselines/reference/importCallExpressionNestedUMD2.types @@ -11,6 +11,7 @@ async function foo() { return await import((await import("./foo")).default); >await import((await import("./foo")).default) : any +> : ^^^ >import((await import("./foo")).default) : Promise > : ^^^^^^^^^^^^ >(await import("./foo")).default : "./foo" diff --git a/tests/baselines/reference/importDeclWithClassModifiers.errors.txt b/tests/baselines/reference/importDeclWithClassModifiers.errors.txt index 12e30795fff58..0aaca9ab8e6fc 100644 --- a/tests/baselines/reference/importDeclWithClassModifiers.errors.txt +++ b/tests/baselines/reference/importDeclWithClassModifiers.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -9,6 +10,7 @@ importDeclWithClassModifiers.ts(7,26): error TS2708: Cannot use namespace 'x' as importDeclWithClassModifiers.ts(7,28): error TS2694: Namespace 'x' has no exported member 'c'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== importDeclWithClassModifiers.ts (9 errors) ==== namespace x { interface c { diff --git a/tests/baselines/reference/importDeclWithExportModifier.errors.txt b/tests/baselines/reference/importDeclWithExportModifier.errors.txt index 8da059494431f..e314c53f07ee8 100644 --- a/tests/baselines/reference/importDeclWithExportModifier.errors.txt +++ b/tests/baselines/reference/importDeclWithExportModifier.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. importDeclWithExportModifier.ts(5,19): error TS2708: Cannot use namespace 'x' as a value. importDeclWithExportModifier.ts(5,21): error TS2694: Namespace 'x' has no exported member 'c'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== importDeclWithExportModifier.ts (2 errors) ==== namespace x { interface c { diff --git a/tests/baselines/reference/importDefaultBindingDefer.errors.txt b/tests/baselines/reference/importDefaultBindingDefer.errors.txt new file mode 100644 index 0000000000000..d489281ef85f3 --- /dev/null +++ b/tests/baselines/reference/importDefaultBindingDefer.errors.txt @@ -0,0 +1,14 @@ +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/tests/baselines/reference/importDefaultBindingDefer.types b/tests/baselines/reference/importDefaultBindingDefer.types index f647f0914868d..f160cc1414c6b 100644 --- a/tests/baselines/reference/importDefaultBindingDefer.types +++ b/tests/baselines/reference/importDefaultBindingDefer.types @@ -20,12 +20,12 @@ export default function defer() { === b.ts === import defer from "a"; ->defer : () => void -> : ^^^^^^^^^^ +>defer : any +> : ^^^ defer(); ->defer() : void -> : ^^^^ ->defer : () => void -> : ^^^^^^^^^^ +>defer() : any +> : ^^^ +>defer : any +> : ^^^ diff --git a/tests/baselines/reference/importDeferComments.errors.txt b/tests/baselines/reference/importDeferComments.errors.txt new file mode 100644 index 0000000000000..56b486f8344d7 --- /dev/null +++ b/tests/baselines/reference/importDeferComments.errors.txt @@ -0,0 +1,11 @@ +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/tests/baselines/reference/importDeferComments.types b/tests/baselines/reference/importDeferComments.types index 6f06fb95216ac..36fb5b224a91a 100644 --- a/tests/baselines/reference/importDeferComments.types +++ b/tests/baselines/reference/importDeferComments.types @@ -6,6 +6,6 @@ export {}; === b.ts === /*1*/ import /*2*/ defer /*3*/ * /*4*/ as /*5*/ aNs /*6*/ from /*7*/ "a" /*8*/; ->aNs : typeof aNs -> : ^^^^^^^^^^ +>aNs : any +> : ^^^ diff --git a/tests/baselines/reference/importDeferInvalidDefault.errors.txt b/tests/baselines/reference/importDeferInvalidDefault.errors.txt index db10e58190f7d..98b01b714544e 100644 --- a/tests/baselines/reference/importDeferInvalidDefault.errors.txt +++ b/tests/baselines/reference/importDeferInvalidDefault.errors.txt @@ -1,4 +1,5 @@ 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) ==== @@ -6,9 +7,11 @@ b.ts(1,8): error TS18058: Default imports are not allowed in a deferred import. 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/tests/baselines/reference/importDeferInvalidDefault.types b/tests/baselines/reference/importDeferInvalidDefault.types index ae22c6fd8d417..7700b44e4f393 100644 --- a/tests/baselines/reference/importDeferInvalidDefault.types +++ b/tests/baselines/reference/importDeferInvalidDefault.types @@ -20,12 +20,12 @@ export default function foo() { === b.ts === import defer foo from "a"; ->foo : () => void -> : ^^^^^^^^^^ +>foo : any +> : ^^^ foo(); ->foo() : void -> : ^^^^ ->foo : () => void -> : ^^^^^^^^^^ +>foo() : any +> : ^^^ +>foo : any +> : ^^^ diff --git a/tests/baselines/reference/importDeferInvalidNamed.errors.txt b/tests/baselines/reference/importDeferInvalidNamed.errors.txt index ef2015d6537b3..4670b0cf31240 100644 --- a/tests/baselines/reference/importDeferInvalidNamed.errors.txt +++ b/tests/baselines/reference/importDeferInvalidNamed.errors.txt @@ -1,4 +1,5 @@ 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) ==== @@ -6,9 +7,11 @@ b.ts(1,8): error TS18059: Named imports are not allowed in a deferred import. 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/tests/baselines/reference/importDeferInvalidNamed.types b/tests/baselines/reference/importDeferInvalidNamed.types index 5568523603e08..9dab475b1002a 100644 --- a/tests/baselines/reference/importDeferInvalidNamed.types +++ b/tests/baselines/reference/importDeferInvalidNamed.types @@ -20,12 +20,12 @@ export function foo() { === b.ts === import defer { foo } from "a"; ->foo : () => void -> : ^^^^^^^^^^ +>foo : any +> : ^^^ foo(); ->foo() : void -> : ^^^^ ->foo : () => void -> : ^^^^^^^^^^ +>foo() : any +> : ^^^ +>foo : any +> : ^^^ diff --git a/tests/baselines/reference/importHelpersAmd.errors.txt b/tests/baselines/reference/importHelpersAmd.errors.txt new file mode 100644 index 0000000000000..81d8ceb204ef4 --- /dev/null +++ b/tests/baselines/reference/importHelpersAmd.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import { A } from "./a"; + export * from "./a"; + export class B extends A { } + +==== tslib.d.ts (0 errors) ==== + export declare function __extends(d: Function, b: Function): void; + export declare function __assign(t: any, ...sources: any[]): any; + export declare function __rest(t: any, propertyNames: string[]): any; + 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 __generator(thisArg: any, body: Function): any; + export declare function __exportStar(m: any, exports: any): void; \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersAmd.types b/tests/baselines/reference/importHelpersAmd.types index 29488bdd09573..023575ad1fc83 100644 --- a/tests/baselines/reference/importHelpersAmd.types +++ b/tests/baselines/reference/importHelpersAmd.types @@ -30,6 +30,7 @@ export declare function __assign(t: any, ...sources: any[]): any; >__assign : (t: any, ...sources: any[]) => any > : ^ ^^ ^^^^^ ^^ ^^^^^ >t : any +> : ^^^ >sources : any[] > : ^^^^^ @@ -37,6 +38,7 @@ export declare function __rest(t: any, propertyNames: string[]): any; >__rest : (t: any, propertyNames: string[]) => any > : ^ ^^ ^^ ^^ ^^^^^ >t : any +> : ^^^ >propertyNames : string[] > : ^^^^^^^^ @@ -46,9 +48,11 @@ export declare function __decorate(decorators: Function[], target: any, key?: st >decorators : Function[] > : ^^^^^^^^^^ >target : any +> : ^^^ >key : string | symbol > : ^^^^^^^^^^^^^^^ >desc : any +> : ^^^ export declare function __param(paramIndex: number, decorator: Function): Function; >__param : (paramIndex: number, decorator: Function) => Function @@ -62,13 +66,17 @@ export declare function __metadata(metadataKey: any, metadataValue: any): Functi >__metadata : (metadataKey: any, metadataValue: any) => Function > : ^ ^^ ^^ ^^ ^^^^^ >metadataKey : any +> : ^^^ >metadataValue : any +> : ^^^ export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; >__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >thisArg : any +> : ^^^ >_arguments : any +> : ^^^ >P : Function > : ^^^^^^^^ >generator : Function @@ -78,6 +86,7 @@ export declare function __generator(thisArg: any, body: Function): any; >__generator : (thisArg: any, body: Function) => any > : ^ ^^ ^^ ^^ ^^^^^ >thisArg : any +> : ^^^ >body : Function > : ^^^^^^^^ @@ -85,5 +94,7 @@ export declare function __exportStar(m: any, exports: any): void; >__exportStar : (m: any, exports: any) => void > : ^ ^^ ^^ ^^ ^^^^^ >m : any +> : ^^^ >exports : any +> : ^^^ diff --git a/tests/baselines/reference/importHelpersES6.errors.txt b/tests/baselines/reference/importHelpersES6.errors.txt new file mode 100644 index 0000000000000..04b54604e2f05 --- /dev/null +++ b/tests/baselines/reference/importHelpersES6.errors.txt @@ -0,0 +1,26 @@ +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/tests/baselines/reference/importHelpersES6.types b/tests/baselines/reference/importHelpersES6.types index 918648cdbd0f9..d123080dc354c 100644 --- a/tests/baselines/reference/importHelpersES6.types +++ b/tests/baselines/reference/importHelpersES6.types @@ -3,9 +3,11 @@ === a.ts === declare var dec: any; >dec : any +> : ^^^ @dec export class A { >dec : any +> : ^^^ >A : A > : ^ @@ -35,10 +37,13 @@ declare var dec: any; >g : (u: any) => u is A > : ^ ^^^^^^^^^^^^^^^^ >u : any +> : ^^^ >#x in u : boolean > : ^^^^^^^ >#x : any +> : ^^^ >u : any +> : ^^^ } const o = { a: 1 }; @@ -74,9 +79,11 @@ export declare function __decorate(decorators: Function[], target: any, key?: st >decorators : Function[] > : ^^^^^^^^^^ >target : any +> : ^^^ >key : string | symbol > : ^^^^^^^^^^^^^^^ >desc : any +> : ^^^ export declare function __param(paramIndex: number, decorator: Function): Function; >__param : (paramIndex: number, decorator: Function) => Function @@ -90,13 +97,17 @@ export declare function __metadata(metadataKey: any, metadataValue: any): Functi >__metadata : (metadataKey: any, metadataValue: any) => Function > : ^ ^^ ^^ ^^ ^^^^^ >metadataKey : any +> : ^^^ >metadataValue : any +> : ^^^ export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; >__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >thisArg : any +> : ^^^ >_arguments : any +> : ^^^ >P : Function > : ^^^^^^^^ >generator : Function @@ -106,22 +117,33 @@ export declare function __classPrivateFieldGet(a: any, b: any, c: any, d: any): >__classPrivateFieldGet : (a: any, b: any, c: any, d: any) => any > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >a : any +> : ^^^ >b : any +> : ^^^ >c : any +> : ^^^ >d : any +> : ^^^ export declare function __classPrivateFieldSet(a: any, b: any, c: any, d: any, e: any): any; >__classPrivateFieldSet : (a: any, b: any, c: any, d: any, e: any) => any > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >a : any +> : ^^^ >b : any +> : ^^^ >c : any +> : ^^^ >d : any +> : ^^^ >e : any +> : ^^^ export declare function __classPrivateFieldIn(a: any, b: any): boolean; >__classPrivateFieldIn : (a: any, b: any) => boolean > : ^ ^^ ^^ ^^ ^^^^^ >a : any +> : ^^^ >b : any +> : ^^^ diff --git a/tests/baselines/reference/importHelpersOutFile.errors.txt b/tests/baselines/reference/importHelpersOutFile.errors.txt new file mode 100644 index 0000000000000..10450e3f12f6c --- /dev/null +++ b/tests/baselines/reference/importHelpersOutFile.errors.txt @@ -0,0 +1,23 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import { A } from "./a"; + export class B extends A { } + +==== c.ts (0 errors) ==== + import { A } from "./a"; + export class C extends A { } + +==== tslib.d.ts (0 errors) ==== + 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; + 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; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersOutFile.types b/tests/baselines/reference/importHelpersOutFile.types index af999d02b3515..9bf61793f476f 100644 --- a/tests/baselines/reference/importHelpersOutFile.types +++ b/tests/baselines/reference/importHelpersOutFile.types @@ -40,6 +40,7 @@ export declare function __assign(t: any, ...sources: any[]): any; >__assign : (t: any, ...sources: any[]) => any > : ^ ^^ ^^^^^ ^^ ^^^^^ >t : any +> : ^^^ >sources : any[] > : ^^^^^ @@ -49,9 +50,11 @@ export declare function __decorate(decorators: Function[], target: any, key?: st >decorators : Function[] > : ^^^^^^^^^^ >target : any +> : ^^^ >key : string | symbol > : ^^^^^^^^^^^^^^^ >desc : any +> : ^^^ export declare function __param(paramIndex: number, decorator: Function): Function; >__param : (paramIndex: number, decorator: Function) => Function @@ -65,13 +68,17 @@ export declare function __metadata(metadataKey: any, metadataValue: any): Functi >__metadata : (metadataKey: any, metadataValue: any) => Function > : ^ ^^ ^^ ^^ ^^^^^ >metadataKey : any +> : ^^^ >metadataValue : any +> : ^^^ export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; >__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >thisArg : any +> : ^^^ >_arguments : any +> : ^^^ >P : Function > : ^^^^^^^^ >generator : Function diff --git a/tests/baselines/reference/importHelpersSystem.errors.txt b/tests/baselines/reference/importHelpersSystem.errors.txt new file mode 100644 index 0000000000000..55667298e5b17 --- /dev/null +++ b/tests/baselines/reference/importHelpersSystem.errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import { A } from "./a"; + export * from "./a"; + export class B extends A { } + +==== tslib.d.ts (0 errors) ==== + 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; + 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; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersSystem.types b/tests/baselines/reference/importHelpersSystem.types index 19c7d184d6df1..270b9f92636b7 100644 --- a/tests/baselines/reference/importHelpersSystem.types +++ b/tests/baselines/reference/importHelpersSystem.types @@ -30,6 +30,7 @@ export declare function __assign(t: any, ...sources: any[]): any; >__assign : (t: any, ...sources: any[]) => any > : ^ ^^ ^^^^^ ^^ ^^^^^ >t : any +> : ^^^ >sources : any[] > : ^^^^^ @@ -39,9 +40,11 @@ export declare function __decorate(decorators: Function[], target: any, key?: st >decorators : Function[] > : ^^^^^^^^^^ >target : any +> : ^^^ >key : string | symbol > : ^^^^^^^^^^^^^^^ >desc : any +> : ^^^ export declare function __param(paramIndex: number, decorator: Function): Function; >__param : (paramIndex: number, decorator: Function) => Function @@ -55,13 +58,17 @@ export declare function __metadata(metadataKey: any, metadataValue: any): Functi >__metadata : (metadataKey: any, metadataValue: any) => Function > : ^ ^^ ^^ ^^ ^^^^^ >metadataKey : any +> : ^^^ >metadataValue : any +> : ^^^ export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; >__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >thisArg : any +> : ^^^ >_arguments : any +> : ^^^ >P : Function > : ^^^^^^^^ >generator : Function diff --git a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=false,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=false,module=amd).errors.txt index 8eee618e8764c..141210d0665cd 100644 --- a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=false,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=false,module=amd).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export class A { } diff --git a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=false,module=system).errors.txt b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=false,module=system).errors.txt index 8eee618e8764c..39c8e6d0d2a12 100644 --- a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=false,module=system).errors.txt +++ b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=false,module=system).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export class A { } diff --git a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=amd).errors.txt new file mode 100644 index 0000000000000..58a5e5b8bdf6e --- /dev/null +++ b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=amd).errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + export * as a from "./a"; + +==== tslib.d.ts (0 errors) ==== + declare module "tslib" { + function __importStar(m: any): void; + } \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=amd).types b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=amd).types index 4be4a9f98c18a..fe4d92dea23f2 100644 --- a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=amd).types +++ b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=amd).types @@ -19,4 +19,5 @@ declare module "tslib" { >__importStar : (m: any) => void > : ^ ^^ ^^^^^ >m : any +> : ^^^ } diff --git a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=system).errors.txt b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=system).errors.txt new file mode 100644 index 0000000000000..5293f7ed56503 --- /dev/null +++ b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=system).errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + export * as a from "./a"; + +==== tslib.d.ts (0 errors) ==== + declare module "tslib" { + function __importStar(m: any): void; + } \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=system).types b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=system).types index 4be4a9f98c18a..fe4d92dea23f2 100644 --- a/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=system).types +++ b/tests/baselines/reference/importHelpersWithExportStarAs(esmoduleinterop=true,module=system).types @@ -19,4 +19,5 @@ declare module "tslib" { >__importStar : (m: any) => void > : ^ ^^ ^^^^^ >m : any +> : ^^^ } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=amd).errors.txt index 8506104b70999..9fdf9d0c057da 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=amd).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=system).errors.txt index 8506104b70999..fa3348a608424 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=system).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=false,module=system).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=amd).errors.txt new file mode 100644 index 0000000000000..266be01be8043 --- /dev/null +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=amd).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class { } + +==== b.ts (0 errors) ==== + export { default } from "./a"; + export { default as a } from "./a"; + import { default as b } from "./a"; + void b; + +==== tslib.d.ts (0 errors) ==== + declare module "tslib" { + function __importDefault(m: any): void; + } \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=amd).types b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=amd).types index 87423d8b5e802..6159bcfe75d2e 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=amd).types +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=amd).types @@ -36,4 +36,5 @@ declare module "tslib" { >__importDefault : (m: any) => void > : ^ ^^ ^^^^^ >m : any +> : ^^^ } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=system).errors.txt new file mode 100644 index 0000000000000..f64e9f067def7 --- /dev/null +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=system).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class { } + +==== b.ts (0 errors) ==== + export { default } from "./a"; + export { default as a } from "./a"; + import { default as b } from "./a"; + void b; + +==== tslib.d.ts (0 errors) ==== + declare module "tslib" { + function __importDefault(m: any): void; + } \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=system).types b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=system).types index 87423d8b5e802..6159bcfe75d2e 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=system).types +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefault(esmoduleinterop=true,module=system).types @@ -36,4 +36,5 @@ declare module "tslib" { >__importDefault : (m: any) => void > : ^ ^^ ^^^^^ >m : any +> : ^^^ } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=false,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=false,module=amd).errors.txt index af7bff79a0635..6e988f05c114f 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=false,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=false,module=amd).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=false,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=false,module=system).errors.txt index af7bff79a0635..852516e62df99 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=false,module=system).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=false,module=system).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=true,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=true,module=amd).errors.txt index 8b3dc24776f8a..15142a1505510 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=true,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=true,module=amd).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. b.ts(1,10): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=true,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=true,module=system).errors.txt new file mode 100644 index 0000000000000..fad0b50808aed --- /dev/null +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.1(esmoduleinterop=true,module=system).errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class { } + +==== b.ts (0 errors) ==== + export { default } from "./a"; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=false,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=false,module=amd).errors.txt index 588d25270f6e1..ee8cd804ecc33 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=false,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=false,module=amd).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=false,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=false,module=system).errors.txt index 588d25270f6e1..eae445c8285d1 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=false,module=system).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=false,module=system).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=true,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=true,module=amd).errors.txt index 1db341fb3289c..cf11f6a24a59f 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=true,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=true,module=amd).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. b.ts(1,10): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=true,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=true,module=system).errors.txt new file mode 100644 index 0000000000000..8d058056eeff8 --- /dev/null +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.2(esmoduleinterop=true,module=system).errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class { } + +==== b.ts (0 errors) ==== + export { default as a } from "./a"; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=false,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=false,module=amd).errors.txt index 04869bb6fcb8d..8650f643f5fa6 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=false,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=false,module=amd).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=false,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=false,module=system).errors.txt index 04869bb6fcb8d..d13aa2bb27c74 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=false,module=system).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=false,module=system).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=true,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=true,module=amd).errors.txt index 93314504ed7c5..176bf05ba7f5b 100644 --- a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=true,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=true,module=amd).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. b.ts(1,10): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export default class { } diff --git a/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=true,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=true,module=system).errors.txt new file mode 100644 index 0000000000000..138103b44592d --- /dev/null +++ b/tests/baselines/reference/importHelpersWithImportOrExportDefaultNoTslib.3(esmoduleinterop=true,module=system).errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export default class { } + +==== b.ts (0 errors) ==== + import { default as b } from "./a"; + void b; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=false,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=false,module=amd).errors.txt index 56569d9ad08ee..01b868c786d50 100644 --- a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=false,module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=false,module=amd).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export class A { } diff --git a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=false,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=false,module=system).errors.txt index 56569d9ad08ee..09917c6b0ff74 100644 --- a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=false,module=system).errors.txt +++ b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=false,module=system).errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'esModuleInterop=false' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== export class A { } diff --git a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=amd).errors.txt b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=amd).errors.txt new file mode 100644 index 0000000000000..c51743ffe171a --- /dev/null +++ b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=amd).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import * as a from "./a"; + export { a }; + +==== tslib.d.ts (0 errors) ==== + declare module "tslib" { + function __importStar(m: any): void; + } \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=amd).types b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=amd).types index 3f33963009f95..2ce2f7c7c6271 100644 --- a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=amd).types +++ b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=amd).types @@ -23,4 +23,5 @@ declare module "tslib" { >__importStar : (m: any) => void > : ^ ^^ ^^^^^ >m : any +> : ^^^ } diff --git a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=system).errors.txt b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=system).errors.txt new file mode 100644 index 0000000000000..102eafd56a8f3 --- /dev/null +++ b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=system).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import * as a from "./a"; + export { a }; + +==== tslib.d.ts (0 errors) ==== + declare module "tslib" { + function __importStar(m: any): void; + } \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=system).types b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=system).types index 3f33963009f95..2ce2f7c7c6271 100644 --- a/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=system).types +++ b/tests/baselines/reference/importHelpersWithImportStarAs(esmoduleinterop=true,module=system).types @@ -23,4 +23,5 @@ declare module "tslib" { >__importStar : (m: any) => void > : ^ ^^ ^^^^^ >m : any +> : ^^^ } diff --git a/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).errors.txt b/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).errors.txt new file mode 100644 index 0000000000000..9e13d982bc953 --- /dev/null +++ b/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' 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 }; + +==== 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; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).errors.txt b/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).errors.txt new file mode 100644 index 0000000000000..5c2c8ba5d6ac7 --- /dev/null +++ b/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' 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 }; + +==== 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; + \ No newline at end of file diff --git a/tests/baselines/reference/importImportOnlyModule.errors.txt b/tests/baselines/reference/importImportOnlyModule.errors.txt new file mode 100644 index 0000000000000..c38af9ccb9190 --- /dev/null +++ b/tests/baselines/reference/importImportOnlyModule.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo_2.ts (0 errors) ==== + import foo = require("./foo_1"); + var x = foo; // Cause a runtime dependency + +==== foo_0.ts (0 errors) ==== + export class C1 { + m1 = 42; + static s1 = true; + } + +==== foo_1.ts (0 errors) ==== + import c1 = require('./foo_0'); // Makes this an external module + var answer = 42; // No exports + \ No newline at end of file diff --git a/tests/baselines/reference/importMeta(module=system,target=es5).errors.txt b/tests/baselines/reference/importMeta(module=system,target=es5).errors.txt index 6cb04eae554d7..a45105e6c9bcf 100644 --- a/tests/baselines/reference/importMeta(module=system,target=es5).errors.txt +++ b/tests/baselines/reference/importMeta(module=system,target=es5).errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. assignmentTargets.ts(1,44): error TS2339: Property 'blah' does not exist on type 'ImportMeta'. assignmentTargets.ts(1,63): error TS2339: Property 'blue' does not exist on type 'ImportMeta'. assignmentTargets.ts(2,1): error TS2364: The left-hand side of an assignment expression must be a variable or a property access. @@ -8,6 +9,7 @@ scriptLookingFile01.ts(2,22): error TS17012: 'metal' is not a valid meta-propert scriptLookingFile01.ts(3,22): error TS17012: 'import' is not a valid meta-property for keyword 'import'. Did you mean 'meta'? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== example.ts (1 errors) ==== // Adapted from https://github.com/tc39/proposal-import-meta/tree/c3902a9ffe2e69a7ac42c19d7ea74cbdcea9b7fb#example (async () => { diff --git a/tests/baselines/reference/importMeta(module=system,target=esnext).errors.txt b/tests/baselines/reference/importMeta(module=system,target=esnext).errors.txt index 6cb04eae554d7..a45105e6c9bcf 100644 --- a/tests/baselines/reference/importMeta(module=system,target=esnext).errors.txt +++ b/tests/baselines/reference/importMeta(module=system,target=esnext).errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. assignmentTargets.ts(1,44): error TS2339: Property 'blah' does not exist on type 'ImportMeta'. assignmentTargets.ts(1,63): error TS2339: Property 'blue' does not exist on type 'ImportMeta'. assignmentTargets.ts(2,1): error TS2364: The left-hand side of an assignment expression must be a variable or a property access. @@ -8,6 +9,7 @@ scriptLookingFile01.ts(2,22): error TS17012: 'metal' is not a valid meta-propert scriptLookingFile01.ts(3,22): error TS17012: 'import' is not a valid meta-property for keyword 'import'. Did you mean 'meta'? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== example.ts (1 errors) ==== // Adapted from https://github.com/tc39/proposal-import-meta/tree/c3902a9ffe2e69a7ac42c19d7ea74cbdcea9b7fb#example (async () => { diff --git a/tests/baselines/reference/importMetaNarrowing(module=system).errors.txt b/tests/baselines/reference/importMetaNarrowing(module=system).errors.txt new file mode 100644 index 0000000000000..7f6610011e1d5 --- /dev/null +++ b/tests/baselines/reference/importMetaNarrowing(module=system).errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== importMetaNarrowing.ts (0 errors) ==== + declare global { interface ImportMeta {foo?: () => void} }; + + if (import.meta.foo) { + import.meta.foo(); + } + \ No newline at end of file diff --git a/tests/baselines/reference/importNonExternalModule.errors.txt b/tests/baselines/reference/importNonExternalModule.errors.txt index 1e6a62f49feb2..85807c8966ae9 100644 --- a/tests/baselines/reference/importNonExternalModule.errors.txt +++ b/tests/baselines/reference/importNonExternalModule.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. foo_1.ts(1,22): error TS2306: File 'foo_0.ts' is not a module. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== foo_1.ts (1 errors) ==== import foo = require("./foo_0"); ~~~~~~~~~ diff --git a/tests/baselines/reference/importShadowsGlobalName.errors.txt b/tests/baselines/reference/importShadowsGlobalName.errors.txt new file mode 100644 index 0000000000000..39f345f4cfefb --- /dev/null +++ b/tests/baselines/reference/importShadowsGlobalName.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== Bar.ts (0 errors) ==== + import Error = require('Foo'); + class Bar extends Error {} + export = Bar; +==== Foo.ts (0 errors) ==== + class Foo {} + export = Foo; + \ No newline at end of file diff --git a/tests/baselines/reference/importTypeAmdBundleRewrite.errors.txt b/tests/baselines/reference/importTypeAmdBundleRewrite.errors.txt new file mode 100644 index 0000000000000..8986a26bb0304 --- /dev/null +++ b/tests/baselines/reference/importTypeAmdBundleRewrite.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a/b/c.ts (0 errors) ==== + export interface Foo { + x: 12; + } +==== a/inner.ts (0 errors) ==== + const c: import("./b/c").Foo = {x: 12}; + export {c}; + +==== index.ts (0 errors) ==== + const d: typeof import("./a/inner")["c"] = {x: 12}; + export {d}; + \ No newline at end of file diff --git a/tests/baselines/reference/import_reference-exported-alias.errors.txt b/tests/baselines/reference/import_reference-exported-alias.errors.txt new file mode 100644 index 0000000000000..83ee7312a7f92 --- /dev/null +++ b/tests/baselines/reference/import_reference-exported-alias.errors.txt @@ -0,0 +1,24 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file2.ts (0 errors) ==== + import appJs = require("file1"); + import Services = appJs.Services; + import UserServices = Services.UserServices; + var x = new UserServices().getUserName(); + +==== file1.ts (0 errors) ==== + namespace App { + export namespace Services { + export class UserServices { + public getUserName(): string { + return "Bill Gates"; + } + } + } + } + + import Mod = App; + export = Mod; + \ No newline at end of file diff --git a/tests/baselines/reference/import_reference-to-type-alias.errors.txt b/tests/baselines/reference/import_reference-to-type-alias.errors.txt new file mode 100644 index 0000000000000..c2a56c65c3c83 --- /dev/null +++ b/tests/baselines/reference/import_reference-to-type-alias.errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file2.ts (0 errors) ==== + import appJs = require("file1"); + import Services = appJs.App.Services; + var x = new Services.UserServices().getUserName(); + +==== file1.ts (0 errors) ==== + export namespace App { + export namespace Services { + export class UserServices { + public getUserName(): string { + return "Bill Gates"; + } + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/import_unneeded-require-when-referenecing-aliased-type-throug-array.errors.txt b/tests/baselines/reference/import_unneeded-require-when-referenecing-aliased-type-throug-array.errors.txt new file mode 100644 index 0000000000000..30e51a1112342 --- /dev/null +++ b/tests/baselines/reference/import_unneeded-require-when-referenecing-aliased-type-throug-array.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + /// + import ITest = require('ITest'); + var testData: ITest[]; + var p = testData[0].name; + +==== b.ts (0 errors) ==== + declare module "ITest" { + interface Name { + name: string; + } + export = Name; + } + \ No newline at end of file diff --git a/tests/baselines/reference/import_var-referencing-an-imported-module-alias.errors.txt b/tests/baselines/reference/import_var-referencing-an-imported-module-alias.errors.txt new file mode 100644 index 0000000000000..35aa73efb55f6 --- /dev/null +++ b/tests/baselines/reference/import_var-referencing-an-imported-module-alias.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== consumer.ts (0 errors) ==== + import host = require("host"); + var hostVar = host; + var v = new hostVar.Host(); + +==== host.ts (0 errors) ==== + export class Host { } + \ No newline at end of file diff --git a/tests/baselines/reference/importedAliasesInTypePositions.errors.txt b/tests/baselines/reference/importedAliasesInTypePositions.errors.txt new file mode 100644 index 0000000000000..403509739a312 --- /dev/null +++ b/tests/baselines/reference/importedAliasesInTypePositions.errors.txt @@ -0,0 +1,21 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file2.ts (0 errors) ==== + import RT_ALIAS = require("file1"); + import ReferredTo = RT_ALIAS.elaborate.nested.mod.name.ReferredTo; + + export namespace ImportingModule { + class UsesReferredType { + constructor(private referred: ReferredTo) { } + } + } +==== file1.ts (0 errors) ==== + export namespace elaborate.nested.mod.name { + export class ReferredTo { + doSomething(): void { + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/importedModuleClassNameClash.errors.txt b/tests/baselines/reference/importedModuleClassNameClash.errors.txt new file mode 100644 index 0000000000000..1e6002bf6463a --- /dev/null +++ b/tests/baselines/reference/importedModuleClassNameClash.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== importedModuleClassNameClash.ts (0 errors) ==== + import foo = m1; + + export namespace m1 { } + + class foo { } + \ No newline at end of file diff --git a/tests/baselines/reference/importedModuleClassNameClash.types b/tests/baselines/reference/importedModuleClassNameClash.types index 5c51eb681617f..847a0abb64866 100644 --- a/tests/baselines/reference/importedModuleClassNameClash.types +++ b/tests/baselines/reference/importedModuleClassNameClash.types @@ -4,7 +4,8 @@ import foo = m1; >foo : typeof foo > : ^^^^^^^^^^ ->m1 : error +>m1 : any +> : ^^^ export namespace m1 { } diff --git a/tests/baselines/reference/importsInAmbientModules1.errors.txt b/tests/baselines/reference/importsInAmbientModules1.errors.txt new file mode 100644 index 0000000000000..6df82ef0b129b --- /dev/null +++ b/tests/baselines/reference/importsInAmbientModules1.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== external.d.ts (0 errors) ==== + export var x: number + +==== main.ts (0 errors) ==== + declare module "M" { + import {x} from "external" + } \ No newline at end of file diff --git a/tests/baselines/reference/importsInAmbientModules2.errors.txt b/tests/baselines/reference/importsInAmbientModules2.errors.txt new file mode 100644 index 0000000000000..478f04c3d80d0 --- /dev/null +++ b/tests/baselines/reference/importsInAmbientModules2.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== external.d.ts (0 errors) ==== + export default class C {} + +==== main.ts (0 errors) ==== + declare module "M" { + import C from "external" + } \ No newline at end of file diff --git a/tests/baselines/reference/importsInAmbientModules3.errors.txt b/tests/baselines/reference/importsInAmbientModules3.errors.txt new file mode 100644 index 0000000000000..2f70e94171482 --- /dev/null +++ b/tests/baselines/reference/importsInAmbientModules3.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== main.ts (0 errors) ==== + declare module "M" { + import C = require("external"); + } +==== external.d.ts (0 errors) ==== + export default class C {} + \ No newline at end of file diff --git a/tests/baselines/reference/instanceOfInExternalModules.errors.txt b/tests/baselines/reference/instanceOfInExternalModules.errors.txt new file mode 100644 index 0000000000000..e611dcf5b41d2 --- /dev/null +++ b/tests/baselines/reference/instanceOfInExternalModules.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== instanceOfInExternalModules_1.ts (0 errors) ==== + /// + import Bar = require("instanceOfInExternalModules_require"); + function IsFoo(value: any): boolean { + return value instanceof Bar.Foo; + } + +==== instanceOfInExternalModules_require.ts (0 errors) ==== + export class Foo { foo: string; } + \ No newline at end of file diff --git a/tests/baselines/reference/instanceOfInExternalModules.types b/tests/baselines/reference/instanceOfInExternalModules.types index 1642925bc3d41..4e025843be762 100644 --- a/tests/baselines/reference/instanceOfInExternalModules.types +++ b/tests/baselines/reference/instanceOfInExternalModules.types @@ -10,11 +10,13 @@ function IsFoo(value: any): boolean { >IsFoo : (value: any) => boolean > : ^ ^^ ^^^^^ >value : any +> : ^^^ return value instanceof Bar.Foo; >value instanceof Bar.Foo : boolean > : ^^^^^^^ >value : any +> : ^^^ >Bar.Foo : typeof Bar.Foo > : ^^^^^^^^^^^^^^ >Bar : typeof Bar diff --git a/tests/baselines/reference/interfaceDeclaration3.errors.txt b/tests/baselines/reference/interfaceDeclaration3.errors.txt index 12296b53badb3..eec4a988059f1 100644 --- a/tests/baselines/reference/interfaceDeclaration3.errors.txt +++ b/tests/baselines/reference/interfaceDeclaration3.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -7,6 +8,7 @@ interfaceDeclaration3.ts(54,11): error TS2430: Interface 'I2' incorrectly extend Type 'string' is not assignable to type 'number'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== interfaceDeclaration3.ts (3 errors) ==== interface I1 { item:number; } diff --git a/tests/baselines/reference/interfaceDeclaration5.errors.txt b/tests/baselines/reference/interfaceDeclaration5.errors.txt new file mode 100644 index 0000000000000..186a9195e22f3 --- /dev/null +++ b/tests/baselines/reference/interfaceDeclaration5.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== interfaceDeclaration5.ts (0 errors) ==== + export interface I1 { item:string; } + export class C1 { } + \ No newline at end of file diff --git a/tests/baselines/reference/interfaceImplementation6.errors.txt b/tests/baselines/reference/interfaceImplementation6.errors.txt index ce5a76fbbe9bd..9e577dae816a9 100644 --- a/tests/baselines/reference/interfaceImplementation6.errors.txt +++ b/tests/baselines/reference/interfaceImplementation6.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== interfaceImplementation6.ts (2 errors) ==== interface I1 { item:number; diff --git a/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithExport.errors.txt b/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithExport.errors.txt new file mode 100644 index 0000000000000..0e32f6de63ea9 --- /dev/null +++ b/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithExport.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasEnumInsideTopLevelModuleWithExport.ts (0 errors) ==== + export namespace a { + export enum weekend { + Friday, + Saturday, + Sunday + } + } + + export import b = a.weekend; + export var bVal: b = b.Sunday; + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithoutExport.errors.txt b/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithoutExport.errors.txt new file mode 100644 index 0000000000000..e298ad48de0a9 --- /dev/null +++ b/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithoutExport.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasEnumInsideTopLevelModuleWithoutExport.ts (0 errors) ==== + export namespace a { + export enum weekend { + Friday, + Saturday, + Sunday + } + } + + import b = a.weekend; + export var bVal: b = b.Sunday; + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithExport.errors.txt b/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithExport.errors.txt new file mode 100644 index 0000000000000..87dffa8304ed4 --- /dev/null +++ b/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithExport.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasFunctionInsideTopLevelModuleWithExport.ts (0 errors) ==== + export namespace a { + export function foo(x: number) { + return x; + } + } + + export import b = a.foo; + export var bVal = b(10); + export var bVal2 = b; + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.errors.txt b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.errors.txt new file mode 100644 index 0000000000000..8fe0f70788ede --- /dev/null +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasInitializedModuleInsideLocalModuleWithExport.ts (0 errors) ==== + export namespace a { + export namespace b { + export class c { + } + } + } + + export namespace c { + export import b = a.b; + export var x: b.c = new b.c(); + } \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.errors.txt b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.errors.txt new file mode 100644 index 0000000000000..a4016a8b13c25 --- /dev/null +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts (0 errors) ==== + export namespace a { + export namespace b { + export class c { + } + } + } + + import b = a.b; + export var x: b.c = new b.c(); \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.errors.txt b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.errors.txt new file mode 100644 index 0000000000000..aa8213b6a2dca --- /dev/null +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasInterfaceInsideLocalModuleWithExport.ts (0 errors) ==== + export namespace a { + export interface I { + } + } + + export namespace c { + export import b = a.I; + export var x: b; + } + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.errors.txt b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.errors.txt new file mode 100644 index 0000000000000..e8c184fc74084 --- /dev/null +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasInterfaceInsideLocalModuleWithoutExport.ts (0 errors) ==== + export namespace a { + export interface I { + } + } + + export namespace c { + import b = a.I; + export var x: b; + } + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt index 4711a37c290ff..5528ba47b7565 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(11,10): error TS2694: Namespace '"internalAliasInterfaceInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts (1 errors) ==== export namespace a { export interface I { diff --git a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.errors.txt b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.errors.txt new file mode 100644 index 0000000000000..8d4452ecab01f --- /dev/null +++ b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts (0 errors) ==== + export namespace a { + export interface I { + } + } + + import b = a.I; + export var x: b; + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt index 7a702689ed566..0ba83a96598c9 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(16,17): error TS2694: Namespace '"internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts (1 errors) ==== export namespace a { export namespace b { diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.errors.txt b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.errors.txt new file mode 100644 index 0000000000000..09fb81b94ad55 --- /dev/null +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts (0 errors) ==== + export namespace a { + export namespace b { + export interface I { + foo(); + } + } + } + + export import b = a.b; + export var x: b.I; + x.foo(); + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.types b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.types index fb26b65095e65..524e74c7b134c 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.types +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.types @@ -27,6 +27,7 @@ export var x: b.I; x.foo(); >x.foo() : any +> : ^^^ >x.foo : () => any > : ^^^^^^^^^ >x : b.I diff --git a/tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.errors.txt b/tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.errors.txt new file mode 100644 index 0000000000000..2ba14d11d724b --- /dev/null +++ b/tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasVarInsideLocalModuleWithExport.ts (0 errors) ==== + export namespace a { + export var x = 10; + } + + export namespace c { + export import b = a.x; + export var bVal = b; + } + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.errors.txt b/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.errors.txt new file mode 100644 index 0000000000000..afe281be9a989 --- /dev/null +++ b/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasVarInsideLocalModuleWithoutExport.ts (0 errors) ==== + export namespace a { + export var x = 10; + } + + export namespace c { + import b = a.x; + export var bVal = b; + } + \ No newline at end of file diff --git a/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.errors.txt b/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.errors.txt new file mode 100644 index 0000000000000..a634e250de0da --- /dev/null +++ b/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internalAliasVarInsideTopLevelModuleWithExport.ts (0 errors) ==== + export namespace a { + export var x = 10; + } + + export import b = a.x; + export var bVal = b; + + \ No newline at end of file diff --git a/tests/baselines/reference/invalidSyntaxNamespaceImportWithAMD.errors.txt b/tests/baselines/reference/invalidSyntaxNamespaceImportWithAMD.errors.txt index 04835e73eb209..5bf88b00ce72f 100644 --- a/tests/baselines/reference/invalidSyntaxNamespaceImportWithAMD.errors.txt +++ b/tests/baselines/reference/invalidSyntaxNamespaceImportWithAMD.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(1,10): error TS1005: 'as' expected. 1.ts(1,15): error TS1005: 'from' expected. 1.ts(1,15): error TS1141: String literal expected. 1.ts(1,20): error TS1005: ';' expected. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export class C { } diff --git a/tests/baselines/reference/invalidSyntaxNamespaceImportWithSystem.errors.txt b/tests/baselines/reference/invalidSyntaxNamespaceImportWithSystem.errors.txt index 04835e73eb209..ca4f0308ec1e7 100644 --- a/tests/baselines/reference/invalidSyntaxNamespaceImportWithSystem.errors.txt +++ b/tests/baselines/reference/invalidSyntaxNamespaceImportWithSystem.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 1.ts(1,10): error TS1005: 'as' expected. 1.ts(1,15): error TS1005: 'from' expected. 1.ts(1,15): error TS1141: String literal expected. 1.ts(1,20): error TS1005: ';' expected. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 0.ts (0 errors) ==== export class C { } diff --git a/tests/baselines/reference/isolatedDeclarationOutFile.errors.txt b/tests/baselines/reference/isolatedDeclarationOutFile.errors.txt new file mode 100644 index 0000000000000..3db3e59dd3df9 --- /dev/null +++ b/tests/baselines/reference/isolatedDeclarationOutFile.errors.txt @@ -0,0 +1,24 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { + toUpper(msg: string): string { + return msg.toUpperCase(); + } + } + +==== b.ts (0 errors) ==== + import { A } from "./a"; + + export class B extends A { + toFixed(n: number): string { + return n.toFixed(6); + } + } + + export function makeB(): A { + return new B(); + } + \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD.errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-AMD.errors.txt new file mode 100644 index 0000000000000..446077b024f6d --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-AMD.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== isolatedModulesPlainFile-AMD.ts (0 errors) ==== + declare function run(a: number): void; + run(1); + \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System.errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-System.errors.txt new file mode 100644 index 0000000000000..39a0a212feeda --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-System.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== isolatedModulesPlainFile-System.ts (0 errors) ==== + declare function run(a: number): void; + run(1); + \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD.errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-UMD.errors.txt new file mode 100644 index 0000000000000..4628c31cb408a --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-UMD.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== isolatedModulesPlainFile-UMD.ts (0 errors) ==== + declare function run(a: number): void; + run(1); + \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsImportTypeBundled.errors.txt b/tests/baselines/reference/jsDeclarationsImportTypeBundled.errors.txt new file mode 100644 index 0000000000000..2c8a21b54d7a2 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsImportTypeBundled.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== folder/mod1.js (0 errors) ==== + /** + * @typedef {{x: number}} Item + */ + /** + * @type {Item}; + */ + const x = {x: 12}; + module.exports = x; +==== index.js (0 errors) ==== + /** @type {(typeof import("./folder/mod1"))[]} */ + const items = [{x: 12}]; + module.exports = items; \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.errors.txt b/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.errors.txt new file mode 100644 index 0000000000000..caaae70c3ac3e --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.errors.txt @@ -0,0 +1,28 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== _apply.js (0 errors) ==== + /** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {...*} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ + function apply(func, thisArg, ...args) { + var length = args.length; + switch (length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); + } + + export default apply; + \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.types b/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.types index 27985ba64217c..2a91f1f7cc057 100644 --- a/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.types +++ b/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.types @@ -17,6 +17,7 @@ function apply(func, thisArg, ...args) { >func : Function > : ^^^^^^^^ >thisArg : any +> : ^^^ >args : any[] > : ^^^^^ @@ -38,6 +39,7 @@ function apply(func, thisArg, ...args) { >0 : 0 > : ^ >func.call(thisArg) : any +> : ^^^ >func.call : (this: Function, thisArg: any, ...argArray: any[]) => any > : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ >func : Function @@ -45,11 +47,13 @@ function apply(func, thisArg, ...args) { >call : (this: Function, thisArg: any, ...argArray: any[]) => any > : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ >thisArg : any +> : ^^^ case 1: return func.call(thisArg, args[0]); >1 : 1 > : ^ >func.call(thisArg, args[0]) : any +> : ^^^ >func.call : (this: Function, thisArg: any, ...argArray: any[]) => any > : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ >func : Function @@ -57,7 +61,9 @@ function apply(func, thisArg, ...args) { >call : (this: Function, thisArg: any, ...argArray: any[]) => any > : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ >thisArg : any +> : ^^^ >args[0] : any +> : ^^^ >args : any[] > : ^^^^^ >0 : 0 @@ -67,6 +73,7 @@ function apply(func, thisArg, ...args) { >2 : 2 > : ^ >func.call(thisArg, args[0], args[1]) : any +> : ^^^ >func.call : (this: Function, thisArg: any, ...argArray: any[]) => any > : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ >func : Function @@ -74,12 +81,15 @@ function apply(func, thisArg, ...args) { >call : (this: Function, thisArg: any, ...argArray: any[]) => any > : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ >thisArg : any +> : ^^^ >args[0] : any +> : ^^^ >args : any[] > : ^^^^^ >0 : 0 > : ^ >args[1] : any +> : ^^^ >args : any[] > : ^^^^^ >1 : 1 @@ -89,6 +99,7 @@ function apply(func, thisArg, ...args) { >3 : 3 > : ^ >func.call(thisArg, args[0], args[1], args[2]) : any +> : ^^^ >func.call : (this: Function, thisArg: any, ...argArray: any[]) => any > : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ >func : Function @@ -96,17 +107,21 @@ function apply(func, thisArg, ...args) { >call : (this: Function, thisArg: any, ...argArray: any[]) => any > : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ >thisArg : any +> : ^^^ >args[0] : any +> : ^^^ >args : any[] > : ^^^^^ >0 : 0 > : ^ >args[1] : any +> : ^^^ >args : any[] > : ^^^^^ >1 : 1 > : ^ >args[2] : any +> : ^^^ >args : any[] > : ^^^^^ >2 : 2 @@ -114,6 +129,7 @@ function apply(func, thisArg, ...args) { } return func.apply(thisArg, args); >func.apply(thisArg, args) : any +> : ^^^ >func.apply : (this: Function, thisArg: any, argArray?: any) => any > : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ >func : Function @@ -121,6 +137,7 @@ function apply(func, thisArg, ...args) { >apply : (this: Function, thisArg: any, argArray?: any) => any > : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ >thisArg : any +> : ^^^ >args : any[] > : ^^^^^ } diff --git a/tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt b/tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt index 11dd272e65c7f..453fbd038e286 100644 --- a/tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt +++ b/tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt @@ -1,4 +1,4 @@ -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) ==== @@ -6,7 +6,7 @@ jsxFragmentFactoryReference.tsx(3,9): error TS2792: Cannot find module 'react/js 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/tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt b/tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt index b9185baa77ec7..7529f71c4d566 100644 --- a/tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt +++ b/tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsxdev).errors.txt @@ -1,4 +1,4 @@ -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) ==== @@ -6,7 +6,7 @@ jsxFragmentFactoryReference.tsx(3,9): error TS2792: Cannot find module 'react/js 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/tests/baselines/reference/keepImportsInDts1.errors.txt b/tests/baselines/reference/keepImportsInDts1.errors.txt new file mode 100644 index 0000000000000..f97a0bc46f547 --- /dev/null +++ b/tests/baselines/reference/keepImportsInDts1.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== c:/test.d.ts (0 errors) ==== + export {}; +==== c:/app/main.ts (0 errors) ==== + import "test" \ No newline at end of file diff --git a/tests/baselines/reference/keepImportsInDts2.errors.txt b/tests/baselines/reference/keepImportsInDts2.errors.txt new file mode 100644 index 0000000000000..5d2e2145509e0 --- /dev/null +++ b/tests/baselines/reference/keepImportsInDts2.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== folder/test.ts (0 errors) ==== + export {}; +==== main.ts (0 errors) ==== + import "./folder/test" \ No newline at end of file diff --git a/tests/baselines/reference/keepImportsInDts3.errors.txt b/tests/baselines/reference/keepImportsInDts3.errors.txt new file mode 100644 index 0000000000000..ab575337fb28a --- /dev/null +++ b/tests/baselines/reference/keepImportsInDts3.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== c:/test.ts (0 errors) ==== + export {}; +==== c:/app/main.ts (0 errors) ==== + import "test" + \ No newline at end of file diff --git a/tests/baselines/reference/keepImportsInDts4.errors.txt b/tests/baselines/reference/keepImportsInDts4.errors.txt new file mode 100644 index 0000000000000..1fc5e4d5f136a --- /dev/null +++ b/tests/baselines/reference/keepImportsInDts4.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== folder/test.ts (0 errors) ==== + export {}; +==== main.ts (0 errors) ==== + import "./folder/test" + \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt index c82821c21e508..3f04b2a944f07 100644 --- a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt +++ b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. labeledStatementExportDeclarationNoCrash1.ts(3,14): error TS1155: 'const' declarations must be initialized. labeledStatementExportDeclarationNoCrash1.ts(5,1): error TS1184: Modifiers cannot appear here. labeledStatementExportDeclarationNoCrash1.ts(5,14): error TS1155: 'const' declarations must be initialized. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== labeledStatementExportDeclarationNoCrash1.ts (3 errors) ==== // https://github.com/microsoft/TypeScript/issues/59372 diff --git a/tests/baselines/reference/libReferenceDeclarationEmitBundle.errors.txt b/tests/baselines/reference/libReferenceDeclarationEmitBundle.errors.txt new file mode 100644 index 0000000000000..35581620421d6 --- /dev/null +++ b/tests/baselines/reference/libReferenceDeclarationEmitBundle.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + /// + export declare const elem: HTMLElement; + +==== file2.ts (0 errors) ==== + /// + export {} + declare const elem: HTMLElement; \ No newline at end of file diff --git a/tests/baselines/reference/libReferenceNoLibBundle.errors.txt b/tests/baselines/reference/libReferenceNoLibBundle.errors.txt new file mode 100644 index 0000000000000..2f82acb2c125b --- /dev/null +++ b/tests/baselines/reference/libReferenceNoLibBundle.errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== fakelib.ts (0 errors) ==== + interface Object { } + interface Array { } + interface String { } + interface Boolean { } + interface Number { } + interface Function { } + interface RegExp { } + interface IArguments { } + + +==== file1.ts (0 errors) ==== + /// + export declare interface HTMLElement { field: string; } + export const elem: HTMLElement = { field: 'a' }; + \ No newline at end of file diff --git a/tests/baselines/reference/memberAccessMustUseModuleInstances.errors.txt b/tests/baselines/reference/memberAccessMustUseModuleInstances.errors.txt new file mode 100644 index 0000000000000..ab36e8b411a4a --- /dev/null +++ b/tests/baselines/reference/memberAccessMustUseModuleInstances.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== memberAccessMustUseModuleInstances_1.ts (0 errors) ==== + /// + import WinJS = require('memberAccessMustUseModuleInstances_0'); + + WinJS.Promise.timeout(10); + +==== memberAccessMustUseModuleInstances_0.ts (0 errors) ==== + export class Promise { + static timeout(delay: number): Promise { + return null; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/mergedDeclarations6.errors.txt b/tests/baselines/reference/mergedDeclarations6.errors.txt new file mode 100644 index 0000000000000..cea7df9f75504 --- /dev/null +++ b/tests/baselines/reference/mergedDeclarations6.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { + protected protected: any; + + protected setProtected(val: any) { + this.protected = val; + } + } + +==== b.ts (0 errors) ==== + import {A} from './a'; + + declare module "./a" { + interface A { } + } + + export class B extends A { + protected setProtected() { + + } + } \ No newline at end of file diff --git a/tests/baselines/reference/mergedDeclarations6.types b/tests/baselines/reference/mergedDeclarations6.types index 9cc38a99f3dad..5962489ce7a2c 100644 --- a/tests/baselines/reference/mergedDeclarations6.types +++ b/tests/baselines/reference/mergedDeclarations6.types @@ -7,20 +7,25 @@ export class A { protected protected: any; >protected : any +> : ^^^ protected setProtected(val: any) { >setProtected : (val: any) => void > : ^ ^^ ^^^^^^^^^ >val : any +> : ^^^ this.protected = val; >this.protected = val : any +> : ^^^ >this.protected : any +> : ^^^ >this : this > : ^^^^ >protected : any > : ^^^ >val : any +> : ^^^ } } diff --git a/tests/baselines/reference/moduleAliasAsFunctionArgument.errors.txt b/tests/baselines/reference/moduleAliasAsFunctionArgument.errors.txt new file mode 100644 index 0000000000000..df4a18a2ed0ee --- /dev/null +++ b/tests/baselines/reference/moduleAliasAsFunctionArgument.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== moduleAliasAsFunctionArgument_1.ts (0 errors) ==== + /// + import a = require('moduleAliasAsFunctionArgument_0'); + + function fn(arg: { x: number }) { + } + + a.x; // OK + fn(a); // Error: property 'x' is missing from 'a' + +==== moduleAliasAsFunctionArgument_0.ts (0 errors) ==== + export var x: number; + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt new file mode 100644 index 0000000000000..ab7230781a1f1 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt @@ -0,0 +1,35 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== map1.ts (0 errors) ==== + import { Observable } from "./observable" + + (Observable.prototype).map = function() { } + + declare module "./observable" { + interface I {x0} + } + +==== map2.ts (0 errors) ==== + import { Observable } from "./observable" + + (Observable.prototype).map = function() { } + + declare module "./observable" { + interface I {x1} + } + + +==== observable.ts (0 errors) ==== + export declare class Observable { + filter(pred: (e:T) => boolean): Observable; + } + +==== main.ts (0 errors) ==== + import { Observable } from "./observable" + import "./map1"; + import "./map2"; + + let x: Observable; + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.types b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.types index ad9049c840c54..5cf30422617b6 100644 --- a/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.types +++ b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.types @@ -9,9 +9,11 @@ import { Observable } from "./observable" >(Observable.prototype).map = function() { } : () => void > : ^^^^^^^^^^ >(Observable.prototype).map : any +> : ^^^ >(Observable.prototype) : any > : ^^^ >Observable.prototype : any +> : ^^^ >Observable.prototype : Observable > : ^^^^^^^^^^^^^^^ >Observable : typeof Observable @@ -29,6 +31,7 @@ declare module "./observable" { interface I {x0} >x0 : any +> : ^^^ } === map2.ts === @@ -40,9 +43,11 @@ import { Observable } from "./observable" >(Observable.prototype).map = function() { } : () => void > : ^^^^^^^^^^ >(Observable.prototype).map : any +> : ^^^ >(Observable.prototype) : any > : ^^^ >Observable.prototype : any +> : ^^^ >Observable.prototype : Observable > : ^^^^^^^^^^^^^^^ >Observable : typeof Observable @@ -60,6 +65,7 @@ declare module "./observable" { interface I {x1} >x1 : any +> : ^^^ } diff --git a/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt b/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt index 5baaa2e211ab1..3674af6661361 100644 --- a/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt +++ b/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. moduleAugmentationGlobal8.ts(2,13): error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== moduleAugmentationGlobal8.ts (1 errors) ==== namespace A { declare global { diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt b/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt index 603a7a8196932..607134b928640 100644 --- a/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt +++ b/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== moduleAugmentationGlobal8_1.ts (2 errors) ==== namespace A { global { diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt b/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt new file mode 100644 index 0000000000000..a45ae85babde3 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt @@ -0,0 +1,57 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export class Cls { + } + +==== m2.ts (0 errors) ==== + import {Cls} from "./m1"; + (Cls.prototype).foo = function() { return 1; }; + (Cls.prototype).bar = function() { return "1"; }; + + declare module "./m1" { + interface Cls { + foo(): number; + } + } + + declare module "./m1" { + interface Cls { + bar(): string; + } + } + +==== m3.ts (0 errors) ==== + export class C1 { x: number } + export class C2 { x: string } + +==== m4.ts (0 errors) ==== + import {Cls} from "./m1"; + import {C1, C2} from "./m3"; + (Cls.prototype).baz1 = function() { return undefined }; + (Cls.prototype).baz2 = function() { return undefined }; + + declare module "./m1" { + interface Cls { + baz1(): C1; + } + } + + declare module "./m1" { + interface Cls { + baz2(): C2; + } + } + +==== test.ts (0 errors) ==== + import { Cls } from "./m1"; + import "m2"; + import "m4"; + let c: Cls; + c.foo().toExponential(); + c.bar().toLowerCase(); + c.baz1().x.toExponential(); + c.baz2().x.toLowerCase(); + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.types b/tests/baselines/reference/moduleAugmentationsBundledOutput1.types index 5af7b27038a40..665aff9a89ab8 100644 --- a/tests/baselines/reference/moduleAugmentationsBundledOutput1.types +++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1.types @@ -15,9 +15,11 @@ import {Cls} from "./m1"; >(Cls.prototype).foo = function() { return 1; } : () => number > : ^^^^^^^^^^^^ >(Cls.prototype).foo : any +> : ^^^ >(Cls.prototype) : any > : ^^^ >Cls.prototype : any +> : ^^^ >Cls.prototype : Cls > : ^^^ >Cls : typeof Cls @@ -35,9 +37,11 @@ import {Cls} from "./m1"; >(Cls.prototype).bar = function() { return "1"; } : () => string > : ^^^^^^^^^^^^ >(Cls.prototype).bar : any +> : ^^^ >(Cls.prototype) : any > : ^^^ >Cls.prototype : any +> : ^^^ >Cls.prototype : Cls > : ^^^ >Cls : typeof Cls @@ -101,9 +105,11 @@ import {C1, C2} from "./m3"; >(Cls.prototype).baz1 = function() { return undefined } : () => any > : ^^^^^^^^^ >(Cls.prototype).baz1 : any +> : ^^^ >(Cls.prototype) : any > : ^^^ >Cls.prototype : any +> : ^^^ >Cls.prototype : Cls > : ^^^ >Cls : typeof Cls @@ -121,9 +127,11 @@ import {C1, C2} from "./m3"; >(Cls.prototype).baz2 = function() { return undefined } : () => any > : ^^^^^^^^^ >(Cls.prototype).baz2 : any +> : ^^^ >(Cls.prototype) : any > : ^^^ >Cls.prototype : any +> : ^^^ >Cls.prototype : Cls > : ^^^ >Cls : typeof Cls diff --git a/tests/baselines/reference/moduleAugmentationsImports1.errors.txt b/tests/baselines/reference/moduleAugmentationsImports1.errors.txt new file mode 100644 index 0000000000000..eddd60c92f3de --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsImports1.errors.txt @@ -0,0 +1,45 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A {} + +==== b.ts (0 errors) ==== + export class B {x: number;} + +==== c.d.ts (0 errors) ==== + declare module "C" { + class Cls {y: string; } + } + +==== d.ts (0 errors) ==== + /// + + import {A} from "./a"; + import {B} from "./b"; + import {Cls} from "C"; + + A.prototype.getB = function () { return undefined; } + A.prototype.getCls = function () { return undefined; } + + declare module "./a" { + interface A { + getB(): B; + } + } + + declare module "./a" { + interface A { + getCls(): Cls; + } + } + +==== main.ts (0 errors) ==== + import {A} from "./a"; + import "d"; + + let a: A; + let b = a.getB().x.toFixed(); + let c = a.getCls().y.toLowerCase(); + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports2.errors.txt b/tests/baselines/reference/moduleAugmentationsImports2.errors.txt new file mode 100644 index 0000000000000..230be8a692bf6 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsImports2.errors.txt @@ -0,0 +1,50 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A {} + +==== b.ts (0 errors) ==== + export class B {x: number;} + +==== c.d.ts (0 errors) ==== + declare module "C" { + class Cls {y: string; } + } + +==== d.ts (0 errors) ==== + /// + + import {A} from "./a"; + import {B} from "./b"; + + A.prototype.getB = function () { return undefined; } + + declare module "./a" { + interface A { + getB(): B; + } + } + +==== e.ts (0 errors) ==== + import {A} from "./a"; + import {Cls} from "C"; + + A.prototype.getCls = function () { return undefined; } + + declare module "./a" { + interface A { + getCls(): Cls; + } + } + +==== main.ts (0 errors) ==== + import {A} from "./a"; + import "d"; + import "e"; + + let a: A; + let b = a.getB().x.toFixed(); + let c = a.getCls().y.toLowerCase(); + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports3.errors.txt b/tests/baselines/reference/moduleAugmentationsImports3.errors.txt new file mode 100644 index 0000000000000..bdce32fc03a65 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsImports3.errors.txt @@ -0,0 +1,49 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== main.ts (0 errors) ==== + /// + import {A} from "./a"; + import "D"; + import "e"; + + let a: A; + let b = a.getB().x.toFixed(); + let c = a.getCls().y.toLowerCase(); + +==== a.ts (0 errors) ==== + export class A {} + +==== b.ts (0 errors) ==== + export class B {x: number;} + +==== c.d.ts (0 errors) ==== + declare module "C" { + class Cls {y: string; } + } + +==== d.d.ts (0 errors) ==== + declare module "D" { + import {A} from "a"; + import {B} from "b"; + module "a" { + interface A { + getB(): B; + } + } + } + +==== e.ts (0 errors) ==== + /// + import {A} from "./a"; + import {Cls} from "C"; + + A.prototype.getCls = function () { return undefined; } + + declare module "./a" { + interface A { + getCls(): Cls; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports3.js b/tests/baselines/reference/moduleAugmentationsImports3.js index dfb7176ee8d84..14ae0f65f2ffa 100644 --- a/tests/baselines/reference/moduleAugmentationsImports3.js +++ b/tests/baselines/reference/moduleAugmentationsImports3.js @@ -106,53 +106,3 @@ declare module "main" { import "D"; import "e"; } - - -//// [DtsFileErrors] - - -f.d.ts(20,12): error TS2882: Cannot find module or type declarations for side-effect import of 'D'. - - -==== f.d.ts (1 errors) ==== - /// - declare module "a" { - export class A { - } - } - declare module "b" { - export class B { - x: number; - } - } - declare module "e" { - import { Cls } from "C"; - module "a" { - interface A { - getCls(): Cls; - } - } - } - declare module "main" { - import "D"; - ~~~ -!!! error TS2882: Cannot find module or type declarations for side-effect import of 'D'. - import "e"; - } - -==== c.d.ts (0 errors) ==== - declare module "C" { - class Cls {y: string; } - } - -==== d.d.ts (0 errors) ==== - declare module "D" { - import {A} from "a"; - import {B} from "b"; - module "a" { - interface A { - getB(): B; - } - } - } - \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports4.errors.txt b/tests/baselines/reference/moduleAugmentationsImports4.errors.txt new file mode 100644 index 0000000000000..f2647f4fc4f1c --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsImports4.errors.txt @@ -0,0 +1,50 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== main.ts (0 errors) ==== + /// + /// + import {A} from "./a"; + import "D"; + import "E"; + + let a: A; + let b = a.getB().x.toFixed(); + let c = a.getCls().y.toLowerCase(); + +==== a.ts (0 errors) ==== + export class A {} + +==== b.ts (0 errors) ==== + export class B {x: number;} + +==== c.d.ts (0 errors) ==== + declare module "C" { + class Cls {y: string; } + } + +==== d.d.ts (0 errors) ==== + declare module "D" { + import {A} from "a"; + import {B} from "b"; + module "a" { + interface A { + getB(): B; + } + } + } + +==== e.d.ts (0 errors) ==== + /// + declare module "E" { + import {A} from "a"; + import {Cls} from "C"; + + module "a" { + interface A { + getCls(): Cls; + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports4.js b/tests/baselines/reference/moduleAugmentationsImports4.js index f70b3e3768262..d009f154ad0fd 100644 --- a/tests/baselines/reference/moduleAugmentationsImports4.js +++ b/tests/baselines/reference/moduleAugmentationsImports4.js @@ -93,60 +93,3 @@ declare module "main" { import "D"; import "E"; } - - -//// [DtsFileErrors] - - -f.d.ts(11,12): error TS2882: Cannot find module or type declarations for side-effect import of 'D'. -f.d.ts(12,12): error TS2882: Cannot find module or type declarations for side-effect import of 'E'. - - -==== f.d.ts (2 errors) ==== - declare module "a" { - export class A { - } - } - declare module "b" { - export class B { - x: number; - } - } - declare module "main" { - import "D"; - ~~~ -!!! error TS2882: Cannot find module or type declarations for side-effect import of 'D'. - import "E"; - ~~~ -!!! error TS2882: Cannot find module or type declarations for side-effect import of 'E'. - } - -==== c.d.ts (0 errors) ==== - declare module "C" { - class Cls {y: string; } - } - -==== d.d.ts (0 errors) ==== - declare module "D" { - import {A} from "a"; - import {B} from "b"; - module "a" { - interface A { - getB(): B; - } - } - } - -==== e.d.ts (0 errors) ==== - /// - declare module "E" { - import {A} from "a"; - import {Cls} from "C"; - - module "a" { - interface A { - getCls(): Cls; - } - } - } - \ No newline at end of file diff --git a/tests/baselines/reference/moduleExports1.errors.txt b/tests/baselines/reference/moduleExports1.errors.txt index fb4a023c6af7f..6eb67bf0512e9 100644 --- a/tests/baselines/reference/moduleExports1.errors.txt +++ b/tests/baselines/reference/moduleExports1.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. moduleExports1.ts(13,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(13,22): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== moduleExports1.ts (2 errors) ==== export namespace TypeScript.Strasse.Street { export class Rue { diff --git a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.errors.txt b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.errors.txt new file mode 100644 index 0000000000000..582decfe9ccc2 --- /dev/null +++ b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== moduleImportedForTypeArgumentPosition_1.ts (0 errors) ==== + /**This is on import declaration*/ + import M2 = require("moduleImportedForTypeArgumentPosition_0"); + class C1{ } + class Test1 extends C1 { + } + +==== moduleImportedForTypeArgumentPosition_0.ts (0 errors) ==== + export interface M2C { } + \ No newline at end of file diff --git a/tests/baselines/reference/moduleMergeConstructor.errors.txt b/tests/baselines/reference/moduleMergeConstructor.errors.txt new file mode 100644 index 0000000000000..eb50eb679b69b --- /dev/null +++ b/tests/baselines/reference/moduleMergeConstructor.errors.txt @@ -0,0 +1,29 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.d.ts (0 errors) ==== + declare module "foo" { + export class Foo { + constructor(); + method1(): any; + } + } + +==== foo-ext.d.ts (0 errors) ==== + declare module "foo" { + export interface Foo { + method2(): any; + } + } + +==== index.ts (0 errors) ==== + import * as foo from "foo"; + + class Test { + bar: foo.Foo; + constructor() { + this.bar = new foo.Foo(); + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt b/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt new file mode 100644 index 0000000000000..e2c5580e84230 --- /dev/null +++ b/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt @@ -0,0 +1,14 @@ +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. + + +!!! 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. +==== /a.ts (0 errors) ==== + const foo = import("./b"); + +==== /b.js (0 errors) ==== + export default 1; + \ No newline at end of file diff --git a/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt b/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt new file mode 100644 index 0000000000000..e2c5580e84230 --- /dev/null +++ b/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt @@ -0,0 +1,14 @@ +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. + + +!!! 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. +==== /a.ts (0 errors) ==== + const foo = import("./b"); + +==== /b.js (0 errors) ==== + export default 1; + \ No newline at end of file diff --git a/tests/baselines/reference/moduleNoneErrors.errors.txt b/tests/baselines/reference/moduleNoneErrors.errors.txt index 1c79566fe7150..c88b224978fec 100644 --- a/tests/baselines/reference/moduleNoneErrors.errors.txt +++ b/tests/baselines/reference/moduleNoneErrors.errors.txt @@ -1,6 +1,12 @@ +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. a.ts(1,14): 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. ==== a.ts (1 errors) ==== export class Foo { ~~~ diff --git a/tests/baselines/reference/moduleNoneOutFile.errors.txt b/tests/baselines/reference/moduleNoneOutFile.errors.txt new file mode 100644 index 0000000000000..055f8e05bb714 --- /dev/null +++ b/tests/baselines/reference/moduleNoneOutFile.errors.txt @@ -0,0 +1,12 @@ +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. + + +!!! 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. +==== first.ts (0 errors) ==== + class Foo {} +==== second.ts (0 errors) ==== + class Bar extends Foo {} \ No newline at end of file diff --git a/tests/baselines/reference/modulePrologueAMD.errors.txt b/tests/baselines/reference/modulePrologueAMD.errors.txt new file mode 100644 index 0000000000000..ed9351bbd350f --- /dev/null +++ b/tests/baselines/reference/modulePrologueAMD.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== modulePrologueAMD.ts (0 errors) ==== + "use strict"; + + export class Foo {} \ No newline at end of file diff --git a/tests/baselines/reference/modulePrologueSystem.errors.txt b/tests/baselines/reference/modulePrologueSystem.errors.txt new file mode 100644 index 0000000000000..4c128553e2f44 --- /dev/null +++ b/tests/baselines/reference/modulePrologueSystem.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== modulePrologueSystem.ts (0 errors) ==== + "use strict"; + + export class Foo {} \ No newline at end of file diff --git a/tests/baselines/reference/modulePrologueUmd.errors.txt b/tests/baselines/reference/modulePrologueUmd.errors.txt new file mode 100644 index 0000000000000..70ed6ce2dd894 --- /dev/null +++ b/tests/baselines/reference/modulePrologueUmd.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== modulePrologueUmd.ts (0 errors) ==== + "use strict"; + + export class Foo {} \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolution/same-file-is-referenced-using-absolute-and-relative-names.js b/tests/baselines/reference/moduleResolution/same-file-is-referenced-using-absolute-and-relative-names.js index 61a7354cee492..7800c822f4a29 100644 --- a/tests/baselines/reference/moduleResolution/same-file-is-referenced-using-absolute-and-relative-names.js +++ b/tests/baselines/reference/moduleResolution/same-file-is-referenced-using-absolute-and-relative-names.js @@ -5,4 +5,5 @@ var x Diagnostics:: +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/moduleResolution/two-files-exist-on-disk-that-differs-only-in-casing.js b/tests/baselines/reference/moduleResolution/two-files-exist-on-disk-that-differs-only-in-casing.js index 6966f7bd7ddc7..f604a4236ec6d 100644 --- a/tests/baselines/reference/moduleResolution/two-files-exist-on-disk-that-differs-only-in-casing.js +++ b/tests/baselines/reference/moduleResolution/two-files-exist-on-disk-that-differs-only-in-casing.js @@ -8,6 +8,7 @@ export var x export var y Diagnostics:: +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c.ts(1,17): error TS1261: Already included file name '/a/b/D.ts' differs from file name 'd.ts' only in casing. The file is in the program because: Imported via "D" from file 'c.ts' diff --git a/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(imports).js b/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(imports).js index 61962b8246048..f48832a77572b 100644 --- a/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(imports).js +++ b/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(imports).js @@ -5,6 +5,7 @@ import {x} from "D" export var x Diagnostics:: +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c.ts(1,17): error TS1261: Already included file name '/a/b/D.ts' differs from file name 'd.ts' only in casing. The file is in the program because: Imported via "D" from file 'c.ts' diff --git a/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(tripleslash-references).js b/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(tripleslash-references).js index 8ad1ff74f131c..9983eaff2b6ce 100644 --- a/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(tripleslash-references).js +++ b/tests/baselines/reference/moduleResolution/two-files-used-in-program-differ-only-in-casing-(tripleslash-references).js @@ -5,6 +5,7 @@ var x Diagnostics:: +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c.ts(1,22): error TS1261: Already included file name 'D.ts' differs from file name 'd.ts' only in casing. The file is in the program because: Referenced via 'D.ts' from file 'c.ts' diff --git a/tests/baselines/reference/nestedRedeclarationInES6AMD.errors.txt b/tests/baselines/reference/nestedRedeclarationInES6AMD.errors.txt new file mode 100644 index 0000000000000..d77ca1b616b35 --- /dev/null +++ b/tests/baselines/reference/nestedRedeclarationInES6AMD.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== nestedRedeclarationInES6AMD.ts (0 errors) ==== + function a() { + { + let status = 1; + status = 2; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/noBundledEmitFromNodeModules.errors.txt b/tests/baselines/reference/noBundledEmitFromNodeModules.errors.txt index 7af8f8770a0f1..d6f3865e2b2ee 100644 --- a/tests/baselines/reference/noBundledEmitFromNodeModules.errors.txt +++ b/tests/baselines/reference/noBundledEmitFromNodeModules.errors.txt @@ -1,9 +1,11 @@ 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=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! 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=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /a.ts (0 errors) ==== import { C } from "projB"; diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt new file mode 100644 index 0000000000000..de7b5af018515 --- /dev/null +++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt @@ -0,0 +1,11 @@ +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. + + +!!! 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. +==== 0.d.ts (0 errors) ==== + export = a; + declare var a: number; \ No newline at end of file diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt index 1c7d11cc7fa23..f115db2d47c2a 100644 --- a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt +++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt @@ -1,6 +1,12 @@ +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. 1.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. ==== 1.ts (1 errors) ==== export var j = "hello"; // error ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt index 0a62b57721c02..b8b13381bdee3 100644 --- a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt +++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt @@ -1,6 +1,12 @@ +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. 1.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. ==== 0.d.ts (0 errors) ==== export = a; declare var a: number; diff --git a/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt b/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt index 22b673a5b420c..e7b3c26f924dd 100644 --- a/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt +++ b/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt @@ -1,6 +1,8 @@ error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== noImplicitUseStrict_amd.ts (0 errors) ==== export var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitUseStrict_system.errors.txt b/tests/baselines/reference/noImplicitUseStrict_system.errors.txt index ecc0908057d97..c2aa7f00a82e7 100644 --- a/tests/baselines/reference/noImplicitUseStrict_system.errors.txt +++ b/tests/baselines/reference/noImplicitUseStrict_system.errors.txt @@ -1,6 +1,8 @@ error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== noImplicitUseStrict_system.ts (0 errors) ==== export var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt b/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt index 98e34e0171f66..97189216236cd 100644 --- a/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt +++ b/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt @@ -1,6 +1,8 @@ error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration. +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== noImplicitUseStrict_umd.ts (0 errors) ==== export var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/objectIndexer.errors.txt b/tests/baselines/reference/objectIndexer.errors.txt new file mode 100644 index 0000000000000..2095fa771df5b --- /dev/null +++ b/tests/baselines/reference/objectIndexer.errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== objectIndexer.ts (0 errors) ==== + export interface Callback { + (value: any): void; + } + + interface IMap { + [s: string]: Callback; + } + + class Emitter { + private listeners: IMap; + constructor () { + this.listeners = {}; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/objectIndexer.types b/tests/baselines/reference/objectIndexer.types index 835bfb70fff40..d67c0922f0793 100644 --- a/tests/baselines/reference/objectIndexer.types +++ b/tests/baselines/reference/objectIndexer.types @@ -4,6 +4,7 @@ export interface Callback { (value: any): void; >value : any +> : ^^^ } interface IMap { diff --git a/tests/baselines/reference/outFilerootDirModuleNamesAmd.errors.txt b/tests/baselines/reference/outFilerootDirModuleNamesAmd.errors.txt new file mode 100644 index 0000000000000..757436d42452f --- /dev/null +++ b/tests/baselines/reference/outFilerootDirModuleNamesAmd.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== src/a.ts (0 errors) ==== + import foo from "./b"; + export default class Foo {} + foo(); + +==== src/b.ts (0 errors) ==== + import Foo from "./a"; + export default function foo() { new Foo(); } + + // https://github.com/microsoft/TypeScript/issues/37429 + import("./a"); \ No newline at end of file diff --git a/tests/baselines/reference/outFilerootDirModuleNamesSystem.errors.txt b/tests/baselines/reference/outFilerootDirModuleNamesSystem.errors.txt new file mode 100644 index 0000000000000..978901f629afd --- /dev/null +++ b/tests/baselines/reference/outFilerootDirModuleNamesSystem.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== src/a.ts (0 errors) ==== + import foo from "./b"; + export default class Foo {} + foo(); + +==== src/b.ts (0 errors) ==== + import Foo from "./a"; + export default function foo() { new Foo(); } + + // https://github.com/microsoft/TypeScript/issues/37429 + import("./a"); + \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatAmd.errors.txt b/tests/baselines/reference/outModuleConcatAmd.errors.txt new file mode 100644 index 0000000000000..bf1bdc018fc57 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatAmd.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 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/tests/baselines/reference/outModuleConcatSystem.errors.txt b/tests/baselines/reference/outModuleConcatSystem.errors.txt new file mode 100644 index 0000000000000..635a9186a3446 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatSystem.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 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/tests/baselines/reference/outModuleConcatUmd.errors.txt b/tests/baselines/reference/outModuleConcatUmd.errors.txt index c4a744578f784..142e3121e87af 100644 --- a/tests/baselines/reference/outModuleConcatUmd.errors.txt +++ b/tests/baselines/reference/outModuleConcatUmd.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/a.ts (0 errors) ==== export class A { } diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.errors.txt b/tests/baselines/reference/outModuleTripleSlashRefs.errors.txt new file mode 100644 index 0000000000000..743cc840fe165 --- /dev/null +++ b/tests/baselines/reference/outModuleTripleSlashRefs.errors.txt @@ -0,0 +1,32 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/a.ts (0 errors) ==== + /// + export class A { + member: typeof GlobalFoo; + } + +==== ref/b.ts (0 errors) ==== + /// + class Foo { + member: Bar; + } + declare var GlobalFoo: Foo; + +==== ref/c.d.ts (0 errors) ==== + /// + declare class Bar { + member: Baz; + } + +==== ref/d.d.ts (0 errors) ==== + declare class Baz { + member: number; + } + +==== b.ts (0 errors) ==== + import {A} from "./ref/a"; + export class B extends A { } + \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt index 71451c8ef60dd..cbc48cbb0ad9a 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt @@ -1,10 +1,13 @@ +c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c:/root/tsconfig.json(5,17): error TS5090: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'? c:/root/tsconfig.json(6,17): error TS5090: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'? -==== c:/root/tsconfig.json (2 errors) ==== +==== c:/root/tsconfig.json (3 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "paths": { "*": [ "*", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt index 9bf5684ae2246..2576b70838980 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.errors.txt @@ -1,12 +1,15 @@ +root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. 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 (3 errors) ==== +==== root/tsconfig.json (4 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "baseUrl": "./src", ~~~~~~~~~ !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt index bf2a1722d9382..20a16ef94f7fd 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt @@ -1,9 +1,11 @@ error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5101: Visit https://aka.ms/ts6 for migration information. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== c:/root/folder1/file1.ts (0 errors) ==== import {x} from "folder2/file2" declare function use(a: any): void; diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt index 61d7593307575..10317b50586bf 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt @@ -1,10 +1,13 @@ +c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. -==== c:/root/tsconfig.json (1 errors) ==== +==== c:/root/tsconfig.json (2 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "baseUrl": "." ~~~~~~~~~ !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.errors.txt index 51743201f5ee8..21f6617166d4c 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.errors.txt @@ -1,10 +1,13 @@ +c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. -==== c:/root/tsconfig.json (1 errors) ==== +==== c:/root/tsconfig.json (2 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "baseUrl": ".", ~~~~~~~~~ !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.errors.txt new file mode 100644 index 0000000000000..23c68b4af9411 --- /dev/null +++ b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.errors.txt @@ -0,0 +1,25 @@ +c:/root/src/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== c:/root/src/tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "rootDirs": [ + ".", + "../generated/src" + ] + } + } + +==== c:/root/src/file1.ts (0 errors) ==== + import {x} from "./project/file3"; + declare function use(x: string); + use(x.toExponential()); + +==== c:/root/src/file2.d.ts (0 errors) ==== + export let x: number; + +==== c:/root/generated/src/project/file3.ts (0 errors) ==== + export {x} from "../file2"; \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types index 2bdb131bb68b1..ec6e6bf5fc670 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types +++ b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types @@ -13,6 +13,7 @@ declare function use(x: string); use(x.toExponential()); >use(x.toExponential()) : any +> : ^^^ >use : (x: string) => any > : ^ ^^ ^^^^^^^^ >x.toExponential() : string diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.errors.txt index f6b1b6492a1a2..5508ee7c19e1f 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.errors.txt @@ -1,10 +1,13 @@ +c:/root/src/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c:/root/src/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. -==== c:/root/src/tsconfig.json (1 errors) ==== +==== c:/root/src/tsconfig.json (2 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "baseUrl": "../", ~~~~~~~~~ !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt index d5b374cce184c..595409d48bda3 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt @@ -1,10 +1,13 @@ +c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. -==== c:/root/tsconfig.json (1 errors) ==== +==== c:/root/tsconfig.json (2 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "baseUrl": ".", ~~~~~~~~~ !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt index aed0d9c6b8c59..d120082362e17 100644 --- a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt +++ b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. prefixUnaryOperatorsOnExportedVariables.ts(19,5): error TS2873: This kind of expression is always falsy. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== prefixUnaryOperatorsOnExportedVariables.ts (1 errors) ==== export var x = false; export var y = 1; diff --git a/tests/baselines/reference/preserveValueImports_module(module=amd).errors.txt b/tests/baselines/reference/preserveValueImports_module(module=amd).errors.txt index 6421fbec30524..6ec5a25b34247 100644 --- a/tests/baselines/reference/preserveValueImports_module(module=amd).errors.txt +++ b/tests/baselines/reference/preserveValueImports_module(module=amd).errors.txt @@ -1,9 +1,11 @@ error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration. Use 'verbatimModuleSyntax' instead. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration. !!! error TS5102: Use 'verbatimModuleSyntax' instead. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== preserveValueImports_module.ts (0 errors) ==== export {}; \ No newline at end of file diff --git a/tests/baselines/reference/preserveValueImports_module(module=system).errors.txt b/tests/baselines/reference/preserveValueImports_module(module=system).errors.txt index 6421fbec30524..86cb91cee5af7 100644 --- a/tests/baselines/reference/preserveValueImports_module(module=system).errors.txt +++ b/tests/baselines/reference/preserveValueImports_module(module=system).errors.txt @@ -1,9 +1,11 @@ error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration. Use 'verbatimModuleSyntax' instead. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration. !!! error TS5102: Use 'verbatimModuleSyntax' instead. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== preserveValueImports_module.ts (0 errors) ==== export {}; \ No newline at end of file diff --git a/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.errors.txt b/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.errors.txt new file mode 100644 index 0000000000000..2db8c409f81c0 --- /dev/null +++ b/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyCheckAnonymousFunctionParameter2.ts (0 errors) ==== + export var x = 1; // Makes this an external module + interface Iterator { x: T } + + namespace Q { + export function foo(x: (a: Iterator) => number) { + return x; + } + } + + namespace Q { + function bar() { + foo(null); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.errors.txt b/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.errors.txt new file mode 100644 index 0000000000000..000fe280b9dd0 --- /dev/null +++ b/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts (0 errors) ==== + export interface A { + f1(callback: (p: T) => any); + } + + export interface B extends A { + } + \ No newline at end of file diff --git a/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.errors.txt b/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.errors.txt new file mode 100644 index 0000000000000..89511809e6112 --- /dev/null +++ b/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyCheckExportAssignmentOnExportedGenericInterface2.ts (0 errors) ==== + export = Foo; + + interface Foo { + } + + function Foo(array: T[]): Foo { + return undefined; + } + + namespace Foo { + export var x = "hello"; + } + \ No newline at end of file diff --git a/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.errors.txt b/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.errors.txt new file mode 100644 index 0000000000000..7dc06a25ca05d --- /dev/null +++ b/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyCheckOnTypeParameterReferenceInConstructorParameter.ts (0 errors) ==== + export class A{ + constructor(callback: (self: A) => void) { + var child = new B(this); + } + } + + export class B { + constructor(parent: T2) { } + } + \ No newline at end of file diff --git a/tests/baselines/reference/privacyGetter.errors.txt b/tests/baselines/reference/privacyGetter.errors.txt new file mode 100644 index 0000000000000..e8b11e2d53e4b --- /dev/null +++ b/tests/baselines/reference/privacyGetter.errors.txt @@ -0,0 +1,212 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyGetter.ts (0 errors) ==== + export namespace m1 { + export class C1_public { + private f1() { + } + } + + class C2_private { + } + + export class C3_public { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { // error + return new C2_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error + } + } + + class C4_private { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { + return new C2_private(); + } + + public set p4_public(m1_c3_p4_arg: C2_private) { + } + } + } + + namespace m2 { + export class m2_C1_public { + private f1() { + } + } + + class m2_C2_private { + } + + export class m2_C3_public { + private get p1_private() { + return new m2_C1_public(); + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { + } + + private get p2_private() { + return new m2_C1_public(); + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { + } + + private get p3_private() { + return new m2_C2_private(); + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { + } + + public get p4_public(): m2_C2_private { + return new m2_C2_private(); + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { + } + } + + class m2_C4_private { + private get p1_private() { + return new m2_C1_public(); + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { + } + + private get p2_private() { + return new m2_C1_public(); + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { + } + + private get p3_private() { + return new m2_C2_private(); + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { + } + + public get p4_public(): m2_C2_private { + return new m2_C2_private(); + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { + } + } + } + + class C5_private { + private f() { + } + } + + export class C6_public { + } + + export class C7_public { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } + + private get p3_private() { + return new C5_private(); + } + + private set p3_private(m1_c3_p3_arg: C5_private) { + } + + public get p4_public(): C5_private { // error + return new C5_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C5_private) { // error + } + } + + class C8_private { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } + + private get p3_private() { + return new C5_private(); + } + + private set p3_private(m1_c3_p3_arg: C5_private) { + } + + public get p4_public(): C5_private { + return new C5_private(); + } + + public set p4_public(m1_c3_p4_arg: C5_private) { + } + } \ No newline at end of file diff --git a/tests/baselines/reference/privacyGloFunc.errors.txt b/tests/baselines/reference/privacyGloFunc.errors.txt new file mode 100644 index 0000000000000..0a8e3f15038f0 --- /dev/null +++ b/tests/baselines/reference/privacyGloFunc.errors.txt @@ -0,0 +1,535 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyGloFunc.ts (0 errors) ==== + export namespace m1 { + export class C1_public { + private f1() { + } + } + + class C2_private { + } + + export class C3_public { + constructor (m1_c3_c1: C1_public); + constructor (m1_c3_c2: C2_private); //error + constructor (m1_c3_c1_2: any) { + } + + private f1_private(m1_c3_f1_arg: C1_public) { + } + + public f2_public(m1_c3_f2_arg: C1_public) { + } + + private f3_private(m1_c3_f3_arg: C2_private) { + } + + public f4_public(m1_c3_f4_arg: C2_private) { // error + } + + private f5_private() { + return new C1_public(); + } + + public f6_public() { + return new C1_public(); + } + + private f7_private() { + return new C2_private(); + } + + public f8_public() { + return new C2_private(); // error + } + + private f9_private(): C1_public { + return new C1_public(); + } + + public f10_public(): C1_public { + return new C1_public(); + } + + private f11_private(): C2_private { + return new C2_private(); + } + + public f12_public(): C2_private { // error + return new C2_private(); //error + } + } + + class C4_private { + constructor (m1_c4_c1: C1_public); + constructor (m1_c4_c2: C2_private); + constructor (m1_c4_c1_2: any) { + } + private f1_private(m1_c4_f1_arg: C1_public) { + } + + public f2_public(m1_c4_f2_arg: C1_public) { + } + + private f3_private(m1_c4_f3_arg: C2_private) { + } + + public f4_public(m1_c4_f4_arg: C2_private) { + } + + + private f5_private() { + return new C1_public(); + } + + public f6_public() { + return new C1_public(); + } + + private f7_private() { + return new C2_private(); + } + + public f8_public() { + return new C2_private(); + } + + + private f9_private(): C1_public { + return new C1_public(); + } + + public f10_public(): C1_public { + return new C1_public(); + } + + private f11_private(): C2_private { + return new C2_private(); + } + + public f12_public(): C2_private { + return new C2_private(); + } + } + + export class C5_public { + constructor (m1_c5_c: C1_public) { + } + } + + class C6_private { + constructor (m1_c6_c: C1_public) { + } + } + export class C7_public { + constructor (m1_c7_c: C2_private) { // error + } + } + + class C8_private { + constructor (m1_c8_c: C2_private) { + } + } + + function f1_public(m1_f1_arg: C1_public) { + } + + export function f2_public(m1_f2_arg: C1_public) { + } + + function f3_public(m1_f3_arg: C2_private) { + } + + export function f4_public(m1_f4_arg: C2_private) { // error + } + + + function f5_public() { + return new C1_public(); + } + + export function f6_public() { + return new C1_public(); + } + + function f7_public() { + return new C2_private(); + } + + export function f8_public() { + return new C2_private(); // error + } + + + function f9_private(): C1_public { + return new C1_public(); + } + + export function f10_public(): C1_public { + return new C1_public(); + } + + function f11_private(): C2_private { + return new C2_private(); + } + + export function f12_public(): C2_private { // error + return new C2_private(); //error + } + } + + namespace m2 { + export class m2_C1_public { + private f() { + } + } + + class m2_C2_private { + } + + export class m2_C3_public { + constructor (m2_c3_c1: m2_C1_public); + constructor (m2_c3_c2: m2_C2_private); + constructor (m2_c3_c1_2: any) { + } + + private f1_private(m2_c3_f1_arg: m2_C1_public) { + } + + public f2_public(m2_c3_f2_arg: m2_C1_public) { + } + + private f3_private(m2_c3_f3_arg: m2_C2_private) { + } + + public f4_public(m2_c3_f4_arg: m2_C2_private) { + } + + private f5_private() { + return new m2_C1_public(); + } + + public f6_public() { + return new m2_C1_public(); + } + + private f7_private() { + return new m2_C2_private(); + } + + public f8_public() { + return new m2_C2_private(); + } + + private f9_private(): m2_C1_public { + return new m2_C1_public(); + } + + public f10_public(): m2_C1_public { + return new m2_C1_public(); + } + + private f11_private(): m2_C2_private { + return new m2_C2_private(); + } + + public f12_public(): m2_C2_private { + return new m2_C2_private(); + } + } + + class m2_C4_private { + constructor (m2_c4_c1: m2_C1_public); + constructor (m2_c4_c2: m2_C2_private); + constructor (m2_c4_c1_2: any) { + } + + private f1_private(m2_c4_f1_arg: m2_C1_public) { + } + + public f2_public(m2_c4_f2_arg: m2_C1_public) { + } + + private f3_private(m2_c4_f3_arg: m2_C2_private) { + } + + public f4_public(m2_c4_f4_arg: m2_C2_private) { + } + + + private f5_private() { + return new m2_C1_public(); + } + + public f6_public() { + return new m2_C1_public(); + } + + private f7_private() { + return new m2_C2_private(); + } + + public f8_public() { + return new m2_C2_private(); + } + + + private f9_private(): m2_C1_public { + return new m2_C1_public(); + } + + public f10_public(): m2_C1_public { + return new m2_C1_public(); + } + + private f11_private(): m2_C2_private { + return new m2_C2_private(); + } + + public f12_public(): m2_C2_private { + return new m2_C2_private(); + } + } + + export class m2_C5_public { + constructor (m2_c5_c: m2_C1_public) { + } + } + + class m2_C6_private { + constructor (m2_c6_c: m2_C1_public) { + } + } + export class m2_C7_public { + constructor (m2_c7_c: m2_C2_private) { + } + } + + class m2_C8_private { + constructor (m2_c8_c: m2_C2_private) { + } + } + + function f1_public(m2_f1_arg: m2_C1_public) { + } + + export function f2_public(m2_f2_arg: m2_C1_public) { + } + + function f3_public(m2_f3_arg: m2_C2_private) { + } + + export function f4_public(m2_f4_arg: m2_C2_private) { + } + + + function f5_public() { + return new m2_C1_public(); + } + + export function f6_public() { + return new m2_C1_public(); + } + + function f7_public() { + return new m2_C2_private(); + } + + export function f8_public() { + return new m2_C2_private(); + } + + + function f9_private(): m2_C1_public { + return new m2_C1_public(); + } + + export function f10_public(): m2_C1_public { + return new m2_C1_public(); + } + + function f11_private(): m2_C2_private { + return new m2_C2_private(); + } + + export function f12_public(): m2_C2_private { + return new m2_C2_private(); + } + } + + class C5_private { + private f() { + } + } + + export class C6_public { + } + + export class C7_public { + constructor (c7_c1: C5_private); // error + constructor (c7_c2: C6_public); + constructor (c7_c1_2: any) { + } + private f1_private(c7_f1_arg: C6_public) { + } + + public f2_public(c7_f2_arg: C6_public) { + } + + private f3_private(c7_f3_arg: C5_private) { + } + + public f4_public(c7_f4_arg: C5_private) { //error + } + + private f5_private() { + return new C6_public(); + } + + public f6_public() { + return new C6_public(); + } + + private f7_private() { + return new C5_private(); + } + + public f8_public() { + return new C5_private(); //error + } + + private f9_private(): C6_public { + return new C6_public(); + } + + public f10_public(): C6_public { + return new C6_public(); + } + + private f11_private(): C5_private { + return new C5_private(); + } + + public f12_public(): C5_private { //error + return new C5_private(); //error + } + } + + class C8_private { + constructor (c8_c1: C5_private); + constructor (c8_c2: C6_public); + constructor (c8_c1_2: any) { + } + + private f1_private(c8_f1_arg: C6_public) { + } + + public f2_public(c8_f2_arg: C6_public) { + } + + private f3_private(c8_f3_arg: C5_private) { + } + + public f4_public(c8_f4_arg: C5_private) { + } + + private f5_private() { + return new C6_public(); + } + + public f6_public() { + return new C6_public(); + } + + private f7_private() { + return new C5_private(); + } + + public f8_public() { + return new C5_private(); + } + + private f9_private(): C6_public { + return new C6_public(); + } + + public f10_public(): C6_public { + return new C6_public(); + } + + private f11_private(): C5_private { + return new C5_private(); + } + + public f12_public(): C5_private { + return new C5_private(); + } + } + + + export class C9_public { + constructor (c9_c: C6_public) { + } + } + + class C10_private { + constructor (c10_c: C6_public) { + } + } + export class C11_public { + constructor (c11_c: C5_private) { // error + } + } + + class C12_private { + constructor (c12_c: C5_private) { + } + } + + function f1_private(f1_arg: C5_private) { + } + + export function f2_public(f2_arg: C5_private) { // error + } + + function f3_private(f3_arg: C6_public) { + } + + export function f4_public(f4_arg: C6_public) { + } + + function f5_private() { + return new C6_public(); + } + + export function f6_public() { + return new C6_public(); + } + + function f7_private() { + return new C5_private(); + } + + export function f8_public() { + return new C5_private(); //error + } + + function f9_private(): C6_public { + return new C6_public(); + } + + export function f10_public(): C6_public { + return new C6_public(); + } + + function f11_private(): C5_private { + return new C5_private(); + } + + export function f12_public(): C5_private { //error + return new C5_private(); //error + } + \ No newline at end of file diff --git a/tests/baselines/reference/privacyGloFunc.types b/tests/baselines/reference/privacyGloFunc.types index b014aa9696281..b7ed3bcf1c037 100644 --- a/tests/baselines/reference/privacyGloFunc.types +++ b/tests/baselines/reference/privacyGloFunc.types @@ -34,6 +34,7 @@ export namespace m1 { constructor (m1_c3_c1_2: any) { >m1_c3_c1_2 : any +> : ^^^ } private f1_private(m1_c3_f1_arg: C1_public) { @@ -167,6 +168,7 @@ export namespace m1 { constructor (m1_c4_c1_2: any) { >m1_c4_c1_2 : any +> : ^^^ } private f1_private(m1_c4_f1_arg: C1_public) { >f1_private : (m1_c4_f1_arg: C1_public) => void @@ -478,6 +480,7 @@ namespace m2 { constructor (m2_c3_c1_2: any) { >m2_c3_c1_2 : any +> : ^^^ } private f1_private(m2_c3_f1_arg: m2_C1_public) { @@ -611,6 +614,7 @@ namespace m2 { constructor (m2_c4_c1_2: any) { >m2_c4_c1_2 : any +> : ^^^ } private f1_private(m2_c4_f1_arg: m2_C1_public) { @@ -919,6 +923,7 @@ export class C7_public { constructor (c7_c1_2: any) { >c7_c1_2 : any +> : ^^^ } private f1_private(c7_f1_arg: C6_public) { >f1_private : (c7_f1_arg: C6_public) => void @@ -1051,6 +1056,7 @@ class C8_private { constructor (c8_c1_2: any) { >c8_c1_2 : any +> : ^^^ } private f1_private(c8_f1_arg: C6_public) { diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.errors.txt b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.errors.txt new file mode 100644 index 0000000000000..f4b5c64768dd3 --- /dev/null +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.errors.txt @@ -0,0 +1,157 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyLocalInternalReferenceImportWithoutExport.ts (0 errors) ==== + // private elements + namespace m_private { + export class c_private { + } + export enum e_private { + Happy, + Grumpy + } + export function f_private() { + return new c_private(); + } + export var v_private = new c_private(); + export interface i_private { + } + export namespace mi_private { + export class c { + } + } + export namespace mu_private { + export interface i { + } + } + } + + // Public elements + export namespace m_public { + export class c_public { + } + export enum e_public { + Happy, + Grumpy + } + export function f_public() { + return new c_public(); + } + export var v_public = 10; + export interface i_public { + } + export namespace mi_public { + export class c { + } + } + export namespace mu_public { + export interface i { + } + } + } + + export namespace import_public { + // No Privacy errors - importing private elements + import im_private_c_private = m_private.c_private; + import im_private_e_private = m_private.e_private; + import im_private_f_private = m_private.f_private; + import im_private_v_private = m_private.v_private; + import im_private_i_private = m_private.i_private; + import im_private_mi_private = m_private.mi_private; + import im_private_mu_private = m_private.mu_private; + + // Usage of above decls + var privateUse_im_private_c_private = new im_private_c_private(); + export var publicUse_im_private_c_private = new im_private_c_private(); + var privateUse_im_private_e_private = im_private_e_private.Happy; + export var publicUse_im_private_e_private = im_private_e_private.Grumpy; + var privateUse_im_private_f_private = im_private_f_private(); + export var publicUse_im_private_f_private = im_private_f_private(); + var privateUse_im_private_v_private = im_private_v_private; + export var publicUse_im_private_v_private = im_private_v_private; + var privateUse_im_private_i_private: im_private_i_private; + export var publicUse_im_private_i_private: im_private_i_private; + var privateUse_im_private_mi_private = new im_private_mi_private.c(); + export var publicUse_im_private_mi_private = new im_private_mi_private.c(); + var privateUse_im_private_mu_private: im_private_mu_private.i; + export var publicUse_im_private_mu_private: im_private_mu_private.i; + + + // No Privacy errors - importing public elements + import im_private_c_public = m_public.c_public; + import im_private_e_public = m_public.e_public; + import im_private_f_public = m_public.f_public; + import im_private_v_public = m_public.v_public; + import im_private_i_public = m_public.i_public; + import im_private_mi_public = m_public.mi_public; + import im_private_mu_public = m_public.mu_public; + + // Usage of above decls + var privateUse_im_private_c_public = new im_private_c_public(); + export var publicUse_im_private_c_public = new im_private_c_public(); + var privateUse_im_private_e_public = im_private_e_public.Happy; + export var publicUse_im_private_e_public = im_private_e_public.Grumpy; + var privateUse_im_private_f_public = im_private_f_public(); + export var publicUse_im_private_f_public = im_private_f_public(); + var privateUse_im_private_v_public = im_private_v_public; + export var publicUse_im_private_v_public = im_private_v_public; + var privateUse_im_private_i_public: im_private_i_public; + export var publicUse_im_private_i_public: im_private_i_public; + var privateUse_im_private_mi_public = new im_private_mi_public.c(); + export var publicUse_im_private_mi_public = new im_private_mi_public.c(); + var privateUse_im_private_mu_public: im_private_mu_public.i; + export var publicUse_im_private_mu_public: im_private_mu_public.i; + } + + namespace import_private { + // No Privacy errors - importing private elements + import im_private_c_private = m_private.c_private; + import im_private_e_private = m_private.e_private; + import im_private_f_private = m_private.f_private; + import im_private_v_private = m_private.v_private; + import im_private_i_private = m_private.i_private; + import im_private_mi_private = m_private.mi_private; + import im_private_mu_private = m_private.mu_private; + + // Usage of above decls + var privateUse_im_private_c_private = new im_private_c_private(); + export var publicUse_im_private_c_private = new im_private_c_private(); + var privateUse_im_private_e_private = im_private_e_private.Happy; + export var publicUse_im_private_e_private = im_private_e_private.Grumpy; + var privateUse_im_private_f_private = im_private_f_private(); + export var publicUse_im_private_f_private = im_private_f_private(); + var privateUse_im_private_v_private = im_private_v_private; + export var publicUse_im_private_v_private = im_private_v_private; + var privateUse_im_private_i_private: im_private_i_private; + export var publicUse_im_private_i_private: im_private_i_private; + var privateUse_im_private_mi_private = new im_private_mi_private.c(); + export var publicUse_im_private_mi_private = new im_private_mi_private.c(); + var privateUse_im_private_mu_private: im_private_mu_private.i; + export var publicUse_im_private_mu_private: im_private_mu_private.i; + + // No privacy Error - importing public elements + import im_private_c_public = m_public.c_public; + import im_private_e_public = m_public.e_public; + import im_private_f_public = m_public.f_public; + import im_private_v_public = m_public.v_public; + import im_private_i_public = m_public.i_public; + import im_private_mi_public = m_public.mi_public; + import im_private_mu_public = m_public.mu_public; + + // Usage of above decls + var privateUse_im_private_c_public = new im_private_c_public(); + export var publicUse_im_private_c_public = new im_private_c_public(); + var privateUse_im_private_e_public = im_private_e_public.Happy; + export var publicUse_im_private_e_public = im_private_e_public.Grumpy; + var privateUse_im_private_f_public = im_private_f_public(); + export var publicUse_im_private_f_public = im_private_f_public(); + var privateUse_im_private_v_public = im_private_v_public; + export var publicUse_im_private_v_public = im_private_v_public; + var privateUse_im_private_i_public: im_private_i_public; + export var publicUse_im_private_i_public: im_private_i_public; + var privateUse_im_private_mi_public = new im_private_mi_public.c(); + export var publicUse_im_private_mi_public = new im_private_mi_public.c(); + var privateUse_im_private_mu_public: im_private_mu_public.i; + export var publicUse_im_private_mu_public: im_private_mu_public.i; + } \ No newline at end of file diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt index 1ecaca60d6aa6..71b2ca4016df9 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts (2 errors) ==== /// /// diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.errors.txt b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.errors.txt new file mode 100644 index 0000000000000..1569b84214a0a --- /dev/null +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.errors.txt @@ -0,0 +1,104 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyTopLevelInternalReferenceImportWithExport.ts (0 errors) ==== + // private elements + namespace m_private { + export class c_private { + } + export enum e_private { + Happy, + Grumpy + } + export function f_private() { + return new c_private(); + } + export var v_private = new c_private(); + export interface i_private { + } + export namespace mi_private { + export class c { + } + } + export namespace mu_private { + export interface i { + } + } + } + + // Public elements + export namespace m_public { + export class c_public { + } + export enum e_public { + Happy, + Grumpy + } + export function f_public() { + return new c_public(); + } + export var v_public = 10; + export interface i_public { + } + export namespace mi_public { + export class c { + } + } + export namespace mu_public { + export interface i { + } + } + } + + // Privacy errors - importing private elements + export import im_public_c_private = m_private.c_private; + export import im_public_e_private = m_private.e_private; + export import im_public_f_private = m_private.f_private; + export import im_public_v_private = m_private.v_private; + export import im_public_i_private = m_private.i_private; + export import im_public_mi_private = m_private.mi_private; + export import im_public_mu_private = m_private.mu_private; + + // Usage of privacy error imports + var privateUse_im_public_c_private = new im_public_c_private(); + export var publicUse_im_public_c_private = new im_public_c_private(); + var privateUse_im_public_e_private = im_public_e_private.Happy; + export var publicUse_im_public_e_private = im_public_e_private.Grumpy; + var privateUse_im_public_f_private = im_public_f_private(); + export var publicUse_im_public_f_private = im_public_f_private(); + var privateUse_im_public_v_private = im_public_v_private; + export var publicUse_im_public_v_private = im_public_v_private; + var privateUse_im_public_i_private: im_public_i_private; + export var publicUse_im_public_i_private: im_public_i_private; + var privateUse_im_public_mi_private = new im_public_mi_private.c(); + export var publicUse_im_public_mi_private = new im_public_mi_private.c(); + var privateUse_im_public_mu_private: im_public_mu_private.i; + export var publicUse_im_public_mu_private: im_public_mu_private.i; + + + // No Privacy errors - importing public elements + export import im_public_c_public = m_public.c_public; + export import im_public_e_public = m_public.e_public; + export import im_public_f_public = m_public.f_public; + export import im_public_v_public = m_public.v_public; + export import im_public_i_public = m_public.i_public; + export import im_public_mi_public = m_public.mi_public; + export import im_public_mu_public = m_public.mu_public; + + // Usage of above decls + var privateUse_im_public_c_public = new im_public_c_public(); + export var publicUse_im_public_c_public = new im_public_c_public(); + var privateUse_im_public_e_public = im_public_e_public.Happy; + export var publicUse_im_public_e_public = im_public_e_public.Grumpy; + var privateUse_im_public_f_public = im_public_f_public(); + export var publicUse_im_public_f_public = im_public_f_public(); + var privateUse_im_public_v_public = im_public_v_public; + export var publicUse_im_public_v_public = im_public_v_public; + var privateUse_im_public_i_public: im_public_i_public; + export var publicUse_im_public_i_public: im_public_i_public; + var privateUse_im_public_mi_public = new im_public_mi_public.c(); + export var publicUse_im_public_mi_public = new im_public_mi_public.c(); + var privateUse_im_public_mu_public: im_public_mu_public.i; + export var publicUse_im_public_mu_public: im_public_mu_public.i; + \ No newline at end of file diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.errors.txt b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.errors.txt new file mode 100644 index 0000000000000..39a66f745261a --- /dev/null +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.errors.txt @@ -0,0 +1,104 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyTopLevelInternalReferenceImportWithoutExport.ts (0 errors) ==== + // private elements + namespace m_private { + export class c_private { + } + export enum e_private { + Happy, + Grumpy + } + export function f_private() { + return new c_private(); + } + export var v_private = new c_private(); + export interface i_private { + } + export namespace mi_private { + export class c { + } + } + export namespace mu_private { + export interface i { + } + } + } + + // Public elements + export namespace m_public { + export class c_public { + } + export enum e_public { + Happy, + Grumpy + } + export function f_public() { + return new c_public(); + } + export var v_public = 10; + export interface i_public { + } + export namespace mi_public { + export class c { + } + } + export namespace mu_public { + export interface i { + } + } + } + + // No Privacy errors - importing private elements + import im_private_c_private = m_private.c_private; + import im_private_e_private = m_private.e_private; + import im_private_f_private = m_private.f_private; + import im_private_v_private = m_private.v_private; + import im_private_i_private = m_private.i_private; + import im_private_mi_private = m_private.mi_private; + import im_private_mu_private = m_private.mu_private; + + // Usage of above decls + var privateUse_im_private_c_private = new im_private_c_private(); + export var publicUse_im_private_c_private = new im_private_c_private(); + var privateUse_im_private_e_private = im_private_e_private.Happy; + export var publicUse_im_private_e_private = im_private_e_private.Grumpy; + var privateUse_im_private_f_private = im_private_f_private(); + export var publicUse_im_private_f_private = im_private_f_private(); + var privateUse_im_private_v_private = im_private_v_private; + export var publicUse_im_private_v_private = im_private_v_private; + var privateUse_im_private_i_private: im_private_i_private; + export var publicUse_im_private_i_private: im_private_i_private; + var privateUse_im_private_mi_private = new im_private_mi_private.c(); + export var publicUse_im_private_mi_private = new im_private_mi_private.c(); + var privateUse_im_private_mu_private: im_private_mu_private.i; + export var publicUse_im_private_mu_private: im_private_mu_private.i; + + + // No Privacy errors - importing public elements + import im_private_c_public = m_public.c_public; + import im_private_e_public = m_public.e_public; + import im_private_f_public = m_public.f_public; + import im_private_v_public = m_public.v_public; + import im_private_i_public = m_public.i_public; + import im_private_mi_public = m_public.mi_public; + import im_private_mu_public = m_public.mu_public; + + // Usage of above decls + var privateUse_im_private_c_public = new im_private_c_public(); + export var publicUse_im_private_c_public = new im_private_c_public(); + var privateUse_im_private_e_public = im_private_e_public.Happy; + export var publicUse_im_private_e_public = im_private_e_public.Grumpy; + var privateUse_im_private_f_public = im_private_f_public(); + export var publicUse_im_private_f_public = im_private_f_public(); + var privateUse_im_private_v_public = im_private_v_public; + export var publicUse_im_private_v_public = im_private_v_public; + var privateUse_im_private_i_public: im_private_i_public; + export var publicUse_im_private_i_public: im_private_i_public; + var privateUse_im_private_mi_public = new im_private_mi_public.c(); + export var publicUse_im_private_mi_public = new im_private_mi_public.c(); + var privateUse_im_private_mu_public: im_private_mu_public.i; + export var publicUse_im_private_mu_public: im_private_mu_public.i; + \ No newline at end of file diff --git a/tests/baselines/reference/privateNameEmitHelpers.errors.txt b/tests/baselines/reference/privateNameEmitHelpers.errors.txt index 8b9314cc44bd1..bbbfcdd1cb43d 100644 --- a/tests/baselines/reference/privateNameEmitHelpers.errors.txt +++ b/tests/baselines/reference/privateNameEmitHelpers.errors.txt @@ -1,16 +1,13 @@ -main.ts(3,12): error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. -main.ts(4,25): 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'. +main.ts(3,12): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. -==== main.ts (2 errors) ==== +==== main.ts (1 errors) ==== export class C { #a = 1; #b() { this.#c = 42; } ~~~~~~~ -!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. +!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. set #c(v: number) { this.#a += v; } - ~~~~~~~ -!!! 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) ==== diff --git a/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt b/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt index 525d1034bf26b..f973684e94392 100644 --- a/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt +++ b/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt @@ -1,16 +1,13 @@ -main.ts(3,19): error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. -main.ts(4,30): 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'. +main.ts(3,19): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. -==== main.ts (2 errors) ==== +==== main.ts (1 errors) ==== export class S { static #a = 1; static #b() { this.#a = 42; } ~~~~~~~ -!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. +!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. static get #c() { return S.#b(); } - ~~~~ -!!! 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) ==== diff --git a/tests/baselines/reference/privatePropertyUsingObjectType.errors.txt b/tests/baselines/reference/privatePropertyUsingObjectType.errors.txt new file mode 100644 index 0000000000000..301401deeeded --- /dev/null +++ b/tests/baselines/reference/privatePropertyUsingObjectType.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privatePropertyUsingObjectType.ts (0 errors) ==== + export class FilterManager { + private _filterProviders: { index: IFilterProvider; }; + private _filterProviders2: { [index: number]: IFilterProvider; }; + private _filterProviders3: { (index: number): IFilterProvider; }; + private _filterProviders4: (index: number) => IFilterProvider; + } + export interface IFilterProvider { + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/baseline/amd/baseline.errors.txt b/tests/baselines/reference/project/baseline/amd/baseline.errors.txt new file mode 100644 index 0000000000000..c8e153598acff --- /dev/null +++ b/tests/baselines/reference/project/baseline/amd/baseline.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export interface Point { x: number; y: number; }; + export function point (x: number, y: number): Point { + return { x: x, y: y }; + } +==== emit.ts (0 errors) ==== + import g = require("./decl"); + var p = g.point(10,20); \ No newline at end of file diff --git a/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt b/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt new file mode 100644 index 0000000000000..41e83eb220b84 --- /dev/null +++ b/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export interface Point { x: number; y: number; }; + export function point (x: number, y: number): Point { + return { x: x, y: y }; + } +==== dont_emit.ts (0 errors) ==== + import g = require("decl"); + var p: g.Point = { x: 10, y: 20 }; \ No newline at end of file diff --git a/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt b/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt new file mode 100644 index 0000000000000..31c7e76c835bb --- /dev/null +++ b/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== nestedModule.ts (0 errors) ==== + export namespace outer { + export namespace inner { + var local = 1; + export var a = local; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt b/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt index 09e738e27c13d..f0885adb03ca6 100644 --- a/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt +++ b/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. decl.ts(1,26): error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? decl.ts(2,26): error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? decl.ts(3,26): error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (3 errors) ==== import modErr = require("./foo/bar.tx"); ~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt b/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt new file mode 100644 index 0000000000000..a8350b4a50ba4 --- /dev/null +++ b/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + import mod = require("consume"); + export function call() { + mod.call(); + } +==== consume.ts (0 errors) ==== + import mod = require("decl"); + export function call() { + mod.call(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt b/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt new file mode 100644 index 0000000000000..d3cef10218d4d --- /dev/null +++ b/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt @@ -0,0 +1,28 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + import A = require("a"); + + export class B extends A.A { + constructor () { + super(); + } + } +==== c.ts (0 errors) ==== + import B = require("b"); + + export class C extends B.B { + constructor () { + super(); + } + } + +==== a.ts (0 errors) ==== + import C = require("c"); + + export class A { + constructor () { } + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt b/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt new file mode 100644 index 0000000000000..ae4cb74ca85d8 --- /dev/null +++ b/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + export class B { + + } +==== a.ts (0 errors) ==== + import {B} from './subfolder/b'; + export class A { + b: B; + } +==== subfolder/c.ts (0 errors) ==== + import {A} from '../a'; + + export class C { + a: A; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt b/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt new file mode 100644 index 0000000000000..ae4cb74ca85d8 --- /dev/null +++ b/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + export class B { + + } +==== a.ts (0 errors) ==== + import {B} from './subfolder/b'; + export class A { + b: B; + } +==== subfolder/c.ts (0 errors) ==== + import {A} from '../a'; + + export class C { + a: A; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt b/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt index 4dfbd076cc92f..5e5746fb5efb1 100644 --- a/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt +++ b/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt @@ -1,7 +1,9 @@ error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.ts (0 errors) ==== export class B { diff --git a/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt b/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt new file mode 100644 index 0000000000000..3526b12ca1299 --- /dev/null +++ b/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt @@ -0,0 +1,28 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== useModule.ts (0 errors) ==== + declare module "quotedm1" { + import m4 = require("m4"); + export class v { + public c: m4.d; + } + } + + declare module "quotedm2" { + import m1 = require("quotedm1"); + export var c: m1.v; + } + + + + \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt b/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt new file mode 100644 index 0000000000000..30024ffe1eced --- /dev/null +++ b/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.d.ts (0 errors) ==== + export interface A { + b: number; + } + export as namespace moduleA; +==== useModule.ts (0 errors) ==== + namespace moduleB { + export interface IUseModuleA { + a: moduleA.A; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt b/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt new file mode 100644 index 0000000000000..1d22bb66a1a84 --- /dev/null +++ b/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== glo_m4.ts (0 errors) ==== + + export class d { + }; + export var x: d; + export function foo(): d { + return new d(); + } + + +==== useModule.ts (0 errors) ==== + import glo_m4 = require("glo_m4"); + export var useGlo_m4_x4 = glo_m4.x; + export var useGlo_m4_d4 = glo_m4.d; + export var useGlo_m4_f4 = glo_m4.foo(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt new file mode 100644 index 0000000000000..4728146fdd816 --- /dev/null +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt @@ -0,0 +1,24 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== private_m4.ts (0 errors) ==== + + export class d { + }; + export var x: d; + export function foo(): d { + return new d(); + } + + +==== useModule.ts (0 errors) ==== + // only used privately no need to emit + import private_m4 = require("private_m4"); + export namespace usePrivate_m4_m1 { + var x3 = private_m4.x; + var d3 = private_m4.d; + var f3 = private_m4.foo(); + + export var numberVar: number; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt new file mode 100644 index 0000000000000..5e558eb0b4094 --- /dev/null +++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== fncOnly_m4.ts (0 errors) ==== + + export class d { + }; + export var x: d; + export function foo(): d { + return new d(); + } + + +==== useModule.ts (0 errors) ==== + import fncOnly_m4 = require("fncOnly_m4"); + export var useFncOnly_m4_f4 = fncOnly_m4.foo(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt new file mode 100644 index 0000000000000..eeac47a8a0c91 --- /dev/null +++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== m5.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export function foo2() { + return new m4.d(); + } +==== useModule.ts (0 errors) ==== + // Do not emit unused import + import m5 = require("m5"); + export var d = m5.foo2(); + export var x = m5.foo2; + + export function n() { + return m5.foo2(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt new file mode 100644 index 0000000000000..0b2e1306cf161 --- /dev/null +++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== useModule.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export var x4 = m4.x; + export var d4 = m4.d; + export var f4 = m4.foo(); + + export namespace m1 { + export var x2 = m4.x; + export var d2 = m4.d; + export var f2 = m4.foo(); + + var x3 = m4.x; + var d3 = m4.d; + var f3 = m4.foo(); + } + + // Do not emit multiple used import statements + import multiImport_m4 = require("m4"); // Emit used + export var useMultiImport_m4_x4 = multiImport_m4.x; + export var useMultiImport_m4_d4 = multiImport_m4.d; + export var useMultiImport_m4_f4 = multiImport_m4.foo(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt new file mode 100644 index 0000000000000..9b20581c5b1dd --- /dev/null +++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== m5.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export function foo2() { + return new m4.d(); + } +==== useModule.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export var x4 = m4.x; + export var d4 = m4.d; + export var f4 = m4.foo(); + + export namespace m1 { + export var x2 = m4.x; + export var d2 = m4.d; + export var f2 = m4.foo(); + + var x3 = m4.x; + var d3 = m4.d; + var f3 = m4.foo(); + } + + // Do not emit unused import + import m5 = require("m5"); + export var d = m5.foo2(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt b/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt new file mode 100644 index 0000000000000..a50dd986d2f6b --- /dev/null +++ b/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== useModule.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export var x4 = m4.x; + export var d4 = m4.d; + export var f4 = m4.foo(); + + export namespace m1 { + export var x2 = m4.x; + export var d2 = m4.d; + export var f2 = m4.foo(); + + var x3 = m4.x; + var d3 = m4.d; + var f3 = m4.foo(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt b/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt new file mode 100644 index 0000000000000..06b093ff0e9b4 --- /dev/null +++ b/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref.d.ts (0 errors) ==== + declare module M1 + { + export function f1(): void; + } +==== consumer.ts (0 errors) ==== + /// + + // in the generated code a 'this' is added before this call + M1.f1(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt b/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt index 73d3a86d014bc..33d9e0f27bc57 100644 --- a/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt +++ b/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. in1.d.ts(1,8): error TS2300: Duplicate identifier 'a'. in2.d.ts(1,8): error TS2300: Duplicate identifier 'a'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.d.ts (0 errors) ==== // bug 535531: duplicate identifier error reported for "import" declarations in separate files diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt new file mode 100644 index 0000000000000..926c07a9288e2 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt @@ -0,0 +1,14 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "OutDir", + "declaration": true + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt new file mode 100644 index 0000000000000..3dc456b4ab5c1 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt @@ -0,0 +1,14 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "OutDir", + "allowJs": true + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt new file mode 100644 index 0000000000000..3d0c96c06817c --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt @@ -0,0 +1,14 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "./OutDir", + "declaration": true + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt new file mode 100644 index 0000000000000..e1064b8022d86 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt @@ -0,0 +1,14 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "./OutDir", + "allowJs": true + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt new file mode 100644 index 0000000000000..dee9727b57877 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt @@ -0,0 +1,13 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "target": "es5" + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt index e645d251235a1..fc3b36e2fd967 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt @@ -1,12 +1,15 @@ +tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { "target": "es5", "module": "commonjs", + ~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "emitDecoratorMetadata": true, "experimentalDecorators": true, "isolatedModules": true diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt index 4362efe8f139e..b76d5fadd7dc3 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt @@ -1,12 +1,15 @@ +tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { "target": "es5", "module": "commonjs", + ~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "emitDecoratorMetadata": true, "experimentalDecorators": true, "isolatedModules": true, diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt index b8ae506a1ffa4..22c7951db7738 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt @@ -1,12 +1,15 @@ +tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { "target": "es5", "module": "system", + ~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "emitDecoratorMetadata": true, "experimentalDecorators": true }, diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt index 05181175f9372..041ddb0403b02 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt @@ -1,12 +1,15 @@ +tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { "target": "es5", "module": "system", + ~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt index 555f6f1a7ccb6..b82cfb429682c 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt @@ -1,12 +1,15 @@ +tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { "target": "es5", "module": "system", + ~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, diff --git a/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt new file mode 100644 index 0000000000000..07f0214154b4f --- /dev/null +++ b/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internal.ts (0 errors) ==== + namespace outer { + export var b = "foo"; + } +==== external2.ts (0 errors) ==== + export function square(x: number) { + return (x * x); + } +==== external.ts (0 errors) ==== + /// + import a = require("external2"); + + outer.b = "bar"; + var c = a.square(5); \ No newline at end of file diff --git a/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt index 4d0524e49b483..4b2cfba74a242 100644 --- a/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt +++ b/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. internal2.ts(2,21): error TS1147: Import declarations in a namespace cannot reference a module. internal2.ts(2,21): error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== internal2.ts (2 errors) ==== namespace outer { import g = require("external2") diff --git a/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt b/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt index ce9c2a81f90ee..6ccff2909a060 100644 --- a/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt +++ b/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6053: File 'a.ts' not found. The file is in the program because: Root file specified for compilation @@ -9,6 +10,7 @@ error TS6231: Could not resolve the path 'a' with the extensions: '.ts', '.tsx', Root file specified for compilation +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6053: File 'a.ts' not found. !!! error TS6053: The file is in the program because: !!! error TS6053: Root file specified for compilation diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt new file mode 100644 index 0000000000000..c444ffbb66544 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt @@ -0,0 +1,12 @@ +DifferentNamesNotSpecified/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== DifferentNamesNotSpecified/tsconfig.json (1 errors) ==== + { + "compilerOptions": { "outFile": "test.js" } + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + } + +==== DifferentNamesNotSpecified/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..7abaf6829b2a2 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,17 @@ +DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outFile": "test.js", + "allowJs": true + } + } + +==== DifferentNamesNotSpecifiedWithAllowJs/a.ts (0 errors) ==== + var test = 10; +==== DifferentNamesNotSpecifiedWithAllowJs/b.js (0 errors) ==== + var test2 = 10; // Should get compiled \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt index bc59a1a6546c5..16f49565d3f50 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt @@ -1,15 +1,18 @@ error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? The file is in the program because: Part of 'files' list in tsconfig.json +DifferentNamesSpecified/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? !!! error TS6504: The file is in the program because: !!! error TS6504: Part of 'files' list in tsconfig.json !!! related TS1410 DifferentNamesSpecified/tsconfig.json:3:22: File is matched by 'files' list specified here. -==== DifferentNamesSpecified/tsconfig.json (0 errors) ==== +==== DifferentNamesSpecified/tsconfig.json (1 errors) ==== { "compilerOptions": { "outFile": "test.js" }, + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "files": [ "a.ts", "b.js" ] } diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..742ad9ec9c5b8 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,18 @@ +DifferentNamesSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outFile": "test.js", + "allowJs": true + }, + "files": [ "a.ts", "b.js" ] + } + +==== DifferentNamesSpecifiedWithAllowJs/a.ts (0 errors) ==== + var test = 10; +==== DifferentNamesSpecifiedWithAllowJs/b.js (0 errors) ==== + var test2 = 10; // Should get compiled \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt new file mode 100644 index 0000000000000..504aa5823ac00 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameDTsSpecified/tsconfig.json (0 errors) ==== + { "files": [ "a.d.ts" ] } +==== SameNameDTsSpecified/a.d.ts (0 errors) ==== + declare var test: number; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..f2e2dee7bcddc --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,12 @@ +SameNameDTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== SameNameDTsSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { + "compilerOptions": { "allowJs": true }, + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "files": [ "a.d.ts" ] + } +==== SameNameDTsSpecifiedWithAllowJs/a.d.ts (0 errors) ==== + declare var test: number; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt new file mode 100644 index 0000000000000..566cbd8053af9 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameDTsNotSpecified/tsconfig.json (0 errors) ==== + +==== SameNameDTsNotSpecified/a.d.ts (0 errors) ==== + declare var a: number; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt index 45cdfd7a3bc42..d1774c4a29138 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt @@ -2,14 +2,17 @@ error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.d.ts' beca 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 'SameNameDTsNotSpecifiedWithAllowJs/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. +SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.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 TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/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. -==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (0 errors) ==== +==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== { "compilerOptions": { "allowJs": true } } + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== SameNameDTsNotSpecifiedWithAllowJs/a.d.ts (0 errors) ==== declare var a: number; ==== SameNameDTsNotSpecifiedWithAllowJs/a.js (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt new file mode 100644 index 0000000000000..70f5b9b01803a --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameFilesNotSpecified/tsconfig.json (0 errors) ==== + +==== SameNameFilesNotSpecified/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..4a3c5d1f2c973 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,9 @@ +SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { "compilerOptions": { "allowJs": true } } + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameFilesNotSpecifiedWithAllowJs/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt new file mode 100644 index 0000000000000..746fc6e28f827 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameTsSpecified/tsconfig.json (0 errors) ==== + { "files": [ "a.ts" ] } +==== SameNameTsSpecified/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..6972f0f40c60e --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,12 @@ +SameNameTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== SameNameTsSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { + "compilerOptions": { "allowJs": true }, + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "files": [ "a.ts" ] + } +==== SameNameTsSpecifiedWithAllowJs/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt index aa02b659d5de9..48e46a4143ac8 100644 --- a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt @@ -1,9 +1,11 @@ error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. !!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt index 7ad42e1a26d37..065d522a0a82b 100644 --- a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt @@ -1,7 +1,9 @@ error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt b/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt new file mode 100644 index 0000000000000..04af2cceb9460 --- /dev/null +++ b/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export interface P { x: number; y: number; } + export var a = 1; +==== consume.ts (0 errors) ==== + import M = require("./decl"); + + var p : M.P; + var x1 = M.a; + \ No newline at end of file diff --git a/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt new file mode 100644 index 0000000000000..48b2e2d5d9c1d --- /dev/null +++ b/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + namespace Test { + class A { + one: string; + two: boolean; + constructor (t: string) { + this.one = t; + this.two = false; + } + } + export class B { + private member: A[]; + + constructor () { + this.member = []; + } + } + } + +==== b.ts (0 errors) ==== + namespace Test {} + + \ No newline at end of file diff --git a/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt new file mode 100644 index 0000000000000..25713c623f7bf --- /dev/null +++ b/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + namespace Test {} + + +==== a.ts (0 errors) ==== + namespace Test { + class A { + one: string; + two: boolean; + constructor (t: string) { + this.one = t; + this.two = false; + } + } + export class B { + private member: A[]; + + constructor () { + this.member = []; + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt b/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt new file mode 100644 index 0000000000000..4719f1b3a4955 --- /dev/null +++ b/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt @@ -0,0 +1,41 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== A.ts (0 errors) ==== + export class A + { + public A(): string{ return "hello from A"; } + } + +==== AA.ts (0 errors) ==== + export class AA + { + public A(): string{ return "hello from AA"; } + } + +==== B.ts (0 errors) ==== + import A = require("../A/A"); + import AA = require("../A/AA/AA"); + + export class B + { + public Create(): IA + { + return new A.A(); + } + } + + export interface IA + { + A(): string; + } + +==== root.ts (0 errors) ==== + //import A = require("./A/A"); + import B = require("B/B"); + + var a = (new B.B()).Create(); + + + \ No newline at end of file diff --git a/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt b/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt new file mode 100644 index 0000000000000..763a23ce31de6 --- /dev/null +++ b/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== consume.ts (0 errors) ==== + declare module "math" + { + import blah = require("blah"); + export function baz(); + } + + declare module "blah" + { + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt index 55588f39d5425..c8cead4e1d6c6 100644 --- a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt +++ b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test1.ts(2,23): error TS1147: Import declarations in a namespace cannot reference a module. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test1.ts (1 errors) ==== export namespace myModule { import foo = require("test2"); diff --git a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt index 82636696b5dfe..d81cb09f8bdd9 100644 --- a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt +++ b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test1.ts(3,23): error TS1147: Import declarations in a namespace cannot reference a module. test1.ts(3,23): error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test1.ts (2 errors) ==== namespace myModule { diff --git a/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt b/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt new file mode 100644 index 0000000000000..c06452c3ebf12 --- /dev/null +++ b/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== lib/classA.ts (0 errors) ==== + namespace test { + export class ClassA + { + public method() { } + } + } +==== lib/classB.ts (0 errors) ==== + /// + + namespace test { + export class ClassB extends ClassA + { + } + } +==== main.ts (0 errors) ==== + /// + /// + + class ClassC extends test.ClassA { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt b/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt new file mode 100644 index 0000000000000..c247553165dd8 --- /dev/null +++ b/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== tsconfig.json (0 errors) ==== + { "files": [ "a.ts" ] } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/nodeModulesImportHigher/amd/nodeModulesImportHigher.errors.txt b/tests/baselines/reference/project/nodeModulesImportHigher/amd/nodeModulesImportHigher.errors.txt index 15ab81a78c641..d28c30fc98b5d 100644 --- a/tests/baselines/reference/project/nodeModulesImportHigher/amd/nodeModulesImportHigher.errors.txt +++ b/tests/baselines/reference/project/nodeModulesImportHigher/amd/nodeModulesImportHigher.errors.txt @@ -1,11 +1,14 @@ +importHigher/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. importHigher/tsconfig.json(5,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. Visit https://aka.ms/ts6 for migration information. importHigher/root.ts(6,1): error TS2322: Type 'string' is not assignable to type 'number'. -==== importHigher/tsconfig.json (1 errors) ==== +==== importHigher/tsconfig.json (2 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "allowJs": true, "declaration": false, "moduleResolution": "node", diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/nodeModulesMaxDepthExceeded.errors.txt b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/nodeModulesMaxDepthExceeded.errors.txt index 4a8a36a59473f..036cc2483f702 100644 --- a/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/nodeModulesMaxDepthExceeded.errors.txt +++ b/tests/baselines/reference/project/nodeModulesMaxDepthExceeded/amd/nodeModulesMaxDepthExceeded.errors.txt @@ -1,13 +1,16 @@ +maxDepthExceeded/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. maxDepthExceeded/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. maxDepthExceeded/root.ts(3,1): error TS2322: Type 'string' is not assignable to type 'number'. maxDepthExceeded/root.ts(4,4): error TS2540: Cannot assign to 'rel' because it is a read-only property. -==== maxDepthExceeded/tsconfig.json (1 errors) ==== +==== maxDepthExceeded/tsconfig.json (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' 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. !!! error TS5107: Visit https://aka.ms/ts6 for migration information. "allowJs": true, diff --git a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt index 00f98e5a0fbbc..46150dd416ccf 100644 --- a/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt +++ b/tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt @@ -1,12 +1,15 @@ +maxDepthIncreased/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. maxDepthIncreased/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'. -==== maxDepthIncreased/tsconfig.json (1 errors) ==== +==== maxDepthIncreased/tsconfig.json (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' 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. !!! error TS5107: Visit https://aka.ms/ts6 for migration information. "allowJs": true, diff --git a/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt b/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt new file mode 100644 index 0000000000000..e5b61bf2bb1da --- /dev/null +++ b/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export function call() { + return "success"; + } +==== b.ts (0 errors) ==== + export function hello() { } + +==== a.ts (0 errors) ==== + import b = require("lib/foo/b"); + export function hello() { } + +==== a.ts (0 errors) ==== + export function hello() { } + +==== consume.ts (0 errors) ==== + import mod = require("decl"); + import x = require("lib/foo/a"); + import y = require("lib/bar/a"); + + x.hello(); + y.hello(); + + var str = mod.call(); + + + declare function fail(); + if(str !== "success") { + fail(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt index 0ca4f7ce17672..c4a96baa91404 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. testGlo.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module. testGlo.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? testGlo.ts(21,35): error TS1147: Import declarations in a namespace cannot reference a module. testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== testGlo.ts (4 errors) ==== namespace m2 { export import mExported = require("mExported"); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt index c3458f201e26d..8f12d651e0b16 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test.ts(5,39): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(5,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? test.ts(24,35): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (4 errors) ==== export namespace m1 { } diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt index 30d923b82171b..68313105a24ed 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? test.ts(42,35): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (4 errors) ==== export namespace m2 { export import mExported = require("mExported"); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt new file mode 100644 index 0000000000000..4f860116bdd0e --- /dev/null +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt @@ -0,0 +1,64 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== mExported.ts (0 errors) ==== + export namespace me { + export class class1 { + public prop1 = 0; + } + + export var x = class1; + export function foo() { + return new class1(); + } + } +==== mNonExported.ts (0 errors) ==== + export namespace mne { + export class class1 { + public prop1 = 0; + } + + export var x = class1; + export function foo() { + return new class1(); + } + } +==== test.ts (0 errors) ==== + export import mExported = require("mExported"); + export var c1 = new mExported.me.class1; + export function f1() { + return new mExported.me.class1(); + } + export var x1 = mExported.me.x; + + export class class1 extends mExported.me.class1 { + } + + var c2 = new mExported.me.class1; + function f2() { + return new mExported.me.class1(); + } + var x2 = mExported.me.x; + + class class2 extends mExported.me.class1 { + } + + import mNonExported = require("mNonExported"); + export var c3 = new mNonExported.mne.class1; + export function f3() { + return new mNonExported.mne.class1(); + } + export var x3 = mNonExported.mne.x; + + export class class3 extends mNonExported.mne.class1 { + } + + var c4 = new mNonExported.mne.class1; + function f4() { + return new mNonExported.mne.class1(); + } + var x4 = mNonExported.mne.x; + + class class4 extends mNonExported.mne.class1 { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt new file mode 100644 index 0000000000000..0b5db3c28f27c --- /dev/null +++ b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== indirectExternalModule.ts (0 errors) ==== + export class indirectClass { + } +==== externalModule.ts (0 errors) ==== + import im0 = require("indirectExternalModule"); + export var x = new im0.indirectClass(); + +==== test.ts (0 errors) ==== + import im1 = require("externalModule"); + export var x = im1.x; \ No newline at end of file diff --git a/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt b/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt new file mode 100644 index 0000000000000..3fbdf138cb2ad --- /dev/null +++ b/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== Test/tsconfig.json (0 errors) ==== + { "files": [ "a.ts" ] } +==== Test/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt b/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt new file mode 100644 index 0000000000000..2dbf1a397115d --- /dev/null +++ b/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== globalThisCapture.ts (0 errors) ==== + // Add a lambda to ensure global 'this' capture is triggered + (()=>this.window); + +==== __extends.ts (0 errors) ==== + // class inheritance to ensure __extends is emitted + namespace m { + export class base {} + export class child extends base {} + } \ No newline at end of file diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt new file mode 100644 index 0000000000000..3cbbf6a7931cb --- /dev/null +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== li'b/class'A.ts (0 errors) ==== + namespace test { + export class ClassA + { + public method() { } + } + } +==== m'ain.ts (0 errors) ==== + /// + + class ClassC extends test.ClassA { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt b/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt new file mode 100644 index 0000000000000..478bb6f3be753 --- /dev/null +++ b/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== lib.ts (0 errors) ==== + namespace Lib { + export class LibType {} + } + +==== test.ts (0 errors) ==== + /// + + var libType: Lib.LibType; \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt new file mode 100644 index 0000000000000..cb31d0ba9f0ed --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ../../../bar/bar.ts (0 errors) ==== + /// + // This is bar.ts + class bar { + } +==== foo.ts (0 errors) ==== + /// + + class foo { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt new file mode 100644 index 0000000000000..15742a77ff129 --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== bar/bar.ts (0 errors) ==== + /// + // This is bar.ts + class bar { + } +==== src/ts/foo/foo.ts (0 errors) ==== + /// + + class foo { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt new file mode 100644 index 0000000000000..a1c02de523ba5 --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + /// + + class foo { + } +==== ../../../bar/bar.ts (0 errors) ==== + /// + // This is bar.ts + class bar { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt new file mode 100644 index 0000000000000..b232bbc2ecdd0 --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ../../../bar/bar.ts (0 errors) ==== + /// + // This is bar.ts + class bar { + } +==== ../../../src/ts/foo/foo.ts (0 errors) ==== + /// + + class foo { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt new file mode 100644 index 0000000000000..24ebdb498e3bd --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt @@ -0,0 +1,7 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + class test { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt new file mode 100644 index 0000000000000..24ebdb498e3bd --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt @@ -0,0 +1,7 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + class test { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt b/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt new file mode 100644 index 0000000000000..146c6a44dbf7c --- /dev/null +++ b/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export function call() { + return "success"; + } + export var x = 1; +==== consume.ts (0 errors) ==== + import decl = require("./decl"); + var str = decl.call(); + + declare function fail(); + + if(str !== "success") { + fail(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt b/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt new file mode 100644 index 0000000000000..afe57ce71ee07 --- /dev/null +++ b/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.d.ts (0 errors) ==== + declare module "decl" + { + export function call(); + } +==== consume.ts (0 errors) ==== + /// + import decl = require("decl"); + var str = decl.call(); + + declare function fail(); + + if(str !== "success") { + fail(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt b/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt new file mode 100644 index 0000000000000..c86e078c0fa95 --- /dev/null +++ b/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt @@ -0,0 +1,29 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export function call() { + return "success"; + } + export var x = 1; +==== consume.ts (0 errors) ==== + import decl = require("../decl"); + + declare function fail(); + + export function call() + { + var str = decl.call(); + + + + if (str !== "success") + { + fail(); + } + } +==== app.ts (0 errors) ==== + import consume = require("./main/consume"); + + consume.call(); \ No newline at end of file diff --git a/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt b/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt new file mode 100644 index 0000000000000..5fabda6c5f059 --- /dev/null +++ b/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.d.ts (0 errors) ==== + declare module "decl" + { + export function call(); + } +==== main/consume.ts (0 errors) ==== + /// + import decl = require("decl"); + var str = decl.call(); + + declare function fail(); + + if(str !== "success") { + fail(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt b/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt new file mode 100644 index 0000000000000..8e5e00bacd0ad --- /dev/null +++ b/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + export function B(): void { + throw new Error('Should not be called'); + } +==== a.ts (0 errors) ==== + import b = require('b'); + + export function A(): void { + b.B(); + } +==== app.ts (0 errors) ==== + import a = require('A/a'); + + a.A(); \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt b/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt new file mode 100644 index 0000000000000..70ccf85f965d3 --- /dev/null +++ b/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ==== + class C { + } + +==== FolderA/FolderB/fileB.ts (0 errors) ==== + /// + class B { + public c: C; + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt b/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt index 4e3492c206fdb..f4fb64dbf13d1 100644 --- a/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt +++ b/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. The file is in the program because: Root file specified for compilation +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. !!! error TS6059: The file is in the program because: !!! error TS6059: Root file specified for compilation diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt new file mode 100644 index 0000000000000..70ccf85f965d3 --- /dev/null +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ==== + class C { + } + +==== FolderA/FolderB/fileB.ts (0 errors) ==== + /// + class B { + public c: C; + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt index 4e3492c206fdb..f4fb64dbf13d1 100644 --- a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt +++ b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. The file is in the program because: Root file specified for compilation +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. !!! error TS6059: The file is in the program because: !!! error TS6059: Root file specified for compilation diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt index b79cae049ffa5..1cca30b31ea4b 100644 --- a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt @@ -1,7 +1,9 @@ error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..d2108d520634c --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f5ac809333e61 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f2216b554174b --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..20ccd140ed004 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..9fbf00f5700e1 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..5875c51939b46 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..398af4e172fa6 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..236beee037424 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt new file mode 100644 index 0000000000000..c35bfaf635e0a --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt @@ -0,0 +1,18 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "./OutDir", + "declaration": true + }, + "exclude": [ + "./node_modules", + "./OutDir" + ] + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt new file mode 100644 index 0000000000000..c3a1a603f9372 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt @@ -0,0 +1,18 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "./OutDir", + "allowJs": true + }, + "exclude": [ + "./node_modules", + "./OutDir" + ] + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt new file mode 100644 index 0000000000000..315dfe48da108 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt @@ -0,0 +1,18 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "OutDir", + "declaration": true + }, + "exclude": [ + "node_modules", + "OutDir" + ] + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt new file mode 100644 index 0000000000000..8c724cf44b5d4 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt @@ -0,0 +1,18 @@ +tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "OutDir", + "allowJs": true + }, + "exclude": [ + "node_modules", + "OutDir" + ] + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt new file mode 100644 index 0000000000000..5cd791b3623be --- /dev/null +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt @@ -0,0 +1,37 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== fs.ts (0 errors) ==== + import commands = require('./commands'); + + export class RM { + + public getName() { + return 'rm'; + } + + public getDescription() { + return "\t\t\tDelete file"; + } + + private run(configuration: commands.IConfiguration) { + var absoluteWorkspacePath = configuration.workspace.toAbsolutePath(configuration.server); + } + } +==== server.ts (0 errors) ==== + export interface IServer { + } + + export interface IWorkspace { + toAbsolutePath(server:IServer, workspaceRelativePath?:string):string; + } +==== commands.ts (0 errors) ==== + import fs = require('fs'); + import server = require('server'); + + export interface IConfiguration { + workspace: server.IWorkspace; + server?: server.IServer; + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt index 88f77a6a2e84e..0ddab4230349b 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,22): error TS1006: A file cannot have a reference to itself. main.ts(2,22): error TS6053: File 'nonExistingFile1.ts' not found. main.ts(3,22): error TS6053: File 'nonExistingFile2.ts' not found. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== /// ~~~~~~~ diff --git a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.errors.txt b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.errors.txt index 74353bba9b409..7fe69c1f6d549 100644 --- a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.errors.txt +++ b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== propertyIdentityWithPrivacyMismatch_1.ts (2 errors) ==== /// import m1 = require('mod1'); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt index d3e5485b51fbb..67ce66cc3e769 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType1_moduleA.ts (0 errors) ==== /// import moduleC = require("moduleC"); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt index 1bed5684d1f93..6387332a0370f 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType2_moduleA.ts (0 errors) ==== /// import moduleC = require("moduleC"); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt index 659de7630fb63..5bc9ba2db4473 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType3_moduleA.ts (0 errors) ==== /// import moduleC = require("moduleC"); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt index 6097f6a4dffe7..3b28b99000fb6 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType4_moduleC.ts(1,1): error TS2303: Circular definition of import alias 'self'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts (0 errors) ==== import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB"); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt index 2a748792f3933..3d61cad919d55 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType5_moduleD.ts(1,1): error TS2303: Circular definition of import alias 'self'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts (0 errors) ==== import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB"); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt index 242e633456ccd..5ec6f8edabaa3 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType6_moduleE.ts(1,1): error TS2303: Circular definition of import alias 'self'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts (0 errors) ==== import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB"); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.errors.txt new file mode 100644 index 0000000000000..d20ba11088c6d --- /dev/null +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== recursiveExportAssignmentAndFindAliasedType7_moduleA.ts (0 errors) ==== + import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); + import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB"); + export var b: ClassB; // This should result in type ClassB +==== recursiveExportAssignmentAndFindAliasedType7_moduleC.ts (0 errors) ==== + import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); + var selfVar = self; + export = selfVar; + +==== recursiveExportAssignmentAndFindAliasedType7_moduleD.ts (0 errors) ==== + import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE"); + export = self; + +==== recursiveExportAssignmentAndFindAliasedType7_moduleE.ts (0 errors) ==== + import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); + export = self; + +==== recursiveExportAssignmentAndFindAliasedType7_moduleB.ts (0 errors) ==== + class ClassB { } + export = ClassB; + \ No newline at end of file diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types index 9b93f1a1db073..c7f90992e6478 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types @@ -20,7 +20,9 @@ import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); var selfVar = self; >selfVar : any +> : ^^^ >self : any +> : ^^^ export = selfVar; >selfVar : any diff --git a/tests/baselines/reference/reexportMissingDefault5.errors.txt b/tests/baselines/reference/reexportMissingDefault5.errors.txt new file mode 100644 index 0000000000000..140fa902578db --- /dev/null +++ b/tests/baselines/reference/reexportMissingDefault5.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.d.ts (0 errors) ==== + declare var b: number; + export { b }; + +==== a.ts (0 errors) ==== + export { b } from "./b"; + export { default as Foo } from "./b"; \ No newline at end of file diff --git a/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt b/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt index 851c7894b6a92..99bdcce1c7099 100644 --- a/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt +++ b/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. somefolder/a.ts(1,17): error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== somefolder/a.ts (1 errors) ==== import {x} from "./b" ~~~~~ diff --git a/tests/baselines/reference/requireEmitSemicolon.errors.txt b/tests/baselines/reference/requireEmitSemicolon.errors.txt new file mode 100644 index 0000000000000..ee48ee9b36f1a --- /dev/null +++ b/tests/baselines/reference/requireEmitSemicolon.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== requireEmitSemicolon_1.ts (0 errors) ==== + /// + import P = require("requireEmitSemicolon_0"); // bug was we were not emitting a ; here and causing runtime failures in node + + export namespace Database { + export class DB { + public findPerson(id: number): P.Models.Person { + return new P.Models.Person("Rock"); + } + } + } +==== requireEmitSemicolon_0.ts (0 errors) ==== + export namespace Models { + export class Person { + constructor(name: string) { } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt b/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt index 7519e14cf86f9..a9e01c4345e31 100644 --- a/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt @@ -1,8 +1,10 @@ error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file1.ts(1,21): error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? !!! error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file1.ts (1 errors) ==== import b1 = require('./b'); ~~~~~ diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt index db18d33c600a2..1f804dd8bace3 100644 --- a/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt @@ -1,8 +1,12 @@ -error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. +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 TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. +!!! 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/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmd.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmd.errors.txt index b751a1a3ab69d..8c407e1b674c1 100644 --- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmd.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmd.errors.txt @@ -1,7 +1,9 @@ error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file1.ts (0 errors) ==== import * as b from './b.json'; diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmdOutFile.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmdOutFile.errors.txt index b751a1a3ab69d..8c407e1b674c1 100644 --- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmdOutFile.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitAmdOutFile.errors.txt @@ -1,7 +1,9 @@ error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file1.ts (0 errors) ==== import * as b from './b.json'; diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt index 2d750ddc6fcc5..1f804dd8bace3 100644 --- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt @@ -1,10 +1,12 @@ 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/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitSystem.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitSystem.errors.txt index cd0affe7ce19f..89b01a4b0a7a9 100644 --- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitSystem.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitSystem.errors.txt @@ -1,9 +1,11 @@ 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=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! 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=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file1.ts (0 errors) ==== import * as b from './b.json'; diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitUmd.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitUmd.errors.txt index cd0affe7ce19f..57dd7db1aa6a2 100644 --- a/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitUmd.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitUmd.errors.txt @@ -1,9 +1,11 @@ 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=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! 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=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file1.ts (0 errors) ==== import * as b from './b.json'; diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js index a5670ff683fb7..1f37a83f5b5bf 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js @@ -47,13 +47,25 @@ File: c.ts import x from 'b' var z = 1; resolvedModules: -b: { - "resolvedModule": { - "resolvedFileName": "/b.ts", - "extension": ".ts", - "isExternalLibraryImport": false, - "resolvedUsingTsExtension": false - } +b: esnext: { + "failedLookupLocations": [ + "/package.json", + "/node_modules/b/package.json", + "/node_modules/b.ts", + "/node_modules/b.tsx", + "/node_modules/b.d.ts", + "/node_modules/b/index.ts", + "/node_modules/b/index.tsx", + "/node_modules/b/index.d.ts", + "/node_modules/@types/b/package.json", + "/node_modules/@types/b.d.ts", + "/node_modules/@types/b/index.d.ts", + "/node_modules/b/package.json", + "/node_modules/b.js", + "/node_modules/b.jsx", + "/node_modules/b/index.js", + "/node_modules/b/index.jsx" + ] } File: b.ts @@ -90,6 +102,6 @@ MissingPaths:: [ a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. -c.ts(2,15): error TS2306: File 'b.ts' is not a module. +c.ts(2,15): error TS2307: Cannot find module 'b' or its corresponding type declarations. diff --git a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js index abffd89746113..56a1711400865 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js @@ -1,54 +1,68 @@ Program 1 Reused:: Not -File: /b.ts - - -var y = 2 - File: a.ts import {_} from 'b' var x = 1 resolvedModules: -b: { - "resolvedModule": { - "resolvedFileName": "/b.ts", - "extension": ".ts", - "isExternalLibraryImport": false, - "resolvedUsingTsExtension": false - } +b: esnext: { + "failedLookupLocations": [ + "/package.json", + "/node_modules/b/package.json", + "/node_modules/b.ts", + "/node_modules/b.tsx", + "/node_modules/b.d.ts", + "/node_modules/b/index.ts", + "/node_modules/b/index.tsx", + "/node_modules/b/index.d.ts", + "/node_modules/@types/b/package.json", + "/node_modules/@types/b.d.ts", + "/node_modules/@types/b/index.d.ts", + "/node_modules/b/package.json", + "/node_modules/b.js", + "/node_modules/b.jsx", + "/node_modules/b/index.js", + "/node_modules/b/index.jsx" + ] } MissingPaths:: [] -a.ts(2,17): error TS2306: File '/b.ts' is not a module. +a.ts(2,17): error TS2307: Cannot find module 'b' or its corresponding type declarations. Program 2 Reused:: Completely -File: /b.ts - - -var y = 2 - File: a.ts import {_} from 'b' var x = 2 resolvedModules: -b: { - "resolvedModule": { - "resolvedFileName": "/b.ts", - "extension": ".ts", - "isExternalLibraryImport": false, - "resolvedUsingTsExtension": false - } +b: esnext: { + "failedLookupLocations": [ + "/package.json", + "/node_modules/b/package.json", + "/node_modules/b.ts", + "/node_modules/b.tsx", + "/node_modules/b.d.ts", + "/node_modules/b/index.ts", + "/node_modules/b/index.tsx", + "/node_modules/b/index.d.ts", + "/node_modules/@types/b/package.json", + "/node_modules/@types/b.d.ts", + "/node_modules/@types/b/index.d.ts", + "/node_modules/b/package.json", + "/node_modules/b.js", + "/node_modules/b.jsx", + "/node_modules/b/index.js", + "/node_modules/b/index.jsx" + ] } MissingPaths:: [] -a.ts(2,17): error TS2306: File '/b.ts' is not a module. +a.ts(2,17): error TS2307: Cannot find module 'b' or its corresponding type declarations. @@ -65,11 +79,6 @@ MissingPaths:: [] Program 4 Reused:: SafeModules -File: /b.ts - - -var y = 2 - File: a.ts import x from 'b' @@ -77,31 +86,51 @@ import x from 'b' var x = 2 resolvedModules: -b: { - "resolvedModule": { - "resolvedFileName": "/b.ts", - "extension": ".ts", - "isExternalLibraryImport": false, - "resolvedUsingTsExtension": false - } +b: esnext: { + "failedLookupLocations": [ + "/package.json", + "/node_modules/b/package.json", + "/node_modules/b.ts", + "/node_modules/b.tsx", + "/node_modules/b.d.ts", + "/node_modules/b/index.ts", + "/node_modules/b/index.tsx", + "/node_modules/b/index.d.ts", + "/node_modules/@types/b/package.json", + "/node_modules/@types/b.d.ts", + "/node_modules/@types/b/index.d.ts", + "/node_modules/b/package.json", + "/node_modules/b.js", + "/node_modules/b.jsx", + "/node_modules/b/index.js", + "/node_modules/b/index.jsx" + ] } -c: { +c: esnext: { "failedLookupLocations": [ - "/c.ts", - "/c.tsx", - "/c.d.ts", + "/package.json", + "/node_modules/c/package.json", + "/node_modules/c.ts", + "/node_modules/c.tsx", + "/node_modules/c.d.ts", + "/node_modules/c/index.ts", + "/node_modules/c/index.tsx", + "/node_modules/c/index.d.ts", "/node_modules/@types/c/package.json", "/node_modules/@types/c.d.ts", "/node_modules/@types/c/index.d.ts", - "/c.js", - "/c.jsx" + "/node_modules/c/package.json", + "/node_modules/c.js", + "/node_modules/c.jsx", + "/node_modules/c/index.js", + "/node_modules/c/index.jsx" ] } MissingPaths:: [] -a.ts(2,15): error TS2306: File '/b.ts' is not a module. -a.ts(3,31): error TS2792: Cannot find module 'c'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +a.ts(2,15): error TS2307: Cannot find module 'b' or its corresponding type declarations. +a.ts(3,31): error TS2307: Cannot find module 'c' or its corresponding type declarations. diff --git a/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js b/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js index 51b54c07edd14..ba5527e70717d 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js +++ b/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js @@ -4,18 +4,98 @@ File: /home/src/workspaces/project/a.ts import * as a from "a"; resolvedModules: -a: { - "resolvedModule": { - "resolvedFileName": "/home/src/workspaces/project/a.ts", - "extension": ".ts", - "isExternalLibraryImport": false, - "resolvedUsingTsExtension": false - } +a: esnext: { + "failedLookupLocations": [ + "/home/src/workspaces/project/package.json", + "/home/src/workspaces/package.json", + "/home/src/package.json", + "/home/package.json", + "/package.json", + "/home/src/workspaces/project/node_modules/a/package.json", + "/home/src/workspaces/project/node_modules/a.ts", + "/home/src/workspaces/project/node_modules/a.tsx", + "/home/src/workspaces/project/node_modules/a.d.ts", + "/home/src/workspaces/project/node_modules/a/index.ts", + "/home/src/workspaces/project/node_modules/a/index.tsx", + "/home/src/workspaces/project/node_modules/a/index.d.ts", + "/home/src/workspaces/project/node_modules/@types/a/package.json", + "/home/src/workspaces/project/node_modules/@types/a.d.ts", + "/home/src/workspaces/project/node_modules/@types/a/index.d.ts", + "/home/src/workspaces/node_modules/a/package.json", + "/home/src/workspaces/node_modules/a.ts", + "/home/src/workspaces/node_modules/a.tsx", + "/home/src/workspaces/node_modules/a.d.ts", + "/home/src/workspaces/node_modules/a/index.ts", + "/home/src/workspaces/node_modules/a/index.tsx", + "/home/src/workspaces/node_modules/a/index.d.ts", + "/home/src/workspaces/node_modules/@types/a/package.json", + "/home/src/workspaces/node_modules/@types/a.d.ts", + "/home/src/workspaces/node_modules/@types/a/index.d.ts", + "/home/src/node_modules/a/package.json", + "/home/src/node_modules/a.ts", + "/home/src/node_modules/a.tsx", + "/home/src/node_modules/a.d.ts", + "/home/src/node_modules/a/index.ts", + "/home/src/node_modules/a/index.tsx", + "/home/src/node_modules/a/index.d.ts", + "/home/src/node_modules/@types/a/package.json", + "/home/src/node_modules/@types/a.d.ts", + "/home/src/node_modules/@types/a/index.d.ts", + "/home/node_modules/a/package.json", + "/home/node_modules/a.ts", + "/home/node_modules/a.tsx", + "/home/node_modules/a.d.ts", + "/home/node_modules/a/index.ts", + "/home/node_modules/a/index.tsx", + "/home/node_modules/a/index.d.ts", + "/home/node_modules/@types/a/package.json", + "/home/node_modules/@types/a.d.ts", + "/home/node_modules/@types/a/index.d.ts", + "/node_modules/a/package.json", + "/node_modules/a.ts", + "/node_modules/a.tsx", + "/node_modules/a.d.ts", + "/node_modules/a/index.ts", + "/node_modules/a/index.tsx", + "/node_modules/a/index.d.ts", + "/node_modules/@types/a/package.json", + "/node_modules/@types/a.d.ts", + "/node_modules/@types/a/index.d.ts", + "/home/src/workspaces/project/node_modules/a/package.json", + "/home/src/workspaces/project/node_modules/a.js", + "/home/src/workspaces/project/node_modules/a.jsx", + "/home/src/workspaces/project/node_modules/a/index.js", + "/home/src/workspaces/project/node_modules/a/index.jsx", + "/home/src/workspaces/node_modules/a/package.json", + "/home/src/workspaces/node_modules/a.js", + "/home/src/workspaces/node_modules/a.jsx", + "/home/src/workspaces/node_modules/a/index.js", + "/home/src/workspaces/node_modules/a/index.jsx", + "/home/src/node_modules/a/package.json", + "/home/src/node_modules/a.js", + "/home/src/node_modules/a.jsx", + "/home/src/node_modules/a/index.js", + "/home/src/node_modules/a/index.jsx", + "/home/node_modules/a/package.json", + "/home/node_modules/a.js", + "/home/node_modules/a.jsx", + "/home/node_modules/a/index.js", + "/home/node_modules/a/index.jsx", + "/node_modules/a/package.json", + "/node_modules/a.js", + "/node_modules/a.jsx", + "/node_modules/a/index.js", + "/node_modules/a/index.jsx", + "/home/src/workspaces/project/types/a.d.ts", + "/home/src/workspaces/project/types/a/package.json", + "/home/src/workspaces/project/types/a/index.d.ts" + ] } MissingPaths:: [] +home/src/workspaces/project/a.ts(3,20): error TS2307: Cannot find module 'a' or its corresponding type declarations. @@ -25,17 +105,97 @@ File: /home/src/workspaces/project/a.ts import * as aa from "a"; resolvedModules: -a: { - "resolvedModule": { - "resolvedFileName": "/home/src/workspaces/project/a.ts", - "extension": ".ts", - "isExternalLibraryImport": false, - "resolvedUsingTsExtension": false - } +a: esnext: { + "failedLookupLocations": [ + "/home/src/workspaces/project/package.json", + "/home/src/workspaces/package.json", + "/home/src/package.json", + "/home/package.json", + "/package.json", + "/home/src/workspaces/project/node_modules/a/package.json", + "/home/src/workspaces/project/node_modules/a.ts", + "/home/src/workspaces/project/node_modules/a.tsx", + "/home/src/workspaces/project/node_modules/a.d.ts", + "/home/src/workspaces/project/node_modules/a/index.ts", + "/home/src/workspaces/project/node_modules/a/index.tsx", + "/home/src/workspaces/project/node_modules/a/index.d.ts", + "/home/src/workspaces/project/node_modules/@types/a/package.json", + "/home/src/workspaces/project/node_modules/@types/a.d.ts", + "/home/src/workspaces/project/node_modules/@types/a/index.d.ts", + "/home/src/workspaces/node_modules/a/package.json", + "/home/src/workspaces/node_modules/a.ts", + "/home/src/workspaces/node_modules/a.tsx", + "/home/src/workspaces/node_modules/a.d.ts", + "/home/src/workspaces/node_modules/a/index.ts", + "/home/src/workspaces/node_modules/a/index.tsx", + "/home/src/workspaces/node_modules/a/index.d.ts", + "/home/src/workspaces/node_modules/@types/a/package.json", + "/home/src/workspaces/node_modules/@types/a.d.ts", + "/home/src/workspaces/node_modules/@types/a/index.d.ts", + "/home/src/node_modules/a/package.json", + "/home/src/node_modules/a.ts", + "/home/src/node_modules/a.tsx", + "/home/src/node_modules/a.d.ts", + "/home/src/node_modules/a/index.ts", + "/home/src/node_modules/a/index.tsx", + "/home/src/node_modules/a/index.d.ts", + "/home/src/node_modules/@types/a/package.json", + "/home/src/node_modules/@types/a.d.ts", + "/home/src/node_modules/@types/a/index.d.ts", + "/home/node_modules/a/package.json", + "/home/node_modules/a.ts", + "/home/node_modules/a.tsx", + "/home/node_modules/a.d.ts", + "/home/node_modules/a/index.ts", + "/home/node_modules/a/index.tsx", + "/home/node_modules/a/index.d.ts", + "/home/node_modules/@types/a/package.json", + "/home/node_modules/@types/a.d.ts", + "/home/node_modules/@types/a/index.d.ts", + "/node_modules/a/package.json", + "/node_modules/a.ts", + "/node_modules/a.tsx", + "/node_modules/a.d.ts", + "/node_modules/a/index.ts", + "/node_modules/a/index.tsx", + "/node_modules/a/index.d.ts", + "/node_modules/@types/a/package.json", + "/node_modules/@types/a.d.ts", + "/node_modules/@types/a/index.d.ts", + "/home/src/workspaces/project/node_modules/a/package.json", + "/home/src/workspaces/project/node_modules/a.js", + "/home/src/workspaces/project/node_modules/a.jsx", + "/home/src/workspaces/project/node_modules/a/index.js", + "/home/src/workspaces/project/node_modules/a/index.jsx", + "/home/src/workspaces/node_modules/a/package.json", + "/home/src/workspaces/node_modules/a.js", + "/home/src/workspaces/node_modules/a.jsx", + "/home/src/workspaces/node_modules/a/index.js", + "/home/src/workspaces/node_modules/a/index.jsx", + "/home/src/node_modules/a/package.json", + "/home/src/node_modules/a.js", + "/home/src/node_modules/a.jsx", + "/home/src/node_modules/a/index.js", + "/home/src/node_modules/a/index.jsx", + "/home/node_modules/a/package.json", + "/home/node_modules/a.js", + "/home/node_modules/a.jsx", + "/home/node_modules/a/index.js", + "/home/node_modules/a/index.jsx", + "/node_modules/a/package.json", + "/node_modules/a.js", + "/node_modules/a.jsx", + "/node_modules/a/index.js", + "/node_modules/a/index.jsx", + "/home/src/workspaces/project/types/a.d.ts", + "/home/src/workspaces/project/types/a/package.json", + "/home/src/workspaces/project/types/a/index.d.ts" + ] } MissingPaths:: [] +home/src/workspaces/project/a.ts(3,21): error TS2307: Cannot find module 'a' or its corresponding type declarations. diff --git a/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js index 3d250f8ace258..e5236c9c090a2 100644 --- a/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js @@ -4,64 +4,120 @@ File: /home/src/workspaces/project/a/b/app.ts import * as fs from 'fs' resolvedModules: -fs: { +fs: esnext: { "failedLookupLocations": [ - "/home/src/workspaces/project/a/b/fs.ts", - "/home/src/workspaces/project/a/b/fs.tsx", - "/home/src/workspaces/project/a/b/fs.d.ts", - "/home/src/workspaces/project/a/fs.ts", - "/home/src/workspaces/project/a/fs.tsx", - "/home/src/workspaces/project/a/fs.d.ts", - "/home/src/workspaces/project/fs.ts", - "/home/src/workspaces/project/fs.tsx", - "/home/src/workspaces/project/fs.d.ts", - "/home/src/workspaces/fs.ts", - "/home/src/workspaces/fs.tsx", - "/home/src/workspaces/fs.d.ts", - "/home/src/fs.ts", - "/home/src/fs.tsx", - "/home/src/fs.d.ts", - "/home/fs.ts", - "/home/fs.tsx", - "/home/fs.d.ts", - "/fs.ts", - "/fs.tsx", - "/fs.d.ts", + "/home/src/workspaces/project/a/b/package.json", + "/home/src/workspaces/project/a/package.json", + "/home/src/workspaces/project/package.json", + "/home/src/workspaces/package.json", + "/home/src/package.json", + "/home/package.json", + "/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs.ts", + "/home/src/workspaces/project/a/b/node_modules/fs.tsx", + "/home/src/workspaces/project/a/b/node_modules/fs.d.ts", + "/home/src/workspaces/project/a/b/node_modules/fs/index.ts", + "/home/src/workspaces/project/a/b/node_modules/fs/index.tsx", + "/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts", "/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json", "/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/project/a/node_modules/fs/package.json", + "/home/src/workspaces/project/a/node_modules/fs.ts", + "/home/src/workspaces/project/a/node_modules/fs.tsx", + "/home/src/workspaces/project/a/node_modules/fs.d.ts", + "/home/src/workspaces/project/a/node_modules/fs/index.ts", + "/home/src/workspaces/project/a/node_modules/fs/index.tsx", + "/home/src/workspaces/project/a/node_modules/fs/index.d.ts", "/home/src/workspaces/project/a/node_modules/@types/fs/package.json", "/home/src/workspaces/project/a/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/project/node_modules/fs/package.json", + "/home/src/workspaces/project/node_modules/fs.ts", + "/home/src/workspaces/project/node_modules/fs.tsx", + "/home/src/workspaces/project/node_modules/fs.d.ts", + "/home/src/workspaces/project/node_modules/fs/index.ts", + "/home/src/workspaces/project/node_modules/fs/index.tsx", + "/home/src/workspaces/project/node_modules/fs/index.d.ts", "/home/src/workspaces/project/node_modules/@types/fs/package.json", "/home/src/workspaces/project/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/node_modules/fs/package.json", + "/home/src/workspaces/node_modules/fs.ts", + "/home/src/workspaces/node_modules/fs.tsx", + "/home/src/workspaces/node_modules/fs.d.ts", + "/home/src/workspaces/node_modules/fs/index.ts", + "/home/src/workspaces/node_modules/fs/index.tsx", + "/home/src/workspaces/node_modules/fs/index.d.ts", "/home/src/workspaces/node_modules/@types/fs/package.json", "/home/src/workspaces/node_modules/@types/fs.d.ts", "/home/src/workspaces/node_modules/@types/fs/index.d.ts", + "/home/src/node_modules/fs/package.json", + "/home/src/node_modules/fs.ts", + "/home/src/node_modules/fs.tsx", + "/home/src/node_modules/fs.d.ts", + "/home/src/node_modules/fs/index.ts", + "/home/src/node_modules/fs/index.tsx", + "/home/src/node_modules/fs/index.d.ts", "/home/src/node_modules/@types/fs/package.json", "/home/src/node_modules/@types/fs.d.ts", "/home/src/node_modules/@types/fs/index.d.ts", + "/home/node_modules/fs/package.json", + "/home/node_modules/fs.ts", + "/home/node_modules/fs.tsx", + "/home/node_modules/fs.d.ts", + "/home/node_modules/fs/index.ts", + "/home/node_modules/fs/index.tsx", + "/home/node_modules/fs/index.d.ts", "/home/node_modules/@types/fs/package.json", "/home/node_modules/@types/fs.d.ts", "/home/node_modules/@types/fs/index.d.ts", + "/node_modules/fs/package.json", + "/node_modules/fs.ts", + "/node_modules/fs.tsx", + "/node_modules/fs.d.ts", + "/node_modules/fs/index.ts", + "/node_modules/fs/index.tsx", + "/node_modules/fs/index.d.ts", "/node_modules/@types/fs/package.json", "/node_modules/@types/fs.d.ts", "/node_modules/@types/fs/index.d.ts", - "/home/src/workspaces/project/a/b/fs.js", - "/home/src/workspaces/project/a/b/fs.jsx", - "/home/src/workspaces/project/a/fs.js", - "/home/src/workspaces/project/a/fs.jsx", - "/home/src/workspaces/project/fs.js", - "/home/src/workspaces/project/fs.jsx", - "/home/src/workspaces/fs.js", - "/home/src/workspaces/fs.jsx", - "/home/src/fs.js", - "/home/src/fs.jsx", - "/home/fs.js", - "/home/fs.jsx", - "/fs.js", - "/fs.jsx" + "/home/src/workspaces/project/a/b/node_modules/fs/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs.js", + "/home/src/workspaces/project/a/b/node_modules/fs.jsx", + "/home/src/workspaces/project/a/b/node_modules/fs/index.js", + "/home/src/workspaces/project/a/b/node_modules/fs/index.jsx", + "/home/src/workspaces/project/a/node_modules/fs/package.json", + "/home/src/workspaces/project/a/node_modules/fs.js", + "/home/src/workspaces/project/a/node_modules/fs.jsx", + "/home/src/workspaces/project/a/node_modules/fs/index.js", + "/home/src/workspaces/project/a/node_modules/fs/index.jsx", + "/home/src/workspaces/project/node_modules/fs/package.json", + "/home/src/workspaces/project/node_modules/fs.js", + "/home/src/workspaces/project/node_modules/fs.jsx", + "/home/src/workspaces/project/node_modules/fs/index.js", + "/home/src/workspaces/project/node_modules/fs/index.jsx", + "/home/src/workspaces/node_modules/fs/package.json", + "/home/src/workspaces/node_modules/fs.js", + "/home/src/workspaces/node_modules/fs.jsx", + "/home/src/workspaces/node_modules/fs/index.js", + "/home/src/workspaces/node_modules/fs/index.jsx", + "/home/src/node_modules/fs/package.json", + "/home/src/node_modules/fs.js", + "/home/src/node_modules/fs.jsx", + "/home/src/node_modules/fs/index.js", + "/home/src/node_modules/fs/index.jsx", + "/home/node_modules/fs/package.json", + "/home/node_modules/fs.js", + "/home/node_modules/fs.jsx", + "/home/node_modules/fs/index.js", + "/home/node_modules/fs/index.jsx", + "/node_modules/fs/package.json", + "/node_modules/fs.js", + "/node_modules/fs.jsx", + "/node_modules/fs/index.js", + "/node_modules/fs/index.jsx" ] } @@ -71,64 +127,123 @@ File: /home/src/workspaces/project/a/b/node.d.ts declare module 'fs' {} ======== Resolving module 'fs' from '/home/src/workspaces/project/a/b/app.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/home/src/workspaces/project/a/b/fs.ts' does not exist. -File '/home/src/workspaces/project/a/b/fs.tsx' does not exist. -File '/home/src/workspaces/project/a/b/fs.d.ts' does not exist. -File '/home/src/workspaces/project/a/fs.ts' does not exist. -File '/home/src/workspaces/project/a/fs.tsx' does not exist. -File '/home/src/workspaces/project/a/fs.d.ts' does not exist. -File '/home/src/workspaces/project/fs.ts' does not exist. -File '/home/src/workspaces/project/fs.tsx' does not exist. -File '/home/src/workspaces/project/fs.d.ts' does not exist. -File '/home/src/workspaces/fs.ts' does not exist. -File '/home/src/workspaces/fs.tsx' does not exist. -File '/home/src/workspaces/fs.d.ts' does not exist. -File '/home/src/fs.ts' does not exist. -File '/home/src/fs.tsx' does not exist. -File '/home/src/fs.d.ts' does not exist. -File '/home/fs.ts' does not exist. -File '/home/fs.tsx' does not exist. -File '/home/fs.d.ts' does not exist. -File '/fs.ts' does not exist. -File '/fs.tsx' does not exist. -File '/fs.d.ts' does not exist. -Searching all ancestor node_modules directories for preferred extensions: Declaration. +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/workspaces/project/a/b/package.json' does not exist. +File '/home/src/workspaces/project/a/package.json' does not exist. +File '/home/src/workspaces/project/package.json' does not exist. +File '/home/src/workspaces/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 'fs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/node_modules/fs/package.json' does not exist. +File '/home/src/node_modules/fs.ts' does not exist. +File '/home/src/node_modules/fs.tsx' does not exist. +File '/home/src/node_modules/fs.d.ts' does not exist. +File '/home/src/node_modules/fs/index.ts' does not exist. +File '/home/src/node_modules/fs/index.tsx' does not exist. +File '/home/src/node_modules/fs/index.d.ts' does not exist. File '/home/src/node_modules/@types/fs/package.json' does not exist. File '/home/src/node_modules/@types/fs.d.ts' does not exist. File '/home/src/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/node_modules/fs/package.json' does not exist. +File '/home/node_modules/fs.ts' does not exist. +File '/home/node_modules/fs.tsx' does not exist. +File '/home/node_modules/fs.d.ts' does not exist. +File '/home/node_modules/fs/index.ts' does not exist. +File '/home/node_modules/fs/index.tsx' does not exist. +File '/home/node_modules/fs/index.d.ts' does not exist. File '/home/node_modules/@types/fs/package.json' does not exist. File '/home/node_modules/@types/fs.d.ts' does not exist. File '/home/node_modules/@types/fs/index.d.ts' does not exist. +File '/node_modules/fs/package.json' does not exist. +File '/node_modules/fs.ts' does not exist. +File '/node_modules/fs.tsx' does not exist. +File '/node_modules/fs.d.ts' does not exist. +File '/node_modules/fs/index.ts' does not exist. +File '/node_modules/fs/index.tsx' does not exist. +File '/node_modules/fs/index.d.ts' does not exist. File '/node_modules/@types/fs/package.json' does not exist. File '/node_modules/@types/fs.d.ts' does not exist. File '/node_modules/@types/fs/index.d.ts' does not exist. -File '/home/src/workspaces/project/a/b/fs.js' does not exist. -File '/home/src/workspaces/project/a/b/fs.jsx' does not exist. -File '/home/src/workspaces/project/a/fs.js' does not exist. -File '/home/src/workspaces/project/a/fs.jsx' does not exist. -File '/home/src/workspaces/project/fs.js' does not exist. -File '/home/src/workspaces/project/fs.jsx' does not exist. -File '/home/src/workspaces/fs.js' does not exist. -File '/home/src/workspaces/fs.jsx' does not exist. -File '/home/src/fs.js' does not exist. -File '/home/src/fs.jsx' does not exist. -File '/home/fs.js' does not exist. -File '/home/fs.jsx' does not exist. -File '/fs.js' does not exist. -File '/fs.jsx' does not exist. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/a/b/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/a/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/node_modules/fs.js' does not exist. +File '/home/src/workspaces/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/node_modules/fs/index.jsx' does not exist. +File '/home/src/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/node_modules/fs.js' does not exist. +File '/home/src/node_modules/fs.jsx' does not exist. +File '/home/src/node_modules/fs/index.js' does not exist. +File '/home/src/node_modules/fs/index.jsx' does not exist. +File '/home/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/node_modules/fs.js' does not exist. +File '/home/node_modules/fs.jsx' does not exist. +File '/home/node_modules/fs/index.js' does not exist. +File '/home/node_modules/fs/index.jsx' does not exist. +File '/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/node_modules/fs.js' does not exist. +File '/node_modules/fs.jsx' does not exist. +File '/node_modules/fs/index.js' does not exist. +File '/node_modules/fs/index.jsx' does not exist. ======== Module name 'fs' was not resolved. ======== MissingPaths:: [] @@ -142,64 +257,120 @@ File: /home/src/workspaces/project/a/b/app.ts import * as fs from 'fs' var x = 1; resolvedModules: -fs: { +fs: esnext: { "failedLookupLocations": [ - "/home/src/workspaces/project/a/b/fs.ts", - "/home/src/workspaces/project/a/b/fs.tsx", - "/home/src/workspaces/project/a/b/fs.d.ts", - "/home/src/workspaces/project/a/fs.ts", - "/home/src/workspaces/project/a/fs.tsx", - "/home/src/workspaces/project/a/fs.d.ts", - "/home/src/workspaces/project/fs.ts", - "/home/src/workspaces/project/fs.tsx", - "/home/src/workspaces/project/fs.d.ts", - "/home/src/workspaces/fs.ts", - "/home/src/workspaces/fs.tsx", - "/home/src/workspaces/fs.d.ts", - "/home/src/fs.ts", - "/home/src/fs.tsx", - "/home/src/fs.d.ts", - "/home/fs.ts", - "/home/fs.tsx", - "/home/fs.d.ts", - "/fs.ts", - "/fs.tsx", - "/fs.d.ts", + "/home/src/workspaces/project/a/b/package.json", + "/home/src/workspaces/project/a/package.json", + "/home/src/workspaces/project/package.json", + "/home/src/workspaces/package.json", + "/home/src/package.json", + "/home/package.json", + "/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs.ts", + "/home/src/workspaces/project/a/b/node_modules/fs.tsx", + "/home/src/workspaces/project/a/b/node_modules/fs.d.ts", + "/home/src/workspaces/project/a/b/node_modules/fs/index.ts", + "/home/src/workspaces/project/a/b/node_modules/fs/index.tsx", + "/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts", "/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json", "/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/project/a/node_modules/fs/package.json", + "/home/src/workspaces/project/a/node_modules/fs.ts", + "/home/src/workspaces/project/a/node_modules/fs.tsx", + "/home/src/workspaces/project/a/node_modules/fs.d.ts", + "/home/src/workspaces/project/a/node_modules/fs/index.ts", + "/home/src/workspaces/project/a/node_modules/fs/index.tsx", + "/home/src/workspaces/project/a/node_modules/fs/index.d.ts", "/home/src/workspaces/project/a/node_modules/@types/fs/package.json", "/home/src/workspaces/project/a/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/project/node_modules/fs/package.json", + "/home/src/workspaces/project/node_modules/fs.ts", + "/home/src/workspaces/project/node_modules/fs.tsx", + "/home/src/workspaces/project/node_modules/fs.d.ts", + "/home/src/workspaces/project/node_modules/fs/index.ts", + "/home/src/workspaces/project/node_modules/fs/index.tsx", + "/home/src/workspaces/project/node_modules/fs/index.d.ts", "/home/src/workspaces/project/node_modules/@types/fs/package.json", "/home/src/workspaces/project/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/node_modules/fs/package.json", + "/home/src/workspaces/node_modules/fs.ts", + "/home/src/workspaces/node_modules/fs.tsx", + "/home/src/workspaces/node_modules/fs.d.ts", + "/home/src/workspaces/node_modules/fs/index.ts", + "/home/src/workspaces/node_modules/fs/index.tsx", + "/home/src/workspaces/node_modules/fs/index.d.ts", "/home/src/workspaces/node_modules/@types/fs/package.json", "/home/src/workspaces/node_modules/@types/fs.d.ts", "/home/src/workspaces/node_modules/@types/fs/index.d.ts", + "/home/src/node_modules/fs/package.json", + "/home/src/node_modules/fs.ts", + "/home/src/node_modules/fs.tsx", + "/home/src/node_modules/fs.d.ts", + "/home/src/node_modules/fs/index.ts", + "/home/src/node_modules/fs/index.tsx", + "/home/src/node_modules/fs/index.d.ts", "/home/src/node_modules/@types/fs/package.json", "/home/src/node_modules/@types/fs.d.ts", "/home/src/node_modules/@types/fs/index.d.ts", + "/home/node_modules/fs/package.json", + "/home/node_modules/fs.ts", + "/home/node_modules/fs.tsx", + "/home/node_modules/fs.d.ts", + "/home/node_modules/fs/index.ts", + "/home/node_modules/fs/index.tsx", + "/home/node_modules/fs/index.d.ts", "/home/node_modules/@types/fs/package.json", "/home/node_modules/@types/fs.d.ts", "/home/node_modules/@types/fs/index.d.ts", + "/node_modules/fs/package.json", + "/node_modules/fs.ts", + "/node_modules/fs.tsx", + "/node_modules/fs.d.ts", + "/node_modules/fs/index.ts", + "/node_modules/fs/index.tsx", + "/node_modules/fs/index.d.ts", "/node_modules/@types/fs/package.json", "/node_modules/@types/fs.d.ts", "/node_modules/@types/fs/index.d.ts", - "/home/src/workspaces/project/a/b/fs.js", - "/home/src/workspaces/project/a/b/fs.jsx", - "/home/src/workspaces/project/a/fs.js", - "/home/src/workspaces/project/a/fs.jsx", - "/home/src/workspaces/project/fs.js", - "/home/src/workspaces/project/fs.jsx", - "/home/src/workspaces/fs.js", - "/home/src/workspaces/fs.jsx", - "/home/src/fs.js", - "/home/src/fs.jsx", - "/home/fs.js", - "/home/fs.jsx", - "/fs.js", - "/fs.jsx" + "/home/src/workspaces/project/a/b/node_modules/fs/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs.js", + "/home/src/workspaces/project/a/b/node_modules/fs.jsx", + "/home/src/workspaces/project/a/b/node_modules/fs/index.js", + "/home/src/workspaces/project/a/b/node_modules/fs/index.jsx", + "/home/src/workspaces/project/a/node_modules/fs/package.json", + "/home/src/workspaces/project/a/node_modules/fs.js", + "/home/src/workspaces/project/a/node_modules/fs.jsx", + "/home/src/workspaces/project/a/node_modules/fs/index.js", + "/home/src/workspaces/project/a/node_modules/fs/index.jsx", + "/home/src/workspaces/project/node_modules/fs/package.json", + "/home/src/workspaces/project/node_modules/fs.js", + "/home/src/workspaces/project/node_modules/fs.jsx", + "/home/src/workspaces/project/node_modules/fs/index.js", + "/home/src/workspaces/project/node_modules/fs/index.jsx", + "/home/src/workspaces/node_modules/fs/package.json", + "/home/src/workspaces/node_modules/fs.js", + "/home/src/workspaces/node_modules/fs.jsx", + "/home/src/workspaces/node_modules/fs/index.js", + "/home/src/workspaces/node_modules/fs/index.jsx", + "/home/src/node_modules/fs/package.json", + "/home/src/node_modules/fs.js", + "/home/src/node_modules/fs.jsx", + "/home/src/node_modules/fs/index.js", + "/home/src/node_modules/fs/index.jsx", + "/home/node_modules/fs/package.json", + "/home/node_modules/fs.js", + "/home/node_modules/fs.jsx", + "/home/node_modules/fs/index.js", + "/home/node_modules/fs/index.jsx", + "/node_modules/fs/package.json", + "/node_modules/fs.js", + "/node_modules/fs.jsx", + "/node_modules/fs/index.js", + "/node_modules/fs/index.jsx" ] } @@ -209,64 +380,123 @@ File: /home/src/workspaces/project/a/b/node.d.ts declare module 'fs' {} ======== Resolving module 'fs' from '/home/src/workspaces/project/a/b/app.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/home/src/workspaces/project/a/b/fs.ts' does not exist. -File '/home/src/workspaces/project/a/b/fs.tsx' does not exist. -File '/home/src/workspaces/project/a/b/fs.d.ts' does not exist. -File '/home/src/workspaces/project/a/fs.ts' does not exist. -File '/home/src/workspaces/project/a/fs.tsx' does not exist. -File '/home/src/workspaces/project/a/fs.d.ts' does not exist. -File '/home/src/workspaces/project/fs.ts' does not exist. -File '/home/src/workspaces/project/fs.tsx' does not exist. -File '/home/src/workspaces/project/fs.d.ts' does not exist. -File '/home/src/workspaces/fs.ts' does not exist. -File '/home/src/workspaces/fs.tsx' does not exist. -File '/home/src/workspaces/fs.d.ts' does not exist. -File '/home/src/fs.ts' does not exist. -File '/home/src/fs.tsx' does not exist. -File '/home/src/fs.d.ts' does not exist. -File '/home/fs.ts' does not exist. -File '/home/fs.tsx' does not exist. -File '/home/fs.d.ts' does not exist. -File '/fs.ts' does not exist. -File '/fs.tsx' does not exist. -File '/fs.d.ts' does not exist. -Searching all ancestor node_modules directories for preferred extensions: Declaration. +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/workspaces/project/a/b/package.json' does not exist. +File '/home/src/workspaces/project/a/package.json' does not exist. +File '/home/src/workspaces/project/package.json' does not exist. +File '/home/src/workspaces/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 'fs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/node_modules/fs/package.json' does not exist. +File '/home/src/node_modules/fs.ts' does not exist. +File '/home/src/node_modules/fs.tsx' does not exist. +File '/home/src/node_modules/fs.d.ts' does not exist. +File '/home/src/node_modules/fs/index.ts' does not exist. +File '/home/src/node_modules/fs/index.tsx' does not exist. +File '/home/src/node_modules/fs/index.d.ts' does not exist. File '/home/src/node_modules/@types/fs/package.json' does not exist. File '/home/src/node_modules/@types/fs.d.ts' does not exist. File '/home/src/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/node_modules/fs/package.json' does not exist. +File '/home/node_modules/fs.ts' does not exist. +File '/home/node_modules/fs.tsx' does not exist. +File '/home/node_modules/fs.d.ts' does not exist. +File '/home/node_modules/fs/index.ts' does not exist. +File '/home/node_modules/fs/index.tsx' does not exist. +File '/home/node_modules/fs/index.d.ts' does not exist. File '/home/node_modules/@types/fs/package.json' does not exist. File '/home/node_modules/@types/fs.d.ts' does not exist. File '/home/node_modules/@types/fs/index.d.ts' does not exist. +File '/node_modules/fs/package.json' does not exist. +File '/node_modules/fs.ts' does not exist. +File '/node_modules/fs.tsx' does not exist. +File '/node_modules/fs.d.ts' does not exist. +File '/node_modules/fs/index.ts' does not exist. +File '/node_modules/fs/index.tsx' does not exist. +File '/node_modules/fs/index.d.ts' does not exist. File '/node_modules/@types/fs/package.json' does not exist. File '/node_modules/@types/fs.d.ts' does not exist. File '/node_modules/@types/fs/index.d.ts' does not exist. -File '/home/src/workspaces/project/a/b/fs.js' does not exist. -File '/home/src/workspaces/project/a/b/fs.jsx' does not exist. -File '/home/src/workspaces/project/a/fs.js' does not exist. -File '/home/src/workspaces/project/a/fs.jsx' does not exist. -File '/home/src/workspaces/project/fs.js' does not exist. -File '/home/src/workspaces/project/fs.jsx' does not exist. -File '/home/src/workspaces/fs.js' does not exist. -File '/home/src/workspaces/fs.jsx' does not exist. -File '/home/src/fs.js' does not exist. -File '/home/src/fs.jsx' does not exist. -File '/home/fs.js' does not exist. -File '/home/fs.jsx' does not exist. -File '/fs.js' does not exist. -File '/fs.jsx' does not exist. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/a/b/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/a/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/node_modules/fs.js' does not exist. +File '/home/src/workspaces/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/node_modules/fs/index.jsx' does not exist. +File '/home/src/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/node_modules/fs.js' does not exist. +File '/home/src/node_modules/fs.jsx' does not exist. +File '/home/src/node_modules/fs/index.js' does not exist. +File '/home/src/node_modules/fs/index.jsx' does not exist. +File '/home/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/node_modules/fs.js' does not exist. +File '/home/node_modules/fs.jsx' does not exist. +File '/home/node_modules/fs/index.js' does not exist. +File '/home/node_modules/fs/index.jsx' does not exist. +File '/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/node_modules/fs.js' does not exist. +File '/node_modules/fs.jsx' does not exist. +File '/node_modules/fs/index.js' does not exist. +File '/node_modules/fs/index.jsx' does not exist. ======== Module name 'fs' was not resolved. ======== MissingPaths:: [] @@ -280,64 +510,120 @@ File: /home/src/workspaces/project/a/b/app.ts import * as fs from 'fs' var y = 1; resolvedModules: -fs: { +fs: esnext: { "failedLookupLocations": [ - "/home/src/workspaces/project/a/b/fs.ts", - "/home/src/workspaces/project/a/b/fs.tsx", - "/home/src/workspaces/project/a/b/fs.d.ts", - "/home/src/workspaces/project/a/fs.ts", - "/home/src/workspaces/project/a/fs.tsx", - "/home/src/workspaces/project/a/fs.d.ts", - "/home/src/workspaces/project/fs.ts", - "/home/src/workspaces/project/fs.tsx", - "/home/src/workspaces/project/fs.d.ts", - "/home/src/workspaces/fs.ts", - "/home/src/workspaces/fs.tsx", - "/home/src/workspaces/fs.d.ts", - "/home/src/fs.ts", - "/home/src/fs.tsx", - "/home/src/fs.d.ts", - "/home/fs.ts", - "/home/fs.tsx", - "/home/fs.d.ts", - "/fs.ts", - "/fs.tsx", - "/fs.d.ts", + "/home/src/workspaces/project/a/b/package.json", + "/home/src/workspaces/project/a/package.json", + "/home/src/workspaces/project/package.json", + "/home/src/workspaces/package.json", + "/home/src/package.json", + "/home/package.json", + "/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs.ts", + "/home/src/workspaces/project/a/b/node_modules/fs.tsx", + "/home/src/workspaces/project/a/b/node_modules/fs.d.ts", + "/home/src/workspaces/project/a/b/node_modules/fs/index.ts", + "/home/src/workspaces/project/a/b/node_modules/fs/index.tsx", + "/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts", "/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json", "/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/project/a/node_modules/fs/package.json", + "/home/src/workspaces/project/a/node_modules/fs.ts", + "/home/src/workspaces/project/a/node_modules/fs.tsx", + "/home/src/workspaces/project/a/node_modules/fs.d.ts", + "/home/src/workspaces/project/a/node_modules/fs/index.ts", + "/home/src/workspaces/project/a/node_modules/fs/index.tsx", + "/home/src/workspaces/project/a/node_modules/fs/index.d.ts", "/home/src/workspaces/project/a/node_modules/@types/fs/package.json", "/home/src/workspaces/project/a/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/project/node_modules/fs/package.json", + "/home/src/workspaces/project/node_modules/fs.ts", + "/home/src/workspaces/project/node_modules/fs.tsx", + "/home/src/workspaces/project/node_modules/fs.d.ts", + "/home/src/workspaces/project/node_modules/fs/index.ts", + "/home/src/workspaces/project/node_modules/fs/index.tsx", + "/home/src/workspaces/project/node_modules/fs/index.d.ts", "/home/src/workspaces/project/node_modules/@types/fs/package.json", "/home/src/workspaces/project/node_modules/@types/fs.d.ts", "/home/src/workspaces/project/node_modules/@types/fs/index.d.ts", + "/home/src/workspaces/node_modules/fs/package.json", + "/home/src/workspaces/node_modules/fs.ts", + "/home/src/workspaces/node_modules/fs.tsx", + "/home/src/workspaces/node_modules/fs.d.ts", + "/home/src/workspaces/node_modules/fs/index.ts", + "/home/src/workspaces/node_modules/fs/index.tsx", + "/home/src/workspaces/node_modules/fs/index.d.ts", "/home/src/workspaces/node_modules/@types/fs/package.json", "/home/src/workspaces/node_modules/@types/fs.d.ts", "/home/src/workspaces/node_modules/@types/fs/index.d.ts", + "/home/src/node_modules/fs/package.json", + "/home/src/node_modules/fs.ts", + "/home/src/node_modules/fs.tsx", + "/home/src/node_modules/fs.d.ts", + "/home/src/node_modules/fs/index.ts", + "/home/src/node_modules/fs/index.tsx", + "/home/src/node_modules/fs/index.d.ts", "/home/src/node_modules/@types/fs/package.json", "/home/src/node_modules/@types/fs.d.ts", "/home/src/node_modules/@types/fs/index.d.ts", + "/home/node_modules/fs/package.json", + "/home/node_modules/fs.ts", + "/home/node_modules/fs.tsx", + "/home/node_modules/fs.d.ts", + "/home/node_modules/fs/index.ts", + "/home/node_modules/fs/index.tsx", + "/home/node_modules/fs/index.d.ts", "/home/node_modules/@types/fs/package.json", "/home/node_modules/@types/fs.d.ts", "/home/node_modules/@types/fs/index.d.ts", + "/node_modules/fs/package.json", + "/node_modules/fs.ts", + "/node_modules/fs.tsx", + "/node_modules/fs.d.ts", + "/node_modules/fs/index.ts", + "/node_modules/fs/index.tsx", + "/node_modules/fs/index.d.ts", "/node_modules/@types/fs/package.json", "/node_modules/@types/fs.d.ts", "/node_modules/@types/fs/index.d.ts", - "/home/src/workspaces/project/a/b/fs.js", - "/home/src/workspaces/project/a/b/fs.jsx", - "/home/src/workspaces/project/a/fs.js", - "/home/src/workspaces/project/a/fs.jsx", - "/home/src/workspaces/project/fs.js", - "/home/src/workspaces/project/fs.jsx", - "/home/src/workspaces/fs.js", - "/home/src/workspaces/fs.jsx", - "/home/src/fs.js", - "/home/src/fs.jsx", - "/home/fs.js", - "/home/fs.jsx", - "/fs.js", - "/fs.jsx" + "/home/src/workspaces/project/a/b/node_modules/fs/package.json", + "/home/src/workspaces/project/a/b/node_modules/fs.js", + "/home/src/workspaces/project/a/b/node_modules/fs.jsx", + "/home/src/workspaces/project/a/b/node_modules/fs/index.js", + "/home/src/workspaces/project/a/b/node_modules/fs/index.jsx", + "/home/src/workspaces/project/a/node_modules/fs/package.json", + "/home/src/workspaces/project/a/node_modules/fs.js", + "/home/src/workspaces/project/a/node_modules/fs.jsx", + "/home/src/workspaces/project/a/node_modules/fs/index.js", + "/home/src/workspaces/project/a/node_modules/fs/index.jsx", + "/home/src/workspaces/project/node_modules/fs/package.json", + "/home/src/workspaces/project/node_modules/fs.js", + "/home/src/workspaces/project/node_modules/fs.jsx", + "/home/src/workspaces/project/node_modules/fs/index.js", + "/home/src/workspaces/project/node_modules/fs/index.jsx", + "/home/src/workspaces/node_modules/fs/package.json", + "/home/src/workspaces/node_modules/fs.js", + "/home/src/workspaces/node_modules/fs.jsx", + "/home/src/workspaces/node_modules/fs/index.js", + "/home/src/workspaces/node_modules/fs/index.jsx", + "/home/src/node_modules/fs/package.json", + "/home/src/node_modules/fs.js", + "/home/src/node_modules/fs.jsx", + "/home/src/node_modules/fs/index.js", + "/home/src/node_modules/fs/index.jsx", + "/home/node_modules/fs/package.json", + "/home/node_modules/fs.js", + "/home/node_modules/fs.jsx", + "/home/node_modules/fs/index.js", + "/home/node_modules/fs/index.jsx", + "/node_modules/fs/package.json", + "/node_modules/fs.js", + "/node_modules/fs.jsx", + "/node_modules/fs/index.js", + "/node_modules/fs/index.jsx" ] } @@ -347,68 +633,127 @@ File: /home/src/workspaces/project/a/b/node.d.ts declare var process: any ======== Resolving module 'fs' from '/home/src/workspaces/project/a/b/app.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/home/src/workspaces/project/a/b/fs.ts' does not exist. -File '/home/src/workspaces/project/a/b/fs.tsx' does not exist. -File '/home/src/workspaces/project/a/b/fs.d.ts' does not exist. -File '/home/src/workspaces/project/a/fs.ts' does not exist. -File '/home/src/workspaces/project/a/fs.tsx' does not exist. -File '/home/src/workspaces/project/a/fs.d.ts' does not exist. -File '/home/src/workspaces/project/fs.ts' does not exist. -File '/home/src/workspaces/project/fs.tsx' does not exist. -File '/home/src/workspaces/project/fs.d.ts' does not exist. -File '/home/src/workspaces/fs.ts' does not exist. -File '/home/src/workspaces/fs.tsx' does not exist. -File '/home/src/workspaces/fs.d.ts' does not exist. -File '/home/src/fs.ts' does not exist. -File '/home/src/fs.tsx' does not exist. -File '/home/src/fs.d.ts' does not exist. -File '/home/fs.ts' does not exist. -File '/home/fs.tsx' does not exist. -File '/home/fs.d.ts' does not exist. -File '/fs.ts' does not exist. -File '/fs.tsx' does not exist. -File '/fs.d.ts' does not exist. -Searching all ancestor node_modules directories for preferred extensions: Declaration. +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/home/src/workspaces/project/a/b/package.json' does not exist. +File '/home/src/workspaces/project/a/package.json' does not exist. +File '/home/src/workspaces/project/package.json' does not exist. +File '/home/src/workspaces/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 'fs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/a/b/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/a/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/project/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/project/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/package.json' does not exist. +File '/home/src/workspaces/node_modules/fs.ts' does not exist. +File '/home/src/workspaces/node_modules/fs.tsx' does not exist. +File '/home/src/workspaces/node_modules/fs.d.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/index.ts' does not exist. +File '/home/src/workspaces/node_modules/fs/index.tsx' does not exist. +File '/home/src/workspaces/node_modules/fs/index.d.ts' does not exist. File '/home/src/workspaces/node_modules/@types/fs/package.json' does not exist. File '/home/src/workspaces/node_modules/@types/fs.d.ts' does not exist. File '/home/src/workspaces/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/src/node_modules/fs/package.json' does not exist. +File '/home/src/node_modules/fs.ts' does not exist. +File '/home/src/node_modules/fs.tsx' does not exist. +File '/home/src/node_modules/fs.d.ts' does not exist. +File '/home/src/node_modules/fs/index.ts' does not exist. +File '/home/src/node_modules/fs/index.tsx' does not exist. +File '/home/src/node_modules/fs/index.d.ts' does not exist. File '/home/src/node_modules/@types/fs/package.json' does not exist. File '/home/src/node_modules/@types/fs.d.ts' does not exist. File '/home/src/node_modules/@types/fs/index.d.ts' does not exist. +File '/home/node_modules/fs/package.json' does not exist. +File '/home/node_modules/fs.ts' does not exist. +File '/home/node_modules/fs.tsx' does not exist. +File '/home/node_modules/fs.d.ts' does not exist. +File '/home/node_modules/fs/index.ts' does not exist. +File '/home/node_modules/fs/index.tsx' does not exist. +File '/home/node_modules/fs/index.d.ts' does not exist. File '/home/node_modules/@types/fs/package.json' does not exist. File '/home/node_modules/@types/fs.d.ts' does not exist. File '/home/node_modules/@types/fs/index.d.ts' does not exist. +File '/node_modules/fs/package.json' does not exist. +File '/node_modules/fs.ts' does not exist. +File '/node_modules/fs.tsx' does not exist. +File '/node_modules/fs.d.ts' does not exist. +File '/node_modules/fs/index.ts' does not exist. +File '/node_modules/fs/index.tsx' does not exist. +File '/node_modules/fs/index.d.ts' does not exist. File '/node_modules/@types/fs/package.json' does not exist. File '/node_modules/@types/fs.d.ts' does not exist. File '/node_modules/@types/fs/index.d.ts' does not exist. -File '/home/src/workspaces/project/a/b/fs.js' does not exist. -File '/home/src/workspaces/project/a/b/fs.jsx' does not exist. -File '/home/src/workspaces/project/a/fs.js' does not exist. -File '/home/src/workspaces/project/a/fs.jsx' does not exist. -File '/home/src/workspaces/project/fs.js' does not exist. -File '/home/src/workspaces/project/fs.jsx' does not exist. -File '/home/src/workspaces/fs.js' does not exist. -File '/home/src/workspaces/fs.jsx' does not exist. -File '/home/src/fs.js' does not exist. -File '/home/src/fs.jsx' does not exist. -File '/home/fs.js' does not exist. -File '/home/fs.jsx' does not exist. -File '/fs.js' does not exist. -File '/fs.jsx' does not exist. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/home/src/workspaces/project/a/b/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/a/b/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/a/b/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/a/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/a/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/project/node_modules/fs.js' does not exist. +File '/home/src/workspaces/project/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/project/node_modules/fs/index.jsx' does not exist. +File '/home/src/workspaces/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/workspaces/node_modules/fs.js' does not exist. +File '/home/src/workspaces/node_modules/fs.jsx' does not exist. +File '/home/src/workspaces/node_modules/fs/index.js' does not exist. +File '/home/src/workspaces/node_modules/fs/index.jsx' does not exist. +File '/home/src/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/src/node_modules/fs.js' does not exist. +File '/home/src/node_modules/fs.jsx' does not exist. +File '/home/src/node_modules/fs/index.js' does not exist. +File '/home/src/node_modules/fs/index.jsx' does not exist. +File '/home/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/home/node_modules/fs.js' does not exist. +File '/home/node_modules/fs.jsx' does not exist. +File '/home/node_modules/fs/index.js' does not exist. +File '/home/node_modules/fs/index.jsx' does not exist. +File '/node_modules/fs/package.json' does not exist according to earlier cached lookups. +File '/node_modules/fs.js' does not exist. +File '/node_modules/fs.jsx' does not exist. +File '/node_modules/fs/index.js' does not exist. +File '/node_modules/fs/index.jsx' does not exist. ======== Module name 'fs' was not resolved. ======== MissingPaths:: [] -home/src/workspaces/project/a/b/app.ts(2,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +home/src/workspaces/project/a/b/app.ts(2,21): error TS2307: Cannot find module 'fs' or its corresponding type declarations. diff --git a/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js b/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js index 81b2c913b2fe6..e17d519356fa8 100644 --- a/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js +++ b/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js @@ -4,18 +4,98 @@ File: /home/src/workspaces/project/a.ts import * as a from "a";a; resolvedModules: -a: { - "resolvedModule": { - "resolvedFileName": "/home/src/workspaces/project/a.ts", - "extension": ".ts", - "isExternalLibraryImport": false, - "resolvedUsingTsExtension": false - } +a: esnext: { + "failedLookupLocations": [ + "/home/src/workspaces/project/package.json", + "/home/src/workspaces/package.json", + "/home/src/package.json", + "/home/package.json", + "/package.json", + "/home/src/workspaces/project/node_modules/a/package.json", + "/home/src/workspaces/project/node_modules/a.ts", + "/home/src/workspaces/project/node_modules/a.tsx", + "/home/src/workspaces/project/node_modules/a.d.ts", + "/home/src/workspaces/project/node_modules/a/index.ts", + "/home/src/workspaces/project/node_modules/a/index.tsx", + "/home/src/workspaces/project/node_modules/a/index.d.ts", + "/home/src/workspaces/project/node_modules/@types/a/package.json", + "/home/src/workspaces/project/node_modules/@types/a.d.ts", + "/home/src/workspaces/project/node_modules/@types/a/index.d.ts", + "/home/src/workspaces/node_modules/a/package.json", + "/home/src/workspaces/node_modules/a.ts", + "/home/src/workspaces/node_modules/a.tsx", + "/home/src/workspaces/node_modules/a.d.ts", + "/home/src/workspaces/node_modules/a/index.ts", + "/home/src/workspaces/node_modules/a/index.tsx", + "/home/src/workspaces/node_modules/a/index.d.ts", + "/home/src/workspaces/node_modules/@types/a/package.json", + "/home/src/workspaces/node_modules/@types/a.d.ts", + "/home/src/workspaces/node_modules/@types/a/index.d.ts", + "/home/src/node_modules/a/package.json", + "/home/src/node_modules/a.ts", + "/home/src/node_modules/a.tsx", + "/home/src/node_modules/a.d.ts", + "/home/src/node_modules/a/index.ts", + "/home/src/node_modules/a/index.tsx", + "/home/src/node_modules/a/index.d.ts", + "/home/src/node_modules/@types/a/package.json", + "/home/src/node_modules/@types/a.d.ts", + "/home/src/node_modules/@types/a/index.d.ts", + "/home/node_modules/a/package.json", + "/home/node_modules/a.ts", + "/home/node_modules/a.tsx", + "/home/node_modules/a.d.ts", + "/home/node_modules/a/index.ts", + "/home/node_modules/a/index.tsx", + "/home/node_modules/a/index.d.ts", + "/home/node_modules/@types/a/package.json", + "/home/node_modules/@types/a.d.ts", + "/home/node_modules/@types/a/index.d.ts", + "/node_modules/a/package.json", + "/node_modules/a.ts", + "/node_modules/a.tsx", + "/node_modules/a.d.ts", + "/node_modules/a/index.ts", + "/node_modules/a/index.tsx", + "/node_modules/a/index.d.ts", + "/node_modules/@types/a/package.json", + "/node_modules/@types/a.d.ts", + "/node_modules/@types/a/index.d.ts", + "/home/src/workspaces/project/node_modules/a/package.json", + "/home/src/workspaces/project/node_modules/a.js", + "/home/src/workspaces/project/node_modules/a.jsx", + "/home/src/workspaces/project/node_modules/a/index.js", + "/home/src/workspaces/project/node_modules/a/index.jsx", + "/home/src/workspaces/node_modules/a/package.json", + "/home/src/workspaces/node_modules/a.js", + "/home/src/workspaces/node_modules/a.jsx", + "/home/src/workspaces/node_modules/a/index.js", + "/home/src/workspaces/node_modules/a/index.jsx", + "/home/src/node_modules/a/package.json", + "/home/src/node_modules/a.js", + "/home/src/node_modules/a.jsx", + "/home/src/node_modules/a/index.js", + "/home/src/node_modules/a/index.jsx", + "/home/node_modules/a/package.json", + "/home/node_modules/a.js", + "/home/node_modules/a.jsx", + "/home/node_modules/a/index.js", + "/home/node_modules/a/index.jsx", + "/node_modules/a/package.json", + "/node_modules/a.js", + "/node_modules/a.jsx", + "/node_modules/a/index.js", + "/node_modules/a/index.jsx", + "/home/src/workspaces/project/types/a.d.ts", + "/home/src/workspaces/project/types/a/package.json", + "/home/src/workspaces/project/types/a/index.d.ts" + ] } MissingPaths:: [] +home/src/workspaces/project/a.ts(3,20): error TS2307: Cannot find module 'a' or its corresponding type declarations. @@ -26,18 +106,98 @@ File: /home/src/workspaces/project/a.ts import * as a from "a";a; resolvedModules: -a: { - "resolvedModule": { - "resolvedFileName": "/home/src/workspaces/project/a.ts", - "extension": ".ts", - "isExternalLibraryImport": false, - "resolvedUsingTsExtension": false - } +a: esnext: { + "failedLookupLocations": [ + "/home/src/workspaces/project/package.json", + "/home/src/workspaces/package.json", + "/home/src/package.json", + "/home/package.json", + "/package.json", + "/home/src/workspaces/project/node_modules/a/package.json", + "/home/src/workspaces/project/node_modules/a.ts", + "/home/src/workspaces/project/node_modules/a.tsx", + "/home/src/workspaces/project/node_modules/a.d.ts", + "/home/src/workspaces/project/node_modules/a/index.ts", + "/home/src/workspaces/project/node_modules/a/index.tsx", + "/home/src/workspaces/project/node_modules/a/index.d.ts", + "/home/src/workspaces/project/node_modules/@types/a/package.json", + "/home/src/workspaces/project/node_modules/@types/a.d.ts", + "/home/src/workspaces/project/node_modules/@types/a/index.d.ts", + "/home/src/workspaces/node_modules/a/package.json", + "/home/src/workspaces/node_modules/a.ts", + "/home/src/workspaces/node_modules/a.tsx", + "/home/src/workspaces/node_modules/a.d.ts", + "/home/src/workspaces/node_modules/a/index.ts", + "/home/src/workspaces/node_modules/a/index.tsx", + "/home/src/workspaces/node_modules/a/index.d.ts", + "/home/src/workspaces/node_modules/@types/a/package.json", + "/home/src/workspaces/node_modules/@types/a.d.ts", + "/home/src/workspaces/node_modules/@types/a/index.d.ts", + "/home/src/node_modules/a/package.json", + "/home/src/node_modules/a.ts", + "/home/src/node_modules/a.tsx", + "/home/src/node_modules/a.d.ts", + "/home/src/node_modules/a/index.ts", + "/home/src/node_modules/a/index.tsx", + "/home/src/node_modules/a/index.d.ts", + "/home/src/node_modules/@types/a/package.json", + "/home/src/node_modules/@types/a.d.ts", + "/home/src/node_modules/@types/a/index.d.ts", + "/home/node_modules/a/package.json", + "/home/node_modules/a.ts", + "/home/node_modules/a.tsx", + "/home/node_modules/a.d.ts", + "/home/node_modules/a/index.ts", + "/home/node_modules/a/index.tsx", + "/home/node_modules/a/index.d.ts", + "/home/node_modules/@types/a/package.json", + "/home/node_modules/@types/a.d.ts", + "/home/node_modules/@types/a/index.d.ts", + "/node_modules/a/package.json", + "/node_modules/a.ts", + "/node_modules/a.tsx", + "/node_modules/a.d.ts", + "/node_modules/a/index.ts", + "/node_modules/a/index.tsx", + "/node_modules/a/index.d.ts", + "/node_modules/@types/a/package.json", + "/node_modules/@types/a.d.ts", + "/node_modules/@types/a/index.d.ts", + "/home/src/workspaces/project/node_modules/a/package.json", + "/home/src/workspaces/project/node_modules/a.js", + "/home/src/workspaces/project/node_modules/a.jsx", + "/home/src/workspaces/project/node_modules/a/index.js", + "/home/src/workspaces/project/node_modules/a/index.jsx", + "/home/src/workspaces/node_modules/a/package.json", + "/home/src/workspaces/node_modules/a.js", + "/home/src/workspaces/node_modules/a.jsx", + "/home/src/workspaces/node_modules/a/index.js", + "/home/src/workspaces/node_modules/a/index.jsx", + "/home/src/node_modules/a/package.json", + "/home/src/node_modules/a.js", + "/home/src/node_modules/a.jsx", + "/home/src/node_modules/a/index.js", + "/home/src/node_modules/a/index.jsx", + "/home/node_modules/a/package.json", + "/home/node_modules/a.js", + "/home/node_modules/a.jsx", + "/home/node_modules/a/index.js", + "/home/node_modules/a/index.jsx", + "/node_modules/a/package.json", + "/node_modules/a.js", + "/node_modules/a.jsx", + "/node_modules/a/index.js", + "/node_modules/a/index.jsx", + "/home/src/workspaces/project/types/a.d.ts", + "/home/src/workspaces/project/types/a/package.json", + "/home/src/workspaces/project/types/a/index.d.ts" + ] } MissingPaths:: [] +home/src/workspaces/project/a.ts(3,20): error TS2307: Cannot find module 'a' or its corresponding type declarations. diff --git a/tests/baselines/reference/shorthand-property-es5-es6.errors.txt b/tests/baselines/reference/shorthand-property-es5-es6.errors.txt index d34857c693186..5ce21bfdd8af2 100644 --- a/tests/baselines/reference/shorthand-property-es5-es6.errors.txt +++ b/tests/baselines/reference/shorthand-property-es5-es6.errors.txt @@ -1,10 +1,10 @@ -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/tests/baselines/reference/shorthand-property-es6-amd.errors.txt b/tests/baselines/reference/shorthand-property-es6-amd.errors.txt index d34857c693186..b35916f415fb3 100644 --- a/tests/baselines/reference/shorthand-property-es6-amd.errors.txt +++ b/tests/baselines/reference/shorthand-property-es6-amd.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (1 errors) ==== import {foo} from './foo'; ~~~~~~~ diff --git a/tests/baselines/reference/shorthand-property-es6-es6.errors.txt b/tests/baselines/reference/shorthand-property-es6-es6.errors.txt index d34857c693186..5ce21bfdd8af2 100644 --- a/tests/baselines/reference/shorthand-property-es6-es6.errors.txt +++ b/tests/baselines/reference/shorthand-property-es6-es6.errors.txt @@ -1,10 +1,10 @@ -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/tests/baselines/reference/sourceMapValidationExportAssignment.errors.txt b/tests/baselines/reference/sourceMapValidationExportAssignment.errors.txt new file mode 100644 index 0000000000000..b0d75117e07c5 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationExportAssignment.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== sourceMapValidationExportAssignment.ts (0 errors) ==== + class a { + public c; + } + export = a; \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationExportAssignment.types b/tests/baselines/reference/sourceMapValidationExportAssignment.types index 7b63b2dff88be..e8e3e719bdc56 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignment.types +++ b/tests/baselines/reference/sourceMapValidationExportAssignment.types @@ -7,6 +7,7 @@ class a { public c; >c : any +> : ^^^ } export = a; >a : a diff --git a/tests/baselines/reference/staticInstanceResolution5.errors.txt b/tests/baselines/reference/staticInstanceResolution5.errors.txt index 296f8ade299fe..a68964c08e97b 100644 --- a/tests/baselines/reference/staticInstanceResolution5.errors.txt +++ b/tests/baselines/reference/staticInstanceResolution5.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== staticInstanceResolution5_1.ts (3 errors) ==== import WinJS = require('staticInstanceResolution5_0'); diff --git a/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt b/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt index 9c6385f8461b0..e1b1be31e6546 100644 --- a/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt +++ b/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt @@ -1,9 +1,9 @@ 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) ==== @@ -12,14 +12,14 @@ strictModeWordInImportDeclaration.ts(4,20): error TS2792: Cannot find module './ ~~~~~~~ !!! 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? \ No newline at end of file +!!! error TS2307: Cannot find module './1' or its corresponding type declarations. \ No newline at end of file diff --git a/tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.errors.txt b/tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.errors.txt index 1cb7bc88fe9c6..7f53b98d95bff 100644 --- a/tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.errors.txt +++ b/tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.errors.txt @@ -1,9 +1,11 @@ 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=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! 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=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== node_modules/package/index.d.ts (0 errors) ==== declare function packageExport(x: number): string; export = packageExport; diff --git a/tests/baselines/reference/systemDefaultExportCommentValidity.errors.txt b/tests/baselines/reference/systemDefaultExportCommentValidity.errors.txt new file mode 100644 index 0000000000000..fdb0c2a28e904 --- /dev/null +++ b/tests/baselines/reference/systemDefaultExportCommentValidity.errors.txt @@ -0,0 +1,9 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemDefaultExportCommentValidity.ts (0 errors) ==== + const Home = {} + + export default Home + // There is intentionally no semicolon on the prior line, this comment should not break emit \ No newline at end of file diff --git a/tests/baselines/reference/systemDefaultImportCallable.errors.txt b/tests/baselines/reference/systemDefaultImportCallable.errors.txt new file mode 100644 index 0000000000000..d20d06e87a1d1 --- /dev/null +++ b/tests/baselines/reference/systemDefaultImportCallable.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== core-js.d.ts (0 errors) ==== + declare namespace core { + var String: { + repeat(text: string, count: number): string; + }; + } + declare module "core-js/fn/string/repeat" { + var repeat: typeof core.String.repeat; + export default repeat; + } +==== greeter.ts (0 errors) ==== + import repeat from "core-js/fn/string/repeat"; + + const _: string = repeat(new Date().toUTCString() + " ", 2); \ No newline at end of file diff --git a/tests/baselines/reference/systemExportAssignment.errors.txt b/tests/baselines/reference/systemExportAssignment.errors.txt new file mode 100644 index 0000000000000..e395bb6ce9566 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.d.ts (0 errors) ==== + declare var a: number; + export = a; // OK, in ambient context + +==== b.ts (0 errors) ==== + import * as a from "a"; + \ No newline at end of file diff --git a/tests/baselines/reference/systemExportAssignment2.errors.txt b/tests/baselines/reference/systemExportAssignment2.errors.txt index bc47a9626aeaa..b9a7639bdf430 100644 --- a/tests/baselines/reference/systemExportAssignment2.errors.txt +++ b/tests/baselines/reference/systemExportAssignment2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. a.ts(2,1): error TS1218: Export assignment is not supported when '--module' flag is 'system'. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (1 errors) ==== var a = 10; export = a; // Error: export = not allowed in ES6 diff --git a/tests/baselines/reference/systemExportAssignment3.errors.txt b/tests/baselines/reference/systemExportAssignment3.errors.txt new file mode 100644 index 0000000000000..1cba25055d5a6 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment3.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== modules.d.ts (0 errors) ==== + declare module "a" { + var a: number; + export = a; // OK, in ambient context + } + +==== b.ts (0 errors) ==== + import * as a from "a"; + \ No newline at end of file diff --git a/tests/baselines/reference/systemJsForInNoException.errors.txt b/tests/baselines/reference/systemJsForInNoException.errors.txt new file mode 100644 index 0000000000000..de456a5e717c6 --- /dev/null +++ b/tests/baselines/reference/systemJsForInNoException.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemJsForInNoException.ts (0 errors) ==== + export const obj = { a: 1 }; + for (var key in obj) + console.log(obj[key]); \ No newline at end of file diff --git a/tests/baselines/reference/systemJsForInNoException.types b/tests/baselines/reference/systemJsForInNoException.types index ad8e11ca9c644..002f00aaffeaf 100644 --- a/tests/baselines/reference/systemJsForInNoException.types +++ b/tests/baselines/reference/systemJsForInNoException.types @@ -26,7 +26,8 @@ for (var key in obj) > : ^^^^^^^ >log : (...data: any[]) => void > : ^^^^ ^^ ^^^^^ ->obj[key] : error +>obj[key] : any +> : ^^^ >obj : { a: number; } > : ^^^^^^^^^^^^^^ >key : string diff --git a/tests/baselines/reference/systemModule1.errors.txt b/tests/baselines/reference/systemModule1.errors.txt new file mode 100644 index 0000000000000..e71f88a863151 --- /dev/null +++ b/tests/baselines/reference/systemModule1.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModule1.ts (0 errors) ==== + export var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/systemModule10.errors.txt b/tests/baselines/reference/systemModule10.errors.txt index 54c0ec5d7492a..7d61e7e751ed4 100644 --- a/tests/baselines/reference/systemModule10.errors.txt +++ b/tests/baselines/reference/systemModule10.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. systemModule10.ts(1,20): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? systemModule10.ts(2,21): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== systemModule10.ts (2 errors) ==== import n, {x} from 'file1' ~~~~~~~ diff --git a/tests/baselines/reference/systemModule10_ES5.errors.txt b/tests/baselines/reference/systemModule10_ES5.errors.txt index e5d2e568ab9af..74d1e205ec46c 100644 --- a/tests/baselines/reference/systemModule10_ES5.errors.txt +++ b/tests/baselines/reference/systemModule10_ES5.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. systemModule10_ES5.ts(1,20): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? systemModule10_ES5.ts(2,21): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== systemModule10_ES5.ts (2 errors) ==== import n, {x} from 'file1' ~~~~~~~ diff --git a/tests/baselines/reference/systemModule11.errors.txt b/tests/baselines/reference/systemModule11.errors.txt index 9b7de8157beb4..5266c7cac0c3b 100644 --- a/tests/baselines/reference/systemModule11.errors.txt +++ b/tests/baselines/reference/systemModule11.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file1.ts(3,15): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? file2.ts(6,15): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? file3.ts(1,25): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? @@ -6,6 +7,7 @@ file4.ts(8,27): error TS2792: Cannot find module 'a'. Did you mean to set the 'm file5.ts(2,15): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file1.ts (1 errors) ==== export var x; export function foo() {} diff --git a/tests/baselines/reference/systemModule12.errors.txt b/tests/baselines/reference/systemModule12.errors.txt index f841e1dc9b0bb..86a8b181d1660 100644 --- a/tests/baselines/reference/systemModule12.errors.txt +++ b/tests/baselines/reference/systemModule12.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. systemModule12.ts(2,15): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== systemModule12.ts (1 errors) ==== /// import n from 'file1' diff --git a/tests/baselines/reference/systemModule13.errors.txt b/tests/baselines/reference/systemModule13.errors.txt new file mode 100644 index 0000000000000..6f51819127913 --- /dev/null +++ b/tests/baselines/reference/systemModule13.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModule13.ts (0 errors) ==== + export let [x,y,z] = [1, 2, 3]; + export const {a: z0, b: {c: z1}} = {a: true, b: {c: "123"}}; + for ([x] of [[1]]) {} \ No newline at end of file diff --git a/tests/baselines/reference/systemModule14.errors.txt b/tests/baselines/reference/systemModule14.errors.txt index 9e68e02c4158e..87a6c046415e8 100644 --- a/tests/baselines/reference/systemModule14.errors.txt +++ b/tests/baselines/reference/systemModule14.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. systemModule14.ts(5,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? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== systemModule14.ts (1 errors) ==== function foo() { return a; diff --git a/tests/baselines/reference/systemModule15.errors.txt b/tests/baselines/reference/systemModule15.errors.txt new file mode 100644 index 0000000000000..a22b09ee6fb07 --- /dev/null +++ b/tests/baselines/reference/systemModule15.errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + import * as moduleB from "./file2" + + declare function use(v: any): void; + + use(moduleB.value); + use(moduleB.moduleC); + use(moduleB.moduleCStar); + +==== file2.ts (0 errors) ==== + import * as moduleCStar from "./file3" + import {value2} from "./file4" + import moduleC from "./file3" + import {value} from "./file3" + + export { + moduleCStar, + moduleC, + value + } + +==== file3.ts (0 errors) ==== + export var value = "youpi"; + export default value; + +==== file4.ts (0 errors) ==== + export var value2 = "v"; \ No newline at end of file diff --git a/tests/baselines/reference/systemModule15.types b/tests/baselines/reference/systemModule15.types index a648d1aacc58d..e26a11f1e8bef 100644 --- a/tests/baselines/reference/systemModule15.types +++ b/tests/baselines/reference/systemModule15.types @@ -9,6 +9,7 @@ declare function use(v: any): void; >use : (v: any) => void > : ^ ^^ ^^^^^ >v : any +> : ^^^ use(moduleB.value); >use(moduleB.value) : void diff --git a/tests/baselines/reference/systemModule16.errors.txt b/tests/baselines/reference/systemModule16.errors.txt index cda21993deb8f..99c99fd90e087 100644 --- a/tests/baselines/reference/systemModule16.errors.txt +++ b/tests/baselines/reference/systemModule16.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. systemModule16.ts(1,20): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? systemModule16.ts(2,20): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? systemModule16.ts(3,15): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? @@ -10,6 +11,7 @@ systemModule16.ts(10,1): error TS2695: Left side of comma operator is unused and systemModule16.ts(10,1): error TS2695: Left side of comma operator is unused and has no side effects. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== systemModule16.ts (10 errors) ==== import * as x from "foo"; ~~~~~ diff --git a/tests/baselines/reference/systemModule17.errors.txt b/tests/baselines/reference/systemModule17.errors.txt new file mode 100644 index 0000000000000..28f5dc8fbadb9 --- /dev/null +++ b/tests/baselines/reference/systemModule17.errors.txt @@ -0,0 +1,41 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== f1.ts (0 errors) ==== + export class A {} + export interface I {} + +==== f2.ts (0 errors) ==== + var x = 1; + interface I { } + + namespace N { + export var x = 1; + export interface I { } + } + + import IX = N.x; + import II = N.I; + import { A, A as EA, I as EI } from "f1"; + + export {x}; + export {x as x1}; + + export {I}; + export {I as I1}; + + export {A}; + export {A as A1}; + + export {EA}; + export {EA as EA1}; + + export {EI }; + export {EI as EI1}; + + export {IX}; + export {IX as IX1}; + + export {II}; + export {II as II1}; \ No newline at end of file diff --git a/tests/baselines/reference/systemModule18.errors.txt b/tests/baselines/reference/systemModule18.errors.txt new file mode 100644 index 0000000000000..ec1246650c923 --- /dev/null +++ b/tests/baselines/reference/systemModule18.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== index.ts (0 errors) ==== + export import React = require("./react.js"); + +==== react.ts (0 errors) ==== + export function createElement() {} + export function lazy() {} + export function useState() {} + \ No newline at end of file diff --git a/tests/baselines/reference/systemModule2.errors.txt b/tests/baselines/reference/systemModule2.errors.txt index c1ef2a8bab696..a860f4ab1278c 100644 --- a/tests/baselines/reference/systemModule2.errors.txt +++ b/tests/baselines/reference/systemModule2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. systemModule2.ts(2,1): error TS1218: Export assignment is not supported when '--module' flag is 'system'. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== systemModule2.ts (1 errors) ==== var x = 1; export = x; diff --git a/tests/baselines/reference/systemModule3.errors.txt b/tests/baselines/reference/systemModule3.errors.txt new file mode 100644 index 0000000000000..ecb71076cde52 --- /dev/null +++ b/tests/baselines/reference/systemModule3.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export default function() {} + +==== file2.ts (0 errors) ==== + export default function f() {} + +==== file3.ts (0 errors) ==== + export default class C {} + +==== file4.ts (0 errors) ==== + export default class {} \ No newline at end of file diff --git a/tests/baselines/reference/systemModule4.errors.txt b/tests/baselines/reference/systemModule4.errors.txt new file mode 100644 index 0000000000000..b2b6905abca14 --- /dev/null +++ b/tests/baselines/reference/systemModule4.errors.txt @@ -0,0 +1,7 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModule4.ts (0 errors) ==== + export var x = 1; + export var y; \ No newline at end of file diff --git a/tests/baselines/reference/systemModule4.types b/tests/baselines/reference/systemModule4.types index 47145bb374727..e029d2ca8449a 100644 --- a/tests/baselines/reference/systemModule4.types +++ b/tests/baselines/reference/systemModule4.types @@ -9,4 +9,5 @@ export var x = 1; export var y; >y : any +> : ^^^ diff --git a/tests/baselines/reference/systemModule5.errors.txt b/tests/baselines/reference/systemModule5.errors.txt new file mode 100644 index 0000000000000..773df3c2216cf --- /dev/null +++ b/tests/baselines/reference/systemModule5.errors.txt @@ -0,0 +1,7 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModule5.ts (0 errors) ==== + export function foo() {} + \ No newline at end of file diff --git a/tests/baselines/reference/systemModule6.errors.txt b/tests/baselines/reference/systemModule6.errors.txt new file mode 100644 index 0000000000000..ebdac668ca854 --- /dev/null +++ b/tests/baselines/reference/systemModule6.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModule6.ts (0 errors) ==== + export class C {} + function foo() { + new C(); + } + \ No newline at end of file diff --git a/tests/baselines/reference/systemModule7.errors.txt b/tests/baselines/reference/systemModule7.errors.txt new file mode 100644 index 0000000000000..c77618db5038e --- /dev/null +++ b/tests/baselines/reference/systemModule7.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModule7.ts (0 errors) ==== + // filename: instantiatedModule.ts + export namespace M { + var x = 1; + } + + // filename: nonInstantiatedModule.ts + export namespace M { + interface I {} + } \ No newline at end of file diff --git a/tests/baselines/reference/systemModule8.errors.txt b/tests/baselines/reference/systemModule8.errors.txt new file mode 100644 index 0000000000000..7c3d9634a2917 --- /dev/null +++ b/tests/baselines/reference/systemModule8.errors.txt @@ -0,0 +1,34 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModule8.ts (0 errors) ==== + export var x; + x = 1; + x++; + x--; + ++x; + --x; + x += 1; + x -= 1; + x *= 1; + x /= 1; + x |= 1; + x &= 1; + x + 1; + x - 1; + x & 1; + x | 1; + for (x = 5;;x++) {} + for (x = 8;;x--) {} + for (x = 15;;++x) {} + for (x = 18;;--x) {} + + for (let x = 50;;) {} + function foo() { + x = 100; + } + + export let [y] = [1]; + export const {a: z0, b: {c: z1}} = {a: true, b: {c: "123"}}; + for ([x] of [[1]]) {} \ No newline at end of file diff --git a/tests/baselines/reference/systemModule8.types b/tests/baselines/reference/systemModule8.types index f6582cdf6c999..666f87c14d198 100644 --- a/tests/baselines/reference/systemModule8.types +++ b/tests/baselines/reference/systemModule8.types @@ -3,11 +3,13 @@ === systemModule8.ts === export var x; >x : any +> : ^^^ x = 1; >x = 1 : 1 > : ^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -15,25 +17,31 @@ x++; >x++ : number > : ^^^^^^ >x : any +> : ^^^ x--; >x-- : number > : ^^^^^^ >x : any +> : ^^^ ++x; >++x : number > : ^^^^^^ >x : any +> : ^^^ --x; >--x : number > : ^^^^^^ >x : any +> : ^^^ x += 1; >x += 1 : any +> : ^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -41,6 +49,7 @@ x -= 1; >x -= 1 : number > : ^^^^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -48,6 +57,7 @@ x *= 1; >x *= 1 : number > : ^^^^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -55,6 +65,7 @@ x /= 1; >x /= 1 : number > : ^^^^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -62,6 +73,7 @@ x |= 1; >x |= 1 : number > : ^^^^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -69,12 +81,15 @@ x &= 1; >x &= 1 : number > : ^^^^^^ >x : any +> : ^^^ >1 : 1 > : ^ x + 1; >x + 1 : any +> : ^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -82,6 +97,7 @@ x - 1; >x - 1 : number > : ^^^^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -89,6 +105,7 @@ x & 1; >x & 1 : number > : ^^^^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -96,6 +113,7 @@ x | 1; >x | 1 : number > : ^^^^^^ >x : any +> : ^^^ >1 : 1 > : ^ @@ -103,41 +121,49 @@ for (x = 5;;x++) {} >x = 5 : 5 > : ^ >x : any +> : ^^^ >5 : 5 > : ^ >x++ : number > : ^^^^^^ >x : any +> : ^^^ for (x = 8;;x--) {} >x = 8 : 8 > : ^ >x : any +> : ^^^ >8 : 8 > : ^ >x-- : number > : ^^^^^^ >x : any +> : ^^^ for (x = 15;;++x) {} >x = 15 : 15 > : ^^ >x : any +> : ^^^ >15 : 15 > : ^^ >++x : number > : ^^^^^^ >x : any +> : ^^^ for (x = 18;;--x) {} >x = 18 : 18 > : ^^ >x : any +> : ^^^ >18 : 18 > : ^^ >--x : number > : ^^^^^^ >x : any +> : ^^^ for (let x = 50;;) {} >x : number @@ -153,6 +179,7 @@ function foo() { >x = 100 : 100 > : ^^^ >x : any +> : ^^^ >100 : 100 > : ^^^ } @@ -195,6 +222,7 @@ for ([x] of [[1]]) {} >[x] : [any] > : ^^^^^ >x : any +> : ^^^ >[[1]] : number[][] > : ^^^^^^^^^^ >[1] : number[] diff --git a/tests/baselines/reference/systemModule9.errors.txt b/tests/baselines/reference/systemModule9.errors.txt index ed3c9e0d6c8fe..65c481584bf15 100644 --- a/tests/baselines/reference/systemModule9.errors.txt +++ b/tests/baselines/reference/systemModule9.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. systemModule9.ts(1,21): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? systemModule9.ts(2,25): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? systemModule9.ts(3,15): error TS2792: Cannot find module 'file3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? @@ -7,6 +8,7 @@ systemModule9.ts(6,22): error TS2792: Cannot find module 'file6'. Did you mean t systemModule9.ts(16,15): error TS2792: Cannot find module 'file7'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== systemModule9.ts (7 errors) ==== import * as ns from 'file1'; ~~~~~~~ diff --git a/tests/baselines/reference/systemModuleAmbientDeclarations.errors.txt b/tests/baselines/reference/systemModuleAmbientDeclarations.errors.txt new file mode 100644 index 0000000000000..60c3e39b47409 --- /dev/null +++ b/tests/baselines/reference/systemModuleAmbientDeclarations.errors.txt @@ -0,0 +1,30 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + declare class Promise { } + declare function Foo(): void; + declare class C {} + declare enum E {X = 1}; + + export var promise = Promise; + export var foo = Foo; + export var c = C; + export var e = E; + +==== file2.ts (0 errors) ==== + export declare function foo(); + +==== file3.ts (0 errors) ==== + export declare class C {} + +==== file4.ts (0 errors) ==== + export declare var v: number; + +==== file5.ts (0 errors) ==== + export declare enum E {X = 1} + +==== file6.ts (0 errors) ==== + export declare namespace M { var v: number; } + \ No newline at end of file diff --git a/tests/baselines/reference/systemModuleConstEnums.errors.txt b/tests/baselines/reference/systemModuleConstEnums.errors.txt new file mode 100644 index 0000000000000..44711f0c3ffdc --- /dev/null +++ b/tests/baselines/reference/systemModuleConstEnums.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModuleConstEnums.ts (0 errors) ==== + declare function use(a: any); + const enum TopLevelConstEnum { X } + + export function foo() { + use(TopLevelConstEnum.X); + use(M.NonTopLevelConstEnum.X); + } + + namespace M { + export const enum NonTopLevelConstEnum { X } + } \ No newline at end of file diff --git a/tests/baselines/reference/systemModuleConstEnums.types b/tests/baselines/reference/systemModuleConstEnums.types index c4bfff3998660..8aac1421410be 100644 --- a/tests/baselines/reference/systemModuleConstEnums.types +++ b/tests/baselines/reference/systemModuleConstEnums.types @@ -5,6 +5,7 @@ declare function use(a: any); >use : (a: any) => any > : ^ ^^ ^^^^^^^^ >a : any +> : ^^^ const enum TopLevelConstEnum { X } >TopLevelConstEnum : TopLevelConstEnum @@ -18,6 +19,7 @@ export function foo() { use(TopLevelConstEnum.X); >use(TopLevelConstEnum.X) : any +> : ^^^ >use : (a: any) => any > : ^ ^^ ^^^^^^^^ >TopLevelConstEnum.X : TopLevelConstEnum @@ -29,6 +31,7 @@ export function foo() { use(M.NonTopLevelConstEnum.X); >use(M.NonTopLevelConstEnum.X) : any +> : ^^^ >use : (a: any) => any > : ^ ^^ ^^^^^^^^ >M.NonTopLevelConstEnum.X : M.NonTopLevelConstEnum diff --git a/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.errors.txt b/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.errors.txt new file mode 100644 index 0000000000000..2797a6292c8f1 --- /dev/null +++ b/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModuleConstEnumsSeparateCompilation.ts (0 errors) ==== + declare function use(a: any); + const enum TopLevelConstEnum { X } + + export function foo() { + use(TopLevelConstEnum.X); + use(M.NonTopLevelConstEnum.X); + } + + namespace M { + export const enum NonTopLevelConstEnum { X } + } \ No newline at end of file diff --git a/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.types b/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.types index 15c786d6a85f4..ecbe54a5d6abf 100644 --- a/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.types +++ b/tests/baselines/reference/systemModuleConstEnumsSeparateCompilation.types @@ -5,6 +5,7 @@ declare function use(a: any); >use : (a: any) => any > : ^ ^^ ^^^^^^^^ >a : any +> : ^^^ const enum TopLevelConstEnum { X } >TopLevelConstEnum : TopLevelConstEnum @@ -18,6 +19,7 @@ export function foo() { use(TopLevelConstEnum.X); >use(TopLevelConstEnum.X) : any +> : ^^^ >use : (a: any) => any > : ^ ^^ ^^^^^^^^ >TopLevelConstEnum.X : TopLevelConstEnum @@ -29,6 +31,7 @@ export function foo() { use(M.NonTopLevelConstEnum.X); >use(M.NonTopLevelConstEnum.X) : any +> : ^^^ >use : (a: any) => any > : ^ ^^ ^^^^^^^^ >M.NonTopLevelConstEnum.X : M.NonTopLevelConstEnum diff --git a/tests/baselines/reference/systemModuleDeclarationMerging.errors.txt b/tests/baselines/reference/systemModuleDeclarationMerging.errors.txt new file mode 100644 index 0000000000000..17b0e359a5544 --- /dev/null +++ b/tests/baselines/reference/systemModuleDeclarationMerging.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModuleDeclarationMerging.ts (0 errors) ==== + export function F() {} + export namespace F { var x; } + + export class C {} + export namespace C { var x; } + + export enum E {} + export namespace E { var x; } \ No newline at end of file diff --git a/tests/baselines/reference/systemModuleDeclarationMerging.types b/tests/baselines/reference/systemModuleDeclarationMerging.types index 85be2211c103d..b55a85e37b5b4 100644 --- a/tests/baselines/reference/systemModuleDeclarationMerging.types +++ b/tests/baselines/reference/systemModuleDeclarationMerging.types @@ -9,6 +9,7 @@ export namespace F { var x; } >F : typeof F > : ^^^^^^^^ >x : any +> : ^^^ export class C {} >C : C @@ -18,6 +19,7 @@ export namespace C { var x; } >C : typeof C > : ^^^^^^^^ >x : any +> : ^^^ export enum E {} >E : E @@ -27,4 +29,5 @@ export namespace E { var x; } >E : typeof E > : ^^^^^^^^ >x : any +> : ^^^ diff --git a/tests/baselines/reference/systemModuleExportDefault.errors.txt b/tests/baselines/reference/systemModuleExportDefault.errors.txt new file mode 100644 index 0000000000000..900523915e198 --- /dev/null +++ b/tests/baselines/reference/systemModuleExportDefault.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file1.ts (0 errors) ==== + export default function() {} + +==== file2.ts (0 errors) ==== + export default function foo() {} + +==== file3.ts (0 errors) ==== + export default class {} + +==== file4.ts (0 errors) ==== + export default class C {} + + \ No newline at end of file diff --git a/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.errors.txt b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.errors.txt new file mode 100644 index 0000000000000..9e8539c276faa --- /dev/null +++ b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModuleNonTopLevelModuleMembers.ts (0 errors) ==== + export class TopLevelClass {} + export namespace TopLevelModule {var v;} + export function TopLevelFunction(): void {} + export enum TopLevelEnum {E} + + export namespace TopLevelModule2 { + export class NonTopLevelClass {} + export namespace NonTopLevelModule {var v;} + export function NonTopLevelFunction(): void {} + export enum NonTopLevelEnum {E} + } \ No newline at end of file diff --git a/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.types b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.types index 55d2770f41ac6..d608b8dd3b706 100644 --- a/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.types +++ b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.types @@ -9,6 +9,7 @@ export namespace TopLevelModule {var v;} >TopLevelModule : typeof TopLevelModule > : ^^^^^^^^^^^^^^^^^^^^^ >v : any +> : ^^^ export function TopLevelFunction(): void {} >TopLevelFunction : () => void @@ -32,6 +33,7 @@ export namespace TopLevelModule2 { >NonTopLevelModule : typeof NonTopLevelModule > : ^^^^^^^^^^^^^^^^^^^^^^^^ >v : any +> : ^^^ export function NonTopLevelFunction(): void {} >NonTopLevelFunction : () => void diff --git a/tests/baselines/reference/systemModuleTargetES6.errors.txt b/tests/baselines/reference/systemModuleTargetES6.errors.txt new file mode 100644 index 0000000000000..ca92612515804 --- /dev/null +++ b/tests/baselines/reference/systemModuleTargetES6.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModuleTargetES6.ts (0 errors) ==== + export class MyClass { } + export class MyClass2 { + static value = 42; + static getInstance() { return MyClass2.value; } + } + + export function myFunction() { + return new MyClass(); + } + + export function myFunction2() { + return new MyClass2(); + } \ No newline at end of file diff --git a/tests/baselines/reference/systemModuleTrailingComments.errors.txt b/tests/baselines/reference/systemModuleTrailingComments.errors.txt new file mode 100644 index 0000000000000..ee1484af56df8 --- /dev/null +++ b/tests/baselines/reference/systemModuleTrailingComments.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModuleTrailingComments.ts (0 errors) ==== + export const test = "TEST"; + + //some comment \ No newline at end of file diff --git a/tests/baselines/reference/systemModuleWithSuperClass.errors.txt b/tests/baselines/reference/systemModuleWithSuperClass.errors.txt new file mode 100644 index 0000000000000..2a624a94c08cc --- /dev/null +++ b/tests/baselines/reference/systemModuleWithSuperClass.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export class Foo { + a: string; + } + +==== bar.ts (0 errors) ==== + import {Foo} from './foo'; + export class Bar extends Foo { + b: string; + } \ No newline at end of file diff --git a/tests/baselines/reference/systemNamespaceAliasEmit.errors.txt b/tests/baselines/reference/systemNamespaceAliasEmit.errors.txt new file mode 100644 index 0000000000000..efdaea0144895 --- /dev/null +++ b/tests/baselines/reference/systemNamespaceAliasEmit.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemNamespaceAliasEmit.ts (0 errors) ==== + namespace ns { + const value = 1; + } + + enum AnEnum { + ONE, + TWO + } + + export {ns, AnEnum, ns as FooBar, AnEnum as BarEnum}; \ No newline at end of file diff --git a/tests/baselines/reference/systemObjectShorthandRename.errors.txt b/tests/baselines/reference/systemObjectShorthandRename.errors.txt new file mode 100644 index 0000000000000..422691700e60f --- /dev/null +++ b/tests/baselines/reference/systemObjectShorthandRename.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== x.ts (0 errors) ==== + export const x = 'X' +==== index.ts (0 errors) ==== + import {x} from './x.js' + + const x2 = {x} + const a = {x2} + + const x3 = x + const b = {x3} \ No newline at end of file diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).errors.txt b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).errors.txt index 21c68b1837718..3309692a85958 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).errors.txt +++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2015).errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. index.ts(2,1): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher. index.ts(46,3): error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher. other.ts(9,5): error TS1432: Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== index.ts (2 errors) ==== export const x = 1; await x; diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).errors.txt b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).errors.txt new file mode 100644 index 0000000000000..ef1cdd0171809 --- /dev/null +++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).errors.txt @@ -0,0 +1,83 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== index.ts (0 errors) ==== + export const x = 1; + await x; + + // reparse element access as await + await [x]; + await [x, x]; + + // reparse call as await + declare function f(): number; + await (x); + await (f(), x); + await (x); + await (f(), x); + + // reparse tagged template as await + await ``; + await ``; + + // member names should be ok + class C1 { + await() {} + } + class C2 { + get await() { return 1; } + set await(value) { } + } + class C3 { + await = 1; + } + ({ + await() {} + }); + ({ + get await() { return 1 }, + set await(value) { } + }); + ({ + await: 1 + }); + + // property access name should be ok + C1.prototype.await; + + // await in decorators + declare const dec: any; + @(await dec) + class C { + } + + // await allowed in aliased import + import { await as _await } from "./other"; + + // newlines + // await in throw + throw await + 1; + + // await in var + let y = await + 1; + + // await in expression statement; + await + 1; + +==== other.ts (0 errors) ==== + const _await = 1; + + // await allowed in aliased export + export { _await as await }; + + // for-await-of + const arr = [Promise.resolve()]; + + for await (const item of arr) { + item; + } + \ No newline at end of file diff --git a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types index f2a9992f6d32d..ac622b31610ca 100644 --- a/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types +++ b/tests/baselines/reference/topLevelAwait.1(module=system,target=es2017).types @@ -195,11 +195,15 @@ C1.prototype.await; // await in decorators declare const dec: any; >dec : any +> : ^^^ @(await dec) >(await dec) : any +> : ^^^ >await dec : any +> : ^^^ >dec : any +> : ^^^ class C { >C : C diff --git a/tests/baselines/reference/topLevelAwaitErrors.11.errors.txt b/tests/baselines/reference/topLevelAwaitErrors.11.errors.txt index 65be56f386a4a..635ffae5bd8f8 100644 --- a/tests/baselines/reference/topLevelAwaitErrors.11.errors.txt +++ b/tests/baselines/reference/topLevelAwaitErrors.11.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. index.ts(3,8): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== index.ts (1 errors) ==== // await disallowed in import= declare var require: any; diff --git a/tests/baselines/reference/topLevelExports.errors.txt b/tests/baselines/reference/topLevelExports.errors.txt new file mode 100644 index 0000000000000..52b401fa9fbb9 --- /dev/null +++ b/tests/baselines/reference/topLevelExports.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== topLevelExports.ts (0 errors) ==== + export var foo = 3; + + function log(n:number) { return n;} + + void log(foo).toString(); \ No newline at end of file diff --git a/tests/baselines/reference/topLevelLambda4.errors.txt b/tests/baselines/reference/topLevelLambda4.errors.txt index 588cf7e94441a..ca661d669da50 100644 --- a/tests/baselines/reference/topLevelLambda4.errors.txt +++ b/tests/baselines/reference/topLevelLambda4.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. topLevelLambda4.ts(1,22): error TS2532: Object is possibly 'undefined'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== topLevelLambda4.ts (1 errors) ==== export var x = () => this.window; ~~~~ diff --git a/tests/baselines/reference/topLevelVarHoistingSystem.errors.txt b/tests/baselines/reference/topLevelVarHoistingSystem.errors.txt new file mode 100644 index 0000000000000..355957835b458 --- /dev/null +++ b/tests/baselines/reference/topLevelVarHoistingSystem.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== topLevelVarHoistingSystem.ts (0 errors) ==== + if (false) { + var y = 1; + } + + function f() { + console.log(y); + } + + export { y }; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Correctly serialize metadata when transpile with System option.errors.txt b/tests/baselines/reference/transpile/Correctly serialize metadata when transpile with System option.errors.txt index 10079f19a0439..69abbac8e72aa 100644 --- a/tests/baselines/reference/transpile/Correctly serialize metadata when transpile with System option.errors.txt +++ b/tests/baselines/reference/transpile/Correctly serialize metadata when transpile with System option.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=System' 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. Visit https://aka.ms/ts6 for migration information. +!!! error TS5107: Option 'module=System' 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. !!! error TS5107: Visit https://aka.ms/ts6 for migration information. ==== file.ts (0 errors) ==== diff --git a/tests/baselines/reference/transpile/Correctly serialize metadata when transpile with System option.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Correctly serialize metadata when transpile with System option.oldTranspile.errors.txt index 10079f19a0439..69abbac8e72aa 100644 --- a/tests/baselines/reference/transpile/Correctly serialize metadata when transpile with System option.oldTranspile.errors.txt +++ b/tests/baselines/reference/transpile/Correctly serialize metadata when transpile with System option.oldTranspile.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=System' 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. Visit https://aka.ms/ts6 for migration information. +!!! error TS5107: Option 'module=System' 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. !!! error TS5107: Visit https://aka.ms/ts6 for migration information. ==== file.ts (0 errors) ==== diff --git a/tests/baselines/reference/transpile/Generates module output.errors.txt b/tests/baselines/reference/transpile/Generates module output.errors.txt new file mode 100644 index 0000000000000..b37ebfefd282d --- /dev/null +++ b/tests/baselines/reference/transpile/Generates module output.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 0; export {}; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates module output.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Generates module output.oldTranspile.errors.txt new file mode 100644 index 0000000000000..b37ebfefd282d --- /dev/null +++ b/tests/baselines/reference/transpile/Generates module output.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 0; export {}; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Rename dependencies - AMD.errors.txt b/tests/baselines/reference/transpile/Rename dependencies - AMD.errors.txt new file mode 100644 index 0000000000000..8d9b3dec5bd51 --- /dev/null +++ b/tests/baselines/reference/transpile/Rename dependencies - AMD.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.ts (0 errors) ==== + import {foo} from "SomeName"; + declare function use(a: any); + use(foo); \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Rename dependencies - System.errors.txt b/tests/baselines/reference/transpile/Rename dependencies - System.errors.txt new file mode 100644 index 0000000000000..d44d2a643ba0a --- /dev/null +++ b/tests/baselines/reference/transpile/Rename dependencies - System.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.ts (0 errors) ==== + import {foo} from "SomeName"; + declare function use(a: any); + use(foo); \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Rename dependencies - UMD.errors.txt b/tests/baselines/reference/transpile/Rename dependencies - UMD.errors.txt new file mode 100644 index 0000000000000..c516802c09bd7 --- /dev/null +++ b/tests/baselines/reference/transpile/Rename dependencies - UMD.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.ts (0 errors) ==== + import {foo} from "SomeName"; + declare function use(a: any); + use(foo); \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.errors.txt b/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.errors.txt index 363afda18581b..1accaccbefd35 100644 --- a/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.errors.txt +++ b/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.errors.txt @@ -1,6 +1,6 @@ -error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. -!!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +!!! error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. ==== file.ts (0 errors) ==== \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.oldTranspile.errors.txt index 363afda18581b..1accaccbefd35 100644 --- a/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.oldTranspile.errors.txt +++ b/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.oldTranspile.errors.txt @@ -1,6 +1,6 @@ -error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. -!!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +!!! error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. ==== file.ts (0 errors) ==== \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.errors.txt b/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.errors.txt index 363afda18581b..1accaccbefd35 100644 --- a/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.errors.txt +++ b/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.errors.txt @@ -1,6 +1,6 @@ -error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. -!!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +!!! error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. ==== file.ts (0 errors) ==== \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.oldTranspile.errors.txt index 363afda18581b..1accaccbefd35 100644 --- a/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.oldTranspile.errors.txt +++ b/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.oldTranspile.errors.txt @@ -1,6 +1,6 @@ -error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. -!!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. +!!! error TS6046: Argument for '--module' option must be: 'commonjs', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'node20', 'nodenext', 'preserve'. ==== file.ts (0 errors) ==== \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Sets module name.errors.txt b/tests/baselines/reference/transpile/Sets module name.errors.txt new file mode 100644 index 0000000000000..28fdb1e333a68 --- /dev/null +++ b/tests/baselines/reference/transpile/Sets module name.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 1; export {}; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Sets module name.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Sets module name.oldTranspile.errors.txt new file mode 100644 index 0000000000000..28fdb1e333a68 --- /dev/null +++ b/tests/baselines/reference/transpile/Sets module name.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 1; export {}; \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js index 34c99aba58054..6f4321710bfa2 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js @@ -82,10 +82,23 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/lib/tsconfig.json'... +lib/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'app/tsconfig.json' is out of date because output file 'app/module.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/app/tsconfig.json'... +app/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/soltion/lib/module.js.map] @@ -123,7 +136,7 @@ declare const globalConst = 10; //# sourceMappingURL=module.d.ts.map //// [/home/src/workspaces/soltion/lib/module.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/soltion/lib/module.tsbuildinfo.readable.baseline.txt] { @@ -164,10 +177,32 @@ declare const globalConst = 10; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file0.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ], + [ + "./global.ts", + "not cached or not changed" + ] + ], "outSignature": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", "latestChangedDtsFile": "./module.d.ts", "version": "FakeTSVersion", - "size": 1072 + "size": 1113 } //// [/home/src/workspaces/soltion/app/module.js.map] @@ -194,7 +229,7 @@ declare const myVar = 30; //# sourceMappingURL=module.d.ts.map //// [/home/src/workspaces/soltion/app/module.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"outSignature":"-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/soltion/app/module.tsbuildinfo.readable.baseline.txt] { @@ -229,10 +264,28 @@ declare const myVar = 30; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../lib/module.d.ts", + "not cached or not changed" + ], + [ + "./file3.ts", + "not cached or not changed" + ], + [ + "./file4.ts", + "not cached or not changed" + ] + ], "outSignature": "-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n", "latestChangedDtsFile": "./module.d.ts", "version": "FakeTSVersion", - "size": 1122 + "size": 1161 } //// [/home/src/workspaces/soltion/lib/module.js.map.baseline.txt] @@ -595,7 +648,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.d.ts.map -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: incremental-declaration-doesnt-change @@ -610,13 +663,26 @@ Output:: * lib/tsconfig.json * app/tsconfig.json -[HH:MM:SS AM] Project 'lib/tsconfig.json' is out of date because output 'lib/module.tsbuildinfo' is older than input 'lib/file1.ts' +[HH:MM:SS AM] Project 'lib/tsconfig.json' is out of date because buildinfo file 'lib/module.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/lib/tsconfig.json'... -[HH:MM:SS AM] Project 'app/tsconfig.json' is up to date with .d.ts files from its dependencies +lib/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Project 'app/tsconfig.json' is out of date because buildinfo file 'app/module.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/soltion/app/tsconfig.json'... + +app/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + -[HH:MM:SS AM] Updating output timestamps of project '/home/src/workspaces/soltion/app/tsconfig.json'... +Found 2 errors. @@ -643,7 +709,7 @@ var globalConst = 10; //// [/home/src/workspaces/soltion/lib/module.d.ts.map] file written with same contents //// [/home/src/workspaces/soltion/lib/module.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/soltion/lib/module.tsbuildinfo.readable.baseline.txt] { @@ -684,13 +750,34 @@ var globalConst = 10; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file0.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ], + [ + "./global.ts", + "not cached or not changed" + ] + ], "outSignature": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", "latestChangedDtsFile": "./module.d.ts", "version": "FakeTSVersion", - "size": 1086 + "size": 1127 } -//// [/home/src/workspaces/soltion/app/module.tsbuildinfo] file changed its modified time //// [/home/src/workspaces/soltion/lib/module.js.map.baseline.txt] =================================================================== JsFile: module.js @@ -837,4 +924,4 @@ sourceFile:global.ts //// [/home/src/workspaces/soltion/lib/module.d.ts.map.baseline.txt] file written with same contents -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js index d3ba2ff07f449..22235dcc05e4d 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js @@ -83,10 +83,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/lib/tsconfig.json'... +lib/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'app/tsconfig.json' is out of date because output file 'app/module.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/app/tsconfig.json'... +app/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + app/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. 15 { @@ -99,7 +109,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -138,7 +148,7 @@ declare const globalConst = 10; //# sourceMappingURL=module.d.ts.map //// [/home/src/workspaces/soltion/lib/module.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/soltion/lib/module.tsbuildinfo.readable.baseline.txt] { @@ -179,10 +189,32 @@ declare const globalConst = 10; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file0.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ], + [ + "./global.ts", + "not cached or not changed" + ] + ], "outSignature": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", "latestChangedDtsFile": "./module.d.ts", "version": "FakeTSVersion", - "size": 1072 + "size": 1113 } //// [/home/src/workspaces/soltion/app/module.js.map] @@ -628,7 +660,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.d.ts.map -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: incremental-declaration-doesnt-change @@ -643,14 +675,24 @@ Output:: * lib/tsconfig.json * app/tsconfig.json -[HH:MM:SS AM] Project 'lib/tsconfig.json' is out of date because output 'lib/module.tsbuildinfo' is older than input 'lib/file1.ts' +[HH:MM:SS AM] Project 'lib/tsconfig.json' is out of date because buildinfo file 'lib/module.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/lib/tsconfig.json'... +lib/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'app/tsconfig.json' is out of date because buildinfo file 'app/module.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/app/tsconfig.json'... +app/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + app/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. 15 { @@ -663,7 +705,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -690,7 +732,7 @@ var globalConst = 10; //// [/home/src/workspaces/soltion/lib/module.d.ts.map] file written with same contents //// [/home/src/workspaces/soltion/lib/module.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/soltion/lib/module.tsbuildinfo.readable.baseline.txt] { @@ -731,10 +773,32 @@ var globalConst = 10; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file0.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ], + [ + "./global.ts", + "not cached or not changed" + ] + ], "outSignature": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", "latestChangedDtsFile": "./module.d.ts", "version": "FakeTSVersion", - "size": 1086 + "size": 1127 } //// [/home/src/workspaces/soltion/lib/module.js.map.baseline.txt] @@ -883,4 +947,4 @@ sourceFile:global.ts //// [/home/src/workspaces/soltion/lib/module.d.ts.map.baseline.txt] file written with same contents -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js index 014967a4d581f..de4af543d4a6b 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js @@ -82,10 +82,23 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/lib/tsconfig.json'... +lib/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'app/tsconfig.json' is out of date because output file 'app/module.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/soltion/app/tsconfig.json'... +app/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/soltion/module.js.map] @@ -123,7 +136,7 @@ declare const globalConst = 10; //# sourceMappingURL=module.d.ts.map //// [/home/src/workspaces/soltion/module.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","rootDir":"./","sourceMap":true,"strict":false,"target":1},"outSignature":"-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","rootDir":"./","sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/soltion/module.tsbuildinfo.readable.baseline.txt] { @@ -165,10 +178,32 @@ declare const globalConst = 10; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./lib/file0.ts", + "not cached or not changed" + ], + [ + "./lib/file1.ts", + "not cached or not changed" + ], + [ + "./lib/file2.ts", + "not cached or not changed" + ], + [ + "./lib/global.ts", + "not cached or not changed" + ] + ], "outSignature": "-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", "latestChangedDtsFile": "./module.d.ts", "version": "FakeTSVersion", - "size": 1109 + "size": 1150 } //// [/home/src/workspaces/soltion/app/module.js.map] @@ -195,7 +230,7 @@ declare const myVar = 30; //# sourceMappingURL=module.d.ts.map //// [/home/src/workspaces/soltion/app/module.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"outSignature":"-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/soltion/app/module.tsbuildinfo.readable.baseline.txt] { @@ -230,10 +265,28 @@ declare const myVar = 30; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../module.d.ts", + "not cached or not changed" + ], + [ + "./file3.ts", + "not cached or not changed" + ], + [ + "./file4.ts", + "not cached or not changed" + ] + ], "outSignature": "-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n", "latestChangedDtsFile": "./module.d.ts", "version": "FakeTSVersion", - "size": 1131 + "size": 1170 } //// [/home/src/workspaces/soltion/module.js.map.baseline.txt] @@ -597,4 +650,4 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.d.ts.map -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/commandLine/outFile/different-options-with-incremental.js b/tests/baselines/reference/tsbuild/commandLine/outFile/different-options-with-incremental.js index 5fba70a5edab2..8b78ce9f0633b 100644 --- a/tests/baselines/reference/tsbuild/commandLine/outFile/different-options-with-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/outFile/different-options-with-incremental.js @@ -45,6 +45,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -77,7 +85,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -113,8 +121,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 842 + "size": 883 } @@ -139,16 +169,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts -/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with sourceMap @@ -159,10 +184,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -195,7 +228,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -232,8 +265,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 859 + "size": 900 } //// [/home/src/workspaces/outFile.js.map] @@ -262,11 +317,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: should re-emit only js so they dont contain sourcemap @@ -277,10 +332,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -313,7 +376,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -349,8 +412,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 842 + "size": 883 } @@ -375,11 +460,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with declaration, emit Dts and should not emit js @@ -390,14 +475,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -434,8 +527,30 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 861 + "size": 902 } //// [/home/src/workspaces/outFile.d.ts] @@ -476,11 +591,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with declaration and declarationMap @@ -491,14 +606,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -536,8 +659,30 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 883 + "size": 924 } //// [/home/src/workspaces/outFile.d.ts] @@ -582,11 +727,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -597,12 +742,47 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts", + "/home/src/workspaces/project/c.ts", + "/home/src/workspaces/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/home/src/workspaces/outFile.js", + "module": 2, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts +/home/src/workspaces/project/c.ts +/home/src/workspaces/project/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: local change @@ -616,10 +796,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -652,7 +840,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -688,8 +876,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 843 + "size": 884 } @@ -714,16 +924,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts -/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with declaration and declarationMap @@ -734,14 +939,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -779,8 +992,30 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 884 + "size": 925 } //// [/home/src/workspaces/outFile.d.ts] file written with same contents @@ -809,11 +1044,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -824,12 +1059,47 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + + + + +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts", + "/home/src/workspaces/project/c.ts", + "/home/src/workspaces/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/home/src/workspaces/outFile.js", + "module": 2, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts +/home/src/workspaces/project/c.ts +/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with inlineSourceMap @@ -840,10 +1110,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -876,7 +1154,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -913,8 +1191,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 866 + "size": 907 } @@ -940,11 +1240,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with sourceMap @@ -955,10 +1255,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -991,7 +1299,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1028,8 +1336,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 860 + "size": 901 } //// [/home/src/workspaces/outFile.js.map] @@ -1058,11 +1388,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: emit js files @@ -1073,10 +1403,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -1109,7 +1447,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1145,8 +1483,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 843 + "size": 884 } @@ -1171,11 +1531,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with declaration and declarationMap @@ -1186,14 +1546,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1231,8 +1599,30 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 884 + "size": 925 } //// [/home/src/workspaces/outFile.d.ts] file written with same contents @@ -1261,11 +1651,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with declaration and declarationMap, should not re-emit @@ -1276,9 +1666,46 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +Found 1 error. + + + + +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts", + "/home/src/workspaces/project/c.ts", + "/home/src/workspaces/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/home/src/workspaces/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts +/home/src/workspaces/project/c.ts +/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/commandLine/outFile/different-options.js b/tests/baselines/reference/tsbuild/commandLine/outFile/different-options.js index 5761929243c7a..cd667d402a4a0 100644 --- a/tests/baselines/reference/tsbuild/commandLine/outFile/different-options.js +++ b/tests/baselines/reference/tsbuild/commandLine/outFile/different-options.js @@ -45,6 +45,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -92,7 +100,7 @@ declare module "d" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -129,10 +137,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1142 + "size": 1183 } @@ -157,16 +187,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts -/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with sourceMap @@ -177,10 +202,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -213,7 +246,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -251,10 +284,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1159 + "size": 1200 } //// [/home/src/workspaces/outFile.js.map] @@ -283,11 +338,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: should re-emit only js so they dont contain sourcemap @@ -298,10 +353,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -334,7 +397,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -371,10 +434,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1142 + "size": 1183 } @@ -399,11 +484,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with declaration should not emit anything @@ -414,12 +499,48 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts", + "/home/src/workspaces/project/c.ts", + "/home/src/workspaces/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/outFile.js", + "module": 2, + "declaration": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts +/home/src/workspaces/project/c.ts +/home/src/workspaces/project/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -430,12 +551,47 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts", + "/home/src/workspaces/project/c.ts", + "/home/src/workspaces/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/outFile.js", + "module": 2, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts +/home/src/workspaces/project/c.ts +/home/src/workspaces/project/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with declaration and declarationMap @@ -446,10 +602,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.d.ts] @@ -468,7 +632,7 @@ declare module "d" { //# sourceMappingURL=outFile.d.ts.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -507,10 +671,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1183 + "size": 1224 } //// [/home/src/workspaces/outFile.d.ts.map] @@ -540,11 +726,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: should re-emit only dts so they dont contain sourcemap @@ -555,10 +741,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.d.ts] @@ -577,7 +771,7 @@ declare module "d" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -614,10 +808,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1142 + "size": 1183 } @@ -642,11 +858,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with emitDeclarationOnly should not emit anything @@ -657,12 +873,48 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts", + "/home/src/workspaces/project/c.ts", + "/home/src/workspaces/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts +/home/src/workspaces/project/c.ts +/home/src/workspaces/project/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -673,12 +925,47 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +Found 1 error. + + + + +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts", + "/home/src/workspaces/project/c.ts", + "/home/src/workspaces/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/outFile.js", + "module": 2, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts +/home/src/workspaces/project/c.ts +/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: local change @@ -692,10 +979,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -728,7 +1023,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -765,10 +1060,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1143 + "size": 1184 } @@ -793,16 +1110,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts -/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with declaration should not emit anything @@ -813,12 +1125,48 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts", + "/home/src/workspaces/project/c.ts", + "/home/src/workspaces/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/outFile.js", + "module": 2, + "declaration": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts +/home/src/workspaces/project/c.ts +/home/src/workspaces/project/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with inlineSourceMap @@ -829,10 +1177,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -865,7 +1221,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -903,10 +1259,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1166 + "size": 1207 } @@ -932,11 +1310,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: with sourceMap @@ -947,10 +1325,18 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -983,7 +1369,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1021,10 +1407,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1160 + "size": 1201 } //// [/home/src/workspaces/outFile.js.map] @@ -1053,8 +1461,8 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js index 7461315fdd306..9a4063ef8cb37 100644 --- a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js @@ -73,10 +73,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/outFile.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. 10 { @@ -87,7 +97,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -107,7 +117,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -145,8 +155,30 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 878 + "size": 919 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] @@ -249,12 +281,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -284,7 +311,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -296,12 +323,24 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. 10 { @@ -312,11 +351,38 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -358,14 +424,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. 10 { @@ -376,13 +452,13 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. //// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -420,8 +496,30 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 892 + "size": 933 } @@ -448,12 +546,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -483,7 +576,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: emit js files @@ -495,14 +588,24 @@ Output:: * 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/outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. 10 { @@ -513,12 +616,12 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -556,8 +659,30 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 893 + "size": 934 } //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] @@ -699,7 +824,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -729,7 +854,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -741,12 +866,24 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. 10 { @@ -757,11 +894,38 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -800,12 +964,24 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. 10 { @@ -816,11 +992,38 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -862,14 +1065,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd", +   ~~~~~ + project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true. 10 { @@ -880,13 +1093,13 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. //// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -924,8 +1137,30 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 910 + "size": 951 } //// [/home/src/workspaces/solution/project1/outFile.js] @@ -983,12 +1218,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1018,4 +1248,4 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline-with-declaration.js b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline-with-declaration.js index 90442e8d69e64..544aff866e2af 100644 --- a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline-with-declaration.js +++ b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline-with-declaration.js @@ -71,10 +71,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/outFile.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -85,7 +95,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -105,7 +115,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"root":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"version":"FakeTSVersion"} +{"root":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -115,8 +125,9 @@ declare module "d" { "./src/c.ts", "./src/d.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 88 + "size": 102 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] @@ -169,12 +180,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -203,7 +209,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -215,12 +221,24 @@ Output:: * 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/outFile.d.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -231,14 +249,43 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +//// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -279,14 +326,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -297,7 +354,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -330,12 +387,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -364,7 +416,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: emit js files @@ -376,14 +428,24 @@ Output:: * 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/outFile.js' does not exist +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -394,7 +456,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -478,12 +540,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -512,7 +569,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -524,12 +581,24 @@ Output:: * 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/outFile.d.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -540,14 +609,43 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +//// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -585,12 +683,24 @@ Output:: * 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/outFile.js' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -601,15 +711,45 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +//// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.js] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.js] file written with same contents +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -650,14 +790,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -668,7 +818,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -733,12 +883,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -767,4 +912,4 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline.js b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline.js index 1844fa0c3ce6e..eab8ed7331472 100644 --- a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline.js +++ b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-false-on-commandline.js @@ -71,10 +71,23 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/outFile.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/solution/project1/outFile.d.ts] @@ -93,7 +106,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -131,10 +144,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1159 + "size": 1200 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] @@ -150,7 +185,7 @@ declare module "g" { //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] { @@ -187,10 +222,32 @@ declare module "g" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/outfile.d.ts", + "not cached or not changed" + ], + [ + "./src/e.ts", + "not cached or not changed" + ], + [ + "./src/f.ts", + "not cached or not changed" + ], + [ + "./src/g.ts", + "not cached or not changed" + ] + ], "outSignature": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1276 + "size": 1317 } @@ -216,12 +273,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -246,16 +298,11 @@ Program files:: /home/src/workspaces/solution/project2/src/f.ts /home/src/workspaces/solution/project2/src/g.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/outFile.d.ts -/home/src/workspaces/solution/project2/src/e.ts -/home/src/workspaces/solution/project2/src/f.ts -/home/src/workspaces/solution/project2/src/g.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -267,14 +314,82 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ -[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/outFile.tsbuildinfo' + +Found 2 errors. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: change @@ -289,18 +404,31 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + -[HH:MM:SS AM] Updating output timestamps of project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +Found 2 errors. //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -338,13 +466,34 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1173 + "size": 1214 } -//// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file changed its modified time Program root files: [ "/home/src/workspaces/solution/project1/src/a.ts", @@ -368,16 +517,36 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: /home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: emit js files @@ -389,18 +558,31 @@ Output:: * 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/outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates there is change in compilerOptions +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -438,14 +620,36 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1174 + "size": 1215 } //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] { @@ -482,10 +686,32 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/outfile.d.ts", + "not cached or not changed" + ], + [ + "./src/e.ts", + "not cached or not changed" + ], + [ + "./src/f.ts", + "not cached or not changed" + ], + [ + "./src/g.ts", + "not cached or not changed" + ] + ], "outSignature": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1277 + "size": 1318 } //// [/home/src/workspaces/solution/project1/outFile.js] @@ -562,7 +788,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -587,11 +813,11 @@ Program files:: /home/src/workspaces/solution/project2/src/f.ts /home/src/workspaces/solution/project2/src/g.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -603,14 +829,82 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. -[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/outFile.tsbuildinfo' +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no change run with js emit @@ -622,14 +916,82 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ -[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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. + + + + +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: js emit with change @@ -644,18 +1006,31 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Updating output timestamps of project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -693,13 +1068,34 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1191 + "size": 1232 } -//// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file changed its modified time //// [/home/src/workspaces/solution/project1/outFile.js] define("a", ["require", "exports"], function (require, exports) { "use strict"; @@ -754,13 +1150,33 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: /home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js index c6e19ddceea06..3aa93da46bb56 100644 --- a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js @@ -71,10 +71,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/outFile.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -85,7 +95,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -105,7 +115,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -143,8 +153,30 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 878 + "size": 919 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] @@ -247,12 +279,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -282,7 +309,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -294,12 +321,24 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -310,11 +349,38 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -356,14 +422,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -374,13 +450,13 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. //// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -418,8 +494,30 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 892 + "size": 933 } @@ -446,12 +544,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -481,7 +574,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: non local change @@ -496,14 +589,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -514,7 +617,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -535,7 +638,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -573,8 +676,30 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 913 + "size": 954 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] file written with same contents @@ -666,12 +791,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -701,7 +821,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: emit js files @@ -713,14 +833,24 @@ Output:: * 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/outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -731,12 +861,12 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -773,8 +903,30 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 886 + "size": 927 } //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] @@ -915,7 +1067,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -944,7 +1096,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -956,12 +1108,24 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -972,11 +1136,38 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -1018,14 +1209,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -1036,13 +1237,13 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. //// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1079,8 +1280,30 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 904 + "size": 945 } //// [/home/src/workspaces/solution/project1/outFile.js] @@ -1138,12 +1361,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1172,7 +1390,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: local change @@ -1187,14 +1405,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -1205,13 +1433,13 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. //// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1249,8 +1477,30 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 947 + "size": 988 } @@ -1277,12 +1527,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1312,7 +1557,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: non local change @@ -1327,14 +1572,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -1345,7 +1600,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -1367,7 +1622,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1405,8 +1660,30 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 971 + "size": 1012 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] file written with same contents @@ -1498,12 +1775,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1533,7 +1805,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: js emit with change without emitDeclarationOnly @@ -1548,14 +1820,24 @@ Output:: * 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/outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  9 { @@ -1566,7 +1848,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -1589,7 +1871,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1626,8 +1908,30 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 966 + "size": 1007 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] file written with same contents @@ -1753,12 +2057,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1787,4 +2086,4 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline-with-declaration.js b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline-with-declaration.js index b8b34234bffe9..261f974a69333 100644 --- a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline-with-declaration.js +++ b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline-with-declaration.js @@ -69,10 +69,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/outFile.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -83,7 +93,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -103,7 +113,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"root":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"version":"FakeTSVersion"} +{"root":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -113,8 +123,9 @@ declare module "d" { "./src/c.ts", "./src/d.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 88 + "size": 102 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] @@ -167,12 +178,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -201,7 +207,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -213,12 +219,24 @@ Output:: * 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/outFile.d.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -229,14 +247,43 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +//// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -277,14 +324,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -295,7 +352,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -328,12 +385,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -362,7 +414,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: non local change @@ -377,14 +429,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -395,7 +457,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -443,12 +505,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -477,7 +534,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: emit js files @@ -489,14 +546,24 @@ Output:: * 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/outFile.js' does not exist +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -507,7 +574,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -591,12 +658,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -624,7 +686,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -636,12 +698,24 @@ Output:: * 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/outFile.d.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -652,14 +726,43 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. +//// [/home/src/workspaces/solution/project1/outFile.d.ts] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.d.ts] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file written with same contents //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + Program root files: [ "/home/src/workspaces/solution/project2/src/e.ts", "/home/src/workspaces/solution/project2/src/f.ts", @@ -700,14 +803,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -718,7 +831,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -783,12 +896,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -816,7 +924,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: local change @@ -831,14 +939,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -849,7 +967,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -882,12 +1000,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -916,7 +1029,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: non local change @@ -931,14 +1044,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -949,7 +1072,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -998,12 +1121,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1032,7 +1150,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: js emit with change without emitDeclarationOnly @@ -1047,14 +1165,24 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/home/src/workspaces/solution/project1/src' must have setting "composite": true.  8 { @@ -1065,7 +1193,7 @@ Output::   ~~~~~ -Found 1 error. +Found 3 errors. @@ -1150,12 +1278,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1183,4 +1306,4 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline.js b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline.js index be9c50ba4dd23..3a649d5537421 100644 --- a/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline.js +++ b/tests/baselines/reference/tsbuild/commandLine/outFile/emitDeclarationOnly-on-commandline.js @@ -69,10 +69,23 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + [HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output file 'project2/outFile.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/solution/project1/outFile.d.ts] @@ -91,7 +104,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -129,10 +142,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1159 + "size": 1200 } //// [/home/src/workspaces/solution/project2/outFile.d.ts] @@ -148,7 +183,7 @@ declare module "g" { //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] { @@ -185,10 +220,32 @@ declare module "g" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/outfile.d.ts", + "not cached or not changed" + ], + [ + "./src/e.ts", + "not cached or not changed" + ], + [ + "./src/f.ts", + "not cached or not changed" + ], + [ + "./src/g.ts", + "not cached or not changed" + ] + ], "outSignature": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1276 + "size": 1317 } @@ -214,12 +271,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -244,16 +296,11 @@ Program files:: /home/src/workspaces/solution/project2/src/f.ts /home/src/workspaces/solution/project2/src/g.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/outFile.d.ts -/home/src/workspaces/solution/project2/src/e.ts -/home/src/workspaces/solution/project2/src/f.ts -/home/src/workspaces/solution/project2/src/g.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -265,14 +312,82 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ -[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/outFile.tsbuildinfo' + +Found 2 errors. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: local change @@ -287,18 +402,31 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ -[HH:MM:SS AM] Updating output timestamps of project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +Found 2 errors. //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -336,13 +464,34 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1173 + "size": 1214 } -//// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file changed its modified time Program root files: [ "/home/src/workspaces/solution/project1/src/a.ts", @@ -366,16 +515,36 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: /home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: non local change @@ -390,14 +559,27 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/a.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output 'project2/outFile.tsbuildinfo' is older than input 'project1/src' +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/solution/project1/outFile.d.ts] @@ -417,7 +599,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -455,14 +637,36 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1219 + "size": 1260 } //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] { @@ -499,10 +703,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/outfile.d.ts", + "not cached or not changed" + ], + [ + "./src/e.ts", + "not cached or not changed" + ], + [ + "./src/f.ts", + "not cached or not changed" + ], + [ + "./src/g.ts", + "not cached or not changed" + ] + ], "outSignature": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1301 + "size": 1342 } @@ -528,12 +754,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -558,16 +779,11 @@ Program files:: /home/src/workspaces/solution/project2/src/f.ts /home/src/workspaces/solution/project2/src/g.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/outFile.d.ts -/home/src/workspaces/solution/project2/src/e.ts -/home/src/workspaces/solution/project2/src/f.ts -/home/src/workspaces/solution/project2/src/g.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: emit js files @@ -579,18 +795,31 @@ Output:: * 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/outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates there is change in compilerOptions +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -627,14 +856,36 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1192 + "size": 1233 } //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] { @@ -670,10 +921,32 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/outfile.d.ts", + "not cached or not changed" + ], + [ + "./src/e.ts", + "not cached or not changed" + ], + [ + "./src/f.ts", + "not cached or not changed" + ], + [ + "./src/g.ts", + "not cached or not changed" + ] + ], "outSignature": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1274 + "size": 1315 } //// [/home/src/workspaces/solution/project1/outFile.js] @@ -750,7 +1023,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -774,11 +1047,11 @@ Program files:: /home/src/workspaces/solution/project2/src/f.ts /home/src/workspaces/solution/project2/src/g.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -790,14 +1063,82 @@ Output:: * 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/outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... + +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + -[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/outFile.tsbuildinfo' +Found 2 errors. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/solution/project1/src/a.ts", + "/home/src/workspaces/solution/project1/src/b.ts", + "/home/src/workspaces/solution/project1/src/c.ts", + "/home/src/workspaces/solution/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project1/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/src/a.ts +/home/src/workspaces/solution/project1/src/b.ts +/home/src/workspaces/solution/project1/src/c.ts +/home/src/workspaces/solution/project1/src/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: js emit with change without emitDeclarationOnly @@ -812,18 +1153,31 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Updating output timestamps of project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +5 "module": "amd" +   ~~~~~ + + +Found 2 errors. //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -860,13 +1214,34 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1210 + "size": 1251 } -//// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file changed its modified time //// [/home/src/workspaces/solution/project1/outFile.js] define("a", ["require", "exports"], function (require, exports) { "use strict"; @@ -921,16 +1296,35 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: /home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: local change @@ -945,18 +1339,31 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ -[HH:MM:SS AM] Updating output timestamps of project '/home/src/workspaces/solution/project2/src/tsconfig.json'... + +Found 2 errors. //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -994,13 +1401,34 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1253 + "size": 1294 } -//// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] file changed its modified time Program root files: [ "/home/src/workspaces/solution/project1/src/a.ts", @@ -1024,16 +1452,36 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +Program root files: [ + "/home/src/workspaces/solution/project2/src/e.ts", + "/home/src/workspaces/solution/project2/src/f.ts", + "/home/src/workspaces/solution/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/home/src/workspaces/solution/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "tscBuild": true, + "configFilePath": "/home/src/workspaces/solution/project2/src/tsconfig.json" +} +Program structureReused: Not +Program files:: /home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +/home/src/workspaces/solution/project1/outFile.d.ts +/home/src/workspaces/solution/project2/src/e.ts +/home/src/workspaces/solution/project2/src/f.ts +/home/src/workspaces/solution/project2/src/g.ts + +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: non local change @@ -1048,14 +1496,27 @@ Output:: * project1/src/tsconfig.json * project2/src/tsconfig.json -[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because output 'project1/outFile.tsbuildinfo' is older than input 'project1/src/b.ts' +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because output 'project2/outFile.tsbuildinfo' is older than input 'project1/src' +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/solution/project1/outFile.d.ts] @@ -1076,7 +1537,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1114,14 +1575,36 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1309 + "size": 1350 } //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1158,10 +1641,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/outfile.d.ts", + "not cached or not changed" + ], + [ + "./src/e.ts", + "not cached or not changed" + ], + [ + "./src/f.ts", + "not cached or not changed" + ], + [ + "./src/g.ts", + "not cached or not changed" + ] + ], "outSignature": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1333 + "size": 1374 } @@ -1187,12 +1692,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1217,16 +1717,11 @@ Program files:: /home/src/workspaces/solution/project2/src/f.ts /home/src/workspaces/solution/project2/src/g.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/outFile.d.ts -/home/src/workspaces/solution/project2/src/e.ts -/home/src/workspaces/solution/project2/src/f.ts -/home/src/workspaces/solution/project2/src/g.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: js emit with change without emitDeclarationOnly @@ -1241,14 +1736,27 @@ Output:: * 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/outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'project1/src/tsconfig.json' is out of date because buildinfo file 'project1/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project1/src/tsconfig.json'... -[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates there is change in compilerOptions +project1/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Project 'project2/src/tsconfig.json' is out of date because buildinfo file 'project2/outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project2/src/tsconfig.json'... +project2/src/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 2 errors. + //// [/home/src/workspaces/solution/project1/outFile.d.ts] @@ -1270,7 +1778,7 @@ declare module "d" { //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1307,14 +1815,36 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/a.ts", + "not cached or not changed" + ], + [ + "./src/b.ts", + "not cached or not changed" + ], + [ + "./src/c.ts", + "not cached or not changed" + ], + [ + "./src/d.ts", + "not cached or not changed" + ] + ], "outSignature": "1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1330 + "size": 1371 } //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/project2/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1350,10 +1880,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/outfile.d.ts", + "not cached or not changed" + ], + [ + "./src/e.ts", + "not cached or not changed" + ], + [ + "./src/f.ts", + "not cached or not changed" + ], + [ + "./src/g.ts", + "not cached or not changed" + ] + ], "outSignature": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1332 + "size": 1373 } //// [/home/src/workspaces/solution/project1/outFile.js] @@ -1414,12 +1966,7 @@ Program files:: /home/src/workspaces/solution/project1/src/c.ts /home/src/workspaces/solution/project1/src/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/src/a.ts -/home/src/workspaces/solution/project1/src/b.ts -/home/src/workspaces/solution/project1/src/c.ts -/home/src/workspaces/solution/project1/src/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1443,13 +1990,8 @@ Program files:: /home/src/workspaces/solution/project2/src/f.ts /home/src/workspaces/solution/project2/src/g.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/solution/project1/outFile.d.ts -/home/src/workspaces/solution/project2/src/e.ts -/home/src/workspaces/solution/project2/src/f.ts -/home/src/workspaces/solution/project2/src/g.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/configFileErrors/outFile/reports-syntax-errors-in-config-file-discrepancies.js b/tests/baselines/reference/tsbuild/configFileErrors/outFile/reports-syntax-errors-in-config-file-discrepancies.js index 5b8da24e4ba02..df06354e36341 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/outFile/reports-syntax-errors-in-config-file-discrepancies.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/outFile/reports-syntax-errors-in-config-file-discrepancies.js @@ -27,7 +27,6 @@ CleanBuild: }, "outSignature": "-5340070911-declare module \"a\" {\n export function foo(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n", "latestChangedDtsFile": "FakeFileName", - "errors": true, "version": "FakeTSVersion" } IncrementalBuild: @@ -54,6 +53,5 @@ IncrementalBuild: }, "outSignature": "-5340070911-declare module \"a\" {\n export function foo(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n", "latestChangedDtsFile": "FakeFileName", - "errors": true, "version": "FakeTSVersion" } \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/configFileErrors/outFile/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/outFile/reports-syntax-errors-in-config-file.js index 95e0e31dc6df5..7da423b2683d2 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/outFile/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/outFile/reports-syntax-errors-in-config-file.js @@ -37,13 +37,18 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --b Output:: +tsconfig.json:5:13 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + tsconfig.json:10:9 - error TS1005: ',' expected. 10 "b.ts"    ~~~~~~ -Found 1 error. +Found 2 errors. @@ -72,7 +77,7 @@ declare module "b" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4646078106-export function foo() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-5340070911-declare module \"a\" {\n export function foo(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","errors":true,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4646078106-export function foo() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"-5340070911-declare module \"a\" {\n export function foo(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -101,11 +106,24 @@ declare module "b" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "outSignature": "-5340070911-declare module \"a\" {\n export function foo(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", - "errors": true, "version": "FakeTSVersion", - "size": 880 + "size": 903 } @@ -132,13 +150,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --b Output:: +tsconfig.json:6:13 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + tsconfig.json:11:9 - error TS1005: ',' expected. 11 "b.ts"    ~~~~~~ -Found 1 error. +Found 2 errors. @@ -154,13 +177,18 @@ export function foo() { }export function fooBar() { } /home/src/tslibs/TS/Lib/tsc.js --b Output:: +tsconfig.json:6:13 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + tsconfig.json:11:9 - error TS1005: ',' expected. 11 "b.ts"    ~~~~~~ -Found 1 error. +Found 2 errors. @@ -192,7 +220,7 @@ declare module "b" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","9819159940-export function foo() { }export function fooBar() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"declaration":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12543119676-declare module \"a\" {\n export function foo(): void;\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","errors":true,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","9819159940-export function foo() { }export function fooBar() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"-12543119676-declare module \"a\" {\n export function foo(): void;\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -222,11 +250,24 @@ declare module "b" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "outSignature": "-12543119676-declare module \"a\" {\n export function foo(): void;\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", - "errors": true, "version": "FakeTSVersion", - "size": 965 + "size": 988 } @@ -238,13 +279,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --b Output:: +tsconfig.json:6:13 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + tsconfig.json:11:9 - error TS1005: ',' expected. 11 "b.ts"    ~~~~~~ -Found 1 error. +Found 2 errors. @@ -271,44 +317,15 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --b Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + -//// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","9819159940-export function foo() { }export function fooBar() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"declaration":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12543119676-declare module \"a\" {\n export function foo(): void;\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} -//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "../tslibs/ts/lib/lib.d.ts", - "./project/a.ts", - "./project/b.ts" - ], - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "9819159940-export function foo() { }export function fooBar() { }", - "./project/b.ts": "1045484683-export function bar() { }" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "outSignature": "-12543119676-declare module \"a\" {\n export function foo(): void;\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n", - "latestChangedDtsFile": "./outFile.d.ts", - "version": "FakeTSVersion", - "size": 951 -} - - -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js index 7c8da910feaa1..a16c343766c08 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js @@ -57,6 +57,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -66,7 +71,7 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error. +Found 2 errors. @@ -84,7 +89,7 @@ define("index", ["require", "exports", "ky"], function (require, exports, ky_1) //// [/home/src/workspaces/project/outFile.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./ky.d.ts","./src/index.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","10101889135-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;\n","-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n"],"root":[3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js","skipDefaultLibCheck":true,"skipLibCheck":true},"emitDiagnosticsPerFile":[[3,[{"start":34,"length":3,"messageText":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/ky\" but cannot be named.","category":1,"code":4023}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./ky.d.ts","./src/index.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","10101889135-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;\n","-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n"],"root":[3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js","skipDefaultLibCheck":true,"skipLibCheck":true},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[3,[{"start":34,"length":3,"messageText":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/ky\" but cannot be named.","category":1,"code":4023}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -111,6 +116,20 @@ define("index", ["require", "exports", "ky"], function (require, exports, ky_1) "skipDefaultLibCheck": true, "skipLibCheck": true }, + "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./ky.d.ts", + "not cached or not changed" + ], + [ + "./src/index.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./src/index.ts", @@ -126,7 +145,7 @@ define("index", ["require", "exports", "ky"], function (require, exports, ky_1) ] ], "version": "FakeTSVersion", - "size": 1094 + "size": 1131 } @@ -150,6 +169,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' ky.d.ts @@ -157,7 +181,7 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error. +Found 2 errors. diff --git a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js index e5e503461e7d2..91dc0a9777687 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js @@ -56,6 +56,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -67,7 +72,7 @@ src/index.ts [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. @@ -118,6 +123,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -129,7 +139,7 @@ src/index.ts [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. diff --git a/tests/baselines/reference/tsbuild/fileDelete/outFile/deleted-file-without-composite.js b/tests/baselines/reference/tsbuild/fileDelete/outFile/deleted-file-without-composite.js index 482dbfd1fc6a2..4672a8a05ce02 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/outFile/deleted-file-without-composite.js +++ b/tests/baselines/reference/tsbuild/fileDelete/outFile/deleted-file-without-composite.js @@ -48,6 +48,11 @@ Output:: Module resolution kind is not specified, using 'Classic'. File '/home/src/workspaces/solution/child/child2.ts' exists - use it as a name resolution result. ======== Module name '../child/child2' was successfully resolved to '/home/src/workspaces/solution/child/child2.ts'. ======== +child/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd" +   ~~~~~ + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' child/child2.ts @@ -55,6 +60,9 @@ child/child2.ts Matched by default include pattern '**/*' child/child.ts Matched by default include pattern '**/*' + +Found 1 error. + //// [/home/src/workspaces/solution/childResult.js] @@ -76,7 +84,7 @@ define("child", ["require", "exports", "child2"], function (require, exports, ch //// [/home/src/workspaces/solution/childResult.tsbuildinfo] -{"root":["./child/child.ts","./child/child2.ts"],"version":"FakeTSVersion"} +{"root":["./child/child.ts","./child/child2.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/solution/childResult.tsbuildinfo.readable.baseline.txt] { @@ -84,12 +92,13 @@ define("child", ["require", "exports", "child2"], function (require, exports, ch "./child/child.ts", "./child/child2.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 75 + "size": 89 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: delete child2 file @@ -101,7 +110,7 @@ Output:: [HH:MM:SS AM] Projects in this build: * child/tsconfig.json -[HH:MM:SS AM] Project 'child/tsconfig.json' is out of date because buildinfo file 'childResult.tsbuildinfo' indicates that file 'child/child2.ts' was root file of compilation but not any more. +[HH:MM:SS AM] Project 'child/tsconfig.json' is out of date because buildinfo file 'childResult.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/child/tsconfig.json'... @@ -113,10 +122,10 @@ File '/home/src/workspaces/solution/child/child2.d.ts' does not exist. File '/home/src/workspaces/solution/child/child2.js' does not exist. File '/home/src/workspaces/solution/child/child2.jsx' does not exist. ======== Module name '../child/child2' was not resolved. ======== -child/child.ts:1:24 - error TS2792: Cannot find module '../child/child2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +child/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 import { child2 } from "../child/child2"; -   ~~~~~~~~~~~~~~~~~ +4 "module": "amd" +   ~~~~~ ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' diff --git a/tests/baselines/reference/tsbuild/fileDelete/outFile/detects-deleted-file.js b/tests/baselines/reference/tsbuild/fileDelete/outFile/detects-deleted-file.js index 2dc516d8c7ea3..c0459fea5a1ea 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/outFile/detects-deleted-file.js +++ b/tests/baselines/reference/tsbuild/fileDelete/outFile/detects-deleted-file.js @@ -71,6 +71,11 @@ Output:: Module resolution kind is not specified, using 'Classic'. File '/home/src/workspaces/solution/child/child2.ts' exists - use it as a name resolution result. ======== Module name '../child/child2' was successfully resolved to '/home/src/workspaces/solution/child/child2.ts'. ======== +child/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' child/child2.ts @@ -122,12 +127,20 @@ File '/home/child.jsx' does not exist. File '/child.js' does not exist. File '/child.jsx' does not exist. ======== Module name 'child' was not resolved. ======== +main/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' childResult.d.ts Output from referenced project 'child/tsconfig.json' included because '--outFile' specified main/main.ts Matched by default include pattern '**/*' + +Found 2 errors. + //// [/home/src/workspaces/solution/childResult.js] @@ -158,7 +171,7 @@ declare module "child" { //// [/home/src/workspaces/solution/childResult.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./child/child2.ts","./child/child.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6507293504-export function child2() {\n}\n","-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./childResult.js"},"outSignature":"2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","latestChangedDtsFile":"./childResult.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./child/child2.ts","./child/child.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6507293504-export function child2() {\n}\n","-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./childResult.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","latestChangedDtsFile":"./childResult.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/childResult.tsbuildinfo.readable.baseline.txt] { @@ -187,10 +200,24 @@ declare module "child" { "module": 2, "outFile": "./childResult.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./child/child2.ts", + "not cached or not changed" + ], + [ + "./child/child.ts", + "not cached or not changed" + ] + ], "outSignature": "2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n", "latestChangedDtsFile": "./childResult.d.ts", "version": "FakeTSVersion", - "size": 968 + "size": 1005 } //// [/home/src/workspaces/solution/mainResult.js] @@ -211,7 +238,7 @@ declare module "main" { //// [/home/src/workspaces/solution/mainResult.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./childresult.d.ts","./main/main.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n"],"root":[3],"options":{"composite":true,"module":2,"outFile":"./mainResult.js"},"outSignature":"7955277823-declare module \"main\" {\n export function main(): void;\n}\n","latestChangedDtsFile":"./mainResult.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./childresult.d.ts","./main/main.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n"],"root":[3],"options":{"composite":true,"module":2,"outFile":"./mainResult.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"7955277823-declare module \"main\" {\n export function main(): void;\n}\n","latestChangedDtsFile":"./mainResult.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/mainResult.tsbuildinfo.readable.baseline.txt] { @@ -236,14 +263,28 @@ declare module "main" { "module": 2, "outFile": "./mainResult.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./childresult.d.ts", + "not cached or not changed" + ], + [ + "./main/main.ts", + "not cached or not changed" + ] + ], "outSignature": "7955277823-declare module \"main\" {\n export function main(): void;\n}\n", "latestChangedDtsFile": "./mainResult.d.ts", "version": "FakeTSVersion", - "size": 983 + "size": 1020 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: delete child2 file @@ -256,7 +297,7 @@ Output:: * child/tsconfig.json * main/tsconfig.json -[HH:MM:SS AM] Project 'child/tsconfig.json' is out of date because buildinfo file 'childResult.tsbuildinfo' indicates that file 'child/child2.ts' was root file of compilation but not any more. +[HH:MM:SS AM] Project 'child/tsconfig.json' is out of date because buildinfo file 'childResult.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/child/tsconfig.json'... @@ -268,16 +309,16 @@ File '/home/src/workspaces/solution/child/child2.d.ts' does not exist. File '/home/src/workspaces/solution/child/child2.js' does not exist. File '/home/src/workspaces/solution/child/child2.jsx' does not exist. ======== Module name '../child/child2' was not resolved. ======== -child/child.ts:1:24 - error TS2792: Cannot find module '../child/child2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +child/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 import { child2 } from "../child/child2"; -   ~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' child/child.ts Matched by default include pattern '**/*' -[HH:MM:SS AM] Project 'main/tsconfig.json' is out of date because output 'mainResult.tsbuildinfo' is older than input 'child' +[HH:MM:SS AM] Project 'main/tsconfig.json' is out of date because buildinfo file 'mainResult.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/solution/main/tsconfig.json'... @@ -321,6 +362,11 @@ File '/home/child.jsx' does not exist. File '/child.js' does not exist. File '/child.jsx' does not exist. ======== Module name 'child' was not resolved. ======== +main/tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' childResult.d.ts @@ -328,7 +374,7 @@ childResult.d.ts main/main.ts Matched by default include pattern '**/*' -Found 1 error. +Found 2 errors. @@ -350,7 +396,7 @@ declare module "child" { //// [/home/src/workspaces/solution/childResult.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./child/child.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n"],"root":[2],"options":{"composite":true,"module":2,"outFile":"./childResult.js"},"semanticDiagnosticsPerFile":[[2,[{"start":23,"length":17,"messageText":"Cannot find module '../child/child2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"outSignature":"8966811613-declare module \"child\" {\n export function child(): void;\n}\n","latestChangedDtsFile":"./childResult.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./child/child.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n"],"root":[2],"options":{"composite":true,"module":2,"outFile":"./childResult.js"},"semanticDiagnosticsPerFile":[1,2],"outSignature":"8966811613-declare module \"child\" {\n export function child(): void;\n}\n","latestChangedDtsFile":"./childResult.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/childResult.tsbuildinfo.readable.baseline.txt] { @@ -374,28 +420,24 @@ declare module "child" { "outFile": "./childResult.js" }, "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "./child/child.ts", - [ - { - "start": 23, - "length": 17, - "messageText": "Cannot find module '../child/child2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] + "not cached or not changed" ] ], "outSignature": "8966811613-declare module \"child\" {\n export function child(): void;\n}\n", "latestChangedDtsFile": "./childResult.d.ts", "version": "FakeTSVersion", - "size": 1079 + "size": 867 } //// [/home/src/workspaces/solution/mainResult.js] file written with same contents //// [/home/src/workspaces/solution/mainResult.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./childresult.d.ts","./main/main.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","8966811613-declare module \"child\" {\n export function child(): void;\n}\n","-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n"],"root":[3],"options":{"composite":true,"module":2,"outFile":"./mainResult.js"},"outSignature":"7955277823-declare module \"main\" {\n export function main(): void;\n}\n","latestChangedDtsFile":"./mainResult.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./childresult.d.ts","./main/main.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","8966811613-declare module \"child\" {\n export function child(): void;\n}\n","-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n"],"root":[3],"options":{"composite":true,"module":2,"outFile":"./mainResult.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"7955277823-declare module \"main\" {\n export function main(): void;\n}\n","latestChangedDtsFile":"./mainResult.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/mainResult.tsbuildinfo.readable.baseline.txt] { @@ -420,11 +462,25 @@ declare module "child" { "module": 2, "outFile": "./mainResult.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./childresult.d.ts", + "not cached or not changed" + ], + [ + "./main/main.ts", + "not cached or not changed" + ] + ], "outSignature": "7955277823-declare module \"main\" {\n export function main(): void;\n}\n", "latestChangedDtsFile": "./mainResult.d.ts", "version": "FakeTSVersion", - "size": 914 + "size": 951 } -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors-discrepancies.js b/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors-discrepancies.js index 9858bf4d0684b..e859968afda99 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors-discrepancies.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors-discrepancies.js @@ -8,6 +8,7 @@ CleanBuild: "./project/a.ts", "./project/b.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion" } @@ -17,6 +18,7 @@ IncrementalBuild: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion" } 15:: no-change-run @@ -30,6 +32,7 @@ CleanBuild: "./project/b.ts", "./project/c.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion" } diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors-with-incremental.js index e7ac3f1ec1788..6ccf068c0fb44 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors-with-incremental.js @@ -50,8 +50,13 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -205,6 +210,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -304,7 +317,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -335,10 +348,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -367,8 +388,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -390,14 +425,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -408,12 +440,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts" +] +Program options: { + "declaration": true, + "incremental": true, + "module": 2, + "outFile": "/home/src/workspaces/outFile.js", + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -457,8 +521,13 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -619,13 +688,18 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -654,6 +728,20 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -678,7 +766,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 998 + "size": 1035 } @@ -700,10 +788,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -725,6 +810,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -816,7 +909,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -831,10 +924,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -863,8 +964,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -886,14 +1001,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Add file with error @@ -907,14 +1019,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'c.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -943,7 +1055,7 @@ define("c", ["require", "exports"], function (require, exports) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -978,21 +1090,25 @@ define("c", ["require", "exports"], function (require, exports) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } //// [/home/src/workspaces/outFile.d.ts] @@ -1028,11 +1144,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1064,8 +1176,13 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +5 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -1220,6 +1337,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -1328,7 +1453,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -1343,10 +1468,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -1354,7 +1479,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1389,21 +1514,25 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -1427,11 +1556,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1466,10 +1591,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -1497,7 +1622,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors.js b/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors.js index fcbb3f0c1bd05..5d554bd98bff9 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/dts-errors.js @@ -49,10 +49,15 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. @@ -139,10 +144,15 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. @@ -190,6 +200,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -207,20 +225,8 @@ define("b", ["require", "exports"], function (require, exports) { }); -//// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"checkPending":true,"version":"FakeTSVersion"} - -//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./project/a.ts", - "./project/b.ts" - ], - "checkPending": true, - "version": "FakeTSVersion", - "size": 90 -} - +//// [/home/src/workspaces/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/workspaces/outFile.d.ts] declare module "a" { export const a = "hello"; @@ -253,7 +259,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -284,11 +290,19 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -296,8 +310,9 @@ Output:: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 70 + "size": 84 } //// [/home/src/workspaces/outFile.d.ts] file written with same contents @@ -319,14 +334,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -337,12 +349,47 @@ 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 '../outFile.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. +//// [/home/src/workspaces/outFile.js] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/home/src/workspaces/outFile.d.ts] file written with same contents -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts" +] +Program options: { + "declaration": true, + "module": 2, + "outFile": "/home/src/workspaces/outFile.js", + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -386,10 +433,15 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. @@ -493,10 +545,15 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. @@ -534,10 +591,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -559,6 +613,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -577,7 +639,7 @@ define("b", ["require", "exports"], function (require, exports) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"checkPending":true,"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"checkPending":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -585,9 +647,10 @@ define("b", ["require", "exports"], function (require, exports) { "./project/a.ts", "./project/b.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion", - "size": 90 + "size": 104 } //// [/home/src/workspaces/outFile.d.ts] file written with same contents @@ -614,7 +677,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -629,11 +692,19 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -641,8 +712,9 @@ Output:: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 70 + "size": 84 } //// [/home/src/workspaces/outFile.d.ts] file written with same contents @@ -664,14 +736,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Add file with error @@ -685,14 +754,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'c.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -767,11 +836,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -803,10 +868,15 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. @@ -896,6 +966,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -919,21 +997,8 @@ define("c", ["require", "exports"], function (require, exports) { }); -//// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts","./project/c.ts"],"checkPending":true,"version":"FakeTSVersion"} - -//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts" - ], - "checkPending": true, - "version": "FakeTSVersion", - "size": 107 -} - +//// [/home/src/workspaces/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents Program root files: [ @@ -960,7 +1025,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -975,10 +1040,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -1022,11 +1087,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1061,10 +1122,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -1095,11 +1156,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors-discrepancies.js b/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors-discrepancies.js index 9858bf4d0684b..e859968afda99 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors-discrepancies.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors-discrepancies.js @@ -8,6 +8,7 @@ CleanBuild: "./project/a.ts", "./project/b.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion" } @@ -17,6 +18,7 @@ IncrementalBuild: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion" } 15:: no-change-run @@ -30,6 +32,7 @@ CleanBuild: "./project/b.ts", "./project/c.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion" } diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors-with-incremental.js index f61c8f26744cb..272860dfe5d74 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors-with-incremental.js @@ -40,6 +40,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -139,7 +147,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -173,6 +181,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -258,7 +274,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -289,10 +305,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -321,8 +345,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -344,14 +382,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -362,12 +397,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts" +] +Program options: { + "declaration": true, + "incremental": true, + "module": 2, + "outFile": "/home/src/workspaces/outFile.js", + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -401,6 +468,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -486,7 +561,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -517,10 +592,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -528,7 +603,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11705693502-export const a: number = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11705693502-export const a: number = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -558,21 +633,21 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 837 + "size": 722 } @@ -594,10 +669,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -619,6 +691,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -704,7 +784,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -719,10 +799,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -751,8 +839,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -774,14 +876,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Add file with error @@ -795,14 +894,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'c.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -843,7 +942,7 @@ declare module "c" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -878,21 +977,25 @@ declare module "c" { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -916,11 +1019,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -942,6 +1041,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -1041,7 +1148,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Fix `a` error with noCheck @@ -1059,6 +1166,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -1158,7 +1273,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -1173,10 +1288,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -1184,7 +1299,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1219,21 +1334,25 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -1257,11 +1376,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1296,10 +1411,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -1327,7 +1442,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors.js b/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors.js index dd33c43127ba5..b6360482a8884 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/semantic-errors.js @@ -39,6 +39,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -66,7 +74,7 @@ declare module "b" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"checkPending":true,"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"checkPending":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -74,9 +82,10 @@ declare module "b" { "./project/a.ts", "./project/b.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion", - "size": 90 + "size": 104 } @@ -102,7 +111,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -136,6 +145,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -173,7 +190,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -204,12 +221,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -217,8 +242,9 @@ Output:: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 70 + "size": 84 } @@ -239,14 +265,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -257,12 +280,47 @@ 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 '../outFile.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. +//// [/home/src/workspaces/outFile.js] file written with same contents +//// [/home/src/workspaces/outFile.d.ts] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts" +] +Program options: { + "declaration": true, + "module": 2, + "outFile": "/home/src/workspaces/outFile.js", + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -296,6 +354,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -309,7 +375,7 @@ declare module "b" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"checkPending":true,"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"checkPending":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -317,9 +383,10 @@ declare module "b" { "./project/a.ts", "./project/b.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion", - "size": 90 + "size": 104 } @@ -345,7 +412,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -376,10 +443,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -420,10 +487,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -445,6 +509,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -458,7 +530,7 @@ declare module "b" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"checkPending":true,"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"checkPending":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -466,9 +538,10 @@ declare module "b" { "./project/a.ts", "./project/b.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion", - "size": 90 + "size": 104 } @@ -494,7 +567,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -509,12 +582,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -522,8 +603,9 @@ Output:: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 70 + "size": 84 } @@ -544,14 +626,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Add file with error @@ -565,14 +644,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'c.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -647,11 +726,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -673,6 +748,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -689,7 +772,7 @@ declare module "c" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts","./project/c.ts"],"checkPending":true,"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts","./project/c.ts"],"errors":true,"checkPending":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -698,9 +781,10 @@ declare module "c" { "./project/b.ts", "./project/c.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion", - "size": 107 + "size": 121 } @@ -728,7 +812,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Fix `a` error with noCheck @@ -746,6 +830,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -788,7 +880,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -803,10 +895,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -850,11 +942,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -889,10 +977,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -923,11 +1011,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors-discrepancies.js b/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors-discrepancies.js index 9858bf4d0684b..e859968afda99 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors-discrepancies.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors-discrepancies.js @@ -8,6 +8,7 @@ CleanBuild: "./project/a.ts", "./project/b.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion" } @@ -17,6 +18,7 @@ IncrementalBuild: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion" } 15:: no-change-run @@ -30,6 +32,7 @@ CleanBuild: "./project/b.ts", "./project/c.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion" } diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors-with-incremental.js index 48f3e4dac129a..2eba32763e7a9 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors-with-incremental.js @@ -181,6 +181,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -272,7 +280,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -303,10 +311,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -335,8 +351,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -358,14 +388,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -376,12 +403,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts" +] +Program options: { + "declaration": true, + "incremental": true, + "module": 2, + "outFile": "/home/src/workspaces/outFile.js", + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -644,6 +703,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -735,7 +802,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -750,10 +817,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -782,8 +857,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -805,14 +894,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Add file with error @@ -826,14 +912,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'c.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -874,7 +960,7 @@ declare module "c" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -909,21 +995,25 @@ declare module "c" { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -947,11 +1037,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1107,6 +1193,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -1215,7 +1309,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -1230,10 +1324,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -1241,7 +1335,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1276,21 +1370,25 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -1314,11 +1412,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1353,10 +1447,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ Found 1 error. @@ -1384,7 +1478,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors.js b/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors.js index df224cb5d6208..bfb5962318e77 100644 --- a/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors.js +++ b/tests/baselines/reference/tsbuild/noCheck/outFile/syntax-errors.js @@ -145,6 +145,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -163,20 +171,8 @@ define("b", ["require", "exports"], function (require, exports) { //// [/home/src/workspaces/outFile.d.ts] file written with same contents -//// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"checkPending":true,"version":"FakeTSVersion"} - -//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./project/a.ts", - "./project/b.ts" - ], - "checkPending": true, - "version": "FakeTSVersion", - "size": 90 -} - +//// [/home/src/workspaces/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ "/home/src/workspaces/project/a.ts", @@ -200,7 +196,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -231,12 +227,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -244,8 +248,9 @@ Output:: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 70 + "size": 84 } @@ -266,14 +271,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -284,12 +286,47 @@ 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 '../outFile.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. +//// [/home/src/workspaces/outFile.js] file written with same contents +//// [/home/src/workspaces/outFile.d.ts] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/workspaces/project/a.ts", + "/home/src/workspaces/project/b.ts" +] +Program options: { + "declaration": true, + "module": 2, + "outFile": "/home/src/workspaces/outFile.js", + "tscBuild": true, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/workspaces/project/a.ts +/home/src/workspaces/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -484,6 +521,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -503,7 +548,7 @@ define("b", ["require", "exports"], function (require, exports) { //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"checkPending":true,"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"checkPending":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -511,9 +556,10 @@ define("b", ["require", "exports"], function (require, exports) { "./project/a.ts", "./project/b.ts" ], + "errors": true, "checkPending": true, "version": "FakeTSVersion", - "size": 90 + "size": 104 } @@ -539,7 +585,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -554,12 +600,20 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts"],"version":"FakeTSVersion"} +{"root":["./project/a.ts","./project/b.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -567,8 +621,9 @@ Output:: "./project/a.ts", "./project/b.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 70 + "size": 84 } @@ -589,14 +644,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Add file with error @@ -610,14 +662,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'c.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -692,11 +744,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -809,6 +857,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.js] @@ -833,21 +889,8 @@ define("c", ["require", "exports"], function (require, exports) { //// [/home/src/workspaces/outFile.d.ts] file written with same contents -//// [/home/src/workspaces/outFile.tsbuildinfo] -{"root":["./project/a.ts","./project/b.ts","./project/c.ts"],"checkPending":true,"version":"FakeTSVersion"} - -//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts" - ], - "checkPending": true, - "version": "FakeTSVersion", - "size": 107 -} - +//// [/home/src/workspaces/outFile.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ "/home/src/workspaces/project/a.ts", @@ -873,7 +916,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with checking @@ -888,10 +931,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -935,11 +978,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -974,10 +1013,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -1008,11 +1047,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-composite.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-composite.js index d2b9ecd537355..aca35ce903e0d 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-composite.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-composite.js @@ -60,10 +60,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -141,7 +141,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -185,24 +185,39 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } @@ -221,10 +236,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -239,10 +262,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error but still noEmit @@ -262,33 +293,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -Found 2 errors. +Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -331,73 +347,13 @@ Found 2 errors. "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] + "changeFileSet": [ + "./project/src/class.ts" ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", - "pendingEmit": [ - "Js | Dts", - false - ], "version": "FakeTSVersion", - "size": 2613 + "size": 1822 } @@ -421,10 +377,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -433,7 +389,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -477,24 +433,39 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } @@ -513,10 +484,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -539,10 +510,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -557,10 +536,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -575,10 +562,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -606,33 +593,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -707,7 +674,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -751,68 +718,39 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2595 + "size": 1849 } @@ -831,33 +769,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +5 "module": "amd" +   ~~~~~ -2 new indirectClass().classC.prop; -   ~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -877,28 +795,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors. +Found 1 error. @@ -918,28 +821,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors. +Found 1 error. @@ -959,33 +847,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +5 "module": "amd" +   ~~~~~ -2 new indirectClass().classC.prop; -   ~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -1010,10 +878,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1056,33 +932,17 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] + "changeFileSet": [ + "./project/src/class.ts" ], "outSignature": "-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", - "pendingEmit": [ - "Js | DtsEmit", - 17 - ], "version": "FakeTSVersion", - "size": 2034 + "size": 1822 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1097,10 +957,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -1178,7 +1038,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1222,24 +1082,39 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } @@ -1258,10 +1133,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -1276,10 +1159,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1294,10 +1185,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js index a077d50fea902..e3b8cfca0d7e1 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js @@ -61,10 +61,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ Found 1 error. @@ -142,7 +142,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -186,22 +186,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -220,10 +235,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -238,10 +261,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error but still noEmit @@ -261,33 +292,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +6 "module": "amd" +   ~~~~~ -Found 2 errors. +Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -330,71 +346,11 @@ Found 2 errors. "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | Dts", - false + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 2064 + "size": 1273 } @@ -418,10 +374,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ Found 1 error. @@ -431,7 +387,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -475,22 +431,37 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -509,10 +480,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ Found 1 error. @@ -535,10 +506,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -553,10 +532,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -571,10 +558,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ Found 1 error. @@ -602,33 +589,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +6 "module": "amd" +   ~~~~~ -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -703,7 +670,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -747,66 +714,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2044 + "size": 1298 } @@ -825,33 +763,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +6 "module": "amd" +   ~~~~~ -2 new indirectClass().classC.prop; -   ~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -871,28 +789,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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; -   ~~~~ +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +6 "module": "amd" +   ~~~~~ -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors. +Found 1 error. @@ -912,28 +815,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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; -   ~~~~ +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +6 "module": "amd" +   ~~~~~ -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors. +Found 1 error. @@ -953,33 +841,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +6 "module": "amd" +   ~~~~~ -2 new indirectClass().classC.prop; -   ~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -1004,10 +872,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1050,31 +926,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 1483 + "size": 1271 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1089,10 +949,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ Found 1 error. @@ -1170,7 +1030,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1214,22 +1074,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -1248,10 +1123,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -1266,10 +1149,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1284,10 +1175,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js index 8f2ad2d8b8510..10dac7542edd4 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js @@ -60,10 +60,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -121,7 +121,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -164,22 +164,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -198,10 +213,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -216,10 +239,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error but still noEmit @@ -239,33 +270,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -Found 2 errors. +Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -307,71 +323,11 @@ Found 2 errors. "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 2045 + "size": 1254 } @@ -395,10 +351,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -407,7 +363,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -450,22 +406,37 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -484,10 +455,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -510,10 +481,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -528,10 +507,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -546,10 +533,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -577,33 +564,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -658,7 +625,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -701,66 +668,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2025 + "size": 1279 } @@ -779,33 +717,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +5 "module": "amd" +   ~~~~~ -2 new indirectClass().classC.prop; -   ~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -825,28 +743,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors. +Found 1 error. @@ -866,28 +769,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors. +Found 1 error. @@ -907,33 +795,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +5 "module": "amd" +   ~~~~~ -2 new indirectClass().classC.prop; -   ~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -958,10 +826,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1003,31 +879,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 1467 + "size": 1252 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1042,10 +902,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -1103,7 +963,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1146,22 +1006,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -1180,10 +1055,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -1198,10 +1081,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1216,10 +1107,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-composite.js index 37a94e14df5df..cba73748f6d41 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-composite.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-composite.js @@ -60,10 +60,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[1,2,4,3,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -106,31 +114,21 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/directuse.ts", + "./project/src/indirectclass.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" ], "version": "FakeTSVersion", - "size": 1481 + "size": 1281 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -145,10 +143,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -156,7 +154,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -200,24 +198,39 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } //// [/home/src/workspaces/outFile.js] @@ -311,38 +324,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -386,68 +379,39 @@ Found 3 errors. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2595 + "size": 1849 } //// [/home/src/workspaces/outFile.js] @@ -541,10 +505,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -587,33 +559,17 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] + "changeFileSet": [ + "./project/src/class.ts" ], "outSignature": "-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", - "pendingEmit": [ - "Js | DtsEmit", - 17 - ], "version": "FakeTSVersion", - "size": 2034 + "size": 1822 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -628,10 +584,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -639,7 +595,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -683,24 +639,39 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } //// [/home/src/workspaces/outFile.js] diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js index 2df30dd3a279b..ff4b44068dc7d 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js @@ -61,10 +61,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[1,2,4,3,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -107,31 +115,21 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/directuse.ts", + "./project/src/indirectclass.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" ], "version": "FakeTSVersion", - "size": 1483 + "size": 1283 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -146,10 +144,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ Found 1 error. @@ -157,7 +155,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -201,22 +199,37 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } //// [/home/src/workspaces/outFile.js] @@ -310,38 +323,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +6 "module": "amd" +   ~~~~~ -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -385,66 +378,37 @@ Found 3 errors. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2044 + "size": 1298 } //// [/home/src/workspaces/outFile.js] @@ -538,10 +502,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -584,31 +556,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 1483 + "size": 1271 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -623,10 +579,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ Found 1 error. @@ -634,7 +590,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -678,22 +634,37 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } //// [/home/src/workspaces/outFile.js] diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js index 9d81185e29c7b..c03f1c0eed7f8 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js @@ -60,10 +60,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[1,2,4,3,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -105,31 +113,21 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/directuse.ts", + "./project/src/indirectclass.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" ], "version": "FakeTSVersion", - "size": 1467 + "size": 1264 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -144,10 +142,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -155,7 +153,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -198,22 +196,37 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } //// [/home/src/workspaces/outFile.js] @@ -287,38 +300,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -361,66 +354,37 @@ Found 3 errors. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2025 + "size": 1279 } //// [/home/src/workspaces/outFile.js] @@ -494,10 +458,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -539,31 +511,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 1467 + "size": 1252 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -578,10 +534,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ Found 1 error. @@ -589,7 +545,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -632,22 +588,37 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } //// [/home/src/workspaces/outFile.js] diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-incremental-as-modules-discrepancies.js b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-incremental-as-modules-discrepancies.js index 5639fd1e7b940..7a7a540bcded3 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-incremental-as-modules-discrepancies.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-incremental-as-modules-discrepancies.js @@ -53,53 +53,4 @@ IncrementalBuild: 7:: With declaration and declarationMap noEmit Clean build will have declaration and declarationMap Incremental build will have previous buildInfo so will have declaration and declarationMap -TsBuild info text without affectedFilesPendingEmit:: /home/src/projects/outfile.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-9483521475-export const a = class { public p = 10; };", - "./project/b.ts": "-13368947479-export const b = 10;" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "declaration": true, - "declarationMap": true, - "module": 2, - "outFile": "./outFile.js" - }, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-9483521475-export const a = class { public p = 10; };", - "./project/b.ts": "-13368947479-export const b = 10;" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "version": "FakeTSVersion" -} \ No newline at end of file +*** Supplied discrepancy explanation but didnt find any difference \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js index 468c246fa4547..5919e2af67c87 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js @@ -39,10 +39,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -70,12 +78,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 693 + "size": 697 } @@ -97,14 +106,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -115,12 +121,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + + +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: With declaration enabled noEmit - Should report errors @@ -131,19 +169,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -151,7 +184,7 @@ Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -180,35 +213,13 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 716 } @@ -231,7 +242,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -250,15 +261,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -266,7 +272,7 @@ Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":49,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -296,35 +302,13 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit | DtsMap", - 49 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1037 + "size": 738 } @@ -348,7 +332,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -363,12 +347,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Dts Emit with error @@ -393,13 +409,18 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -428,6 +449,20 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -452,7 +487,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 998 + "size": 1035 } //// [/home/src/projects/outFile.js] @@ -494,7 +529,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -512,14 +547,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -547,9 +590,8 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", "size": 692 @@ -574,14 +616,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: With declaration enabled noEmit @@ -592,14 +631,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -628,12 +675,11 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 708 + "size": 711 } @@ -656,11 +702,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: With declaration and declarationMap noEmit @@ -671,9 +717,81 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + +//// [/home/src/projects/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} +//// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-9483521475-export const a = class { public p = 10; };", + "./project/b.ts": "-13368947479-export const b = 10;" + }, + "root": [ + [ + 2, + "./project/a.ts" + ], + [ + 3, + "./project/b.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true, + "module": 2, + "outFile": "./outFile.js" + }, + "changeFileSet": [ + "./project/a.ts" + ], + "version": "FakeTSVersion", + "size": 733 +} + + +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "declaration": true, + "declarationMap": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts + +No cached semantic diagnostics in the builder:: -exitCode:: ExitStatus.Success +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-multiple-files.js b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-multiple-files.js index 9f34ed3460a73..063b9b86b1cb9 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-multiple-files.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-multiple-files.js @@ -45,10 +45,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,4,5,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -84,12 +92,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts", + "./project/d.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 845 + "size": 853 } @@ -115,16 +126,11 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts -/home/src/projects/project/c.ts -/home/src/projects/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -135,12 +141,48 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts", + "/home/src/projects/project/c.ts", + "/home/src/projects/project/d.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +/home/src/projects/project/c.ts +/home/src/projects/project/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: With declaration enabled noEmit - Should report errors @@ -151,47 +193,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/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 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. - -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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - c.ts:1:14 - 1 export const c = class { private p = 10; }; -    ~ - Add a type annotation to the variable c. - -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 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. +4 "module": "amd", +   ~~~~~ -Found 3 errors. +Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]],[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,4,5,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -228,77 +245,15 @@ Found 3 errors. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable c.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts", + "./project/d.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1725 + "size": 872 } @@ -325,7 +280,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -344,43 +299,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. - -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +4 "module": "amd", +   ~~~~~ -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - 1 export const c = class { private p = 10; }; -    ~ - Add a type annotation to the variable c. -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 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. - - -Found 3 errors. +Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]],[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":49,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,4,5,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -418,77 +348,15 @@ Found 3 errors. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable c.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit | DtsMap", - 49 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts", + "./project/d.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1747 + "size": 894 } @@ -516,7 +384,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -531,12 +399,48 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts", + "/home/src/projects/project/c.ts", + "/home/src/projects/project/d.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +/home/src/projects/project/c.ts +/home/src/projects/project/d.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Dts Emit with error @@ -581,13 +485,18 @@ Output::    ~ Add a type annotation to the variable d. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 3 errors. +4 "module": "amd", +   ~~~~~ + + +Found 4 errors. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]],[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]],[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -624,6 +533,28 @@ Found 3 errors. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -690,7 +621,7 @@ Found 3 errors. ] ], "version": "FakeTSVersion", - "size": 1708 + "size": 1749 } //// [/home/src/projects/outFile.js] @@ -758,7 +689,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -776,14 +707,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -819,9 +758,8 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", "size": 844 @@ -850,16 +788,11 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts -/home/src/projects/project/c.ts -/home/src/projects/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: With declaration enabled noEmit @@ -870,37 +803,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates there is change in compilerOptions +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c = class { private p = 10; }; -   ~ - - c.ts:1:14 - 1 export const c = class { private p = 10; }; -    ~ - Add a type annotation to the variable c. - -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 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. +4 "module": "amd", +   ~~~~~ -Found 2 errors. +Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -937,56 +855,11 @@ Found 2 errors. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable c.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 1445 + "size": 863 } @@ -1013,7 +886,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1032,33 +905,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -c.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c = class { private p = 10; }; -   ~ +4 "module": "amd", +   ~~~~~ - c.ts:1:14 - 1 export const c = class { private p = 10; }; -    ~ - Add a type annotation to the variable c. - -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 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. - - -Found 2 errors. +Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":49,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1096,56 +954,11 @@ Found 2 errors. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable c.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit | DtsMap", - 49 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 1467 + "size": 885 } @@ -1173,7 +986,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1195,15 +1008,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - d.ts:1:14 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -1211,7 +1019,7 @@ Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-15184115393-export const c = class { public p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":49,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-15184115393-export const c = class { public p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,4],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1249,35 +1057,12 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit | DtsMap", - 49 + "changeFileSet": [ + "./project/a.ts", + "./project/c.ts" ], "version": "FakeTSVersion", - "size": 1187 + "size": 886 } @@ -1305,12 +1090,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts -/home/src/projects/project/c.ts -/home/src/projects/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-incremental-as-modules-discrepancies.js b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-incremental-as-modules-discrepancies.js new file mode 100644 index 0000000000000..c31c43cffeb6f --- /dev/null +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-incremental-as-modules-discrepancies.js @@ -0,0 +1,103 @@ +7:: no-change-run +*** Needs explanation +Incremental build contains ./project/a.ts file has emit errors, clean build does not have errors or does not mark is as pending emit: /home/src/projects/outfile.tsbuildinfo.readable.baseline.txt:: +Incremental buildInfoText:: { + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-9502176711-export const a = class { private p = 10; };", + "./project/b.ts": "-13368947479-export const b = 10;" + }, + "root": [ + [ + 2, + "./project/a.ts" + ], + [ + 3, + "./project/b.ts" + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], + "emitDiagnosticsPerFile": [ + [ + "./project/a.ts", + [ + { + "start": 13, + "length": 1, + "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", + "category": 1, + "code": 4094, + "relatedInformation": [ + { + "start": 13, + "length": 1, + "messageText": "Add a type annotation to the variable a.", + "category": 1, + "code": 9027 + } + ] + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 1035 +} +Clean buildInfoText:: { + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-9502176711-export const a = class { private p = 10; };", + "./project/b.ts": "-13368947479-export const b = 10;" + }, + "root": [ + [ + 2, + "./project/a.ts" + ], + [ + 3, + "./project/b.ts" + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" + ], + "version": "FakeTSVersion", + "size": 716 +} \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-incremental-as-modules.js index accc40a0a3935..fddf6ae22e533 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-with-incremental-as-modules.js @@ -40,15 +40,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -56,7 +51,7 @@ Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -85,35 +80,13 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 716 } @@ -136,10 +109,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -158,15 +128,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -193,7 +158,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -215,10 +180,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -247,12 +220,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 694 + "size": 701 } @@ -275,14 +249,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -293,12 +264,45 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + + +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "declaration": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit after fixing error @@ -309,14 +313,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -345,8 +357,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } //// [/home/src/projects/outFile.js] @@ -392,11 +418,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -407,12 +433,45 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + + +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "declaration": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error @@ -426,19 +485,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -446,7 +500,7 @@ Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -475,35 +529,11 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 712 } @@ -526,10 +556,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -558,13 +585,18 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -593,6 +625,20 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -617,7 +663,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 998 + "size": 1035 } //// [/home/src/projects/outFile.js] @@ -659,7 +705,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -678,15 +724,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -713,7 +754,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js index 990b2ff3c0dcb..74533959dac20 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js @@ -39,10 +39,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -70,12 +78,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 693 + "size": 697 } @@ -97,14 +106,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -115,12 +121,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Fix error @@ -134,14 +172,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -169,12 +215,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -196,14 +243,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -214,12 +258,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + + +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit after fixing error @@ -230,14 +306,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -265,8 +349,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -302,11 +400,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -317,12 +415,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error @@ -336,14 +466,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -371,9 +509,8 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", "size": 693 @@ -398,14 +535,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit when error @@ -416,14 +550,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -451,8 +593,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 673 + "size": 710 } //// [/home/src/projects/outFile.js] @@ -493,11 +649,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -508,9 +664,41 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/semantic-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsbuild/noEmit/outFile/semantic-errors-with-incremental-as-modules.js index 7ecd2f6978625..f16f138b4c510 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/semantic-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/semantic-errors-with-incremental-as-modules.js @@ -39,10 +39,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -50,7 +50,7 @@ Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -78,26 +78,13 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 837 + "size": 689 } @@ -119,10 +106,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -141,10 +125,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -170,7 +154,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -192,10 +176,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -223,12 +215,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -250,14 +243,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -268,12 +258,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit after fixing error @@ -284,14 +306,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -319,8 +349,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -356,11 +400,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -371,12 +415,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + + + + +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error @@ -390,14 +466,14 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -405,7 +481,7 @@ Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -433,26 +509,11 @@ Found 1 error. "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 837 + "size": 685 } @@ -474,10 +535,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -496,10 +554,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -507,7 +565,7 @@ Found 1 error. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -536,21 +594,21 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 817 + "size": 702 } //// [/home/src/projects/outFile.js] file written with same contents @@ -572,7 +630,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -591,10 +649,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -620,7 +678,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/syntax-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsbuild/noEmit/outFile/syntax-errors-with-incremental-as-modules.js index 5357ede56a5d0..1057c3a035d98 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/syntax-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/syntax-errors-with-incremental-as-modules.js @@ -176,10 +176,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -207,12 +215,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -234,14 +243,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -252,12 +258,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + + +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit after fixing error @@ -268,14 +306,22 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -303,8 +349,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -340,11 +400,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -355,12 +415,44 @@ 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 '../outFile.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/home/src/projects/project/a.ts", + "/home/src/projects/project/b.ts" +] +Program options: { + "outFile": "/home/src/projects/outFile.js", + "module": 2, + "incremental": true, + "noEmit": true, + "tscBuild": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/projects/project/a.ts +/home/src/projects/project/b.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error @@ -374,7 +466,7 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-declaration-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-declaration-with-incremental.js index e27041cdcc1b4..6d65f93f39b08 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-declaration-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-declaration-with-incremental.js @@ -51,15 +51,10 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -67,7 +62,7 @@ Found 1 error. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"emitDiagnosticsPerFile":[[3,[{"start":53,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":53,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -102,35 +97,13 @@ Found 1 error. "noEmitOnError": true, "outFile": "./dev-build.js" }, - "emitDiagnosticsPerFile": [ - [ - "./noemitonerror/src/main.ts", - [ - { - "start": 53, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 53, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], "pendingEmit": [ - "Js | DtsEmit", - 17 + "Js | Dts", + false ], + "errors": true, "version": "FakeTSVersion", - "size": 1234 + "size": 945 } @@ -178,15 +151,10 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -239,10 +207,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -277,51 +253,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 903 + "size": 937 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { - export const a: { - new (): { - p: number; - }; - }; -} -declare module "src/other" { - export {}; -} - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -352,7 +292,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -363,9 +303,44 @@ 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.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "incremental": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-declaration.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-declaration.js index 43631105c5984..38c1815b13046 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-declaration.js @@ -50,15 +50,10 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -124,15 +119,10 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ Found 1 error. @@ -190,63 +180,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { - export const a: { - new (): { - p: number; - }; - }; -} -declare module "src/other" { - export {}; -} - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -276,7 +221,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -287,9 +232,49 @@ 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.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents -exitCode:: ExitStatus.Success +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-incremental.js index 037ab8916250e..9ef1c63913944 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors-with-incremental.js @@ -50,33 +50,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -110,8 +95,13 @@ define("src/other", ["require", "exports"], function (require, exports) { "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 892 + "size": 926 } @@ -143,7 +133,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -154,12 +144,46 @@ 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.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + + +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "incremental": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +Semantic diagnostics in builder refreshed for:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Fix error @@ -175,15 +199,22 @@ 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.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + -//// [/user/username/projects/dev-build.js] file written with same contents //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -217,8 +248,13 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 884 + "size": 918 } @@ -250,7 +286,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -261,9 +297,43 @@ 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.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + + + + +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "incremental": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +Semantic diagnostics in builder refreshed for:: +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors.js index 1749492ea84fd..82d4752d1bba9 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/dts-errors.js @@ -49,33 +49,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} +{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -84,8 +69,9 @@ define("src/other", ["require", "exports"], function (require, exports) { "./noemitonerror/src/main.ts", "./noemitonerror/src/other.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 134 + "size": 148 } @@ -116,7 +102,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -127,12 +113,51 @@ 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.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents + +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Fix error @@ -148,13 +173,20 @@ 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.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + -//// [/user/username/projects/dev-build.js] file written with same contents //// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -185,7 +217,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -196,9 +228,48 @@ 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.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents + +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-declaration-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-declaration-with-incremental.js index 51a983dd14dde..955fc8f9629b9 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-declaration-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-declaration-with-incremental.js @@ -55,8 +55,13 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. @@ -168,8 +173,13 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -218,10 +228,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -256,39 +274,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 895 + "size": 929 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -319,7 +313,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -330,9 +324,44 @@ 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.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "incremental": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-declaration.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-declaration.js index e7dddf6eaf83d..fbd78fb48c6a9 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-declaration.js @@ -54,8 +54,13 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -123,8 +128,13 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. @@ -178,51 +188,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -252,7 +229,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -263,9 +240,49 @@ 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.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents + +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-incremental.js index 966a72bbddf4c..0d80588b62c85 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors-with-incremental.js @@ -54,8 +54,13 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. @@ -165,8 +170,13 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -214,10 +224,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -251,27 +269,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 876 + "size": 910 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -301,7 +307,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -312,9 +318,43 @@ 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.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "incremental": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors.js index 3f49f32e38cfa..278dd2b2ff77c 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/semantic-errors.js @@ -53,8 +53,13 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -121,8 +126,13 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. @@ -175,39 +185,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -236,7 +225,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -247,9 +236,48 @@ 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.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents -exitCode:: ExitStatus.Success +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-declaration-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-declaration-with-incremental.js index 3fb01e5f53e1b..1b2399b57b703 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-declaration-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-declaration-with-incremental.js @@ -58,8 +58,13 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. @@ -158,8 +163,13 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -210,10 +220,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -248,41 +266,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 904 + "size": 938 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -313,7 +305,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -324,9 +316,44 @@ 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.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "incremental": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-declaration.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-declaration.js index a990242f50e9b..0a6ade00a5341 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-declaration.js @@ -57,8 +57,13 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -126,8 +131,13 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. @@ -183,53 +193,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -259,7 +234,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -270,9 +245,49 @@ 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.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +Found 1 error. + + + +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents + +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts +No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-incremental.js index 3d7a1e5b9ca17..5a7b166e6b876 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors-with-incremental.js @@ -57,8 +57,13 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. @@ -155,8 +160,13 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -206,10 +216,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -243,29 +261,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 885 + "size": 919 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -295,7 +299,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -306,9 +310,43 @@ 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.tsbuildinfo' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. -exitCode:: ExitStatus.Success +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "incremental": true, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors.js index 5ff22472e468e..09b9aff40858d 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/outFile/syntax-errors.js @@ -56,8 +56,13 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error. +4 "module": "amd", +   ~~~~~ + + +Found 2 errors. @@ -124,8 +129,13 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error. + +Found 2 errors. @@ -180,41 +190,18 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. + -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -243,7 +230,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -254,9 +241,48 @@ 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.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error. +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents -exitCode:: ExitStatus.Success +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "noEmitOnError": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +No shapes updated in the builder:: + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js index 6c94df77fa760..1068aac301d94 100644 --- a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js +++ b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js @@ -139,14 +139,62 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/first/tsconfig.json'... +first/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +first/tsconfig.json:4:24 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +4 "composite": true, "module": "none", +   ~~~~~~~~ + +first/tsconfig.json:4:34 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "composite": true, "module": "none", +   ~~~~~~ + [HH:MM:SS AM] Project 'second/tsconfig.json' is out of date because output file 'second/tsconfig.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/solution/second/tsconfig.json'... +second/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +second/tsconfig.json:4:24 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +4 "composite": true, "module": "none", +   ~~~~~~~~ + +second/tsconfig.json:4:34 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "composite": true, "module": "none", +   ~~~~~~ + [HH:MM:SS AM] Project 'third/tsconfig.json' is out of date because output file 'third/tsconfig.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/solution/third/tsconfig.json'... +third/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +third/tsconfig.json:4:24 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +4 "composite": true, "module": "none", +   ~~~~~~~~ + +third/tsconfig.json:4:34 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "composite": true, "module": "none", +   ~~~~~~ + + +Found 9 errors. + //// [/home/src/workspaces/solution/first/first_PART1.js.map] @@ -200,7 +248,7 @@ declare function f(): string; //# sourceMappingURL=first_part3.d.ts.map //// [/home/src/workspaces/solution/first/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","signature":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},{"version":"6007494133-console.log(f());\n","signature":"5381-","affectsGlobalScope":true},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","signature":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"latestChangedDtsFile":"./first_part3.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","signature":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},{"version":"6007494133-console.log(f());\n","signature":"5381-","affectsGlobalScope":true},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","signature":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./first_part3.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/first/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -274,9 +322,27 @@ declare function f(): string; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./first_part1.ts", + "not cached or not changed" + ], + [ + "./first_part2.ts", + "not cached or not changed" + ], + [ + "./first_part3.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./first_part3.d.ts", "version": "FakeTSVersion", - "size": 1403 + "size": 1442 } //// [/home/src/workspaces/solution/second/second_part1.js.map] @@ -326,7 +392,7 @@ declare class C { //# sourceMappingURL=second_part2.d.ts.map //// [/home/src/workspaces/solution/second/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","signature":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","signature":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"latestChangedDtsFile":"./second_part2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","signature":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","signature":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./second_part2.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/second/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -387,9 +453,23 @@ declare class C { "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./second_part1.ts", + "not cached or not changed" + ], + [ + "./second_part2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./second_part2.d.ts", "version": "FakeTSVersion", - "size": 1279 + "size": 1316 } //// [/home/src/workspaces/solution/third/third_part1.js.map] @@ -408,7 +488,7 @@ declare var c: C; //# sourceMappingURL=third_part1.d.ts.map //// [/home/src/workspaces/solution/third/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true},{"version":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true},{"version":"7305100057-var c = new C();\nc.doSomething();\n","signature":"1894672131-declare var c: C;\n","affectsGlobalScope":true}],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"latestChangedDtsFile":"./third_part1.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true},{"version":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true},{"version":"7305100057-var c = new C();\nc.doSomething();\n","signature":"1894672131-declare var c: C;\n","affectsGlobalScope":true}],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"latestChangedDtsFile":"./third_part1.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/solution/third/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -499,10 +579,40 @@ declare var c: C; "strict": false, "target": 1 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../first/first_part1.d.ts", + "not cached or not changed" + ], + [ + "../first/first_part2.d.ts", + "not cached or not changed" + ], + [ + "../first/first_part3.d.ts", + "not cached or not changed" + ], + [ + "../second/second_part1.d.ts", + "not cached or not changed" + ], + [ + "../second/second_part2.d.ts", + "not cached or not changed" + ], + [ + "./third_part1.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./third_part1.d.ts", "version": "FakeTSVersion", - "size": 1581 + "size": 1626 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes-discrepancies.js b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes-discrepancies.js new file mode 100644 index 0000000000000..a4c8e54197d92 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes-discrepancies.js @@ -0,0 +1,76 @@ +0:: incremental-declaration-changes +*** Needs explanation +TsBuild info text without affectedFilesPendingEmit:: /user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt:: +CleanBuild: +{ + "fileInfos": { + "../../../../../home/src/tslibs/ts/lib/lib.d.ts": { + "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./anothermodule.ts": { + "version": "-3090574810-export const World = \"hello\";" + }, + "./index.ts": { + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + }, + "./some_decl.d.ts": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + } + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + ] + ], + "options": { + "module": 2 + }, + "version": "FakeTSVersion" +} +IncrementalBuild: +{ + "fileInfos": { + "../../../../../home/src/tslibs/ts/lib/lib.d.ts": { + "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./anothermodule.ts": { + "version": "-3090574810-export const World = \"hello\";" + }, + "./index.ts": { + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + }, + "./some_decl.d.ts": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + } + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + ] + ], + "options": { + "module": 2 + }, + "errors": true, + "version": "FakeTSVersion" +} \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js index c9005b2bbb9e7..95dda68e24c81 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js @@ -204,6 +204,14 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +core/tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd" +   ~~~~~ + + +Found 1 error. + //// [/user/username/projects/sample1/core/anotherModule.js] @@ -229,7 +237,7 @@ define(["require", "exports"], function (require, exports) { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../home/src/tslibs/ts/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":2},"version":"FakeTSVersion"} +{"fileNames":["../../../../../home/src/tslibs/ts/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":2},"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -283,9 +291,10 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, + "errors": true, "version": "FakeTSVersion", - "size": 955 + "size": 969 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsbuildWatch/configFileErrors/outFile/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuildWatch/configFileErrors/outFile/reports-syntax-errors-in-config-file.js index ea62a801505e8..b619dce91dc8f 100644 --- a/tests/baselines/reference/tsbuildWatch/configFileErrors/outFile/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuildWatch/configFileErrors/outFile/reports-syntax-errors-in-config-file.js @@ -40,12 +40,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... +tsconfig.json:5:13 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + tsconfig.json:10:9 - error TS1005: ',' expected. 10 "b.ts"    ~~~~~~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -74,7 +79,7 @@ declare module "b" { //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/a.ts","./myproject/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4646078106-export function foo() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-5340070911-declare module \"a\" {\n export function foo(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","errors":true,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/a.ts","./myproject/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4646078106-export function foo() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"-5340070911-declare module \"a\" {\n export function foo(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -103,11 +108,24 @@ declare module "b" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./myproject/a.ts", + "not cached or not changed" + ], + [ + "./myproject/b.ts", + "not cached or not changed" + ] + ], "outSignature": "-5340070911-declare module \"a\" {\n export function foo(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", - "errors": true, "version": "FakeTSVersion", - "size": 899 + "size": 922 } @@ -137,10 +155,7 @@ Program files:: /user/username/projects/myproject/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -177,12 +192,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... +tsconfig.json:6:13 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + tsconfig.json:11:9 - error TS1005: ',' expected. 11 "b.ts"    ~~~~~~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -207,7 +227,7 @@ Program files:: /user/username/projects/myproject/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -232,12 +252,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... +tsconfig.json:6:13 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + tsconfig.json:11:9 - error TS1005: ',' expected. 11 "b.ts"    ~~~~~~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -266,7 +291,7 @@ declare module "b" { //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/a.ts","./myproject/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-3260843409-export function fooBar() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"declaration":true,"module":2,"outFile":"./outFile.js"},"outSignature":"771185302-declare module \"a\" {\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","errors":true,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/a.ts","./myproject/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-3260843409-export function fooBar() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"771185302-declare module \"a\" {\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -296,11 +321,24 @@ declare module "b" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./myproject/a.ts", + "not cached or not changed" + ], + [ + "./myproject/b.ts", + "not cached or not changed" + ] + ], "outSignature": "771185302-declare module \"a\" {\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", - "errors": true, "version": "FakeTSVersion", - "size": 923 + "size": 946 } @@ -324,10 +362,7 @@ Program files:: /user/username/projects/myproject/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -350,12 +385,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... +tsconfig.json:6:13 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + tsconfig.json:11:9 - error TS1005: ',' expected. 11 "b.ts"    ~~~~~~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -380,7 +420,7 @@ Program files:: /user/username/projects/myproject/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -416,47 +456,15 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/a.ts","./myproject/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-3260843409-export function fooBar() { }","1045484683-export function bar() { }"],"root":[2,3],"options":{"composite":true,"declaration":true,"module":2,"outFile":"./outFile.js"},"outSignature":"771185302-declare module \"a\" {\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} - -//// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "../../../home/src/tslibs/ts/lib/lib.d.ts", - "./myproject/a.ts", - "./myproject/b.ts" - ], - "fileInfos": { - "../../../home/src/tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./myproject/a.ts": "-3260843409-export function fooBar() { }", - "./myproject/b.ts": "1045484683-export function bar() { }" - }, - "root": [ - [ - 2, - "./myproject/a.ts" - ], - [ - 3, - "./myproject/b.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "outSignature": "771185302-declare module \"a\" {\n export function fooBar(): void;\n}\ndeclare module \"b\" {\n export function bar(): void;\n}\n", - "latestChangedDtsFile": "./outFile.d.ts", - "version": "FakeTSVersion", - "size": 909 -} - Program root files: [ @@ -478,7 +486,7 @@ Program files:: /user/username/projects/myproject/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/outFile/dts-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsbuildWatch/noEmit/outFile/dts-errors-with-incremental-as-modules.js index f4717c0cc7229..bf543dca91868 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/outFile/dts-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/outFile/dts-errors-with-incremental-as-modules.js @@ -44,22 +44,17 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -88,35 +83,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 716 } @@ -152,10 +125,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -184,12 +154,17 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -218,12 +193,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 694 + "size": 701 } @@ -248,10 +224,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -283,16 +256,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -321,8 +299,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } //// [/home/src/projects/outFile.js] @@ -370,7 +362,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -403,11 +395,16 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'tsconfig.json' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -433,7 +430,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -458,26 +455,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -506,35 +498,11 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 712 } @@ -559,10 +527,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -608,12 +573,17 @@ Output::    ~ Add a type annotation to the variable a. -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -642,6 +612,20 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -666,7 +650,7 @@ Output:: ] ], "version": "FakeTSVersion", - "size": 998 + "size": 1035 } //// [/home/src/projects/outFile.js] @@ -710,7 +694,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -747,15 +731,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -783,7 +762,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/tests/baselines/reference/tsbuildWatch/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js index 3269edce1ae23..1e1d7f21d4db6 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js @@ -43,12 +43,17 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -76,12 +81,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 693 + "size": 697 } @@ -116,10 +122,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -144,16 +147,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -181,12 +189,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -210,10 +219,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -244,16 +250,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -281,8 +292,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -320,7 +345,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -352,11 +377,16 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'tsconfig.json' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -381,7 +411,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -406,16 +436,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -443,9 +478,8 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", "size": 693 @@ -472,10 +506,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -506,16 +537,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -543,8 +579,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 673 + "size": 710 } //// [/home/src/projects/outFile.js] @@ -587,7 +637,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -619,11 +669,16 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'tsconfig.json' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -648,7 +703,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/outFile/semantic-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsbuildWatch/noEmit/outFile/semantic-errors-with-incremental-as-modules.js index 6913b2db27bbf..cf431ef204fb3 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/outFile/semantic-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/outFile/semantic-errors-with-incremental-as-modules.js @@ -43,17 +43,17 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -81,26 +81,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 837 + "size": 689 } @@ -135,10 +122,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -167,12 +151,17 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -200,12 +189,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -229,10 +219,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -263,16 +250,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -300,8 +292,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -339,7 +345,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -371,11 +377,16 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'tsconfig.json' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -400,7 +411,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -425,21 +436,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -467,26 +478,11 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 837 + "size": 685 } @@ -510,10 +506,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -548,17 +541,17 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -587,21 +580,21 @@ Output:: "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 817 + "size": 702 } //// [/home/src/projects/outFile.js] file written with same contents @@ -625,7 +618,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -661,10 +654,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -691,7 +684,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/outFile/syntax-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsbuildWatch/noEmit/outFile/syntax-errors-with-incremental-as-modules.js index 88021bd1f0098..0116597087301 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/outFile/syntax-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/outFile/syntax-errors-with-incremental-as-modules.js @@ -151,12 +151,17 @@ Output:: [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -184,12 +189,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -213,10 +219,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -247,16 +250,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that some of the changes were not emitted +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -284,8 +292,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -323,7 +345,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -355,11 +377,16 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'tsconfig.json' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -384,7 +411,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -409,7 +436,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../outFile.tsbuildinfo' is older than input 'a.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../outFile.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/home/src/projects/project/tsconfig.json'... diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-declaration-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-declaration-with-incremental.js index 3e4f2f8fca3b2..c97ebe2a69001 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-declaration-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-declaration-with-incremental.js @@ -61,7 +61,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -183,7 +188,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -243,12 +253,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -283,41 +298,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 904 + "size": 938 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - Program root files: [ @@ -369,17 +358,47 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[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] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Updating output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +4 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "incremental": true, + "noEmitOnError": true, + "watch": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + exitCode:: ExitStatus.undefined Change:: semantic errors @@ -402,7 +421,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... @@ -411,7 +430,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -533,7 +557,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -591,12 +620,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -631,28 +665,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 895 + "size": 929 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] file written with same contents Program root files: [ @@ -704,16 +725,46 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[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] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. -[HH:MM:SS AM] Updating output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + + -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "incremental": true, + "noEmitOnError": true, + "watch": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: +No shapes updated in the builder:: exitCode:: ExitStatus.undefined @@ -738,26 +789,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"emitDiagnosticsPerFile":[[3,[{"start":53,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":53,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -792,35 +838,13 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, - "emitDiagnosticsPerFile": [ - [ - "./noemitonerror/src/main.ts", - [ - { - "start": 53, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 53, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], "pendingEmit": [ - "Js | DtsEmit", - 17 + "Js | Dts", + false ], + "errors": true, "version": "FakeTSVersion", - "size": 1234 + "size": 945 } @@ -878,15 +902,10 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -947,12 +966,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -987,51 +1011,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 903 + "size": 937 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { - export const a: { - new (): { - p: number; - }; - }; -} -declare module "src/other" { - export {}; -} - - Program root files: [ @@ -1083,15 +1071,45 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[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] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Updating output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +4 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "declaration": true, + "incremental": true, + "noEmitOnError": true, + "watch": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-declaration.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-declaration.js index bb7ef9bd8d077..0b2fa97983ea0 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-declaration.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-declaration.js @@ -60,7 +60,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -151,7 +156,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -210,55 +220,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ @@ -309,19 +281,19 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating unchanged output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time -//// [/user/username/projects/dev-build.js] file changed its modified time -//// [/user/username/projects/dev-build.d.ts] file changed its modified time Program root files: [ @@ -371,7 +343,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... @@ -380,25 +352,17 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"errors":true,"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "errors": true, - "version": "FakeTSVersion", - "size": 148 -} - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ @@ -458,7 +422,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -515,42 +484,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ @@ -601,19 +545,19 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating unchanged output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time -//// [/user/username/projects/dev-build.js] file changed its modified time -//// [/user/username/projects/dev-build.d.ts] file changed its modified time Program root files: [ @@ -664,39 +608,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"errors":true,"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "errors": true, - "version": "FakeTSVersion", - "size": 148 -} - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ @@ -751,15 +677,10 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -819,65 +740,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { - export const a: { - new (): { - p: number; - }; - }; -} -declare module "src/other" { - export {}; -} - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ @@ -928,19 +801,19 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating unchanged output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time -//// [/user/username/projects/dev-build.js] file changed its modified time -//// [/user/username/projects/dev-build.d.ts] file changed its modified time Program root files: [ diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-incremental.js index 859dd8d2941ac..d8b66df7dd8de 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError-with-incremental.js @@ -60,7 +60,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -180,7 +185,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -239,12 +249,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -278,29 +293,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 885 + "size": 919 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ @@ -351,16 +352,45 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[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] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. -[HH:MM:SS AM] Updating output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +4 "module": "amd", +   ~~~~~ +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "incremental": true, + "noEmitOnError": true, + "watch": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: exitCode:: ExitStatus.undefined @@ -384,7 +414,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... @@ -393,7 +423,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -513,7 +548,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -570,12 +610,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -609,27 +654,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 876 + "size": 910 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ @@ -680,16 +713,45 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[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] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +4 "module": "amd", +   ~~~~~ +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "incremental": true, + "noEmitOnError": true, + "watch": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: exitCode:: ExitStatus.undefined @@ -714,16 +776,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -757,33 +824,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 892 + "size": 926 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ @@ -834,17 +883,46 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[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] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... + +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Updating output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +4 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "incremental": true, + "noEmitOnError": true, + "watch": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + exitCode:: ExitStatus.undefined Change:: Fix dts errors @@ -868,16 +946,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -911,11 +994,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 884 + "size": 918 } -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ @@ -966,15 +1053,44 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[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] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +4 "module": "amd", +   ~~~~~ +[HH:MM:SS AM] Found 1 error. Watching for file changes. + + -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outFile": "/user/username/projects/dev-build.js", + "module": 2, + "incremental": true, + "noEmitOnError": true, + "watch": true, + "tscBuild": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} +Program structureReused: Not +Program files:: +/home/src/tslibs/TS/Lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError.js index d44501d152689..f9a370379ea4a 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/outFile/noEmitOnError.js @@ -59,7 +59,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -149,7 +154,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -207,43 +217,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ @@ -293,18 +277,19 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating unchanged output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time -//// [/user/username/projects/dev-build.js] file changed its modified time Program root files: [ @@ -353,7 +338,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... @@ -362,25 +347,17 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"errors":true,"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "errors": true, - "version": "FakeTSVersion", - "size": 148 -} - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ @@ -439,7 +416,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -495,41 +477,17 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] -{"root":["./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"version":"FakeTSVersion"} - -//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "./noemitonerror/shared/types/db.ts", - "./noemitonerror/src/main.ts", - "./noemitonerror/src/other.ts" - ], - "version": "FakeTSVersion", - "size": 134 -} - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - +//// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents +//// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents Program root files: [ @@ -579,18 +537,19 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating unchanged output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time -//// [/user/username/projects/dev-build.js] file changed its modified time Program root files: [ @@ -640,39 +599,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ @@ -722,18 +663,19 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating unchanged output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time -//// [/user/username/projects/dev-build.js] file changed its modified time Program root files: [ @@ -783,17 +725,21 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] file written with same contents //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ @@ -843,18 +789,19 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output '../dev-build.tsbuildinfo' is older than input 'src/main.ts' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file '../dev-build.tsbuildinfo' indicates that program needs to report errors. [HH:MM:SS AM] Building project '/user/username/projects/noEmitOnError/tsconfig.json'... -[HH:MM:SS AM] Updating unchanged output timestamps of project '/user/username/projects/noEmitOnError/tsconfig.json'... +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.tsbuildinfo] file changed its modified time -//// [/user/username/projects/dev-build.js] file changed its modified time Program root files: [ diff --git a/tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js b/tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js index 70937b251e10a..3287485f769a9 100644 --- a/tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js +++ b/tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js @@ -109,7 +109,7 @@ default: es5 --module, -m Specify what module code is generated. -one of: none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve +one of: commonjs, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve default: undefined --lib diff --git a/tests/baselines/reference/tsc/commandLine/help-all.js b/tests/baselines/reference/tsc/commandLine/help-all.js index b04c5dabade82..e9b06fca35128 100644 --- a/tests/baselines/reference/tsc/commandLine/help-all.js +++ b/tests/baselines/reference/tsc/commandLine/help-all.js @@ -81,13 +81,13 @@ Conditions to set in addition to the resolver-specific defaults when resolving i --module, -m Specify what module code is generated. -one of: none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve +one of: commonjs, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve default: undefined --moduleResolution Specify how TypeScript looks up a file from a given module specifier. -one of: classic, node10, node16, nodenext, bundler -default: module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node` +one of: node16, nodenext, bundler +default: `nodenext` if `module` is `nodenext`; `node16` if `module` is `node16` or `node18`; otherwise, `bundler`. --moduleSuffixes List of file name suffixes to search when resolving a module. diff --git a/tests/baselines/reference/tsc/commandLine/help.js b/tests/baselines/reference/tsc/commandLine/help.js index 0e5f8a91deaa3..5d813efbed7df 100644 --- a/tests/baselines/reference/tsc/commandLine/help.js +++ b/tests/baselines/reference/tsc/commandLine/help.js @@ -108,7 +108,7 @@ default: es5 --module, -m Specify what module code is generated. -one of: none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve +one of: commonjs, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve default: undefined --lib diff --git a/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js b/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js index 25d410c64d4de..2d4298e0c357f 100644 --- a/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js +++ b/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js @@ -109,7 +109,7 @@ default: es5 --module, -m Specify what module code is generated. -one of: none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve +one of: commonjs, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve default: undefined --lib diff --git a/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js index 25d410c64d4de..2d4298e0c357f 100644 --- a/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js +++ b/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js @@ -109,7 +109,7 @@ default: es5 --module, -m Specify what module code is generated. -one of: none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve +one of: commonjs, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve default: undefined --lib diff --git a/tests/baselines/reference/tsc/composite/converting-to-modules.js b/tests/baselines/reference/tsc/composite/converting-to-modules.js index 37ccbece2b760..e36ccbb485ea2 100644 --- a/tests/baselines/reference/tsc/composite/converting-to-modules.js +++ b/tests/baselines/reference/tsc/composite/converting-to-modules.js @@ -28,6 +28,24 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + + +Found 3 errors in the same file, starting at: tsconfig.json:2 + //// [/home/src/workspaces/project/src/main.js] @@ -39,7 +57,7 @@ declare const x = 10; //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./src/main.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/main.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -78,13 +96,23 @@ declare const x = 10; "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./src/main.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./src/main.d.ts", "version": "FakeTSVersion", - "size": 748 + "size": 783 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: convert to modules diff --git a/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js b/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js index 7bdce69b1fa58..bc60471054c50 100644 --- a/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js +++ b/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js @@ -50,6 +50,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -59,8 +64,11 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error in src/index.ts:2 +Found 2 errors in 2 files. +Errors Files + 1 src/index.ts:2 + 1 tsconfig.json:3 //// [/home/src/workspaces/project/outFile.js] @@ -77,7 +85,7 @@ define("src/index", ["require", "exports", "ky"], function (require, exports, ky //// [/home/src/workspaces/project/outFile.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./ky.d.ts","./src/index.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","10101889135-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;\n","-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n"],"root":[3],"options":{"composite":true,"module":2,"outFile":"./outFile.js","skipDefaultLibCheck":true,"skipLibCheck":true},"emitDiagnosticsPerFile":[[3,[{"start":34,"length":3,"messageText":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/ky\" but cannot be named.","category":1,"code":4023}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./ky.d.ts","./src/index.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","10101889135-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;\n","-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n"],"root":[3],"options":{"composite":true,"module":2,"outFile":"./outFile.js","skipDefaultLibCheck":true,"skipLibCheck":true},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[3,[{"start":34,"length":3,"messageText":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/ky\" but cannot be named.","category":1,"code":4023}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -104,6 +112,20 @@ define("src/index", ["require", "exports", "ky"], function (require, exports, ky "skipDefaultLibCheck": true, "skipLibCheck": true }, + "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./ky.d.ts", + "not cached or not changed" + ], + [ + "./src/index.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./src/index.ts", @@ -119,7 +141,7 @@ define("src/index", ["require", "exports", "ky"], function (require, exports, ky ] ], "version": "FakeTSVersion", - "size": 1092 + "size": 1129 } @@ -136,6 +158,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' ky.d.ts @@ -143,8 +170,11 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error in src/index.ts:2 +Found 2 errors in 2 files. +Errors Files + 1 src/index.ts:2 + 1 tsconfig.json:3 @@ -168,6 +198,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' ky.d.ts @@ -175,7 +210,7 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error. +Found 2 errors. diff --git a/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js b/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js index 4c7eed10bd026..c09c0c85bc8de 100644 --- a/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js +++ b/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js @@ -49,6 +49,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -57,8 +62,11 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error in src/index.ts:2 +Found 2 errors in 2 files. +Errors Files + 1 src/index.ts:2 + 1 tsconfig.json:3 //// [/home/src/workspaces/project/outFile.js] @@ -88,6 +96,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -96,8 +109,11 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error in src/index.ts:2 +Found 2 errors in 2 files. +Errors Files + 1 src/index.ts:2 + 1 tsconfig.json:3 //// [/home/src/workspaces/project/outFile.js] file written with same contents @@ -122,6 +138,11 @@ Output:: 2 export const api = ky.extend({});    ~~~ +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -133,7 +154,7 @@ src/index.ts [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. diff --git a/tests/baselines/reference/tsc/incremental/outFile/different-options-with-incremental.js b/tests/baselines/reference/tsc/incremental/outFile/different-options-with-incremental.js index c75fe52c24818..c2498be43deb2 100644 --- a/tests/baselines/reference/tsc/incremental/outFile/different-options-with-incremental.js +++ b/tests/baselines/reference/tsc/incremental/outFile/different-options-with-incremental.js @@ -38,6 +38,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -70,7 +78,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -106,8 +114,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 842 + "size": 883 } @@ -131,16 +161,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts -/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with sourceMap @@ -148,6 +173,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --sourceMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -180,7 +213,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -217,8 +250,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 859 + "size": 900 } //// [/home/src/workspaces/outFile.js.map] @@ -246,11 +301,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: should re-emit only js so they dont contain sourcemap @@ -258,6 +313,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -290,7 +353,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -326,8 +389,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 842 + "size": 883 } @@ -351,11 +436,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with declaration, emit Dts and should not emit js @@ -363,10 +448,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --declaration Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -403,8 +496,30 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 861 + "size": 902 } //// [/home/src/workspaces/outFile.d.ts] @@ -444,11 +559,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with declaration and declarationMap @@ -456,10 +571,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --declaration --declarationMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -497,8 +620,30 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 883 + "size": 924 } //// [/home/src/workspaces/outFile.d.ts] @@ -542,11 +687,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -554,6 +699,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -577,11 +730,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: local change @@ -592,6 +745,14 @@ export const a = 10;const aLocal = 100; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -624,7 +785,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -660,8 +821,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 843 + "size": 884 } @@ -685,16 +868,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts -/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with declaration and declarationMap @@ -702,10 +880,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --declaration --declarationMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -743,8 +929,30 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 884 + "size": 925 } //// [/home/src/workspaces/outFile.d.ts] file written with same contents @@ -772,11 +980,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -784,6 +992,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -807,11 +1023,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with inlineSourceMap @@ -819,6 +1035,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --inlineSourceMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -851,7 +1075,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -888,8 +1112,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 866 + "size": 907 } @@ -914,11 +1160,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with sourceMap @@ -926,6 +1172,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --sourceMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -958,7 +1212,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -995,8 +1249,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 860 + "size": 901 } //// [/home/src/workspaces/outFile.js.map] @@ -1024,11 +1300,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: emit js files @@ -1036,6 +1312,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -1068,7 +1352,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1104,8 +1388,30 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 843 + "size": 884 } @@ -1129,11 +1435,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with declaration and declarationMap @@ -1141,10 +1447,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --declaration --declarationMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1182,8 +1496,30 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 884 + "size": 925 } //// [/home/src/workspaces/outFile.d.ts] file written with same contents @@ -1211,11 +1547,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with declaration and declarationMap, should not re-emit @@ -1223,6 +1559,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --declaration --declarationMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -1248,8 +1592,8 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tsc/incremental/outFile/different-options.js b/tests/baselines/reference/tsc/incremental/outFile/different-options.js index b92749717b3b3..f99fe7b6c4423 100644 --- a/tests/baselines/reference/tsc/incremental/outFile/different-options.js +++ b/tests/baselines/reference/tsc/incremental/outFile/different-options.js @@ -38,6 +38,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -85,7 +93,7 @@ declare module "d" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -122,10 +130,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1142 + "size": 1183 } @@ -149,16 +179,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts -/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with sourceMap @@ -166,6 +191,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --sourceMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -198,7 +231,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -236,10 +269,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1159 + "size": 1200 } //// [/home/src/workspaces/outFile.js.map] @@ -267,11 +322,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: should re-emit only js so they dont contain sourcemap @@ -279,6 +334,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -311,7 +374,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -348,10 +411,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1142 + "size": 1183 } @@ -375,11 +460,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with declaration should not emit anything @@ -387,6 +472,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --declaration Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -411,11 +504,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -423,6 +516,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -446,11 +547,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with declaration and declarationMap @@ -458,6 +559,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --declaration --declarationMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.d.ts] @@ -476,7 +585,7 @@ declare module "d" { //# sourceMappingURL=outFile.d.ts.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -515,10 +624,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1183 + "size": 1224 } //// [/home/src/workspaces/outFile.d.ts.map] @@ -547,11 +678,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: should re-emit only dts so they dont contain sourcemap @@ -559,6 +690,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.d.ts] @@ -577,7 +716,7 @@ declare module "d" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -614,10 +753,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1142 + "size": 1183 } @@ -641,11 +802,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with emitDeclarationOnly should not emit anything @@ -653,6 +814,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --emitDeclarationOnly Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -677,11 +846,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -689,6 +858,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -712,11 +889,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: local change @@ -727,6 +904,14 @@ export const a = 10;const aLocal = 100; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -759,7 +944,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -796,10 +981,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1143 + "size": 1184 } @@ -823,16 +1030,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts -/home/src/workspaces/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with declaration should not emit anything @@ -840,6 +1042,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --declaration Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -864,11 +1074,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with inlineSourceMap @@ -876,6 +1086,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --inlineSourceMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -908,7 +1126,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -946,10 +1164,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1166 + "size": 1207 } @@ -974,11 +1214,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with sourceMap @@ -986,6 +1226,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --sourceMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -1018,7 +1266,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1056,10 +1304,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1160 + "size": 1201 } //// [/home/src/workspaces/outFile.js.map] @@ -1087,11 +1357,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: declarationMap enabling @@ -1109,6 +1379,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -1156,7 +1434,7 @@ declare module "d" { //# sourceMappingURL=outFile.d.ts.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1194,10 +1472,32 @@ declare module "d" { "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1165 + "size": 1206 } //// [/home/src/workspaces/outFile.d.ts.map] file written with same contents @@ -1223,11 +1523,11 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: with sourceMap should not emit d.ts @@ -1235,6 +1535,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --sourceMap Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -1267,7 +1575,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=outFile.js.map //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"semanticDiagnosticsPerFile":[1,2,3,4,5],"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1306,10 +1614,32 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "outFile": "./outFile.js", "sourceMap": true }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "outSignature": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 1182 + "size": 1223 } //// [/home/src/workspaces/outFile.js.map] file written with same contents @@ -1336,8 +1666,8 @@ Program files:: /home/src/workspaces/project/c.ts /home/src/workspaces/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js index acc9e7d064779..bb476183eccd6 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js @@ -1,63 +1,4 @@ 0:: Add class3 to project1 and build it Ts buildinfo will not be updated in incremental build so it will have semantic diagnostics cached from previous build But in clean build because of global diagnostics, semantic diagnostics are not queried so not cached in tsbuildinfo -TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "fileInfos": { - "../../../tslibs/ts/lib/lib.d.ts": { - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../project1/class1.d.ts": { - "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true - }, - "./class2.ts": { - "version": "777969115-class class2 {}", - "affectsGlobalScope": true - } - }, - "root": [ - [ - 3, - "./class2.ts" - ] - ], - "options": { - "composite": true, - "module": 0 - }, - "latestChangedDtsFile": "FakeFileName", - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "fileInfos": { - "../../../tslibs/ts/lib/lib.d.ts": { - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../project1/class1.d.ts": { - "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true - }, - "./class2.ts": { - "version": "777969115-class class2 {}", - "affectsGlobalScope": true - } - }, - "root": [ - [ - 3, - "./class2.ts" - ] - ], - "options": { - "composite": true, - "module": 0 - }, - "latestChangedDtsFile": "FakeFileName", - "errors": true, - "version": "FakeTSVersion" -} \ No newline at end of file +*** Supplied discrepancy explanation but didnt find any difference \ No newline at end of file diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js index b5abc3a8f45e9..5cb1071eb3348 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js @@ -50,6 +50,24 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -i -p project2 Output:: +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + + +Found 3 errors in the same file, starting at: project2/tsconfig.json:2 + //// [/home/src/workspaces/projects/project2/class2.js] @@ -66,7 +84,7 @@ declare class class2 { //// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -115,13 +133,27 @@ declare class class2 { "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 854 + "size": 891 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Add class3 to project1 and build it @@ -145,67 +177,26 @@ Output::   ~~~~~ File is output from referenced project specified here. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. -Found 1 error. +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + + +Found 4 errors in the same file, starting at: project2/tsconfig.json:2 -//// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","errors":true,"version":"FakeTSVersion"} - -//// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "../../../tslibs/ts/lib/lib.d.ts", - "../project1/class1.d.ts", - "./class2.ts" - ], - "fileInfos": { - "../../../tslibs/ts/lib/lib.d.ts": { - "original": { - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../project1/class1.d.ts": { - "original": { - "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true - }, - "version": "-3469237238-declare class class1 {}", - "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true - }, - "./class2.ts": { - "original": { - "version": "777969115-class class2 {}", - "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true - }, - "version": "777969115-class class2 {}", - "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true - } - }, - "root": [ - [ - 3, - "./class2.ts" - ] - ], - "options": { - "composite": true, - "module": 0 - }, - "latestChangedDtsFile": "./class2.d.ts", - "errors": true, - "version": "FakeTSVersion", - "size": 868 -} - exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated @@ -218,11 +209,29 @@ declare class class3 {} /home/src/tslibs/TS/Lib/tsc.js -i -p project2 Output:: +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + + +Found 3 errors in the same file, starting at: project2/tsconfig.json:2 + //// [/home/src/workspaces/projects/project2/class2.js] file written with same contents //// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -281,13 +290,31 @@ Output:: "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "../project1/class3.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 956 + "size": 995 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Add excluded file to project1 @@ -298,10 +325,28 @@ declare class file {} /home/src/tslibs/TS/Lib/tsc.js -i -p project2 Output:: +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + + +Found 3 errors in the same file, starting at: project2/tsconfig.json:2 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Delete output for class3 @@ -323,14 +368,29 @@ Output::   ~~~~~ File is output from referenced project specified here. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. -Found 1 error. +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + + +Found 4 errors in the same file, starting at: project2/tsconfig.json:2 //// [/home/src/workspaces/projects/project2/class2.js] file written with same contents //// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -380,6 +440,10 @@ Found 1 error. "module": 0 }, "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "../project1/class1.d.ts", "not cached or not changed" @@ -391,7 +455,7 @@ Found 1 error. ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 889 + "size": 891 } @@ -406,11 +470,29 @@ declare class class3 {} /home/src/tslibs/TS/Lib/tsc.js -i -p project2 Output:: +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + + +Found 3 errors in the same file, starting at: project2/tsconfig.json:2 + //// [/home/src/workspaces/projects/project2/class2.js] file written with same contents //// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +551,28 @@ Output:: "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "../project1/class3.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 956 + "size": 995 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tsc/noCheck/outFile/dts-errors-with-incremental-discrepancies.js b/tests/baselines/reference/tsc/noCheck/outFile/dts-errors-with-incremental-discrepancies.js index 60546efaaf56e..db54e7badaee7 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/dts-errors-with-incremental-discrepancies.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/dts-errors-with-incremental-discrepancies.js @@ -1,114 +1,8 @@ 5:: no-change-run Clean build will have check pending since it didnt type check Incremental build has typechecked before this so wont have checkPending -TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/outfile.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "checkPending": true, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "version": "FakeTSVersion" -} +*** Supplied discrepancy explanation but didnt find any difference 15:: no-change-run Clean build will have check pending since it didnt type check Incremental build has typechecked before this so wont have checkPending -TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/outfile.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;", - "./project/c.ts": "-9150421116-export const c: number = \"hello\";" - }, - "root": [ - [ - [ - 2, - 4 - ], - [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts" - ] - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "checkPending": true, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;", - "./project/c.ts": "-9150421116-export const c: number = \"hello\";" - }, - "root": [ - [ - [ - 2, - 4 - ], - [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts" - ] - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "version": "FakeTSVersion" -} \ No newline at end of file +*** Supplied discrepancy explanation but didnt find any difference \ No newline at end of file diff --git a/tests/baselines/reference/tsc/noCheck/outFile/dts-errors-with-incremental.js b/tests/baselines/reference/tsc/noCheck/outFile/dts-errors-with-incremental.js index 951db916f250e..9cf2e8be15a3a 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/dts-errors-with-incremental.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/dts-errors-with-incremental.js @@ -43,9 +43,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in a.ts:1 +5 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:5 //// [/home/src/workspaces/outFile.js] @@ -181,9 +189,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:5 @@ -220,6 +236,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -318,7 +342,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -326,6 +350,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -351,7 +383,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -359,10 +391,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -391,8 +431,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -413,14 +467,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -428,6 +479,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -448,11 +507,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -460,8 +519,65 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"checkPending":true,"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;" + }, + "root": [ + [ + 2, + "./project/a.ts" + ], + [ + 3, + "./project/b.ts" + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], + "checkPending": true, + "version": "FakeTSVersion", + "size": 734 +} + Program root files: [ "/home/src/workspaces/project/a.ts", @@ -481,11 +597,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Introduce error with noCheck @@ -506,9 +622,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:5 //// [/home/src/workspaces/outFile.js] @@ -644,9 +768,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + -Found 1 error in a.ts:1 +Found 2 errors in 2 files. +Errors Files + 1 a.ts:1 + 1 tsconfig.json:5 @@ -690,13 +822,21 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + -Found 1 error in a.ts:1 +Found 2 errors in 2 files. +Errors Files + 1 a.ts:1 + 1 tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -725,6 +865,20 @@ Found 1 error in a.ts:1 "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -749,7 +903,7 @@ Found 1 error in a.ts:1 ] ], "version": "FakeTSVersion", - "size": 998 + "size": 1035 } @@ -770,10 +924,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -788,6 +939,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -878,7 +1037,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -886,10 +1045,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -918,8 +1085,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -940,14 +1121,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Add file with error @@ -958,13 +1136,13 @@ export const c: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 @@ -990,7 +1168,7 @@ define("c", ["require", "exports"], function (require, exports) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1025,21 +1203,25 @@ define("c", ["require", "exports"], function (require, exports) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } //// [/home/src/workspaces/outFile.d.ts] @@ -1074,11 +1256,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1103,9 +1281,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in a.ts:1 +5 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:5 //// [/home/src/workspaces/outFile.js] @@ -1251,6 +1437,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -1358,7 +1552,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -1366,18 +1560,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1412,21 +1606,25 @@ Found 1 error in c.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -1449,11 +1647,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1465,8 +1659,74 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"checkPending":true,"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;", + "./project/c.ts": "-9150421116-export const c: number = \"hello\";" + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ] + ], + "checkPending": true, + "version": "FakeTSVersion", + "size": 805 +} + Program root files: [ "/home/src/workspaces/project/a.ts", @@ -1488,11 +1748,11 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -1500,16 +1760,73 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;", + "./project/c.ts": "-9150421116-export const c: number = \"hello\";" + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ] + ], + "version": "FakeTSVersion", + "size": 785 +} + Program root files: [ "/home/src/workspaces/project/a.ts", @@ -1530,7 +1847,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsc/noCheck/outFile/dts-errors.js b/tests/baselines/reference/tsc/noCheck/outFile/dts-errors.js index 9ea6bbba7048e..b36f651a0c5d9 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/dts-errors.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/dts-errors.js @@ -42,9 +42,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in a.ts:1 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:4 //// [/home/src/workspaces/outFile.js] @@ -103,9 +111,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + -Found 1 error in a.ts:1 +Found 2 errors in 2 files. +Errors Files + 1 a.ts:1 + 1 tsconfig.json:4 //// [/home/src/workspaces/outFile.js] file written with same contents @@ -138,6 +154,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] @@ -182,7 +206,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -190,6 +214,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -212,7 +244,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -220,6 +252,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -241,7 +281,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -249,6 +289,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -270,7 +318,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -278,6 +326,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -300,7 +356,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Introduce error with noCheck @@ -321,9 +377,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:4 //// [/home/src/workspaces/outFile.js] @@ -382,9 +446,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:4 //// [/home/src/workspaces/outFile.js] file written with same contents @@ -424,9 +496,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:4 //// [/home/src/workspaces/outFile.js] file written with same contents @@ -458,6 +538,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] @@ -494,7 +582,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -502,6 +590,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -523,7 +619,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Add file with error @@ -534,13 +630,13 @@ export const c: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 @@ -617,9 +713,17 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:4 //// [/home/src/workspaces/outFile.js] @@ -679,6 +783,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] @@ -723,7 +835,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -731,13 +843,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 @@ -770,6 +882,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -794,7 +914,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -802,13 +922,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 diff --git a/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors-with-incremental-discrepancies.js b/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors-with-incremental-discrepancies.js index 60546efaaf56e..db54e7badaee7 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors-with-incremental-discrepancies.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors-with-incremental-discrepancies.js @@ -1,114 +1,8 @@ 5:: no-change-run Clean build will have check pending since it didnt type check Incremental build has typechecked before this so wont have checkPending -TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/outfile.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "checkPending": true, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "version": "FakeTSVersion" -} +*** Supplied discrepancy explanation but didnt find any difference 15:: no-change-run Clean build will have check pending since it didnt type check Incremental build has typechecked before this so wont have checkPending -TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/outfile.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;", - "./project/c.ts": "-9150421116-export const c: number = \"hello\";" - }, - "root": [ - [ - [ - 2, - 4 - ], - [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts" - ] - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "checkPending": true, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;", - "./project/c.ts": "-9150421116-export const c: number = \"hello\";" - }, - "root": [ - [ - [ - 2, - 4 - ], - [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts" - ] - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "version": "FakeTSVersion" -} \ No newline at end of file +*** Supplied discrepancy explanation but didnt find any difference \ No newline at end of file diff --git a/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors-with-incremental.js b/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors-with-incremental.js index 86ce4e7c02ce6..330d3db3625c2 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors-with-incremental.js @@ -33,6 +33,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -131,7 +139,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -139,6 +147,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -164,7 +180,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Fix `a` error with noCheck @@ -175,6 +191,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -259,7 +283,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -267,6 +291,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -292,7 +324,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -300,10 +332,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -332,8 +372,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -354,14 +408,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -369,6 +420,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -389,11 +448,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -401,7 +460,64 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + + + +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"checkPending":true,"version":"FakeTSVersion"} +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;" + }, + "root": [ + [ + 2, + "./project/a.ts" + ], + [ + 3, + "./project/b.ts" + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], + "checkPending": true, + "version": "FakeTSVersion", + "size": 734 +} Program root files: [ @@ -422,11 +538,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Introduce error with noCheck @@ -437,6 +553,14 @@ export const a: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -521,7 +645,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -529,6 +653,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -554,7 +686,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -562,18 +694,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11705693502-export const a: number = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11705693502-export const a: number = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -603,21 +735,21 @@ Found 1 error in a.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 837 + "size": 722 } @@ -638,10 +770,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -656,6 +785,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -740,7 +877,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -748,10 +885,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -780,8 +925,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -802,14 +961,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Add file with error @@ -820,13 +976,13 @@ export const c: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 @@ -864,7 +1020,7 @@ declare module "c" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -899,21 +1055,25 @@ declare module "c" { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -936,11 +1096,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -955,6 +1111,14 @@ export const a: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -1053,7 +1217,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Fix `a` error with noCheck @@ -1064,6 +1228,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -1162,7 +1334,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -1170,18 +1342,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1216,21 +1388,25 @@ Found 1 error in c.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -1253,11 +1429,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1269,8 +1441,74 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"checkPending":true,"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;", + "./project/c.ts": "-9150421116-export const c: number = \"hello\";" + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ] + ], + "checkPending": true, + "version": "FakeTSVersion", + "size": 805 +} + Program root files: [ "/home/src/workspaces/project/a.ts", @@ -1292,11 +1530,11 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -1304,16 +1542,73 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;", + "./project/c.ts": "-9150421116-export const c: number = \"hello\";" + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ] + ], + "version": "FakeTSVersion", + "size": 785 +} + Program root files: [ "/home/src/workspaces/project/a.ts", @@ -1334,7 +1629,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors.js b/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors.js index 8011fe62e744c..3d2ea9b5f3199 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/semantic-errors.js @@ -32,6 +32,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] @@ -76,7 +84,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -84,6 +92,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -106,7 +122,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Fix `a` error with noCheck @@ -117,6 +133,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -147,7 +171,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -155,6 +179,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -177,7 +209,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -185,6 +217,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -206,7 +246,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -214,6 +254,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -235,7 +283,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -243,6 +291,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -265,7 +321,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Introduce error with noCheck @@ -276,6 +332,14 @@ export const a: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -306,7 +370,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -314,6 +378,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -336,7 +408,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -344,13 +416,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 @@ -384,6 +456,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -414,7 +494,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -422,6 +502,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -443,7 +531,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Add file with error @@ -454,13 +542,13 @@ export const c: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 @@ -527,6 +615,14 @@ export const a: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -562,7 +658,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Fix `a` error with noCheck @@ -573,6 +669,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -608,7 +712,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -616,13 +720,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 @@ -655,6 +759,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -679,7 +791,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -687,13 +799,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 diff --git a/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors-with-incremental-discrepancies.js b/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors-with-incremental-discrepancies.js index 60546efaaf56e..db54e7badaee7 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors-with-incremental-discrepancies.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors-with-incremental-discrepancies.js @@ -1,114 +1,8 @@ 5:: no-change-run Clean build will have check pending since it didnt type check Incremental build has typechecked before this so wont have checkPending -TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/outfile.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "checkPending": true, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;" - }, - "root": [ - [ - 2, - "./project/a.ts" - ], - [ - 3, - "./project/b.ts" - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "version": "FakeTSVersion" -} +*** Supplied discrepancy explanation but didnt find any difference 15:: no-change-run Clean build will have check pending since it didnt type check Incremental build has typechecked before this so wont have checkPending -TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/outfile.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;", - "./project/c.ts": "-9150421116-export const c: number = \"hello\";" - }, - "root": [ - [ - [ - 2, - 4 - ], - [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts" - ] - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "checkPending": true, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "fileInfos": { - "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./project/a.ts": "-16641552193-export const a = \"hello\";", - "./project/b.ts": "-13368947479-export const b = 10;", - "./project/c.ts": "-9150421116-export const c: number = \"hello\";" - }, - "root": [ - [ - [ - 2, - 4 - ], - [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts" - ] - ] - ], - "options": { - "declaration": true, - "module": 2, - "outFile": "./outFile.js" - }, - "version": "FakeTSVersion" -} \ No newline at end of file +*** Supplied discrepancy explanation but didnt find any difference \ No newline at end of file diff --git a/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors-with-incremental.js b/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors-with-incremental.js index 4feeb67ce2feb..8f28da86ef503 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors-with-incremental.js @@ -191,6 +191,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -281,7 +289,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -289,6 +297,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -314,7 +330,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -322,10 +338,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -354,8 +378,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -376,14 +414,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -391,6 +426,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + @@ -411,11 +454,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -423,7 +466,64 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + + + +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"checkPending":true,"version":"FakeTSVersion"} +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;" + }, + "root": [ + [ + 2, + "./project/a.ts" + ], + [ + 3, + "./project/b.ts" + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], + "checkPending": true, + "version": "FakeTSVersion", + "size": 734 +} Program root files: [ @@ -444,11 +544,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Introduce error with noCheck @@ -697,6 +797,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -787,7 +895,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -795,10 +903,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -827,8 +943,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } @@ -849,14 +979,11 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Add file with error @@ -867,13 +994,13 @@ export const c: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 @@ -911,7 +1038,7 @@ declare module "c" { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -946,21 +1073,25 @@ declare module "c" { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -983,11 +1114,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1128,6 +1255,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.js] @@ -1235,7 +1370,7 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -1243,18 +1378,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1289,21 +1424,25 @@ Found 1 error in c.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], [ "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 898 + "size": 785 } @@ -1326,11 +1465,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/workspaces/project/a.ts -/home/src/workspaces/project/b.ts -/home/src/workspaces/project/c.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1342,8 +1477,74 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"checkPending":true,"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;", + "./project/c.ts": "-9150421116-export const c: number = \"hello\";" + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ] + ], + "checkPending": true, + "version": "FakeTSVersion", + "size": 805 +} + Program root files: [ "/home/src/workspaces/project/a.ts", @@ -1365,11 +1566,11 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -1377,16 +1578,73 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +5 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:5 +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;","-9150421116-export const c: number = \"hello\";"],"root":[[2,4]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-16641552193-export const a = \"hello\";", + "./project/b.ts": "-13368947479-export const b = 10;", + "./project/c.ts": "-9150421116-export const c: number = \"hello\";" + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ] + ], + "version": "FakeTSVersion", + "size": 785 +} + Program root files: [ "/home/src/workspaces/project/a.ts", @@ -1407,7 +1665,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors.js b/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors.js index 508156bbc3836..025d3cef3fe85 100644 --- a/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors.js +++ b/tests/baselines/reference/tsc/noCheck/outFile/syntax-errors.js @@ -133,6 +133,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] @@ -169,7 +177,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -177,6 +185,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -199,7 +215,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -207,6 +223,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -228,7 +252,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -236,6 +260,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -257,7 +289,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -265,6 +297,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -287,7 +327,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Introduce error with noCheck @@ -428,6 +468,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] @@ -464,7 +512,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -472,6 +520,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -493,7 +549,7 @@ Program files:: /home/src/workspaces/project/a.ts /home/src/workspaces/project/b.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Add file with error @@ -504,13 +560,13 @@ export const c: number = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 @@ -640,6 +696,14 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] @@ -684,7 +748,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -692,13 +756,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 @@ -731,6 +795,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --noCheck Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/workspaces/outFile.js] file written with same contents @@ -755,7 +827,7 @@ Program files:: /home/src/workspaces/project/b.ts /home/src/workspaces/project/c.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with checking @@ -763,13 +835,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const c: number = "hello"; -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in c.ts:1 +Found 1 error in tsconfig.json:4 diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-composite.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-composite.js index 8aa636b71b750..afa0596ef022a 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-composite.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-composite.js @@ -53,13 +53,13 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -134,7 +134,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -178,24 +178,39 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } @@ -207,10 +222,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -218,10 +241,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error but still noEmit @@ -234,36 +265,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -Found 2 errors in 2 files. +Found 1 error in tsconfig.json:5 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -306,73 +319,13 @@ Errors Files "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] + "changeFileSet": [ + "./project/src/class.ts" ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", - "pendingEmit": [ - "Js | Dts", - false - ], "version": "FakeTSVersion", - "size": 2613 + "size": 1822 } @@ -389,19 +342,19 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -445,24 +398,39 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } @@ -474,13 +442,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -493,10 +461,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -504,10 +480,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -515,13 +499,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -539,38 +523,14 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +5 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +Found 1 error in tsconfig.json:5 -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] @@ -644,7 +604,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -688,68 +648,39 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2595 + "size": 1849 } @@ -761,38 +692,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +5 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +Found 1 error in tsconfig.json:5 -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -804,32 +711,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -Found 2 errors in 2 files. +Found 1 error in tsconfig.json:5 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 @@ -841,32 +730,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +5 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +Found 1 error in tsconfig.json:5 -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 @@ -878,38 +749,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 3 errors in 3 files. +Found 1 error in tsconfig.json:5 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -926,10 +773,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -972,33 +827,17 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] + "changeFileSet": [ + "./project/src/class.ts" ], "outSignature": "-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", - "pendingEmit": [ - "Js | DtsEmit", - 17 - ], "version": "FakeTSVersion", - "size": 2034 + "size": 1822 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -1006,13 +845,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -1087,7 +926,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1131,24 +970,39 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } @@ -1160,10 +1014,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -1171,10 +1033,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1182,13 +1052,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js index 2eba67bf86944..acaa8542ac49b 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js @@ -54,13 +54,13 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:6 @@ -135,7 +135,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -179,22 +179,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -206,10 +221,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -217,10 +240,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error but still noEmit @@ -233,36 +264,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +6 "module": "amd" +   ~~~~~ -Found 2 errors in 2 files. +Found 1 error in tsconfig.json:6 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -305,71 +318,11 @@ Errors Files "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | Dts", - false + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 2064 + "size": 1273 } @@ -386,20 +339,20 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:6 //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -443,22 +396,37 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -470,13 +438,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:6 @@ -489,10 +457,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -500,10 +476,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -511,13 +495,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:6 @@ -535,38 +519,14 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +6 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +Found 1 error in tsconfig.json:6 -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] @@ -640,7 +600,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -684,66 +644,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2044 + "size": 1298 } @@ -755,38 +686,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +6 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +Found 1 error in tsconfig.json:6 -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -798,32 +705,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +6 "module": "amd" +   ~~~~~ -Found 2 errors in 2 files. +Found 1 error in tsconfig.json:6 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 @@ -835,32 +724,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +6 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +Found 1 error in tsconfig.json:6 -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 @@ -872,38 +743,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 3 errors in 3 files. +Found 1 error in tsconfig.json:6 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -920,10 +767,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -966,31 +821,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 1483 + "size": 1271 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -998,13 +837,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:6 @@ -1079,7 +918,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1123,22 +962,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -1150,10 +1004,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -1161,10 +1023,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1172,13 +1042,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:6 diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js index c20da536756bf..064e9ac8bedd8 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js @@ -53,13 +53,13 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -114,7 +114,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -157,22 +157,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -184,10 +199,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -195,10 +218,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error but still noEmit @@ -211,36 +242,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -Found 2 errors in 2 files. +Found 1 error in tsconfig.json:5 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -282,71 +295,11 @@ Errors Files "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] - ], - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 2045 + "size": 1254 } @@ -363,19 +316,19 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -418,22 +371,37 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -445,13 +413,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -464,10 +432,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -475,10 +451,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -486,13 +470,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -510,38 +494,14 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +5 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +Found 1 error in tsconfig.json:5 -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] @@ -595,7 +555,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -638,66 +598,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2025 + "size": 1279 } @@ -709,38 +640,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +5 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +Found 1 error in tsconfig.json:5 -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -752,32 +659,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "module": "amd" +   ~~~~~ -Found 2 errors in 2 files. +Found 1 error in tsconfig.json:5 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 @@ -789,32 +678,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +5 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +Found 1 error in tsconfig.json:5 -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - - -Found 2 errors in 2 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 @@ -826,38 +697,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 3 errors in 3 files. +Found 1 error in tsconfig.json:5 -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -874,10 +721,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -919,31 +774,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 1467 + "size": 1252 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -951,13 +790,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -1012,7 +851,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1055,22 +894,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -1082,10 +936,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with noEmit @@ -1093,10 +955,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: No Change run with emit @@ -1104,13 +974,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-composite.js index 96e62ff6edfe0..25dad0effd0b1 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-composite.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-composite.js @@ -53,10 +53,18 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[1,2,4,3,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -99,31 +107,21 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/directuse.ts", + "./project/src/indirectclass.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" ], "version": "FakeTSVersion", - "size": 1481 + "size": 1281 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -131,18 +129,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -186,24 +184,39 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } //// [/home/src/workspaces/outFile.js] @@ -290,42 +303,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +5 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +Found 1 error in tsconfig.json:5 -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -369,68 +358,39 @@ Errors Files "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2595 + "size": 1849 } //// [/home/src/workspaces/outFile.js] @@ -517,10 +477,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -563,33 +531,17 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] + "changeFileSet": [ + "./project/src/class.ts" ], "outSignature": "-1966987419-declare module \"src/class\" {\n export class classC {\n prop1: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", - "pendingEmit": [ - "Js | DtsEmit", - 17 - ], "version": "FakeTSVersion", - "size": 2034 + "size": 1822 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -597,18 +549,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"outSignature":"8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -652,24 +604,39 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "outSignature": "8998999540-declare module \"src/class\" {\n export class classC {\n prop: number;\n }\n}\ndeclare module \"src/indirectClass\" {\n import { classC } from \"src/class\";\n export class indirectClass {\n classC: classC;\n }\n}\ndeclare module \"src/directUse\" { }\ndeclare module \"src/indirectUse\" { }\ndeclare module \"src/noChangeFile\" {\n export function writeLog(s: string): void;\n}\ndeclare function someFunc(arguments: boolean, ...rest: any[]): void;\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 2015 + "size": 1845 } //// [/home/src/workspaces/outFile.js] diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js index 8b2f6e99759e1..81a258dd5e22a 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js @@ -54,10 +54,18 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[1,2,4,3,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -100,31 +108,21 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/directuse.ts", + "./project/src/indirectclass.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" ], "version": "FakeTSVersion", - "size": 1483 + "size": 1283 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -132,18 +130,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:6 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -187,22 +185,37 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } //// [/home/src/workspaces/outFile.js] @@ -289,42 +302,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +6 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +Found 1 error in tsconfig.json:6 -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -368,66 +357,37 @@ Errors Files "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2044 + "size": 1298 } //// [/home/src/workspaces/outFile.js] @@ -514,10 +474,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:6 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -560,31 +528,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 1483 + "size": 1271 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -592,18 +544,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +6 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:6 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -647,22 +599,37 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } //// [/home/src/workspaces/outFile.js] diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js index 2f97c54d2bfc8..0d69e1eeaad6a 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js @@ -53,10 +53,18 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[1,2,4,3,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -98,31 +106,21 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/directuse.ts", + "./project/src/indirectclass.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" ], "version": "FakeTSVersion", - "size": 1467 + "size": 1264 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -130,18 +128,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -184,22 +182,37 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } //// [/home/src/workspaces/outFile.js] @@ -266,42 +279,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . 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 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 new indirectClass().classC.prop; -   ~~~~ +5 "module": "amd" +   ~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +Found 1 error in tsconfig.json:5 -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -344,66 +333,37 @@ Errors Files "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2025 + "size": 1279 } //// [/home/src/workspaces/outFile.js] @@ -470,10 +430,18 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . --noEmit Output:: +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:5 + //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -515,31 +483,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/src/class.ts" ], "version": "FakeTSVersion", - "size": 1467 + "size": 1252 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with emit @@ -547,18 +499,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "module": "amd" +   ~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -601,22 +553,37 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } //// [/home/src/workspaces/outFile.js] diff --git a/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-multiple-files.js b/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-multiple-files.js index 41a17bfdfad3c..1d8d54232113c 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-multiple-files.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-declaration-enable-changes-with-multiple-files.js @@ -38,10 +38,18 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,4,5,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -77,12 +85,15 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts", + "./project/d.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 845 + "size": 853 } @@ -108,16 +119,11 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts -/home/src/projects/project/c.ts -/home/src/projects/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -125,6 +131,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -150,11 +164,11 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: With declaration enabled noEmit - Should report errors @@ -162,47 +176,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit --declaration 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 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. - -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 - 1 export const c = class { private p = 10; }; -    ~ - Add a type annotation to the variable c. - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. +4 "module": "amd", +   ~~~~~ -Found 3 errors in 3 files. +Found 1 error in tsconfig.json:4 -Errors Files - 1 a.ts:1 - 1 c.ts:1 - 1 d.ts:1 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]],[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,4,5,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -239,77 +224,15 @@ Errors Files "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable c.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts", + "./project/d.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1725 + "size": 872 } @@ -336,7 +259,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -348,47 +271,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit --declaration --declarationMap 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 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. - -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 - 1 export const c = class { private p = 10; }; -    ~ - Add a type annotation to the variable c. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -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 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. +4 "module": "amd", +   ~~~~~ -Found 3 errors in 3 files. +Found 1 error in tsconfig.json:4 -Errors Files - 1 a.ts:1 - 1 c.ts:1 - 1 d.ts:1 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]],[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":49,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,4,5,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -426,77 +320,15 @@ Errors Files "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable c.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit | DtsMap", - 49 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "./project/c.ts", + "./project/d.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1747 + "size": 894 } @@ -524,7 +356,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -536,6 +368,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -561,11 +401,11 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Dts Emit with error @@ -603,17 +443,23 @@ Output::    ~ Add a type annotation to the variable d. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + -Found 3 errors in 3 files. +Found 4 errors in 4 files. Errors Files 1 a.ts:1 1 c.ts:1 1 d.ts:1 + 1 tsconfig.json:4 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]],[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]],[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -650,6 +496,28 @@ Errors Files "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ], + [ + "./project/c.ts", + "not cached or not changed" + ], + [ + "./project/d.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -716,7 +584,7 @@ Errors Files ] ], "version": "FakeTSVersion", - "size": 1708 + "size": 1749 } //// [/home/src/projects/outFile.js] @@ -784,7 +652,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -799,10 +667,18 @@ export const a = class { public p = 10; }; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -838,9 +714,8 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", "size": 844 @@ -869,16 +744,11 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts -/home/src/projects/project/c.ts -/home/src/projects/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: With declaration enabled noEmit @@ -886,36 +756,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit --declaration 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 - 1 export const c = class { private p = 10; }; -    ~ - Add a type annotation to the variable c. - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. +4 "module": "amd", +   ~~~~~ -Found 2 errors in 2 files. +Found 1 error in tsconfig.json:4 -Errors Files - 1 c.ts:1 - 1 d.ts:1 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -952,56 +804,11 @@ Errors Files "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable c.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 1445 + "size": 863 } @@ -1028,7 +835,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1040,36 +847,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit --declaration --declarationMap 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 - 1 export const c = class { private p = 10; }; -    ~ - Add a type annotation to the variable c. - -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. +4 "module": "amd", +   ~~~~~ -Found 2 errors in 2 files. +Found 1 error in tsconfig.json:4 -Errors Files - 1 c.ts:1 - 1 d.ts:1 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[4,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable c.","category":1,"code":9027}]}]],[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":49,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-17233149573-export const c = class { private p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1107,56 +896,11 @@ Errors Files "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/c.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable c.", - "category": 1, - "code": 9027 - } - ] - } - ] - ], - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit | DtsMap", - 49 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 1467 + "size": 885 } @@ -1184,7 +928,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1199,23 +943,18 @@ export const c = class { public p = 10; }; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit --declaration --declarationMap Output:: -d.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const d = class { private p = 10; }; -   ~ - - d.ts:1:14 - 1 export const d = class { private p = 10; }; -    ~ - Add a type annotation to the variable d. +4 "module": "amd", +   ~~~~~ -Found 1 error in d.ts:1 +Found 1 error in tsconfig.json:4 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-15184115393-export const c = class { public p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[5,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable d.","category":1,"code":9027}]}]]],"pendingEmit":49,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9483521475-export const a = class { public p = 10; };","-13368947479-export const b = 10;","-15184115393-export const c = class { public p = 10; };","2523684124-export const d = class { private p = 10; };"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,4],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1253,35 +992,12 @@ Found 1 error in d.ts:1 "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/d.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable d.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit | DtsMap", - 49 + "changeFileSet": [ + "./project/a.ts", + "./project/c.ts" ], "version": "FakeTSVersion", - "size": 1187 + "size": 886 } @@ -1309,12 +1025,7 @@ Program files:: /home/src/projects/project/c.ts /home/src/projects/project/d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts -/home/src/projects/project/c.ts -/home/src/projects/project/d.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-incremental-as-modules-discrepancies.js b/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-incremental-as-modules-discrepancies.js new file mode 100644 index 0000000000000..c31c43cffeb6f --- /dev/null +++ b/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-incremental-as-modules-discrepancies.js @@ -0,0 +1,103 @@ +7:: no-change-run +*** Needs explanation +Incremental build contains ./project/a.ts file has emit errors, clean build does not have errors or does not mark is as pending emit: /home/src/projects/outfile.tsbuildinfo.readable.baseline.txt:: +Incremental buildInfoText:: { + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-9502176711-export const a = class { private p = 10; };", + "./project/b.ts": "-13368947479-export const b = 10;" + }, + "root": [ + [ + 2, + "./project/a.ts" + ], + [ + 3, + "./project/b.ts" + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], + "emitDiagnosticsPerFile": [ + [ + "./project/a.ts", + [ + { + "start": 13, + "length": 1, + "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", + "category": 1, + "code": 4094, + "relatedInformation": [ + { + "start": 13, + "length": 1, + "messageText": "Add a type annotation to the variable a.", + "category": 1, + "code": 9027 + } + ] + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 1035 +} +Clean buildInfoText:: { + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/a.ts", + "./project/b.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/a.ts": "-9502176711-export const a = class { private p = 10; };", + "./project/b.ts": "-13368947479-export const b = 10;" + }, + "root": [ + [ + 2, + "./project/a.ts" + ], + [ + 3, + "./project/b.ts" + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" + ], + "version": "FakeTSVersion", + "size": 716 +} \ No newline at end of file diff --git a/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-incremental-as-modules.js index 7ec3b6bb5f4f4..09b5df0b9823f 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-with-incremental-as-modules.js @@ -33,23 +33,18 @@ export const b = 10; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit 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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -78,35 +73,13 @@ Found 1 error in a.ts:1 "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 716 } @@ -129,10 +102,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -144,18 +114,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 @@ -179,7 +144,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -194,10 +159,18 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -226,12 +199,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 694 + "size": 701 } @@ -254,14 +228,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -269,6 +240,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -291,11 +270,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit after fixing error @@ -303,10 +282,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -335,8 +322,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } //// [/home/src/projects/outFile.js] @@ -382,11 +383,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -394,6 +395,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -416,11 +425,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error @@ -431,23 +440,18 @@ export const a = class { private p = 10; }; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -476,35 +480,11 @@ Found 1 error in a.ts:1 "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 712 } @@ -527,10 +507,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -552,13 +529,21 @@ Output::    ~ Add a type annotation to the variable a. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 2 errors in 2 files. + +Errors Files + 1 a.ts:1 + 1 tsconfig.json:4 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -587,6 +572,20 @@ Found 1 error in a.ts:1 "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -611,7 +610,7 @@ Found 1 error in a.ts:1 ] ], "version": "FakeTSVersion", - "size": 998 + "size": 1035 } //// [/home/src/projects/outFile.js] @@ -653,7 +652,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -665,18 +664,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 @@ -700,7 +694,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js index 0e4490907f703..a98c258b41a4e 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js @@ -32,10 +32,18 @@ export const b = 10; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -63,12 +71,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 693 + "size": 697 } @@ -90,14 +99,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -105,6 +111,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -126,11 +140,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Fix error @@ -141,10 +155,18 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -172,12 +194,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -199,14 +222,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -214,6 +234,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -235,11 +263,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit after fixing error @@ -247,10 +275,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -278,8 +314,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -315,11 +365,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -327,6 +377,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -348,11 +406,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error @@ -363,10 +421,18 @@ export const a = class { private p = 10; }; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -394,9 +460,8 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", "size": 693 @@ -421,14 +486,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: Emit when error @@ -436,10 +498,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -467,8 +537,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 673 + "size": 710 } //// [/home/src/projects/outFile.js] @@ -509,11 +593,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -521,6 +605,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -542,8 +634,8 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmit/outFile/semantic-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsc/noEmit/outFile/semantic-errors-with-incremental-as-modules.js index f3a878ab7c3d4..64b42ff93e7dc 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/semantic-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/semantic-errors-with-incremental-as-modules.js @@ -32,18 +32,18 @@ export const b = 10; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -71,26 +71,13 @@ Found 1 error in a.ts:1 "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 837 + "size": 689 } @@ -112,10 +99,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -127,13 +111,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 @@ -156,7 +140,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -171,10 +155,18 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -202,12 +194,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -229,14 +222,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -244,6 +234,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -265,11 +263,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit after fixing error @@ -277,10 +275,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -308,8 +314,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -345,11 +365,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -357,6 +377,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -378,11 +406,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error @@ -393,18 +421,18 @@ export const a: number = "hello" /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -432,26 +460,11 @@ Found 1 error in a.ts:1 "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 837 + "size": 685 } @@ -473,10 +486,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -488,18 +498,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -528,21 +538,21 @@ Found 1 error in a.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 817 + "size": 702 } //// [/home/src/projects/outFile.js] file written with same contents @@ -564,7 +574,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -576,13 +586,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ -Found 1 error in a.ts:1 +Found 1 error in tsconfig.json:4 @@ -605,7 +615,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsc/noEmit/outFile/syntax-errors-with-incremental-as-modules.js b/tests/baselines/reference/tsc/noEmit/outFile/syntax-errors-with-incremental-as-modules.js index 12d7a26df904b..deb0c973ee171 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/syntax-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/syntax-errors-with-incremental-as-modules.js @@ -155,10 +155,18 @@ export const a = "hello"; /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -186,12 +194,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -213,14 +222,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -228,6 +234,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -249,11 +263,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Emit after fixing error @@ -261,10 +275,18 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -292,8 +314,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -329,11 +365,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: no-change-run @@ -341,6 +377,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p . --noEmit Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -362,11 +406,11 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Introduce error diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-declaration-with-incremental.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-declaration-with-incremental.js index e9687a24ee21a..2c3c2f450fa64 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-declaration-with-incremental.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-declaration-with-incremental.js @@ -44,23 +44,18 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 export const a = class { private p = 10; }; -   ~ +4 "module": "amd", +   ~~~~~ - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. - -Found 1 error in src/main.ts:2 +Found 1 error in tsconfig.json:4 //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"emitDiagnosticsPerFile":[[3,[{"start":53,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":53,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -95,35 +90,13 @@ Found 1 error in src/main.ts:2 "noEmitOnError": true, "outFile": "./dev-build.js" }, - "emitDiagnosticsPerFile": [ - [ - "./noemitonerror/src/main.ts", - [ - { - "start": 53, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 53, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], "pendingEmit": [ - "Js | DtsEmit", - 17 + "Js | Dts", + false ], + "errors": true, "version": "FakeTSVersion", - "size": 1234 + "size": 945 } @@ -163,18 +136,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 export const a = class { private p = 10; }; -   ~ +4 "module": "amd", +   ~~~~~ - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. - -Found 1 error in src/main.ts:2 +Found 1 error in tsconfig.json:4 @@ -216,10 +184,18 @@ export const a = class { p = 10; }; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -254,51 +230,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 903 + "size": 937 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { - export const a: { - new (): { - p: number; - }; - }; -} -declare module "src/other" { - export {}; -} - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -328,7 +268,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -336,6 +276,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -363,4 +311,4 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-declaration.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-declaration.js index df083cf418c6b..58d5c80a6adf0 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-declaration.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-declaration.js @@ -43,18 +43,13 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 export const a = class { private p = 10; }; -   ~ +4 "module": "amd", +   ~~~~~ - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. - -Found 1 error in src/main.ts:2 +Found 1 error in tsconfig.json:4 @@ -86,18 +81,13 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js 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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ -Found 1 error in src/main.ts:2 +Found 1 error in tsconfig.json:4 @@ -134,47 +124,14 @@ export const a = class { p = 10; }; /home/src/tslibs/TS/Lib/tsc.js Output:: - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { - export const a: { - new (): { - p: number; - }; - }; -} -declare module "src/other" { - export {}; -} +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -197,7 +154,7 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -205,10 +162,16 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents -//// [/user/username/projects/dev-build.d.ts] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -229,4 +192,4 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-incremental.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-incremental.js index 5a605c67969e1..0c81f53526773 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-incremental.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors-with-incremental.js @@ -43,33 +43,18 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -103,8 +88,13 @@ define("src/other", ["require", "exports"], function (require, exports) { "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 892 + "size": 926 } @@ -135,7 +125,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -143,6 +133,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -169,7 +167,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Fix error @@ -182,11 +180,18 @@ export const a = class { p = 10; }; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -220,8 +225,13 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 884 + "size": 918 } @@ -252,7 +262,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -260,6 +270,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -286,4 +304,4 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors.js index 147b64698a5f4..ce30693e568a1 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/dts-errors.js @@ -42,29 +42,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -86,7 +71,7 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -94,9 +79,16 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -116,7 +108,7 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Fix error @@ -129,9 +121,16 @@ export const a = class { p = 10; }; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -151,7 +150,7 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -159,9 +158,16 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -181,4 +187,4 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/file-deleted-before-fixing-error-with-noEmitOnError.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/file-deleted-before-fixing-error-with-noEmitOnError.js index 6723d3aea5e8e..12a40d19e6593 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/file-deleted-before-fixing-error-with-noEmitOnError.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/file-deleted-before-fixing-error-with-noEmitOnError.js @@ -37,9 +37,17 @@ Output:: 1 export const x: 30 = "hello";    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in file1.ts:1 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 file1.ts:1 + 1 tsconfig.json:4 //// [/home/src/workspaces/outFile.tsbuildinfo] @@ -133,9 +141,17 @@ Output:: 1 export const x: 30 = "hello";    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + -Found 1 error in file1.ts:1 +Found 2 errors in 2 files. +Errors Files + 1 file1.ts:1 + 1 tsconfig.json:4 //// [/home/src/workspaces/outFile.tsbuildinfo] diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-declaration-with-incremental.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-declaration-with-incremental.js index 466231c92a6c4..0fc0fa59703bd 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-declaration-with-incremental.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-declaration-with-incremental.js @@ -48,9 +48,17 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in src/main.ts:2 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:2 + 1 tsconfig.json:4 //// [/user/username/projects/dev-build.tsbuildinfo] @@ -153,9 +161,17 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in src/main.ts:2 +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:2 + 1 tsconfig.json:4 @@ -195,10 +211,18 @@ const a: string = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -233,39 +257,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 895 + "size": 929 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -295,7 +295,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -303,6 +303,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -330,4 +338,4 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-declaration.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-declaration.js index bca705c5ddeac..5f7d3d5068b43 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-declaration.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-declaration.js @@ -47,9 +47,17 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in src/main.ts:2 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:2 + 1 tsconfig.json:4 @@ -85,9 +93,17 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in src/main.ts:2 +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:2 + 1 tsconfig.json:4 @@ -122,35 +138,14 @@ const a: string = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -173,7 +168,7 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -181,10 +176,16 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents -//// [/user/username/projects/dev-build.d.ts] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -205,4 +206,4 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-incremental.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-incremental.js index 386dd6780de8f..f4f7798f30ec8 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors-with-incremental.js @@ -47,9 +47,17 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in src/main.ts:2 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:2 + 1 tsconfig.json:4 //// [/user/username/projects/dev-build.tsbuildinfo] @@ -150,9 +158,17 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in src/main.ts:2 +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:2 + 1 tsconfig.json:4 @@ -191,10 +207,18 @@ const a: string = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -228,27 +252,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 876 + "size": 910 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -277,7 +289,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -285,6 +297,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -311,4 +331,4 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors.js index 8446f3efd33b4..46ba04a0df3df 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/semantic-errors.js @@ -46,9 +46,17 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in src/main.ts:2 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:2 + 1 tsconfig.json:4 @@ -83,9 +91,17 @@ Output:: 2 const a: string = 10;    ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + -Found 1 error in src/main.ts:2 +Found 2 errors in 2 files. +Errors Files + 1 src/main.ts:2 + 1 tsconfig.json:4 @@ -119,23 +135,14 @@ const a: string = "hello"; /home/src/tslibs/TS/Lib/tsc.js Output:: - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -157,7 +164,7 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -165,9 +172,16 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -187,4 +201,4 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-declaration-with-incremental.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-declaration-with-incremental.js index eabe9c4f666c3..43e79a0e03d90 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-declaration-with-incremental.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-declaration-with-incremental.js @@ -51,9 +51,17 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in src/main.ts:4 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:4 + 1 tsconfig.json:4 //// [/user/username/projects/dev-build.tsbuildinfo] @@ -143,9 +151,17 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in src/main.ts:4 +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:4 + 1 tsconfig.json:4 @@ -187,10 +203,18 @@ const a = { /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -225,41 +249,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 904 + "size": 938 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -289,7 +287,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -297,6 +295,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -324,4 +330,4 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-declaration.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-declaration.js index 60e85c91f2f2a..99560ff0d1723 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-declaration.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-declaration.js @@ -50,9 +50,17 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in src/main.ts:4 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:4 + 1 tsconfig.json:4 @@ -88,9 +96,17 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in src/main.ts:4 +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:4 + 1 tsconfig.json:4 @@ -127,37 +143,14 @@ const a = { /home/src/tslibs/TS/Lib/tsc.js Output:: - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -180,7 +173,7 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -188,10 +181,16 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents -//// [/user/username/projects/dev-build.d.ts] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -212,4 +211,4 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-incremental.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-incremental.js index 6c735363bc927..576723c6e81f4 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors-with-incremental.js @@ -50,9 +50,17 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in src/main.ts:4 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:4 + 1 tsconfig.json:4 //// [/user/username/projects/dev-build.tsbuildinfo] @@ -140,9 +148,17 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ -Found 1 error in src/main.ts:4 +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:4 + 1 tsconfig.json:4 @@ -183,10 +199,18 @@ const a = { /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -220,29 +244,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 885 + "size": 919 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -271,7 +281,7 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -279,6 +289,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -305,4 +323,4 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors.js b/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors.js index e64ada1da1822..22adb7f488664 100644 --- a/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors.js +++ b/tests/baselines/reference/tsc/noEmitOnError/outFile/syntax-errors.js @@ -49,9 +49,17 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -Found 1 error in src/main.ts:4 +4 "module": "amd", +   ~~~~~ + +Found 2 errors in 2 files. + +Errors Files + 1 src/main.ts:4 + 1 tsconfig.json:4 @@ -86,9 +94,17 @@ Output:: 4 ;   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + -Found 1 error in src/main.ts:4 +Found 2 errors in 2 files. +Errors Files + 1 src/main.ts:4 + 1 tsconfig.json:4 @@ -124,25 +140,14 @@ const a = { /home/src/tslibs/TS/Lib/tsc.js Output:: - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + @@ -164,7 +169,7 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -172,9 +177,16 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ "/user/username/projects/noEmitOnError/shared/types/db.ts", @@ -194,4 +206,4 @@ Program files:: /user/username/projects/noEmitOnError/src/main.ts /user/username/projects/noEmitOnError/src/other.ts -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped diff --git a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js index 0e47ded1c8d30..7df36960b23ac 100644 --- a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js +++ b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js @@ -33,6 +33,11 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + tsconfig.json:7:5 - error TS6053: File '/home/src/workspaces/Util/Dates' not found. 7 { @@ -43,7 +48,7 @@ Output::   ~~~~~ -Found 1 error in tsconfig.json:7 +Found 2 errors in the same file, starting at: tsconfig.json:3 diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js index 6edd70cf442c5..f501d26c4111a 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js @@ -43,7 +43,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "system", +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -146,13 +151,7 @@ Program files:: /home/src/projects/a/b/globalFile3.ts /home/src/projects/a/b/moduleFile2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/a/b/moduleFile1.ts -/home/src/projects/a/b/file1Consumer1.ts -/home/src/projects/a/b/file1Consumer2.ts -/home/src/projects/a/b/globalFile3.ts -/home/src/projects/a/b/moduleFile2.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -177,7 +176,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "system", +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -254,13 +258,7 @@ Program files:: /home/src/projects/a/b/globalFile3.ts /home/src/projects/a/b/moduleFile2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/a/b/moduleFile1.ts -/home/src/projects/a/b/file1Consumer1.ts -/home/src/projects/a/b/file1Consumer2.ts -/home/src/projects/a/b/globalFile3.ts -/home/src/projects/a/b/moduleFile2.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js index 8dd4e5f86e7c7..4e57fa945487a 100644 --- a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js +++ b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js @@ -38,7 +38,22 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. @@ -92,10 +107,7 @@ Program files:: /home/src/projects/a/rootFolder/project/Scripts/Javascript.js /home/src/projects/a/rootFolder/project/Scripts/TypeScript.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/a/rootFolder/project/Scripts/Javascript.js -/home/src/projects/a/rootFolder/project/Scripts/TypeScript.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -123,7 +135,22 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. @@ -151,10 +178,7 @@ Program files:: /home/src/projects/a/rootFolder/project/Scripts/Javascript.js /home/src/projects/a/rootFolder/project/Scripts/TypeScript.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/a/rootFolder/project/Scripts/Javascript.js -/home/src/projects/a/rootFolder/project/Scripts/TypeScript.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/projects/a/rootfolder/project/scripts/typescript.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js index caaf17f7f40dc..98ac3ae0ec52e 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js @@ -58,6 +58,11 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "system" +   ~~~~~~~~ + ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' XY/a.ts @@ -67,7 +72,7 @@ link/a.ts Imported via "./link/a" from file 'b.ts' b.ts Matched by default include pattern '**/*' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory @@ -163,11 +168,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/XY/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -208,6 +209,11 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "system" +   ~~~~~~~~ + ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' XY/a.ts @@ -217,7 +223,7 @@ link/a.ts Imported via "./link/a" from file 'b.ts' b.ts Matched by default include pattern '**/*' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -292,11 +298,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/XY/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js index f4183bd7de0a0..44d4de5e70060 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js @@ -58,6 +58,11 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "system" +   ~~~~~~~~ + ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' XY/a.ts @@ -67,7 +72,7 @@ link/a.ts Imported via "./link/a" from file 'b.ts' b.ts Matched by default include pattern '**/*' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory @@ -163,11 +168,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/XY/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -208,6 +209,11 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "system" +   ~~~~~~~~ + ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' XY/a.ts @@ -217,7 +223,7 @@ link/a.ts Imported via "./link/a" from file 'b.ts' b.ts Matched by default include pattern '**/*' -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -292,11 +298,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/XY/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js index 0f9d7c1f5bb83..b34c4d9914ad0 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js @@ -58,13 +58,10 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -b.ts:2:19 - error TS1261: Already included file name '/user/username/projects/myproject/xY/a.ts' differs from file name '/user/username/projects/myproject/XY/a.ts' only in casing. - The file is in the program because: - Imported via "./xY/a" from file '/user/username/projects/myproject/b.ts' - Matched by default include pattern '**/*' +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 import { a } from "./xY/a"; -   ~~~~~~~~ +5 "module": "system" +   ~~~~~~~~ ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -171,11 +168,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/xY/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -216,13 +209,10 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -b.ts:2:19 - error TS1261: Already included file name '/user/username/projects/myproject/xY/a.ts' differs from file name '/user/username/projects/myproject/XY/a.ts' only in casing. - The file is in the program because: - Imported via "./xY/a" from file '/user/username/projects/myproject/b.ts' - Matched by default include pattern '**/*' +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 import { a } from "./xY/a"; -   ~~~~~~~~ +5 "module": "system" +   ~~~~~~~~ ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -308,11 +298,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/xY/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js index 076103fac39b2..f0db343a30fc1 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js @@ -58,13 +58,10 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -b.ts:2:19 - error TS1261: Already included file name '/user/username/projects/myproject/Xy/a.ts' differs from file name '/user/username/projects/myproject/XY/a.ts' only in casing. - The file is in the program because: - Imported via "./Xy/a" from file '/user/username/projects/myproject/b.ts' - Matched by default include pattern '**/*' +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 import { a } from "./Xy/a"; -   ~~~~~~~~ +5 "module": "system" +   ~~~~~~~~ ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -171,11 +168,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/Xy/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -216,13 +209,10 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -b.ts:2:19 - error TS1261: Already included file name '/user/username/projects/myproject/Xy/a.ts' differs from file name '/user/username/projects/myproject/XY/a.ts' only in casing. - The file is in the program because: - Imported via "./Xy/a" from file '/user/username/projects/myproject/b.ts' - Matched by default include pattern '**/*' +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 import { a } from "./Xy/a"; -   ~~~~~~~~ +5 "module": "system" +   ~~~~~~~~ ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -308,11 +298,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/Xy/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js index f39718c584e2c..950f873234a9a 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js @@ -58,13 +58,10 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -b.ts:2:19 - error TS1261: Already included file name '/user/username/projects/myproject/Xy/a.ts' differs from file name '/user/username/projects/myproject/XY/a.ts' only in casing. - The file is in the program because: - Imported via "./Xy/a" from file '/user/username/projects/myproject/b.ts' - Matched by default include pattern '**/*' +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 import { a } from "./Xy/a"; -   ~~~~~~~~ +5 "module": "system" +   ~~~~~~~~ ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -171,11 +168,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/Xy/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -216,13 +209,10 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -b.ts:2:19 - error TS1261: Already included file name '/user/username/projects/myproject/Xy/a.ts' differs from file name '/user/username/projects/myproject/XY/a.ts' only in casing. - The file is in the program because: - Imported via "./Xy/a" from file '/user/username/projects/myproject/b.ts' - Matched by default include pattern '**/*' +tsconfig.json:5:15 - error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 import { a } from "./Xy/a"; -   ~~~~~~~~ +5 "module": "system" +   ~~~~~~~~ ../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -308,11 +298,7 @@ Program files:: /user/username/projects/myproject/link/a.ts /user/username/projects/myproject/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/Xy/a.ts -/user/username/projects/myproject/link/a.ts -/user/username/projects/myproject/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js index e50bc541c317b..9a8e8dd1a8f7f 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js @@ -31,13 +31,13 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -i Output:: -file2.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const y: string = 20; -   ~ +4 "module": "amd" +   ~~~~~ -Found 1 error in file2.ts:1 +Found 1 error in tsconfig.json:4 @@ -60,7 +60,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[[3,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -102,21 +102,21 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], [ "./file2.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'number' is not assignable to type 'string'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 834 + "size": 719 } @@ -135,10 +135,7 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/file1.ts -/users/username/projects/project/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -155,13 +152,13 @@ export const z = 10; Output:: -file2.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const y: string = 20; -   ~ +4 "module": "amd" +   ~~~~~ -Found 1 error in file2.ts:1 +Found 1 error in tsconfig.json:4 @@ -175,7 +172,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[[3,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -221,21 +218,21 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], [ "./file2.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'number' is not assignable to type 'string'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 903 + "size": 788 } @@ -254,8 +251,7 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/file1.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/file1.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js index 9b04daa30245b..774766d7d5447 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js @@ -34,10 +34,10 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -file2.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const y: string = 20; -   ~ +4 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -62,7 +62,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[[3,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,21 +104,21 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], [ "./file2.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'number' is not assignable to type 'string'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 834 + "size": 719 } @@ -158,10 +158,7 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/file1.ts -/users/username/projects/project/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -201,10 +198,10 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -file2.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const y: string = 20; -   ~ +4 "module": "amd" +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -220,7 +217,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[[3,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -266,21 +263,21 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], [ "./file2.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'number' is not assignable to type 'string'." - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 903 + "size": 788 } @@ -320,8 +317,7 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/file1.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/file1.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js index 8463ca7d652b0..53b6e419ed19e 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js @@ -31,6 +31,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -i Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/users/username/projects/project/file1.js] @@ -52,7 +60,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -93,8 +101,22 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 674 + "size": 711 } @@ -113,17 +135,14 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/file1.ts -/users/username/projects/project/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) /users/username/projects/project/file1.ts (used version) /users/username/projects/project/file2.ts (used version) -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: @@ -133,6 +152,14 @@ export const z = 10; Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd" +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/users/username/projects/project/file2.js] @@ -145,7 +172,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -190,8 +217,22 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 743 + "size": 780 } @@ -210,10 +251,9 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/file2.ts (computed .d.ts) -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js index 8e17008971c13..e1cccb10b4ff7 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js @@ -34,7 +34,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -57,7 +62,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,8 +103,22 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 674 + "size": 711 } @@ -139,10 +158,7 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/file1.ts -/users/username/projects/project/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -182,7 +198,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -196,7 +217,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -241,8 +262,22 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 743 + "size": 780 } @@ -282,8 +317,7 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/file2.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js index 2f055e5e35b4f..7d733814d6016 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js @@ -32,6 +32,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -i Output:: +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + + +Found 1 error in tsconfig.json:4 + //// [/users/username/projects/project/out.js] @@ -50,7 +58,7 @@ define("file2", ["require", "exports"], function (require, exports) { //// [/users/username/projects/project/out.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { @@ -78,8 +86,22 @@ define("file2", ["require", "exports"], function (require, exports) { "module": 2, "outFile": "./out.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 657 + "size": 694 } @@ -99,11 +121,8 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/file1.ts -/users/username/projects/project/file2.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js index 7f8e6c6a90dcc..01e45d3f44629 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js @@ -35,7 +35,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -55,7 +60,7 @@ define("file2", ["require", "exports"], function (require, exports) { //// [/users/username/projects/project/out.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { @@ -83,8 +88,22 @@ define("file2", ["require", "exports"], function (require, exports) { "module": 2, "outFile": "./out.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file1.ts", + "not cached or not changed" + ], + [ + "./file2.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 657 + "size": 694 } @@ -125,10 +144,7 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/file1.ts -/users/username/projects/project/file2.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/noEmit/outFile/dts-errors-with-incremental-as-modules.js b/tests/baselines/reference/tscWatch/noEmit/outFile/dts-errors-with-incremental-as-modules.js index ceb219d94b3ef..c346f07ce880c 100644 --- a/tests/baselines/reference/tscWatch/noEmit/outFile/dts-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tscWatch/noEmit/outFile/dts-errors-with-incremental-as-modules.js @@ -37,22 +37,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -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; }; -   ~ +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -81,35 +76,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 716 } @@ -152,10 +125,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -180,12 +150,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -214,12 +189,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 694 + "size": 701 } @@ -243,10 +219,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -278,12 +251,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -312,8 +290,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 677 + "size": 714 } //// [/home/src/projects/outFile.js] @@ -360,7 +352,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -393,7 +385,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -418,7 +415,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -443,22 +440,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -487,35 +479,11 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "emitDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 13, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 1015 + "size": 712 } @@ -539,10 +507,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -584,12 +549,17 @@ Output::    ~ Add a type annotation to the variable a. -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[2,[{"start":13,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":13,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -618,6 +588,20 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./project/a.ts", @@ -642,7 +626,7 @@ Output:: ] ], "version": "FakeTSVersion", - "size": 998 + "size": 1035 } //// [/home/src/projects/outFile.js] @@ -685,7 +669,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -718,15 +702,10 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a = class { private p = 10; }; -   ~ - - a.ts:1:14 - 1 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -753,7 +732,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js b/tests/baselines/reference/tscWatch/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js index 40c113038446f..8fce34a246c7a 100644 --- a/tests/baselines/reference/tscWatch/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js +++ b/tests/baselines/reference/tscWatch/noEmit/outFile/dts-errors-without-dts-enabled-with-incremental-as-modules.js @@ -36,12 +36,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -69,12 +74,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 693 + "size": 697 } @@ -116,10 +122,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -144,12 +147,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -177,12 +185,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -205,10 +214,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -239,12 +245,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -272,8 +283,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -310,7 +335,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -342,7 +367,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -366,7 +396,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -391,12 +421,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -424,9 +459,8 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", "size": 693 @@ -452,10 +486,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -486,12 +517,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9502176711-export const a = class { private p = 10; };","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -519,8 +555,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 673 + "size": 710 } //// [/home/src/projects/outFile.js] @@ -562,7 +612,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -594,7 +644,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -618,7 +673,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/noEmit/outFile/semantic-errors-with-incremental-as-modules.js b/tests/baselines/reference/tscWatch/noEmit/outFile/semantic-errors-with-incremental-as-modules.js index d720f00bcdc4b..e0ed5489f40a1 100644 --- a/tests/baselines/reference/tscWatch/noEmit/outFile/semantic-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tscWatch/noEmit/outFile/semantic-errors-with-incremental-as-modules.js @@ -36,17 +36,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -74,26 +74,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 837 + "size": 689 } @@ -135,10 +122,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -163,12 +147,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -196,12 +185,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -224,10 +214,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -258,12 +245,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -291,8 +283,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -329,7 +335,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -361,7 +367,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -385,7 +396,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -410,17 +421,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -448,26 +459,11 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "semanticDiagnosticsPerFile": [ - [ - "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] - ] - ], - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts" ], "version": "FakeTSVersion", - "size": 837 + "size": 685 } @@ -490,10 +486,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -524,17 +517,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[2,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-11417512537-export const a: number = \"hello\"","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -563,21 +556,21 @@ Output:: "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "./project/a.ts", - [ - { - "start": 13, - "length": 1, - "code": 2322, - "category": 1, - "messageText": "Type 'string' is not assignable to type 'number'." - } - ] + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 817 + "size": 702 } //// [/home/src/projects/outFile.js] file written with same contents @@ -600,7 +593,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -632,10 +625,10 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -a.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 export const a: number = "hello" -   ~ +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -661,7 +654,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/noEmit/outFile/syntax-errors-with-incremental-as-modules.js b/tests/baselines/reference/tscWatch/noEmit/outFile/syntax-errors-with-incremental-as-modules.js index 2e2f12f1b193e..1805c3fd022c1 100644 --- a/tests/baselines/reference/tscWatch/noEmit/outFile/syntax-errors-with-incremental-as-modules.js +++ b/tests/baselines/reference/tscWatch/noEmit/outFile/syntax-errors-with-incremental-as-modules.js @@ -147,12 +147,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"pendingEmit":false,"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"changeFileSet":[2,3,1],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -180,12 +185,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js", - false + "changeFileSet": [ + "./project/a.ts", + "./project/b.ts", + "../tslibs/ts/lib/lib.d.ts" ], "version": "FakeTSVersion", - "size": 678 + "size": 682 } @@ -208,10 +214,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/project/a.ts -/home/src/projects/project/b.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -242,12 +245,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/home/src/projects/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16641552193-export const a = \"hello\";","-13368947479-export const b = 10;"],"root":[2,3],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} //// [/home/src/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -275,8 +283,22 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/a.ts", + "not cached or not changed" + ], + [ + "./project/b.ts", + "not cached or not changed" + ] + ], "version": "FakeTSVersion", - "size": 658 + "size": 695 } //// [/home/src/projects/outFile.js] @@ -313,7 +335,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -345,7 +367,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -369,7 +396,7 @@ Program files:: /home/src/projects/project/a.ts /home/src/projects/project/b.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-declaration-with-incremental.js b/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-declaration-with-incremental.js index 59d41ce6d9b74..5582bd6b1c138 100644 --- a/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-declaration-with-incremental.js +++ b/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-declaration-with-incremental.js @@ -54,7 +54,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -196,12 +201,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -236,41 +246,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 904 + "size": 938 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} - - Program root files: [ @@ -346,7 +330,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -478,12 +467,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -518,28 +512,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 895 + "size": 929 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] file written with same contents Program root files: [ @@ -611,22 +592,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"emitDiagnosticsPerFile":[[3,[{"start":53,"length":1,"messageText":"Property 'p' of exported anonymous class type may not be private or protected.","category":1,"code":4094,"relatedInformation":[{"start":53,"length":1,"messageText":"Add a type annotation to the variable a.","category":1,"code":9027}]}]]],"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -661,35 +637,13 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, - "emitDiagnosticsPerFile": [ - [ - "./noemitonerror/src/main.ts", - [ - { - "start": 53, - "length": 1, - "messageText": "Property 'p' of exported anonymous class type may not be private or protected.", - "category": 1, - "code": 4094, - "relatedInformation": [ - { - "start": 53, - "length": 1, - "messageText": "Add a type annotation to the variable a.", - "category": 1, - "code": 9027 - } - ] - } - ] - ] - ], "pendingEmit": [ - "Js | DtsEmit", - 17 + "Js | Dts", + false ], + "errors": true, "version": "FakeTSVersion", - "size": 1234 + "size": 945 } @@ -763,12 +717,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -803,51 +762,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 903 + "size": 937 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { - export const a: { - new (): { - p: number; - }; - }; -} -declare module "src/other" { - export {}; -} - - Program root files: [ diff --git a/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-declaration.js b/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-declaration.js index 34c56a5897855..07dad3a8821ac 100644 --- a/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-declaration.js +++ b/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-declaration.js @@ -53,7 +53,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -149,39 +154,13 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { } -declare module "src/other" { - export {}; -} @@ -258,7 +237,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -331,28 +315,15 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] file written with same contents Program root files: [ @@ -423,15 +394,10 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -src/main.ts:2:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -2 export const a = class { private p = 10; }; -   ~ - - src/main.ts:2:14 - 2 export const a = class { private p = 10; }; -    ~ - Add a type annotation to the variable a. +4 "module": "amd", +   ~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -507,49 +473,13 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - -//// [/user/username/projects/dev-build.d.ts] -declare module "shared/types/db" { - export interface A { - name: string; - } -} -declare module "src/main" { - export const a: { - new (): { - p: number; - }; - }; -} -declare module "src/other" { - export {}; -} diff --git a/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-incremental.js index c7e17069417d9..c43d23a19984e 100644 --- a/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError-with-incremental.js @@ -53,7 +53,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -193,12 +198,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -232,29 +242,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 885 + "size": 919 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ @@ -329,7 +325,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -459,12 +460,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -498,27 +504,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 876 + "size": 910 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ @@ -589,12 +583,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","5099365167-import { A } from \"../shared/types/db\";\nexport const a = class { private p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -628,33 +627,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 892 + "size": 926 } -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); - - Program root files: [ @@ -725,12 +706,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/dev-build.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./noemitonerror/shared/types/db.ts","./noemitonerror/src/main.ts","./noemitonerror/src/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5014788164-export interface A {\n name: string;\n}\n","-614304812-import { A } from \"../shared/types/db\";\nexport const a = class { p = 10; };\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"module":2,"noEmitOnError":true,"outFile":"./dev-build.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/dev-build.tsbuildinfo.readable.baseline.txt] { @@ -764,11 +750,15 @@ Output:: "noEmitOnError": true, "outFile": "./dev-build.js" }, + "pendingEmit": [ + "Js", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 884 + "size": 918 } -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ diff --git a/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError.js b/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError.js index 2b5575d4e5f47..4ef5df0fcec3f 100644 --- a/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/noEmitOnError/outFile/noEmitOnError.js @@ -52,7 +52,12 @@ Output:: 4 ;   ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -147,27 +152,13 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = { - lastName: 'sdsd' - }; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); @@ -243,7 +234,12 @@ Output:: 2 const a: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -315,25 +311,13 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = "hello"; -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); @@ -405,31 +389,13 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. - - -//// [/user/username/projects/dev-build.js] -define("shared/types/db", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); -define("src/main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = /** @class */ (function () { - function class_1() { - this.p = 10; - } - return class_1; - }()); -}); -define("src/other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - console.log("hi"); -}); @@ -501,11 +467,15 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/dev-build.js] file written with same contents Program root files: [ diff --git a/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js b/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js index 4936ccf2e1adb..2fdeed2c40c08 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js +++ b/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js @@ -104,12 +104,22 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -f1.ts:1:1 - error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'. +tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. -1 export {} -  ~~~~~~~~~ +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none" +   ~~~~~~~~ + +tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none" +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. @@ -129,9 +139,7 @@ Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /user/username/workspace/solution/projects/project/f1.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/workspace/solution/projects/project/f1.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js index dabb6ea17da73..a2da72dae84c5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js @@ -35,7 +35,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -106,10 +111,7 @@ Program files:: /user/username/projects/myproject/file1.ts /user/username/projects/myproject/src/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/file1.ts -/user/username/projects/myproject/src/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -146,7 +148,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -209,8 +216,7 @@ Program files:: /user/username/projects/myproject/src/file2.ts /user/username/projects/myproject/src/file3.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/file3.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/src/file3.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js index ab9beffbedd67..f5c4e0295997b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js @@ -36,7 +36,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -108,10 +113,7 @@ Program files:: /user/username/projects/myproject/file1.ts /user/username/projects/myproject/src/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/file1.ts -/user/username/projects/myproject/src/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -148,7 +150,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -212,8 +219,7 @@ Program files:: /user/username/projects/myproject/src/file2.ts /user/username/projects/myproject/src/file3.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/file3.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/src/file3.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js index 714641ce0d29c..b12772984f6c3 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js @@ -34,7 +34,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -96,10 +101,7 @@ Program files:: /user/username/projects/myproject/file1.ts /user/username/projects/myproject/src/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/file1.ts -/user/username/projects/myproject/src/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -136,7 +138,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -194,8 +201,7 @@ Program files:: /user/username/projects/myproject/src/file2.ts /user/username/projects/myproject/src/file3.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/file3.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/src/file3.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js index 3f9fe46a99a68..90630a3685e48 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js @@ -34,7 +34,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -93,10 +98,7 @@ Program files:: /user/username/projects/myproject/file1.ts /user/username/projects/myproject/src/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/file1.ts -/user/username/projects/myproject/src/file2.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -130,7 +132,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -200,11 +207,7 @@ Program files:: /user/username/projects/myproject/src/file2.ts /user/username/projects/myproject/src/file3.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/file1.ts -/user/username/projects/myproject/src/file2.ts -/user/username/projects/myproject/src/file3.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js index 43800f1b5ed50..80e410b5d5a6a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js @@ -34,7 +34,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -104,10 +109,7 @@ Program files:: /user/username/projects/myproject/file1.ts /user/username/projects/myproject/src/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/file1.ts -/user/username/projects/myproject/src/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -144,7 +146,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -206,8 +213,7 @@ Program files:: /user/username/projects/myproject/src/file2.ts /user/username/projects/myproject/src/file3.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/file3.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/src/file3.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js index 9555c0e47fe45..58ebd33437d84 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js @@ -33,7 +33,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -94,10 +99,7 @@ Program files:: /user/username/projects/myproject/file1.ts /user/username/projects/myproject/src/file2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/file1.ts -/user/username/projects/myproject/src/file2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -134,7 +136,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:3:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -191,8 +198,7 @@ Program files:: /user/username/projects/myproject/src/file2.ts /user/username/projects/myproject/src/file3.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/file3.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/src/file3.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js b/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js index e859605e03a63..f2fae244abc50 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js @@ -35,12 +35,27 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... +tsconfig.json:2:25 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +tsconfig.json:3:29 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +tsconfig.json:3:39 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + tsconfig.json:4:29 - error TS5023: Unknown compiler option 'allowAnything'. 4 "allowAnything": true    ~~~~~~~~~~~~~~~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 4 errors. Watching for file changes. @@ -92,10 +107,7 @@ Program files:: /user/username/workspace/solution/projects/project/commonFile1.ts /user/username/workspace/solution/projects/project/commonFile2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/workspace/solution/projects/project/commonFile1.ts -/user/username/workspace/solution/projects/project/commonFile2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js index e60834bf2419b..abe42055bdc00 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js @@ -71,7 +71,22 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -94,7 +109,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -143,9 +158,23 @@ declare class class2 { "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 872 + "size": 909 } @@ -194,10 +223,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class1.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/projects/project1/class1.d.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -250,66 +276,25 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj   ~~~~~ File is output from referenced project specified here. -[HH:MM:SS AM] Found 1 error. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 4 errors. Watching for file changes. -//// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","errors":true,"version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", - "../project1/class1.d.ts", - "./class2.ts" - ], - "fileInfos": { - "../../../../../../home/src/tslibs/ts/lib/lib.d.ts": { - "original": { - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../project1/class1.d.ts": { - "original": { - "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true - }, - "version": "-3469237238-declare class class1 {}", - "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true - }, - "./class2.ts": { - "original": { - "version": "777969115-class class2 {}", - "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true - }, - "version": "777969115-class class2 {}", - "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true - } - }, - "root": [ - [ - 3, - "./class2.ts" - ] - ], - "options": { - "composite": true, - "module": 0 - }, - "latestChangedDtsFile": "./class2.d.ts", - "errors": true, - "version": "FakeTSVersion", - "size": 886 -} - PolledWatches:: /user/username/projects/myproject/node_modules/@types: @@ -359,7 +344,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class1.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -431,13 +416,28 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -496,9 +496,27 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "../project1/class3.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 974 + "size": 1013 } @@ -551,11 +569,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class3.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/projects/project1/class1.d.ts -/user/username/projects/myproject/projects/project1/class3.d.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/projects/project1/class3.d.ts (used version) @@ -628,13 +642,28 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj   ~~~~~ File is output from referenced project specified here. -[HH:MM:SS AM] Found 1 error. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 4 errors. Watching for file changes. //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -684,6 +713,10 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "module": 0 }, "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "../project1/class1.d.ts", "not cached or not changed" @@ -695,7 +728,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 907 + "size": 909 } @@ -751,9 +784,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class1.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/projects/project1/class1.d.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/projects/project1/class1.d.ts (used version) @@ -827,13 +858,28 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -892,9 +938,27 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "../project1/class3.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 974 + "size": 1013 } @@ -947,11 +1011,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class3.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/projects/project1/class1.d.ts -/user/username/projects/myproject/projects/project1/class3.d.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/projects/project1/class3.d.ts (used version) diff --git a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js index cf5a68b052387..049198a748d5f 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js @@ -26,17 +26,9 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -d/f0.ts:1:17 - error TS2306: File '/users/username/projects/project/f1.ts' is not a module. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 import {x} from "f1" -   ~~~~ - -f1.ts:1:1 - error TS2304: Cannot find name 'foo'. - -1 foo() -  ~~~ - -[HH:MM:SS AM] Found 2 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -82,10 +74,7 @@ Program files:: /users/username/projects/project/f1.ts /users/username/projects/project/d/f0.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/f1.ts -/users/username/projects/project/d/f0.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -114,22 +103,9 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -d/f0.ts:1:17 - error TS2306: File '/users/username/projects/project/f1.ts' is not a module. - -1 import {x} from "f1" -   ~~~~ - -d/f0.ts:2:33 - error TS2322: Type 'number' is not assignable to type 'string'. - -2 var x: string = 1; -   ~ - -f1.ts:1:1 - error TS2304: Cannot find name 'foo'. - -1 foo() -  ~~~ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -155,8 +131,7 @@ Program files:: /users/username/projects/project/f1.ts /users/username/projects/project/d/f0.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/d/f0.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/d/f0.ts (computed .d.ts) @@ -182,10 +157,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -d/f0.ts:1:17 - error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? - -1 import {x} from "f2" -   ~~~~ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -239,8 +211,7 @@ Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /users/username/projects/project/d/f0.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/d/f0.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/d/f0.ts (computed .d.ts) @@ -266,17 +237,9 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -d/f0.ts:1:17 - error TS2306: File '/users/username/projects/project/f1.ts' is not a module. - -1 import {x} from "f1" -   ~~~~ - -f1.ts:1:1 - error TS2304: Cannot find name 'foo'. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -1 foo() -  ~~~ - -[HH:MM:SS AM] Found 2 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -326,10 +289,7 @@ Program files:: /users/username/projects/project/f1.ts /users/username/projects/project/d/f0.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/f1.ts -/users/username/projects/project/d/f0.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/f1.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js b/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js index 21aaa0cb97c48..17bf5ddff73e8 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js @@ -23,10 +23,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -foo.ts:1:17 - error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? - -1 import {x} from "bar" -   ~~~~~ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -71,9 +68,7 @@ Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /users/username/projects/project/foo.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/foo.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -104,7 +99,9 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -152,9 +149,7 @@ Program files:: /users/username/projects/project/bar.d.ts /users/username/projects/project/foo.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/bar.d.ts -/users/username/projects/project/foo.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/bar.d.ts (used version) diff --git a/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js b/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js index 8abfff099e72f..8f8c7d3238219 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js @@ -26,7 +26,9 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -66,10 +68,7 @@ Program files:: /users/username/projects/project/bar.d.ts /users/username/projects/project/foo.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/users/username/projects/project/bar.d.ts -/users/username/projects/project/foo.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -97,10 +96,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -foo.ts:1:17 - error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? - -1 import {x} from "bar" -   ~~~~~ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -147,8 +143,7 @@ Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /users/username/projects/project/foo.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/foo.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/foo.ts (computed .d.ts) @@ -183,7 +178,9 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -228,9 +225,7 @@ Program files:: /users/username/projects/project/bar.d.ts /users/username/projects/project/foo.ts -Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/bar.d.ts -/users/username/projects/project/foo.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /users/username/projects/project/bar.d.ts (used version) diff --git a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js index dc306545b150a..a278d12275b66 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js @@ -42,7 +42,22 @@ Output::    ~~~~~~~~~~~~~~~~~ File is entry point of type library specified here. -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 4 errors. Watching for file changes. @@ -136,22 +151,22 @@ FsWatchesRecursive:: {} Timeout callback:: count: 2 -11: timerToInvalidateFailedLookupResolutions *new* -12: timerToUpdateProgram *new* +12: timerToInvalidateFailedLookupResolutions *new* +13: timerToUpdateProgram *new* Before running Timeout callback:: count: 2 -11: timerToInvalidateFailedLookupResolutions -12: timerToUpdateProgram +12: timerToInvalidateFailedLookupResolutions +13: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 1 Timeout callback:: count: 1 -12: timerToUpdateProgram *deleted* -13: timerToUpdateProgram *new* +13: timerToUpdateProgram *deleted* +14: timerToUpdateProgram *new* Before running Timeout callback:: count: 1 -13: timerToUpdateProgram +14: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -159,7 +174,22 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. @@ -207,10 +237,7 @@ Program files:: /user/username/projects/myproject/lib/app.ts /user/username/projects/myproject/node_modules/@myapp/ts-types/types/somefile.define.d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/lib/app.ts -/user/username/projects/myproject/node_modules/@myapp/ts-types/types/somefile.define.d.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/node_modules/@myapp/ts-types/types/somefile.define.d.ts (used version) diff --git a/tests/baselines/reference/tscWatch/watchApi/multiFile/when-emitting-with-emitOnlyDtsFiles.js b/tests/baselines/reference/tscWatch/watchApi/multiFile/when-emitting-with-emitOnlyDtsFiles.js index a69c0b04ddc37..318fa417eb2fb 100644 --- a/tests/baselines/reference/tscWatch/watchApi/multiFile/when-emitting-with-emitOnlyDtsFiles.js +++ b/tests/baselines/reference/tscWatch/watchApi/multiFile/when-emitting-with-emitOnlyDtsFiles.js @@ -56,7 +56,12 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node 1 export const y: 10 = 20;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -213,7 +218,7 @@ CreatingProgramWith:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"affectedFilesPendingEmit":[[2,1],[3,1]],"latestChangedDtsFile":"./b.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3],"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,12 +238,8 @@ CreatingProgramWith:: "affectsGlobalScope": true }, "./a.ts": { - "original": { - "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" - }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-10726455937-export const x = 10;" }, "./b.ts": { "original": { @@ -266,33 +267,23 @@ CreatingProgramWith:: }, "affectedFilesPendingEmit": [ [ - [ - "./a.ts", - 1 - ], - "Js" + "./a.ts", + "Js | Dts" ], [ - [ - "./b.ts", - 1 - ], - "Js" + "./b.ts", + "Js | Dts" ] ], - "latestChangedDtsFile": "./b.d.ts", + "emitSignatures": [ + "./a.ts", + "./b.ts" + ], + "errors": true, "version": "FakeTSVersion", - "size": 917 + "size": 843 } -//// [/user/username/projects/myproject/a.d.ts] -export declare const x = 10; - - -//// [/user/username/projects/myproject/b.d.ts] -export declare const y = 10; - - Program root files: [ @@ -334,81 +325,6 @@ exitCode:: ExitStatus.undefined Change:: Emit all files Input:: -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"latestChangedDtsFile":"./b.d.ts","version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": { - "../../../../home/src/tslibs/ts/lib/lib.d.ts": { - "original": { - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./a.ts": { - "original": { - "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" - }, - "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" - }, - "./b.ts": { - "original": { - "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" - }, - "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" - } - }, - "root": [ - [ - 2, - "./a.ts" - ], - [ - 3, - "./b.ts" - ] - ], - "options": { - "composite": true, - "module": 2, - "noEmitOnError": true - }, - "latestChangedDtsFile": "./b.d.ts", - "version": "FakeTSVersion", - "size": 876 -} - -//// [/user/username/projects/myproject/a.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); - - -//// [/user/username/projects/myproject/b.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 10; -}); - - Program: Same as old program diff --git a/tests/baselines/reference/tscWatch/watchApi/outFile/noEmit-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/outFile/noEmit-with-composite-with-emit-builder.js index add699de17580..5cc53012604a4 100644 --- a/tests/baselines/reference/tscWatch/watchApi/outFile/noEmit-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/outFile/noEmit-with-composite-with-emit-builder.js @@ -35,12 +35,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[1,2,3],"version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -69,12 +74,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "./myproject/main.ts", + "./myproject/other.ts" ], "version": "FakeTSVersion", - "size": 711 + "size": 718 } @@ -115,10 +121,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/main.ts -/user/username/projects/myproject/other.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -129,12 +132,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -163,10 +171,24 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./myproject/main.ts", + "not cached or not changed" + ], + [ + "./myproject/other.ts", + "not cached or not changed" + ] + ], "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 876 + "size": 913 } //// [/user/username/projects/outFile.js] @@ -250,7 +272,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -289,12 +311,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14918944530-export const x = 10;\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14918944530-export const x = 10;\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -323,14 +350,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "changeFileSet": [ + "./myproject/main.ts" + ], "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", - "pendingEmit": [ - "Js | DtsEmit", - 17 - ], "version": "FakeTSVersion", - "size": 909 + "size": 912 } @@ -371,10 +397,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/main.ts -/user/username/projects/myproject/other.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -385,12 +408,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14918944530-export const x = 10;\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14918944530-export const x = 10;\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -419,10 +447,24 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./myproject/main.ts", + "not cached or not changed" + ], + [ + "./myproject/other.ts", + "not cached or not changed" + ] + ], "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 892 + "size": 929 } //// [/user/username/projects/outFile.js] @@ -498,7 +540,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -538,12 +580,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -572,10 +619,24 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./myproject/main.ts", + "not cached or not changed" + ], + [ + "./myproject/other.ts", + "not cached or not changed" + ] + ], "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 908 + "size": 945 } //// [/user/username/projects/outFile.js] @@ -632,10 +693,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/main.ts -/user/username/projects/myproject/other.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/watchApi/outFile/noEmit-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/outFile/noEmit-with-composite-with-semantic-builder.js index 8fba68ffe4da2..289174f4c4713 100644 --- a/tests/baselines/reference/tscWatch/watchApi/outFile/noEmit-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/outFile/noEmit-with-composite-with-semantic-builder.js @@ -35,12 +35,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[1,2,3],"version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -69,12 +74,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, - "pendingEmit": [ - "Js | DtsEmit", - 17 + "changeFileSet": [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "./myproject/main.ts", + "./myproject/other.ts" ], "version": "FakeTSVersion", - "size": 711 + "size": 718 } @@ -115,10 +121,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/main.ts -/user/username/projects/myproject/other.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -136,12 +139,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -170,10 +178,24 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./myproject/main.ts", + "not cached or not changed" + ], + [ + "./myproject/other.ts", + "not cached or not changed" + ] + ], "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 876 + "size": 913 } //// [/user/username/projects/outFile.js] @@ -257,7 +279,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -303,12 +325,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14918944530-export const x = 10;\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":17,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14918944530-export const x = 10;\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -337,14 +364,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "changeFileSet": [ + "./myproject/main.ts" + ], "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", - "pendingEmit": [ - "Js | DtsEmit", - 17 - ], "version": "FakeTSVersion", - "size": 909 + "size": 912 } @@ -385,10 +411,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/main.ts -/user/username/projects/myproject/other.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -406,12 +429,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14918944530-export const x = 10;\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14918944530-export const x = 10;\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -440,10 +468,24 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./myproject/main.ts", + "not cached or not changed" + ], + [ + "./myproject/other.ts", + "not cached or not changed" + ] + ], "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 892 + "size": 929 } //// [/user/username/projects/outFile.js] @@ -519,7 +561,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -566,12 +608,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"changeFileSet":[2],"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -600,10 +647,13 @@ Output:: "module": 2, "outFile": "./outFile.js" }, + "changeFileSet": [ + "./myproject/main.ts" + ], "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", "latestChangedDtsFile": "./outFile.d.ts", "version": "FakeTSVersion", - "size": 908 + "size": 928 } //// [/user/username/projects/outFile.js] @@ -660,10 +710,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/main.ts -/user/username/projects/myproject/other.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/watchApi/outFile/noEmitOnError-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/outFile/noEmitOnError-with-composite-with-emit-builder.js index 7226b63bc6ed8..1b0b9d5cade2f 100644 --- a/tests/baselines/reference/tscWatch/watchApi/outFile/noEmitOnError-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/outFile/noEmitOnError-with-composite-with-emit-builder.js @@ -41,7 +41,12 @@ Output:: 1 export const x: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -183,7 +188,12 @@ Output:: 1 export const x: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -319,12 +329,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -354,36 +369,15 @@ Output:: "noEmitOnError": true, "outFile": "./outFile.js" }, - "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", - "latestChangedDtsFile": "./outFile.d.ts", + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 897 + "size": 749 } -//// [/user/username/projects/outFile.js] -define("main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 10; -}); - - -//// [/user/username/projects/outFile.d.ts] -declare module "main" { - export const x = 10; -} -declare module "other" { - export const y = 10; -} - - PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/outFile/noEmitOnError-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/outFile/noEmitOnError-with-composite-with-semantic-builder.js index d669686b0328e..00ca73cd83108 100644 --- a/tests/baselines/reference/tscWatch/watchApi/outFile/noEmitOnError-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/outFile/noEmitOnError-with-composite-with-semantic-builder.js @@ -41,7 +41,12 @@ Output:: 1 export const x: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -190,7 +195,12 @@ Output:: 1 export const x: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -333,12 +343,17 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -368,36 +383,15 @@ Output:: "noEmitOnError": true, "outFile": "./outFile.js" }, - "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", - "latestChangedDtsFile": "./outFile.d.ts", + "pendingEmit": [ + "Js | Dts", + false + ], + "errors": true, "version": "FakeTSVersion", - "size": 897 + "size": 749 } -//// [/user/username/projects/outFile.js] -define("main", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("other", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 10; -}); - - -//// [/user/username/projects/outFile.d.ts] -declare module "main" { - export const x = 10; -} -declare module "other" { - export const y = 10; -} - - PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/outFile/semantic-builder-emitOnlyDts.js b/tests/baselines/reference/tscWatch/watchApi/outFile/semantic-builder-emitOnlyDts.js index cb4015ae1c4a6..b90e4923c2e5d 100644 --- a/tests/baselines/reference/tscWatch/watchApi/outFile/semantic-builder-emitOnlyDts.js +++ b/tests/baselines/reference/tscWatch/watchApi/outFile/semantic-builder-emitOnlyDts.js @@ -41,7 +41,12 @@ Output:: 1 export const x: string = 10;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:6:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +6 "module": "amd" +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -181,7 +186,7 @@ Output:: //// [/user/username/projects/outFile.tsbuildinfo] -{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":1,"version":"FakeTSVersion"} +{"fileNames":["../../../home/src/tslibs/ts/lib/lib.d.ts","./myproject/main.ts","./myproject/other.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/outFile.tsbuildinfo.readable.baseline.txt] { @@ -211,25 +216,15 @@ Output:: "noEmitOnError": true, "outFile": "./outFile.js" }, - "outSignature": "3483479585-declare module \"main\" {\n export const x = 10;\n}\ndeclare module \"other\" {\n export const y = 10;\n}\n", - "latestChangedDtsFile": "./outFile.d.ts", "pendingEmit": [ - "Js", - 1 + "Js | Dts", + false ], + "errors": true, "version": "FakeTSVersion", - "size": 913 + "size": 749 } -//// [/user/username/projects/outFile.d.ts] -declare module "main" { - export const x = 10; -} -declare module "other" { - export const y = 10; -} - - PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/outFile/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js b/tests/baselines/reference/tscWatch/watchApi/outFile/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js index 97d5b1ac17069..b0a16703507c7 100644 --- a/tests/baselines/reference/tscWatch/watchApi/outFile/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js +++ b/tests/baselines/reference/tscWatch/watchApi/outFile/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js @@ -29,7 +29,9 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -70,10 +72,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/main.ts -/user/username/projects/myproject/other.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -99,7 +98,9 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -121,10 +122,7 @@ Program files:: /user/username/projects/myproject/main.ts /user/username/projects/myproject/other.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/main.ts -/user/username/projects/myproject/other.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/watchApi/outFile/when-emitting-with-emitOnlyDtsFiles.js b/tests/baselines/reference/tscWatch/watchApi/outFile/when-emitting-with-emitOnlyDtsFiles.js index a8bde222cbce4..c793ba7e4951f 100644 --- a/tests/baselines/reference/tscWatch/watchApi/outFile/when-emitting-with-emitOnlyDtsFiles.js +++ b/tests/baselines/reference/tscWatch/watchApi/outFile/when-emitting-with-emitOnlyDtsFiles.js @@ -57,7 +57,12 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node 1 export const y: 10 = 20;    ~ -[HH:MM:SS AM] Found 1 error. Watching for file changes. +tsconfig.json:5:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +5 "module": "amd", +   ~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -189,7 +194,7 @@ CreatingProgramWith:: //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":1,"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"pendingEmit":false,"errors":true,"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -219,25 +224,15 @@ CreatingProgramWith:: "noEmitOnError": true, "outFile": "./outFile.js" }, - "outSignature": "-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n", - "latestChangedDtsFile": "./outFile.d.ts", "pendingEmit": [ - "Js", - 1 + "Js | Dts", + false ], + "errors": true, "version": "FakeTSVersion", - "size": 883 + "size": 725 } -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "a" { - export const x = 10; -} -declare module "b" { - export const y = 10; -} - - Program root files: [ @@ -281,58 +276,6 @@ exitCode:: ExitStatus.undefined Change:: Emit all files Input:: -//// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": { - "../../../../home/src/tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "./a.ts": "-10726455937-export const x = 10;", - "./b.ts": "-13729955264-export const y = 10;" - }, - "root": [ - [ - 2, - "./a.ts" - ], - [ - 3, - "./b.ts" - ] - ], - "options": { - "composite": true, - "module": 2, - "noEmitOnError": true, - "outFile": "./outFile.js" - }, - "outSignature": "-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n", - "latestChangedDtsFile": "./outFile.d.ts", - "version": "FakeTSVersion", - "size": 867 -} - -//// [/user/username/projects/myproject/outFile.js] -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 10; -}); - - Program: Same as old program diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js index 5acd3428217ef..ac5c42dbe0477 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js @@ -71,7 +71,22 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -94,7 +109,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -143,9 +158,23 @@ declare class class2 { "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 872 + "size": 909 } @@ -192,10 +221,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class1.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/projects/project1/class1.d.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -248,66 +274,25 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj   ~~~~~ File is output from referenced project specified here. -[HH:MM:SS AM] Found 1 error. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 4 errors. Watching for file changes. -//// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","errors":true,"version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", - "../project1/class1.d.ts", - "./class2.ts" - ], - "fileInfos": { - "../../../../../../home/src/tslibs/ts/lib/lib.d.ts": { - "original": { - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "version": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../project1/class1.d.ts": { - "original": { - "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true - }, - "version": "-3469237238-declare class class1 {}", - "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true - }, - "./class2.ts": { - "original": { - "version": "777969115-class class2 {}", - "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true - }, - "version": "777969115-class class2 {}", - "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true - } - }, - "root": [ - [ - 3, - "./class2.ts" - ] - ], - "options": { - "composite": true, - "module": 0 - }, - "latestChangedDtsFile": "./class2.d.ts", - "errors": true, - "version": "FakeTSVersion", - "size": 886 -} - PolledWatches:: /user/username/projects/myproject/node_modules/@types: @@ -355,7 +340,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class1.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -427,13 +412,28 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -492,9 +492,27 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "../project1/class3.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 974 + "size": 1013 } @@ -545,11 +563,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class3.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/projects/project1/class1.d.ts -/user/username/projects/myproject/projects/project1/class3.d.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/projects/project1/class3.d.ts (used version) @@ -622,13 +636,28 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj   ~~~~~ File is output from referenced project specified here. -[HH:MM:SS AM] Found 1 error. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 4 errors. Watching for file changes. //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -678,6 +707,10 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "module": 0 }, "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], [ "../project1/class1.d.ts", "not cached or not changed" @@ -689,7 +722,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 907 + "size": 909 } @@ -743,9 +776,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class1.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/projects/project1/class1.d.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/projects/project1/class1.d.ts (used version) @@ -819,13 +850,28 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -884,9 +930,27 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.d.ts", + "not cached or not changed" + ], + [ + "../project1/class3.d.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 974 + "size": 1013 } @@ -937,11 +1001,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class3.d.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/projects/project1/class1.d.ts -/user/username/projects/myproject/projects/project1/class3.d.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/projects/project1/class3.d.ts (used version) diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js index 2925b3499f6a8..c64b69f92eea1 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js @@ -71,7 +71,22 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -94,7 +109,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"777933178-class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"777933178-class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -143,9 +158,23 @@ declare class class2 { "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 860 + "size": 897 } @@ -192,10 +221,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class1.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/projects/project1/class1.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -235,13 +261,28 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.ts 250 undefined Source file -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. + +2 "compilerOptions": { +   ~~~~~~~~~~~~~~~~~ + +project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. + +3 "module": "none", +   ~~~~~~~~ + +project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "module": "none", +   ~~~~~~ + +[HH:MM:SS AM] Found 3 errors. Watching for file changes. //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.ts","../project1/class3.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"777933178-class class1 {}","signature":"-2723220098-declare class class1 {\n}\n","affectsGlobalScope":true},{"version":"778005052-class class3 {}","signature":"-2644949312-declare class class3 {\n}\n","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../../home/src/tslibs/ts/lib/lib.d.ts","../project1/class1.ts","../project1/class3.ts","./class2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"777933178-class class1 {}","signature":"-2723220098-declare class class1 {\n}\n","affectsGlobalScope":true},{"version":"778005052-class class3 {}","signature":"-2644949312-declare class class3 {\n}\n","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,9 +343,27 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "composite": true, "module": 0 }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../project1/class1.ts", + "not cached or not changed" + ], + [ + "../project1/class3.ts", + "not cached or not changed" + ], + [ + "./class2.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./class2.d.ts", "version": "FakeTSVersion", - "size": 1058 + "size": 1097 } @@ -355,11 +414,7 @@ Program files:: /user/username/projects/myproject/projects/project1/class3.ts /user/username/projects/myproject/projects/project2/class2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/projects/project1/class1.ts -/user/username/projects/myproject/projects/project1/class3.ts -/user/username/projects/myproject/projects/project2/class2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/projects/project1/class3.ts (computed .d.ts) diff --git a/tests/baselines/reference/tsconfigMapOptionsAreCaseInsensitive.errors.txt b/tests/baselines/reference/tsconfigMapOptionsAreCaseInsensitive.errors.txt new file mode 100644 index 0000000000000..5b331ebadd7a2 --- /dev/null +++ b/tests/baselines/reference/tsconfigMapOptionsAreCaseInsensitive.errors.txt @@ -0,0 +1,21 @@ +tsconfig.json(3,19): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + "module": "AmD" + ~~~~~ +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + } + } + +==== other.ts (0 errors) ==== + export default 42; + +==== index.ts (0 errors) ==== + import Answer from "./other.js"; + const x = 10 + Answer; + export { + x + }; \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/compileOnSave/configProjects-outFile.js b/tests/baselines/reference/tsserver/compileOnSave/configProjects-outFile.js index 6befa6b9292bb..fd1ed7a41b7a9 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/configProjects-outFile.js +++ b/tests/baselines/reference/tsserver/compileOnSave/configProjects-outFile.js @@ -155,7 +155,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspace/projects/b/moduleFile1.ts", "configFile": "/home/src/workspace/projects/b/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 39 + }, + "end": { + "line": 4, + "offset": 47 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/home/src/workspace/projects/b/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/home/src/workspace/projects/b/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js index a5455fc2c2aaf..f49524ee0490a 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js @@ -166,7 +166,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/file1.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 3 + }, + "end": { + "line": 3, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + }, + { + "start": { + "line": 5, + "offset": 5 + }, + "end": { + "line": 5, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + }, + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js index 8201be284b3f2..1ea1270901cd7 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js @@ -166,7 +166,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/file1.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 3 + }, + "end": { + "line": 3, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + }, + { + "start": { + "line": 5, + "offset": 5 + }, + "end": { + "line": 5, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + }, + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js b/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js index 458cdacd4f817..2a7d4686ed7d6 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js +++ b/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js @@ -152,7 +152,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/users/username/solution/projects/project/file1.ts", "configFile": "/users/username/solution/projects/project/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 15 + }, + "end": { + "line": 6, + "offset": 20 + }, + "text": "Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/users/username/solution/projects/project/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/users/username/solution/projects/project/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index d1220d6aadba5..e0d888ed9e83f 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -141,7 +141,22 @@ Info seq [hh:mm:ss:mss] event: "event": "CustomHandler::configFileDiag", "body": { "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [], + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ], "triggerFile": "/users/username/projects/project/file1Consumer1.ts" } } diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index 4abb9f3bf488a..00e07b7023cf2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -145,7 +145,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/users/username/projects/project/file1Consumer1.ts", "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index c3532faafc4d1..f46dd9c93fd23 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -145,7 +145,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/users/username/projects/project/file1Consumer1.ts", "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-link-open.js index 5998f27a57a82..f2064f9ecbe4e 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-target-and-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-target-and-link-open.js index f6fa5d9bbeb42..8f3f4a459ffc4 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-target-and-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-target-and-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-target-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-target-open.js index e1fbb00a155aa..33ad72ed0d7ca 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-target-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk-with-target-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js index 746c3d3535da5..78e2373e73353 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-link-open.js index 9c27e27f63b9c..19be3c19c5ac1 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-target-and-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-target-and-link-open.js index 333cb69a47588..3743c940b5812 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-target-and-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-target-and-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-target-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-target-open.js index 8c83c798b4fc0..f66efe02c9425 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-target-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not-with-target-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js index cfb02e064bb2e..62ee167cd3ee3 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-link-open.js index 17bb2628edd33..bdf42c352f2c1 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-target-and-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-target-and-link-open.js index 812474512745e..d306783327b8c 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-target-and-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-target-and-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-target-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-target-open.js index f6a2b6d29cca6..7516c616f5e1f 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-target-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different-with-target-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js index b0b0be2fe8474..ecce46211a5a8 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-link-open.js index bf2ee3f258740..d2b72c17b3b26 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-target-and-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-target-and-link-open.js index 53f6d4fc7b63a..c71e5a72b17ba 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-target-and-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-target-and-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-target-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-target-open.js index 904831190df9b..b614e6e5adf0d 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-target-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk-with-target-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js index 2c81a3daae88e..83f20dd96586e 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-link-open.js index c435515f3969a..80994ab9a2cfd 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-target-and-link-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-target-and-link-open.js index c9638420f20b4..c954c89aad037 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-target-and-link-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-target-and-link-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-target-open.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-target-open.js index 51e587c83ada2..84d53553177ea 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-target-open.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not-with-target-open.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js index 6553078bca631..f9e53a60573c5 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js @@ -167,7 +167,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/b.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 5, + "offset": 15 + }, + "end": { + "line": 5, + "offset": 23 + }, + "text": "Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js index adff34f7c212a..4cc1786037d63 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js @@ -509,8 +509,10 @@ Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms -Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache -Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 2 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete Info seq [hh:mm:ss:mss] collectAutoImports: * Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * @@ -525,7 +527,7 @@ Info seq [hh:mm:ss:mss] response: "updateGraphDurationMs": * }, "body": { - "flags": 1, + "flags": 9, "isGlobalCompletion": true, "isMemberCompletion": false, "isNewIdentifierLocation": false, @@ -937,12 +939,19 @@ Info seq [hh:mm:ss:mss] response: "kind": "class", "kindModifiers": "export,declare", "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/common-dependency/index", + "source": "common-dependency", "hasAction": true, + "sourceDisplay": [ + { + "text": "common-dependency", + "kind": "text" + } + ], "isPackageJsonImport": true, "data": { "exportName": "CommonDependency", "exportMapKey": "16 * CommonDependency ", + "moduleSpecifier": "common-dependency", "fileName": "/home/src/workspaces/project/node_modules/common-dependency/index.d.ts", "isPackageJsonImport": true } @@ -952,12 +961,19 @@ Info seq [hh:mm:ss:mss] response: "kind": "class", "kindModifiers": "export,declare", "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/package-dependency/index", + "source": "package-dependency", "hasAction": true, + "sourceDisplay": [ + { + "text": "package-dependency", + "kind": "text" + } + ], "isPackageJsonImport": true, "data": { "exportName": "PackageDependency", "exportMapKey": "17 * PackageDependency ", + "moduleSpecifier": "package-dependency", "fileName": "/home/src/workspaces/project/node_modules/package-dependency/index.d.ts", "isPackageJsonImport": true } @@ -971,6 +987,60 @@ Info seq [hh:mm:ss:mss] response: } } After Request +watchedFiles:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.decorators.d.ts: + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: + {"pollingInterval":500} +/home/src/workspaces/project/node_modules/common-dependency/index.d.ts: + {"pollingInterval":500} +/home/src/workspaces/project/node_modules/common-dependency/jsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/common-dependency/package.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/common-dependency/tsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/jsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/package-dependency/index.d.ts: + {"pollingInterval":500} +/home/src/workspaces/project/node_modules/package-dependency/package.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/tsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/package.json: + {"pollingInterval":250} +/home/src/workspaces/project/packages/a/package.json: + {"pollingInterval":250} +/home/src/workspaces/project/packages/a/tsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/home/src/workspaces/node_modules/@types: + {} + {} +/home/src/workspaces/project/node_modules: *new* + {} +/home/src/workspaces/project/node_modules/@types: + {} + {} +/home/src/workspaces/project/node_modules/common-dependency/node_modules/@types: + {} +/home/src/workspaces/project/node_modules/node_modules/@types: + {} +/home/src/workspaces/project/packages/a: + {} +/home/src/workspaces/project/packages/a/node_modules/@types: + {} +/home/src/workspaces/project/packages/node_modules/@types: + {} + Projects:: /dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* projectStateVersion: 2 diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js index 5de5df8128a8e..bd405d9cf0e5b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js @@ -3588,12 +3588,8 @@ Info seq [hh:mm:ss:mss] request: "command": "completionInfo" } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -4231,12 +4227,6 @@ watchedFiles:: /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} -watchedDirectories:: -/home/src/workspaces: *new* - {} -/home/src/workspaces/project: *new* - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules: *new* {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js index 60c3f35d8f422..ab9286b3e42ce 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js @@ -390,8 +390,8 @@ Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms -Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 1 from cache -Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete Info seq [hh:mm:ss:mss] collectAutoImports: * Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * @@ -403,7 +403,7 @@ Info seq [hh:mm:ss:mss] response: "request_seq": 3, "success": true, "body": { - "flags": 1, + "flags": 9, "isGlobalCompletion": true, "isMemberCompletion": false, "isNewIdentifierLocation": false, @@ -1055,11 +1055,18 @@ Info seq [hh:mm:ss:mss] response: "kind": "const", "kindModifiers": "", "sortText": "16", - "source": "/home/src/workspaces/project/undefinedAlias", + "source": "./undefinedAlias", "hasAction": true, + "sourceDisplay": [ + { + "text": "./undefinedAlias", + "kind": "text" + } + ], "data": { "exportName": "export=", "exportMapKey": "1 * x ", + "moduleSpecifier": "./undefinedAlias", "fileName": "/home/src/workspaces/project/undefinedAlias.ts" } }, @@ -1092,732 +1099,3 @@ Projects:: projectStateVersion: 1 projectProgramVersion: 1 autoImportProviderHost: false *changed* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 4, - "type": "request", - "arguments": { - "preferences": { - "includeCompletionsForModuleExports": true, - "includeInsertTextCompletions": true - } - }, - "command": "configure" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 5, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/index.ts", - "line": 1, - "offset": 1 - }, - "command": "completionInfo" - } -Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * -Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * -Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * -Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit -Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 1 from cache -Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete -Info seq [hh:mm:ss:mss] collectAutoImports: * -Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * -Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "completionInfo", - "request_seq": 5, - "success": true, - "body": { - "flags": 1, - "isGlobalCompletion": true, - "isMemberCompletion": false, - "isNewIdentifierLocation": false, - "entries": [ - { - "name": "abstract", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "any", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "ArrayBuffer", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "as", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "asserts", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "async", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "await", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "bigint", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "boolean", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Boolean", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "break", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "case", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "catch", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "class", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "const", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "continue", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "DataView", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Date", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "debugger", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "declare", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "decodeURI", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "decodeURIComponent", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "default", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "delete", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "do", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "else", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "encodeURI", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "encodeURIComponent", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "enum", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Error", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "eval", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "EvalError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "export", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "extends", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "false", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "finally", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Float32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Float64Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "for", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "function", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Function", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "globalThis", - "kind": "module", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "if", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "implements", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "import", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "in", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "infer", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Infinity", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "instanceof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Int8Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Int16Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Int32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "interface", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Intl", - "kind": "module", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "isFinite", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "isNaN", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "JSON", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "keyof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "let", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Math", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "module", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "namespace", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "NaN", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "never", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "new", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "null", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "number", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Number", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "object", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Object", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "package", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "parseFloat", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "parseInt", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "RangeError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "readonly", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "ReferenceError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "RegExp", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "return", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "satisfies", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "string", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "String", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "super", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "switch", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "symbol", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "SyntaxError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "this", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "throw", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "true", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "try", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "type", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "TypeError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "typeof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Uint8Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint8ClampedArray", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint16Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "undefined", - "kind": "var", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "unique", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "unknown", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "URIError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "using", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "var", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "void", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "while", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "with", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "yield", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "x", - "kind": "const", - "kindModifiers": "", - "sortText": "16", - "source": "/home/src/workspaces/project/undefinedAlias", - "hasAction": true, - "data": { - "exportName": "export=", - "exportMapKey": "1 * x ", - "fileName": "/home/src/workspaces/project/undefinedAlias.ts" - } - }, - { - "name": "escape", - "kind": "function", - "kindModifiers": "deprecated,declare", - "sortText": "z15" - }, - { - "name": "unescape", - "kind": "function", - "kindModifiers": "deprecated,declare", - "sortText": "z15" - } - ], - "defaultCommitCharacters": [ - ".", - ",", - ";" - ] - } - } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js index be9aec726da33..4112f4d22bc11 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js @@ -447,7 +447,7 @@ Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache -Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete Info seq [hh:mm:ss:mss] collectAutoImports: * Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * @@ -1121,11 +1121,18 @@ Info seq [hh:mm:ss:mss] response: "kind": "function", "kindModifiers": "export,declare", "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/@types/react/index", + "source": "react", "hasAction": true, + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], "data": { "exportName": "useBlah", "exportMapKey": "7 * useBlah ", + "moduleSpecifier": "react", "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" } }, @@ -1134,11 +1141,18 @@ Info seq [hh:mm:ss:mss] response: "kind": "function", "kindModifiers": "export,declare", "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/@types/react/index", + "source": "react", "hasAction": true, + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], "data": { "exportName": "useState", "exportMapKey": "8 * useState ", + "moduleSpecifier": "react", "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" } }, @@ -1171,4747 +1185,3 @@ Projects:: projectStateVersion: 1 projectProgramVersion: 1 autoImportProviderHost: false *changed* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 4, - "type": "request", - "arguments": { - "preferences": { - "includeCompletionsForModuleExports": true, - "includeInsertTextCompletions": true - } - }, - "command": "configure" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 5, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 6, - "offset": 4 - }, - "command": "completionInfo" - } -Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * -Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * -Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * -Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * -Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit -Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache -Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete -Info seq [hh:mm:ss:mss] collectAutoImports: * -Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * -Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "completionInfo", - "request_seq": 5, - "success": true, - "body": { - "flags": 1, - "isGlobalCompletion": true, - "isMemberCompletion": false, - "isNewIdentifierLocation": false, - "optionalReplacementSpan": { - "start": { - "line": 6, - "offset": 1 - }, - "end": { - "line": 6, - "offset": 4 - } - }, - "entries": [ - { - "name": "abstract", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "any", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "ArrayBuffer", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "as", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "asserts", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "async", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "await", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "bigint", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "boolean", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Boolean", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "break", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "case", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "catch", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "class", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "const", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "continue", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "DataView", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Date", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "debugger", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "declare", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "decodeURI", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "decodeURIComponent", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "default", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "delete", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "do", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "else", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "encodeURI", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "encodeURIComponent", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "enum", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Error", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "eval", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "EvalError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "export", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "extends", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "false", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "finally", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Float32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Float64Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "for", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "function", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Function", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "globalThis", - "kind": "module", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "if", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "implements", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "import", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "in", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "infer", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Infinity", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "instanceof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Int8Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Int16Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Int32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "interface", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Intl", - "kind": "module", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "isFinite", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "isNaN", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "JSON", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "keyof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "let", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Math", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "module", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "namespace", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "NaN", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "never", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "new", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "null", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "number", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Number", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "object", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Object", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "package", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "parseFloat", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "parseInt", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "RangeError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "readonly", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "ReferenceError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "RegExp", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "return", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "satisfies", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "string", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "String", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "super", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "switch", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "symbol", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "SyntaxError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "this", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "throw", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "true", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "try", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "type", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "TypeError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "typeof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Uint8Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint8ClampedArray", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint16Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "undefined", - "kind": "var", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "unique", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "unknown", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "URIError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "using", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "var", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "void", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "while", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "with", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "yield", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "useBlah", - "kind": "function", - "kindModifiers": "export,declare", - "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/@types/react/index", - "hasAction": true, - "data": { - "exportName": "useBlah", - "exportMapKey": "7 * useBlah ", - "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" - } - }, - { - "name": "useState", - "kind": "function", - "kindModifiers": "export,declare", - "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/@types/react/index", - "hasAction": true, - "data": { - "exportName": "useState", - "exportMapKey": "8 * useState ", - "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" - } - }, - { - "name": "escape", - "kind": "function", - "kindModifiers": "deprecated,declare", - "sortText": "z15" - }, - { - "name": "unescape", - "kind": "function", - "kindModifiers": "deprecated,declare", - "sortText": "z15" - } - ], - "defaultCommitCharacters": [ - ".", - ",", - ";" - ] - } - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 6, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts" - }, - "command": "open" - } -Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "open", - "request_seq": 6, - "success": true - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 7, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 1, - "endLine": 3, - "endOffset": 37, - "insertString": "" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 7, - "success": true - } -After Request -Projects:: -/dev/null/inferredProject1* (Inferred) - projectStateVersion: 1 - projectProgramVersion: 1 -/home/src/workspaces/project/tsconfig.json (Configured) *changed* - projectStateVersion: 2 *changed* - projectProgramVersion: 1 - dirty: true *changed* - autoImportProviderHost: false - -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-1 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 8, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 1, - "endLine": 3, - "endOffset": 1, - "insertString": " " - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 8, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-2 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 9, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 2, - "key": " " - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 9, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 10, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 2, - "endLine": 3, - "endOffset": 2, - "insertString": " " - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 10, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-3 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 11, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 3, - "key": " " - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 11, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 12, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 3, - "endLine": 3, - "endOffset": 3, - "insertString": "e" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 12, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-4 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 13, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 4, - "key": "e" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 13, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 14, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 4, - "endLine": 3, - "endOffset": 4, - "insertString": "x" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 14, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-5 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 15, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 5, - "key": "x" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 15, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 16, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 5, - "endLine": 3, - "endOffset": 5, - "insertString": "p" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 16, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-6 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 17, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 6, - "key": "p" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 17, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 18, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 6, - "endLine": 3, - "endOffset": 6, - "insertString": "o" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 18, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-7 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 19, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 7, - "key": "o" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 19, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 20, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 7, - "endLine": 3, - "endOffset": 7, - "insertString": "r" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 20, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-8 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 21, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 8, - "key": "r" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 21, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 22, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 8, - "endLine": 3, - "endOffset": 8, - "insertString": "t" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 22, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-9 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 23, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 9, - "key": "t" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 23, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 24, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 9, - "endLine": 3, - "endOffset": 9, - "insertString": " " - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 24, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-10 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 25, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 10, - "key": " " - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 25, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 26, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 10, - "endLine": 3, - "endOffset": 10, - "insertString": "f" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 26, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-11 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 27, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 11, - "key": "f" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 27, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 28, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 11, - "endLine": 3, - "endOffset": 11, - "insertString": "u" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 28, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-12 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 29, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 12, - "key": "u" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 29, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 30, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 12, - "endLine": 3, - "endOffset": 12, - "insertString": "n" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 30, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-13 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 31, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 13, - "key": "n" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 31, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 32, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 13, - "endLine": 3, - "endOffset": 13, - "insertString": "c" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 32, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-14 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 33, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 14, - "key": "c" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 33, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 34, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 14, - "endLine": 3, - "endOffset": 14, - "insertString": "t" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 34, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-15 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 35, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 15, - "key": "t" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 35, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 36, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 15, - "endLine": 3, - "endOffset": 15, - "insertString": "i" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 36, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-16 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 37, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 16, - "key": "i" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 37, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 38, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 16, - "endLine": 3, - "endOffset": 16, - "insertString": "o" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 38, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-17 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 39, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 17, - "key": "o" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 39, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 40, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 17, - "endLine": 3, - "endOffset": 17, - "insertString": "n" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 40, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-18 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 41, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 18, - "key": "n" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 41, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 42, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 18, - "endLine": 3, - "endOffset": 18, - "insertString": " " - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 42, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-19 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 43, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 19, - "key": " " - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 43, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 44, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 19, - "endLine": 3, - "endOffset": 19, - "insertString": "u" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 44, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-20 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 45, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 20, - "key": "u" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 45, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 46, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 20, - "endLine": 3, - "endOffset": 20, - "insertString": "s" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 46, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-21 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 47, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 21, - "key": "s" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 47, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 48, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 21, - "endLine": 3, - "endOffset": 21, - "insertString": "e" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 48, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-22 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 49, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 22, - "key": "e" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 49, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 50, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 22, - "endLine": 3, - "endOffset": 22, - "insertString": "Y" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 50, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-23 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 51, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 23, - "key": "Y" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 51, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 52, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 23, - "endLine": 3, - "endOffset": 23, - "insertString": "e" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 52, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-24 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 53, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 24, - "key": "e" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 53, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 54, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 24, - "endLine": 3, - "endOffset": 24, - "insertString": "s" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 54, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-25 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 55, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 25, - "key": "s" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 55, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 56, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 25, - "endLine": 3, - "endOffset": 25, - "insertString": "(" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 56, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-26 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 57, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 26, - "key": "(" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 57, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 58, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 26, - "endLine": 3, - "endOffset": 26, - "insertString": ")" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 58, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-27 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 59, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 27, - "key": ")" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 59, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 60, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 27, - "endLine": 3, - "endOffset": 27, - "insertString": ":" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 60, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-28 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 61, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 28, - "key": ":" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 61, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 62, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 28, - "endLine": 3, - "endOffset": 28, - "insertString": " " - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 62, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-29 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 63, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 29, - "key": " " - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 63, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 64, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 29, - "endLine": 3, - "endOffset": 29, - "insertString": "t" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 64, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-30 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 65, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 30, - "key": "t" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 65, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 66, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 30, - "endLine": 3, - "endOffset": 30, - "insertString": "r" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 66, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-31 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 67, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 31, - "key": "r" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 67, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 68, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 31, - "endLine": 3, - "endOffset": 31, - "insertString": "u" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 68, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-32 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 69, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 32, - "key": "u" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 69, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 70, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 32, - "endLine": 3, - "endOffset": 32, - "insertString": "e" - }, - "command": "change" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "change", - "request_seq": 70, - "success": true - } -After Request -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/a.ts (Open) *changed* - version: SVC-2-33 *changed* - containingProjects: 1 - /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/tsconfig.json (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* - -Info seq [hh:mm:ss:mss] request: - { - "seq": 71, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 3, - "offset": 33, - "key": "e" - }, - "command": "formatonkey" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "formatonkey", - "request_seq": 71, - "success": true, - "body": [] - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 72, - "type": "request", - "arguments": { - "preferences": { - "includeCompletionsForModuleExports": true, - "includeInsertTextCompletions": true - } - }, - "command": "configure" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 72, - "success": true - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 73, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 6, - "offset": 4 - }, - "command": "completionInfo" - } -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text - /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text - /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" - /home/src/workspaces/project/a.ts SVC-2-33 "import 'react';\ndeclare module 'react' {\n export function useYes(): true\n}\n0;\nuse" - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * -Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * -Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * -Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * -Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results -Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms -Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache -Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete -Info seq [hh:mm:ss:mss] collectAutoImports: * -Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * -Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "completionInfo", - "request_seq": 73, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - }, - "body": { - "flags": 1, - "isGlobalCompletion": true, - "isMemberCompletion": false, - "isNewIdentifierLocation": false, - "optionalReplacementSpan": { - "start": { - "line": 6, - "offset": 1 - }, - "end": { - "line": 6, - "offset": 4 - } - }, - "entries": [ - { - "name": "abstract", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "any", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "ArrayBuffer", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "as", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "asserts", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "async", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "await", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "bigint", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "boolean", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Boolean", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "break", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "case", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "catch", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "class", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "const", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "continue", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "DataView", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Date", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "debugger", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "declare", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "decodeURI", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "decodeURIComponent", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "default", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "delete", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "do", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "else", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "encodeURI", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "encodeURIComponent", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "enum", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Error", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "eval", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "EvalError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "export", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "extends", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "false", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "finally", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Float32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Float64Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "for", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "function", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Function", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "globalThis", - "kind": "module", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "if", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "implements", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "import", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "in", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "infer", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Infinity", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "instanceof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Int8Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Int16Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Int32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "interface", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Intl", - "kind": "module", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "isFinite", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "isNaN", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "JSON", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "keyof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "let", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Math", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "module", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "namespace", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "NaN", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "never", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "new", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "null", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "number", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Number", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "object", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Object", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "package", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "parseFloat", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "parseInt", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "RangeError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "readonly", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "ReferenceError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "RegExp", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "return", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "satisfies", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "string", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "String", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "super", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "switch", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "symbol", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "SyntaxError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "this", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "throw", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "true", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "try", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "type", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "TypeError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "typeof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Uint8Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint8ClampedArray", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint16Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "undefined", - "kind": "var", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "unique", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "unknown", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "URIError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "using", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "var", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "void", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "while", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "with", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "yield", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "useState", - "kind": "function", - "kindModifiers": "export,declare", - "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/@types/react/index", - "hasAction": true, - "data": { - "exportName": "useState", - "exportMapKey": "8 * useState ", - "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" - } - }, - { - "name": "useYes", - "kind": "function", - "kindModifiers": "export,declare", - "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/@types/react/index", - "hasAction": true, - "data": { - "exportName": "useYes", - "exportMapKey": "6 * useYes ", - "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" - } - }, - { - "name": "escape", - "kind": "function", - "kindModifiers": "deprecated,declare", - "sortText": "z15" - }, - { - "name": "unescape", - "kind": "function", - "kindModifiers": "deprecated,declare", - "sortText": "z15" - } - ], - "defaultCommitCharacters": [ - ".", - ",", - ";" - ] - } - } -After Request -Projects:: -/dev/null/inferredProject1* (Inferred) - projectStateVersion: 1 - projectProgramVersion: 1 -/home/src/workspaces/project/tsconfig.json (Configured) *changed* - projectStateVersion: 2 - projectProgramVersion: 1 - dirty: false *changed* - autoImportProviderHost: false - -Info seq [hh:mm:ss:mss] request: - { - "seq": 74, - "type": "request", - "arguments": { - "preferences": { - "includeCompletionsForModuleExports": true, - "includeInsertTextCompletions": true - } - }, - "command": "configure" - } -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 74, - "success": true - } -Info seq [hh:mm:ss:mss] request: - { - "seq": 75, - "type": "request", - "arguments": { - "file": "/home/src/workspaces/project/a.ts", - "line": 6, - "offset": 4 - }, - "command": "completionInfo" - } -Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * -Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * -Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * -Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * -Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit -Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache -Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete -Info seq [hh:mm:ss:mss] collectAutoImports: * -Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * -Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * -Info seq [hh:mm:ss:mss] response: - { - "seq": 0, - "type": "response", - "command": "completionInfo", - "request_seq": 75, - "success": true, - "body": { - "flags": 1, - "isGlobalCompletion": true, - "isMemberCompletion": false, - "isNewIdentifierLocation": false, - "optionalReplacementSpan": { - "start": { - "line": 6, - "offset": 1 - }, - "end": { - "line": 6, - "offset": 4 - } - }, - "entries": [ - { - "name": "abstract", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "any", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "ArrayBuffer", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "as", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "asserts", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "async", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "await", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "bigint", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "boolean", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Boolean", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "break", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "case", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "catch", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "class", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "const", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "continue", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "DataView", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Date", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "debugger", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "declare", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "decodeURI", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "decodeURIComponent", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "default", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "delete", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "do", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "else", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "encodeURI", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "encodeURIComponent", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "enum", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Error", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "eval", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "EvalError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "export", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "extends", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "false", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "finally", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Float32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Float64Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "for", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "function", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Function", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "globalThis", - "kind": "module", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "if", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "implements", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "import", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "in", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "infer", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Infinity", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "instanceof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Int8Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Int16Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Int32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "interface", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Intl", - "kind": "module", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "isFinite", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "isNaN", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "JSON", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "keyof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "let", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Math", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "module", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "namespace", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "NaN", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "never", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "new", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "null", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "number", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Number", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "object", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Object", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "package", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "parseFloat", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "parseInt", - "kind": "function", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "RangeError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "readonly", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "ReferenceError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "RegExp", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "return", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "satisfies", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "string", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "String", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "super", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "switch", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "symbol", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "SyntaxError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "this", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "throw", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "true", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "try", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "type", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "TypeError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "typeof", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "Uint8Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint8ClampedArray", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint16Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "Uint32Array", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "undefined", - "kind": "var", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "unique", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "unknown", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "URIError", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, - { - "name": "using", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "var", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "void", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "while", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "with", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "yield", - "kind": "keyword", - "kindModifiers": "", - "sortText": "15" - }, - { - "name": "useState", - "kind": "function", - "kindModifiers": "export,declare", - "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/@types/react/index", - "hasAction": true, - "data": { - "exportName": "useState", - "exportMapKey": "8 * useState ", - "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" - } - }, - { - "name": "useYes", - "kind": "function", - "kindModifiers": "export,declare", - "sortText": "16", - "source": "/home/src/workspaces/project/node_modules/@types/react/index", - "hasAction": true, - "data": { - "exportName": "useYes", - "exportMapKey": "6 * useYes ", - "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" - } - }, - { - "name": "escape", - "kind": "function", - "kindModifiers": "deprecated,declare", - "sortText": "z15" - }, - { - "name": "unescape", - "kind": "function", - "kindModifiers": "deprecated,declare", - "sortText": "z15" - } - ], - "defaultCommitCharacters": [ - ".", - ",", - ";" - ] - } - } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js index 8c90e50c1c4c6..d7b8fdf8a5bc8 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js +++ b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js @@ -229,7 +229,23 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/a/index.ts", "configFile": "/home/src/workspaces/project/a/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error" + }, + { + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error" + }, + { + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/a/tsconfig.json ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json @@ -594,7 +610,23 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/b/index.ts", "configFile": "/home/src/workspaces/project/b/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error" + }, + { + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error" + }, + { + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/b/index.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/b/tsconfig.json @@ -654,7 +686,23 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/c/index.ts", "configFile": "/home/src/workspaces/project/c/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error" + }, + { + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error" + }, + { + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/c/index.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js index 7a73935371118..8b34caee7aaeb 100644 --- a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js @@ -153,6 +153,48 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/a/b/projects/myproject/bar/app.ts", "configFile": "/a/b/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/a/b/projects/myproject/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/a/b/projects/myproject/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/a/b/projects/myproject/tsconfig.json" + }, { "start": { "line": 4, diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js index e2949d54ae266..47dea525b6c01 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js @@ -92,7 +92,7 @@ declare namespace Hmi { //// [/user/username/projects/myproject/buttonClass/Source.tsbuildinfo] -{"fileNames":["../../../../../home/src/tslibs/TS/Lib/lib.d.ts","./Source.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-1678937917-module Hmi {\n export class Button {\n public static myStaticFunction() {\n }\n }\n}"],"root":[2],"options":{"composite":true,"module":0,"outFile":"./Source.js"},"outSignature":"6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","latestChangedDtsFile":"./Source.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../home/src/tslibs/TS/Lib/lib.d.ts","./Source.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-1678937917-module Hmi {\n export class Button {\n public static myStaticFunction() {\n }\n }\n}"],"root":[2],"options":{"composite":true,"module":0,"outFile":"./Source.js"},"semanticDiagnosticsPerFile":[1,2],"outSignature":"6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","latestChangedDtsFile":"./Source.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/buttonClass/Source.tsbuildinfo.readable.baseline.txt] { @@ -115,10 +115,20 @@ declare namespace Hmi { "module": 0, "outFile": "./Source.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../home/src/tslibs/TS/Lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./Source.ts", + "not cached or not changed" + ] + ], "outSignature": "6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n", "latestChangedDtsFile": "./Source.d.ts", "version": "FakeTSVersion", - "size": 878 + "size": 913 } //// [/user/username/projects/myproject/SiblingClass/Source.js] @@ -144,7 +154,7 @@ declare namespace Hmi { //// [/user/username/projects/myproject/SiblingClass/Source.tsbuildinfo] -{"fileNames":["../../../../../home/src/tslibs/TS/Lib/lib.d.ts","../buttonClass/Source.d.ts","./Source.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","-3370344921-module Hmi {\n export class Sibling {\n public mySiblingFunction() {\n }\n }\n}"],"root":[3],"options":{"composite":true,"module":0,"outFile":"./Source.js"},"outSignature":"-2810380820-declare namespace Hmi {\n class Sibling {\n mySiblingFunction(): void;\n }\n}\n","latestChangedDtsFile":"./Source.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../home/src/tslibs/TS/Lib/lib.d.ts","../buttonClass/Source.d.ts","./Source.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","-3370344921-module Hmi {\n export class Sibling {\n public mySiblingFunction() {\n }\n }\n}"],"root":[3],"options":{"composite":true,"module":0,"outFile":"./Source.js"},"semanticDiagnosticsPerFile":[1,2,3],"outSignature":"-2810380820-declare namespace Hmi {\n class Sibling {\n mySiblingFunction(): void;\n }\n}\n","latestChangedDtsFile":"./Source.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/SiblingClass/Source.tsbuildinfo.readable.baseline.txt] { @@ -169,10 +179,24 @@ declare namespace Hmi { "module": 0, "outFile": "./Source.js" }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../home/src/tslibs/TS/Lib/lib.d.ts", + "not cached or not changed" + ], + [ + "../buttonClass/Source.d.ts", + "not cached or not changed" + ], + [ + "./Source.ts", + "not cached or not changed" + ] + ], "outSignature": "-2810380820-declare namespace Hmi {\n class Sibling {\n mySiblingFunction(): void;\n }\n}\n", "latestChangedDtsFile": "./Source.d.ts", "version": "FakeTSVersion", - "size": 1009 + "size": 1046 } @@ -315,7 +339,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/SiblingClass/Source.ts", "configFile": "/user/username/projects/myproject/SiblingClass/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 8, + "offset": 3 + }, + "end": { + "line": 8, + "offset": 20 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/SiblingClass/tsconfig.json" + }, + { + "start": { + "line": 8, + "offset": 3 + }, + "end": { + "line": 8, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/SiblingClass/tsconfig.json" + }, + { + "start": { + "line": 8, + "offset": 3 + }, + "end": { + "line": 8, + "offset": 20 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/SiblingClass/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/SiblingClass/tsconfig.json ProjectRootPath: undefined:: Result: undefined diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor-sibling-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor-sibling-projects.js index 5b0dfc99be6a6..c604605f0d71f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor-sibling-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor-sibling-projects.js @@ -201,7 +201,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/solution/compiler/program.ts", "configFile": "/user/username/projects/solution/compiler/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/solution/compiler/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/solution/compiler/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 15 + }, + "end": { + "line": 4, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/solution/compiler/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/solution/compiler/tsconfig.json ProjectRootPath: undefined:: Result: /user/username/projects/solution/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js index afdeaea41b930..b07d40692cbc1 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js @@ -451,7 +451,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/solution/a/index.ts", "configFile": "/user/username/projects/solution/a/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/solution/a/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/solution/a/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 15 + }, + "end": { + "line": 4, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/solution/a/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/solution/a/index.ts ProjectRootPath: undefined:: Result: /user/username/projects/solution/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js index 2e00605699bbe..92f6c1cb9526d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js @@ -195,7 +195,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project2/class2.ts", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/projects/project2/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -329,6 +372,48 @@ Info seq [hh:mm:ss:mss] event: "code": 1413 } ] + }, + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" } ] } @@ -485,7 +570,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -677,6 +805,48 @@ Info seq [hh:mm:ss:mss] event: "code": 1413 } ] + }, + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" } ] } @@ -794,7 +964,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js index 0c76d96dacb60..d8649cc09d10d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js @@ -192,7 +192,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project2/class2.ts", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/projects/project2/tsconfig.json ProjectRootPath: undefined:: Result: undefined diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js index 31e0b763e096f..4bc4ac2a868b1 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js @@ -195,7 +195,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project2/class2.ts", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/projects/project2/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -371,7 +414,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project1/class1.ts", "configFile": "/user/username/projects/myproject/projects/project1/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/projects/project1/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -531,6 +617,48 @@ Info seq [hh:mm:ss:mss] event: "code": 1413 } ] + }, + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" } ] } @@ -758,7 +886,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -991,6 +1162,48 @@ Info seq [hh:mm:ss:mss] event: "code": 1413 } ] + }, + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" } ] } @@ -1136,7 +1349,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js index ece3e0aeeffb4..0230d6373b43a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js @@ -192,7 +192,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project2/class2.ts", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/projects/project2/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -369,7 +412,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/projects/project1/class1.ts", "configFile": "/user/username/projects/myproject/projects/project1/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" + }, + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/projects/project1/tsconfig.json ProjectRootPath: undefined:: Result: undefined diff --git a/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js b/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js index 97783004bb8cd..e6a320aee5c8e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js +++ b/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js @@ -204,7 +204,50 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/solution/compiler/program.ts", "configFile": "/user/username/projects/solution/compiler/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 20 + }, + "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", + "code": 5095, + "category": "error", + "fileName": "/user/username/projects/solution/compiler/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 13 + }, + "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", + "code": 5071, + "category": "error", + "fileName": "/user/username/projects/solution/compiler/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 15 + }, + "end": { + "line": 4, + "offset": 21 + }, + "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/solution/compiler/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/solution/compiler/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js index a4812ae1a698a..51ea50f0f810a 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -210,6 +210,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/somefolder/srcfile.ts", "configFile": "/user/username/projects/myproject/src/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 20 + }, + "text": "Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/src/tsconfig.json" + }, { "start": { "line": 7, diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js index 36f462849103f..fcb5c946f8be3 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js @@ -222,6 +222,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/somefolder/srcfile.ts", "configFile": "/user/username/projects/myproject/src/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 20 + }, + "text": "Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/src/tsconfig.json" + }, { "start": { "line": 7, diff --git a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js index 2b00c8170f808..65a393e5e7e32 100644 --- a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js +++ b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js @@ -214,7 +214,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/test/test.ts", "configFile": "/user/username/projects/myproject/test/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 20 + }, + "text": "Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/test/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/test/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js b/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js index 6dee485cdd88a..26cfd291c5fa5 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js @@ -345,7 +345,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 35 }, - "text": "Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'.", + "text": "Argument for '--moduleResolution' option must be: 'node16', 'nodenext', 'bundler'.", "code": 6046, "category": "error", "fileName": "/user/username/projects/project/jsconfig.json" diff --git a/tests/baselines/reference/tsxAttributeResolution10.errors.txt b/tests/baselines/reference/tsxAttributeResolution10.errors.txt index c227256176513..2c23af147a4e7 100644 --- a/tests/baselines/reference/tsxAttributeResolution10.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution10.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(11,14): error TS2322: Type 'string' is not assignable to type 'boolean'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== react.d.ts (0 errors) ==== declare namespace JSX { interface Element { } diff --git a/tests/baselines/reference/tsxAttributeResolution11.errors.txt b/tests/baselines/reference/tsxAttributeResolution11.errors.txt index 171002b1c1d20..76e57ca0868bf 100644 --- a/tests/baselines/reference/tsxAttributeResolution11.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution11.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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; }'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== react.d.ts (0 errors) ==== declare namespace JSX { interface Element { } diff --git a/tests/baselines/reference/tsxAttributeResolution14.errors.txt b/tests/baselines/reference/tsxAttributeResolution14.errors.txt index 74c6800454187..b2dd830680557 100644 --- a/tests/baselines/reference/tsxAttributeResolution14.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution14.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== react.d.ts (0 errors) ==== declare namespace JSX { interface Element { } diff --git a/tests/baselines/reference/tsxAttributeResolution9.errors.txt b/tests/baselines/reference/tsxAttributeResolution9.errors.txt index df785bce64ea4..60cf213c31ea7 100644 --- a/tests/baselines/reference/tsxAttributeResolution9.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution9.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(9,14): error TS2322: Type 'number' is not assignable to type 'string'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== react.d.ts (0 errors) ==== declare namespace JSX { interface Element { } diff --git a/tests/baselines/reference/tsxElementResolution17.errors.txt b/tests/baselines/reference/tsxElementResolution17.errors.txt new file mode 100644 index 0000000000000..a8d7b896a9ba4 --- /dev/null +++ b/tests/baselines/reference/tsxElementResolution17.errors.txt @@ -0,0 +1,29 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== consumer.tsx (0 errors) ==== + /// + // Should keep s1 and elide s2 + import s1 = require('elements1'); + import s2 = require('elements2'); + ; + +==== file.tsx (0 errors) ==== + declare namespace JSX { + interface Element { } + interface IntrinsicElements { } + } + + declare module 'elements1' { + class MyElement { + + } + } + + declare module 'elements2' { + class MyElement { + + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/tsxElementResolution19.errors.txt b/tests/baselines/reference/tsxElementResolution19.errors.txt new file mode 100644 index 0000000000000..9a0a58b8a80b1 --- /dev/null +++ b/tests/baselines/reference/tsxElementResolution19.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== react.d.ts (0 errors) ==== + declare module "react" { + + } + +==== file1.tsx (0 errors) ==== + declare namespace JSX { + interface Element { } + } + export class MyClass { } + +==== file2.tsx (0 errors) ==== + // Should not elide React import + import * as React from 'react'; + import {MyClass} from './file1'; + + ; + \ No newline at end of file diff --git a/tests/baselines/reference/tsxElementResolution19.types b/tests/baselines/reference/tsxElementResolution19.types index 475d369b2816f..a6f14101447cf 100644 --- a/tests/baselines/reference/tsxElementResolution19.types +++ b/tests/baselines/reference/tsxElementResolution19.types @@ -26,7 +26,8 @@ import {MyClass} from './file1'; > : ^^^^^^^^^^^^^^ ; -> : error +> : any +> : ^^^ >MyClass : typeof MyClass > : ^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/tsxPreserveEmit1.errors.txt b/tests/baselines/reference/tsxPreserveEmit1.errors.txt new file mode 100644 index 0000000000000..cad606d8c3434 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit1.errors.txt @@ -0,0 +1,35 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.tsx (0 errors) ==== + // Should emit 'react-router' in the AMD dependency list + import React = require('react'); + import ReactRouter = require('react-router'); + + import Route = ReactRouter.Route; + + var routes1 = ; + + namespace M { + export var X: any; + } + namespace M { + // Should emit 'M.X' in both opening and closing tags + var y = ; + } + +==== react.d.ts (0 errors) ==== + declare module 'react' { + var x: any; + export = x; + } + + declare namespace ReactRouter { + var Route: any; + interface Thing { } + } + declare module 'react-router' { + export = ReactRouter; + } + \ No newline at end of file diff --git a/tests/baselines/reference/tsxPreserveEmit1.types b/tests/baselines/reference/tsxPreserveEmit1.types index f817d1a63567a..878742f74c95a 100644 --- a/tests/baselines/reference/tsxPreserveEmit1.types +++ b/tests/baselines/reference/tsxPreserveEmit1.types @@ -19,9 +19,12 @@ import Route = ReactRouter.Route; > : ^^^ var routes1 = ; ->routes1 : error -> : error +>routes1 : any +> : ^^^ +> : any +> : ^^^ >Route : any +> : ^^^ namespace M { >M : typeof M @@ -29,6 +32,7 @@ namespace M { export var X: any; >X : any +> : ^^^ } namespace M { >M : typeof M @@ -36,10 +40,14 @@ namespace M { // Should emit 'M.X' in both opening and closing tags var y = ; ->y : error -> : error +>y : any +> : ^^^ +> : any +> : ^^^ >X : any +> : ^^^ >X : any +> : ^^^ } === react.d.ts === @@ -49,6 +57,7 @@ declare module 'react' { var x: any; >x : any +> : ^^^ export = x; >x : any @@ -61,6 +70,7 @@ declare namespace ReactRouter { var Route: any; >Route : any +> : ^^^ interface Thing { } } diff --git a/tests/baselines/reference/tsxPreserveEmit2.errors.txt b/tests/baselines/reference/tsxPreserveEmit2.errors.txt new file mode 100644 index 0000000000000..352e49180d059 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit2.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.tsx (0 errors) ==== + var Route: any; + var routes1 = ; + \ No newline at end of file diff --git a/tests/baselines/reference/tsxPreserveEmit2.types b/tests/baselines/reference/tsxPreserveEmit2.types index 0a2187015afe1..7d04b8e11f400 100644 --- a/tests/baselines/reference/tsxPreserveEmit2.types +++ b/tests/baselines/reference/tsxPreserveEmit2.types @@ -3,9 +3,13 @@ === test.tsx === var Route: any; >Route : any +> : ^^^ var routes1 = ; ->routes1 : error -> : error +>routes1 : any +> : ^^^ +> : any +> : ^^^ >Route : any +> : ^^^ diff --git a/tests/baselines/reference/tsxPreserveEmit3.errors.txt b/tests/baselines/reference/tsxPreserveEmit3.errors.txt new file mode 100644 index 0000000000000..581d5de36c4de --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit3.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 errors) ==== + declare namespace JSX { + interface Element { } + interface IntrinsicElements { + [s: string]: any; + } + } + +==== test.d.ts (0 errors) ==== + export var React; + +==== react-consumer.tsx (0 errors) ==== + // This import should be elided + import {React} from "./test"; + \ No newline at end of file diff --git a/tests/baselines/reference/tsxPreserveEmit3.types b/tests/baselines/reference/tsxPreserveEmit3.types index c167206bda122..189769b748bf6 100644 --- a/tests/baselines/reference/tsxPreserveEmit3.types +++ b/tests/baselines/reference/tsxPreserveEmit3.types @@ -13,6 +13,7 @@ declare namespace JSX { === test.d.ts === export var React; >React : any +> : ^^^ === react-consumer.tsx === // This import should be elided diff --git a/tests/baselines/reference/tsxSfcReturnNull.errors.txt b/tests/baselines/reference/tsxSfcReturnNull.errors.txt new file mode 100644 index 0000000000000..028a9f04c0c5a --- /dev/null +++ b/tests/baselines/reference/tsxSfcReturnNull.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 errors) ==== + import React = require('react'); + + const Foo = (props: any) => null; + + function Greet(x: {name?: string}) { + return null; + } + + const foo = ; + const G = ; \ No newline at end of file diff --git a/tests/baselines/reference/tsxSfcReturnNull.types b/tests/baselines/reference/tsxSfcReturnNull.types index fcbf68830c8f3..d5019a32d4f2e 100644 --- a/tests/baselines/reference/tsxSfcReturnNull.types +++ b/tests/baselines/reference/tsxSfcReturnNull.types @@ -11,6 +11,7 @@ const Foo = (props: any) => null; >(props: any) => null : (props: any) => any > : ^ ^^ ^^^^^^^^ >props : any +> : ^^^ function Greet(x: {name?: string}) { >Greet : (x: { name?: string; }) => any diff --git a/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.errors.txt b/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.errors.txt new file mode 100644 index 0000000000000..028a9f04c0c5a --- /dev/null +++ b/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 errors) ==== + import React = require('react'); + + const Foo = (props: any) => null; + + function Greet(x: {name?: string}) { + return null; + } + + const foo = ; + const G = ; \ No newline at end of file diff --git a/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.types b/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.types index 6321ff67a485f..810d031011a76 100644 --- a/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.types +++ b/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.types @@ -11,6 +11,7 @@ const Foo = (props: any) => null; >(props: any) => null : (props: any) => null > : ^ ^^ ^^^^^^^^^ >props : any +> : ^^^ function Greet(x: {name?: string}) { >Greet : (x: { name?: string; }) => null diff --git a/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.errors.txt b/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.errors.txt index 5826a14fcd667..16c519577b5e7 100644 --- a/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.errors.txt +++ b/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (2 errors) ==== import React = require('react'); diff --git a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt index 3fc0cbe69ab34..f588ee4714406 100644 --- a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt +++ b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).errors.txt @@ -1,4 +1,4 @@ -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. @@ -21,7 +21,7 @@ tsxSpreadChildrenInvalidType.tsx(21,9): error TS2609: JSX spread child must be a 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
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload1.errors.txt index 6bb7e55a30787..798bb8c18c256 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload1.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(17,39): error TS2842: 'string' is an unused renaming of 'y1'. Did you intend to use it as a type annotation? +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (1 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.errors.txt new file mode 100644 index 0000000000000..5132e02d98719 --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.errors.txt @@ -0,0 +1,37 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 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 obj1 = { + yy: true + } + + let obj2 = { + yy: 500, + "ignore-prop": "hello" + } + + let defaultObj: any; + + // OK + const c1 = + const c2 = + const c3 = + const c4 = + const c5 = + const c6 = + const c7 = ; // No error. should pick second overload + const c8 = + const c9 = ; + const c10 = ; + \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.types index f8022330bd223..479db6c2f8e64 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.types @@ -76,6 +76,7 @@ let obj2 = { let defaultObj: any; >defaultObj : any +> : ^^^ // OK const c1 = @@ -166,6 +167,7 @@ const c7 = ; // No error. should pick s >OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } > : ^^^^^^ ^^^ ^^ ^^^ ^^^ >defaultObj : any +> : ^^^ >yy : true > : ^^^^ >obj : { yy: number; yy1: string; } diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.errors.txt new file mode 100644 index 0000000000000..fe4eb1fcc947c --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.errors.txt @@ -0,0 +1,28 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 errors) ==== + interface Context { + color: any; + } + declare function ZeroThingOrTwoThing(): JSX.Element; + declare function ZeroThingOrTwoThing(l: {yy: number, yy1: string}, context: Context): JSX.Element; + + let obj2: any; + + // OK + const two1 = ; + const two2 = ; + const two3 = ; // it is just any so we allow it to pass through + const two4 = ; // it is just any so we allow it to pass through + const two5 = ; // it is just any so we allow it to pass through + + declare function ThreeThing(l: {y1: string}): JSX.Element; + declare function ThreeThing(l: {y2: string}): JSX.Element; + declare function ThreeThing(l: {yy: number, yy1: string}, context: Context, updater: any): JSX.Element; + + // OK + const three1 = ; + const three2 = ; + const three3 = ; // it is just any so we allow it to pass through \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.types index 2c18fe7f97bef..f2aa2b6594741 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.types @@ -4,6 +4,7 @@ interface Context { color: any; >color : any +> : ^^^ } declare function ZeroThingOrTwoThing(): JSX.Element; >ZeroThingOrTwoThing : { (): JSX.Element; (l: { yy: number; yy1: string; }, context: Context): JSX.Element; } @@ -27,6 +28,7 @@ declare function ZeroThingOrTwoThing(l: {yy: number, yy1: string}, context: Cont let obj2: any; >obj2 : any +> : ^^^ // OK const two1 = ; @@ -59,6 +61,7 @@ const two3 = ; // it is just any so we allow i >ZeroThingOrTwoThing : { (): JSX.Element; (l: { yy: number; yy1: string; }, context: Context): JSX.Element; } > : ^^^^^^ ^^^ ^^ ^^ ^^ ^^^ ^^^ >obj2 : any +> : ^^^ const two4 = ; // it is just any so we allow it to pass through >two4 : JSX.Element @@ -72,6 +75,7 @@ const two4 = ; // it is just any so >1000 : 1000 > : ^^^^ >obj2 : any +> : ^^^ const two5 = ; // it is just any so we allow it to pass through >two5 : JSX.Element @@ -81,6 +85,7 @@ const two5 = ; // it is just any so >ZeroThingOrTwoThing : { (): JSX.Element; (l: { yy: number; yy1: string; }, context: Context): JSX.Element; } > : ^^^^^^ ^^^ ^^ ^^ ^^ ^^^ ^^^ >obj2 : any +> : ^^^ >yy : number > : ^^^^^^ >1000 : 1000 @@ -118,6 +123,7 @@ declare function ThreeThing(l: {yy: number, yy1: string}, context: Context, upda >context : Context > : ^^^^^^^ >updater : any +> : ^^^ >JSX : any > : ^^^ @@ -154,6 +160,7 @@ const three3 = ; // it is just any so we allow >ThreeThing : { (l: { y1: string; }): JSX.Element; (l: { y2: string; }): JSX.Element; (l: { yy: number; yy1: string; }, context: Context, updater: any): JSX.Element; } > : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ >obj2 : any +> : ^^^ >y2 : number > : ^^^^^^ >10 : 10 diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt index 725ef6fb2b2bb..e11e937392180 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -78,6 +79,7 @@ file.tsx(36,13): error TS2769: No overload matches this call. Type 'string' is not assignable to type 'boolean'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (11 errors) ==== import React = require('react') declare function OneThing(): JSX.Element; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt index cf6aab23da1ff..6f6db890b92c8 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(48,13): error TS2769: No overload matches this call. Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -33,6 +34,7 @@ file.tsx(56,13): error TS2769: No overload matches this call. Type 'boolean' is not assignable to type 'string'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (4 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.errors.txt new file mode 100644 index 0000000000000..8b885b3e56eff --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.errors.txt @@ -0,0 +1,62 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 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 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 = + + + \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types index 9bad96ee1daee..eb6a213669700 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types @@ -55,6 +55,7 @@ let obj = { } let obj1: any; >obj1 : any +> : ^^^ let obj2 = { >obj2 : { onClick: () => void; } @@ -119,7 +120,9 @@ export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.El return this._buildMainLink(props); >this._buildMainLink(props) : any +> : ^^^ >this._buildMainLink : any +> : ^^^ >this : any > : ^^^ >_buildMainLink : any @@ -130,7 +133,9 @@ export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.El return this._buildMainButton(props); >this._buildMainButton(props) : any +> : ^^^ >this._buildMainButton : any +> : ^^^ >this : any > : ^^^ >_buildMainButton : any @@ -202,6 +207,7 @@ const b4 = ; // any; just pick the first overload >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 @@ -211,6 +217,7 @@ const b5 = ; // should pick the seco >MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } > : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ >obj1 : any +> : ^^^ >to : string > : ^^^^^^ diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter1.errors.txt new file mode 100644 index 0000000000000..795f9da77205b --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter1.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 errors) ==== + import React = require('react') + + interface MyComponentProp { + values: string; + } + + function MyComponent(attr: T) { + return
attr.values
+ } + + // OK + let i = ; // We infer type arguments here + let i1 = ; \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter2.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter2.errors.txt index 022a16b79ea53..ebc2736a796d4 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter2.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentWithDefaultTypeParameter2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(13,24): error TS2322: Type 'number' is not assignable to type 'string'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (1 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents3.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents3.errors.txt new file mode 100644 index 0000000000000..38242626b59ab --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponents3.errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 errors) ==== + import React = require('react'); + + const Foo = (props: any) =>
; + // Should be OK + const foo = ; + + + // Should be OK + var MainMenu: React.StatelessComponent<{}> = (props) => (
+

Main Menu

+
); + + var App: React.StatelessComponent<{ children }> = ({children}) => ( +
+ +
+ ); \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents3.types b/tests/baselines/reference/tsxStatelessFunctionComponents3.types index 8cf998091eec3..a3d87d3a03a0a 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents3.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponents3.types @@ -11,6 +11,7 @@ const Foo = (props: any) =>
; >(props: any) =>
: (props: any) => JSX.Element > : ^ ^^ ^^^^^^^^^^^^^^^^ >props : any +> : ^^^ >
: JSX.Element > : ^^^^^^^^^^^ >div : any @@ -61,6 +62,7 @@ var App: React.StatelessComponent<{ children }> = ({children}) => ( >React : any > : ^^^ >children : any +> : ^^^ >({children}) => (
) : ({ children }: { children: any; } & { children?: React.ReactNode; }) => JSX.Element > : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >children : any diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.errors.txt new file mode 100644 index 0000000000000..bbe13314ee5bd --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.errors.txt @@ -0,0 +1,35 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 errors) ==== + import React = require('react') + + declare function ComponentWithTwoAttributes(l: {key1: K, value: V}): JSX.Element; + + // OK + function Baz(key1: T, value: U) { + let a0 = + let a1 = + } + + declare function Link(l: {func: (arg: U)=>void}): JSX.Element; + + // OK + function createLink(func: (a: number)=>void) { + let o = + } + + function createLink1(func: (a: number)=>boolean) { + let o = + } + + interface InferParamProp { + values: Array; + selectHandler: (selectedVal: T) => void; + } + + declare function InferParamComponent(attr: InferParamProp): JSX.Element; + + // OK + let i = { }} />; \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.errors.txt index e815607ea82a4..5d0e87b0a004c 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(8,15): error TS2322: Type 'T & { "ignore-prop": number; }' is not assignable to type 'IntrinsicAttributes & { prop: number; "ignore-prop": string; }'. Type 'T & { "ignore-prop": number; }' is not assignable to type '{ prop: number; "ignore-prop": string; }'. Types of property '"ignore-prop"' are incompatible. @@ -11,6 +12,7 @@ file.tsx(31,52): error TS2322: Type '(val: string) => void' is not assignable to Type 'number' is not assignable to type 'string'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (4 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.errors.txt new file mode 100644 index 0000000000000..83d30a9ba4ae0 --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.errors.txt @@ -0,0 +1,28 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 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; + + // OK + function Baz(arg1: T, arg2: U) { + let a0 = ; + let a1 = ; + let a2 = ; + let a3 = ; + let a4 = ; + let a5 = ; + let a6 = ; + } + + declare function Link(l: {func: (arg: U)=>void}): JSX.Element; + declare function Link(l: {func: (arg1:U, arg2: string)=>void}): JSX.Element; + function createLink(func: (a: number)=>void) { + let o = + let o1 = {}} />; + } \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt index fdd4fa153df6f..bd3fc087a3a54 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -17,6 +18,7 @@ file.tsx(10,15): error TS2769: No overload matches this call. Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: unknown; a: unknown; }'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (2 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.errors.txt new file mode 100644 index 0000000000000..85277801e12b1 --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.errors.txt @@ -0,0 +1,23 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== file.tsx (0 errors) ==== + import React = require('react') + + declare function Component(l: U): JSX.Element; + function createComponent(arg: T) { + let a1 = ; + let a2 = ; + } + + declare function ComponentSpecific(l: { prop: U }): JSX.Element; + declare function ComponentSpecific1(l: { prop: U, "ignore-prop": number }): JSX.Element; + + function Bar(arg: T) { + let a1 = ; // U is number + let a2 = ; // U is number + let a3 = ; // U is "hello" + let a4 = ; // U is "hello" + } + \ No newline at end of file diff --git a/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt b/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt index fea09b9ba2ca4..426b92efe6408 100644 --- a/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt +++ b/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. typeAliasDeclarationEmit.ts(3,37): error TS2314: Generic type 'callback' requires 1 type argument(s). +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== typeAliasDeclarationEmit.ts (1 errors) ==== export type callback = () => T; diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2.errors.txt b/tests/baselines/reference/typeAliasDeclarationEmit2.errors.txt new file mode 100644 index 0000000000000..f832ebfd15ebd --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit2.errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== typeAliasDeclarationEmit2.ts (0 errors) ==== + export type A
= { value: a }; \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterCompatibilityAccrossDeclarations.errors.txt b/tests/baselines/reference/typeParameterCompatibilityAccrossDeclarations.errors.txt new file mode 100644 index 0000000000000..4c18d0e2fe3a8 --- /dev/null +++ b/tests/baselines/reference/typeParameterCompatibilityAccrossDeclarations.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== typeParameterCompatibilityAccrossDeclarations.ts (0 errors) ==== + var a = { + x: function (y: T): T { return null; } + } + var a2 = { + x: function (y: any): any { return null; } + } + export interface I { + x(y: T): T; + } + export interface I2 { + x(y: any): any; + } + + var i: I; + var i2: I2; + + a = i; // error + i = a; // error + + a2 = i2; // no error + i2 = a2; // no error + \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterCompatibilityAccrossDeclarations.types b/tests/baselines/reference/typeParameterCompatibilityAccrossDeclarations.types index 2b5e9bf0e62ad..5eb9001881bde 100644 --- a/tests/baselines/reference/typeParameterCompatibilityAccrossDeclarations.types +++ b/tests/baselines/reference/typeParameterCompatibilityAccrossDeclarations.types @@ -27,6 +27,7 @@ var a2 = { >function (y: any): any { return null; } : (y: any) => any > : ^ ^^ ^^^^^ >y : any +> : ^^^ } export interface I { x(y: T): T; @@ -40,6 +41,7 @@ export interface I2 { >x : (y: any) => any > : ^ ^^ ^^^^^ >y : any +> : ^^^ } var i: I; diff --git a/tests/baselines/reference/typeResolution.errors.txt b/tests/baselines/reference/typeResolution.errors.txt new file mode 100644 index 0000000000000..f6d8947e4958a --- /dev/null +++ b/tests/baselines/reference/typeResolution.errors.txt @@ -0,0 +1,115 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== typeResolution.ts (0 errors) ==== + export namespace TopLevelModule1 { + export namespace SubModule1 { + export namespace SubSubModule1 { + export class ClassA { + public AisIn1_1_1() { + // Try all qualified names of this type + var a1: ClassA; a1.AisIn1_1_1(); + var a2: SubSubModule1.ClassA; a2.AisIn1_1_1(); + var a3: SubModule1.SubSubModule1.ClassA; a3.AisIn1_1_1(); + var a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA; a4.AisIn1_1_1(); + + // Two variants of qualifying a peer type + var b1: ClassB; b1.BisIn1_1_1(); + var b2: TopLevelModule1.SubModule1.SubSubModule1.ClassB; b2.BisIn1_1_1(); + + // Type only accessible from the root + var c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA; c1.AisIn1_2_2(); + + // Interface reference + var d1: InterfaceX; d1.XisIn1_1_1(); + var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1(); + } + } + export class ClassB { + public BisIn1_1_1() { + /** Exactly the same as above in AisIn1_1_1 **/ + + // Try all qualified names of this type + var a1: ClassA; a1.AisIn1_1_1(); + var a2: SubSubModule1.ClassA; a2.AisIn1_1_1(); + var a3: SubModule1.SubSubModule1.ClassA; a3.AisIn1_1_1(); + var a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA; a4.AisIn1_1_1(); + + // Two variants of qualifying a peer type + var b1: ClassB; b1.BisIn1_1_1(); + var b2: TopLevelModule1.SubModule1.SubSubModule1.ClassB; b2.BisIn1_1_1(); + + // Type only accessible from the root + var c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA; c1.AisIn1_2_2(); + var c2: TopLevelModule2.SubModule3.ClassA; c2.AisIn2_3(); + + // Interface reference + var d1: InterfaceX; d1.XisIn1_1_1(); + var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1(); + } + } + export interface InterfaceX { XisIn1_1_1(); } + class NonExportedClassQ { + constructor() { + function QQ() { + /* Sampling of stuff from AisIn1_1_1 */ + var a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA; a4.AisIn1_1_1(); + var c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA; c1.AisIn1_2_2(); + var d1: InterfaceX; d1.XisIn1_1_1(); + var c2: TopLevelModule2.SubModule3.ClassA; c2.AisIn2_3(); + } + } + } + } + + // Should have no effect on S1.SS1.ClassA above because it is not exported + class ClassA { + constructor() { + function AA() { + var a2: SubSubModule1.ClassA; a2.AisIn1_1_1(); + var a3: SubModule1.SubSubModule1.ClassA; a3.AisIn1_1_1(); + var a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA; a4.AisIn1_1_1(); + + // Interface reference + var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1(); + } + } + } + } + + export namespace SubModule2 { + export namespace SubSubModule2 { + // No code here since these are the mirror of the above calls + export class ClassA { public AisIn1_2_2() { } } + export class ClassB { public BisIn1_2_2() { } } + export class ClassC { public CisIn1_2_2() { } } + export interface InterfaceY { YisIn1_2_2(); } + interface NonExportedInterfaceQ { } + } + + export interface InterfaceY { YisIn1_2(); } + } + + class ClassA { + public AisIn1() { } + } + + interface InterfaceY { + YisIn1(); + } + + namespace NotExportedModule { + export class ClassA { } + } + } + + namespace TopLevelModule2 { + export namespace SubModule3 { + export class ClassA { + public AisIn2_3() { } + } + } + } + + \ No newline at end of file diff --git a/tests/baselines/reference/typeResolution.types b/tests/baselines/reference/typeResolution.types index 0f81eee98a3a2..71383c75e83c8 100644 --- a/tests/baselines/reference/typeResolution.types +++ b/tests/baselines/reference/typeResolution.types @@ -137,6 +137,7 @@ export namespace TopLevelModule1 { >d1 : InterfaceX > : ^^^^^^^^^^ >d1.XisIn1_1_1() : any +> : ^^^ >d1.XisIn1_1_1 : () => any > : ^^^^^^^^^ >d1 : InterfaceX @@ -150,6 +151,7 @@ export namespace TopLevelModule1 { >SubSubModule1 : any > : ^^^ >d2.XisIn1_1_1() : any +> : ^^^ >d2.XisIn1_1_1 : () => any > : ^^^^^^^^^ >d2 : InterfaceX @@ -300,6 +302,7 @@ export namespace TopLevelModule1 { >d1 : InterfaceX > : ^^^^^^^^^^ >d1.XisIn1_1_1() : any +> : ^^^ >d1.XisIn1_1_1 : () => any > : ^^^^^^^^^ >d1 : InterfaceX @@ -313,6 +316,7 @@ export namespace TopLevelModule1 { >SubSubModule1 : any > : ^^^ >d2.XisIn1_1_1() : any +> : ^^^ >d2.XisIn1_1_1 : () => any > : ^^^^^^^^^ >d2 : InterfaceX @@ -375,6 +379,7 @@ export namespace TopLevelModule1 { >d1 : InterfaceX > : ^^^^^^^^^^ >d1.XisIn1_1_1() : any +> : ^^^ >d1.XisIn1_1_1 : () => any > : ^^^^^^^^^ >d1 : InterfaceX @@ -467,6 +472,7 @@ export namespace TopLevelModule1 { >SubSubModule1 : any > : ^^^ >d2.XisIn1_1_1() : any +> : ^^^ >d2.XisIn1_1_1 : () => any > : ^^^^^^^^^ >d2 : SubSubModule1.InterfaceX diff --git a/tests/baselines/reference/typeUsedAsValueError2.errors.txt b/tests/baselines/reference/typeUsedAsValueError2.errors.txt index 16eb9d51ca4b0..1cd675fc0e407 100644 --- a/tests/baselines/reference/typeUsedAsValueError2.errors.txt +++ b/tests/baselines/reference/typeUsedAsValueError2.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== world.ts (2 errors) ==== import HelloInterface = require("helloInterface"); import HelloNamespace = require("helloNamespace"); diff --git a/tests/baselines/reference/typingsLookupAmd.errors.txt b/tests/baselines/reference/typingsLookupAmd.errors.txt new file mode 100644 index 0000000000000..219e834d67ac1 --- /dev/null +++ b/tests/baselines/reference/typingsLookupAmd.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /x/y/foo.ts (0 errors) ==== + import {B} from "b"; + +==== /node_modules/@types/a/index.d.ts (0 errors) ==== + export declare class A {} + +==== /x/node_modules/@types/b/index.d.ts (0 errors) ==== + import {A} from "a"; + export declare class B extends A {} + \ No newline at end of file diff --git a/tests/baselines/reference/umdDependencyComment2.errors.txt b/tests/baselines/reference/umdDependencyComment2.errors.txt index 1536784b8cea0..e408be858eade 100644 --- a/tests/baselines/reference/umdDependencyComment2.errors.txt +++ b/tests/baselines/reference/umdDependencyComment2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. umdDependencyComment2.ts(3,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== umdDependencyComment2.ts (1 errors) ==== /// diff --git a/tests/baselines/reference/umdDependencyCommentName1.errors.txt b/tests/baselines/reference/umdDependencyCommentName1.errors.txt index d1fcb77a36b6e..3aed21ff4dcd0 100644 --- a/tests/baselines/reference/umdDependencyCommentName1.errors.txt +++ b/tests/baselines/reference/umdDependencyCommentName1.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. umdDependencyCommentName1.ts(3,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== umdDependencyCommentName1.ts (1 errors) ==== /// diff --git a/tests/baselines/reference/umdDependencyCommentName2.errors.txt b/tests/baselines/reference/umdDependencyCommentName2.errors.txt index 35840c3a665b9..9e1725b6cd662 100644 --- a/tests/baselines/reference/umdDependencyCommentName2.errors.txt +++ b/tests/baselines/reference/umdDependencyCommentName2.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. umdDependencyCommentName2.ts(5,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== umdDependencyCommentName2.ts (1 errors) ==== /// /// diff --git a/tests/baselines/reference/umdNamedAmdMode.errors.txt b/tests/baselines/reference/umdNamedAmdMode.errors.txt new file mode 100644 index 0000000000000..d4a34f0703eec --- /dev/null +++ b/tests/baselines/reference/umdNamedAmdMode.errors.txt @@ -0,0 +1,7 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== main.ts (0 errors) ==== + /// + export const a = 1; \ No newline at end of file diff --git a/tests/baselines/reference/undeclaredModuleError.errors.txt b/tests/baselines/reference/undeclaredModuleError.errors.txt index 20f314758a1c8..179e3672eb6f0 100644 --- a/tests/baselines/reference/undeclaredModuleError.errors.txt +++ b/tests/baselines/reference/undeclaredModuleError.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. undeclaredModuleError.ts(1,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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'. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== undeclaredModuleError.ts (3 errors) ==== import fs = require('fs'); ~~~~ diff --git a/tests/baselines/reference/usingDeclarationsTopLevelOfModule.1(module=amd).errors.txt b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.1(module=amd).errors.txt new file mode 100644 index 0000000000000..7660f4399103c --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.1(module=amd).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsTopLevelOfModule.1.ts (0 errors) ==== + export const x = 1; + export { y }; + + using z = { [Symbol.dispose]() {} }; + + const y = 2; + + export const w = 3; + + export default 4; + + console.log(w, x, y, z); + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsTopLevelOfModule.1(module=system).errors.txt b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.1(module=system).errors.txt new file mode 100644 index 0000000000000..e3f296be04027 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.1(module=system).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsTopLevelOfModule.1.ts (0 errors) ==== + export const x = 1; + export { y }; + + using z = { [Symbol.dispose]() {} }; + + const y = 2; + + export const w = 3; + + export default 4; + + console.log(w, x, y, z); + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsTopLevelOfModule.2(module=amd).errors.txt b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.2(module=amd).errors.txt new file mode 100644 index 0000000000000..a9aa99acde3ec --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.2(module=amd).errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsTopLevelOfModule.2.ts (0 errors) ==== + using z = { [Symbol.dispose]() {} }; + + const y = 2; + + console.log(y, z); + export = 4; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsTopLevelOfModule.3(module=amd).errors.txt b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.3(module=amd).errors.txt new file mode 100644 index 0000000000000..15161cb9f73a5 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.3(module=amd).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsTopLevelOfModule.3.ts (0 errors) ==== + export { y }; + + using z = { [Symbol.dispose]() {} }; + + if (false) { + var y = 1; + } + + function f() { + console.log(y, z); + } + + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsTopLevelOfModule.3(module=system).errors.txt b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.3(module=system).errors.txt new file mode 100644 index 0000000000000..f037d46731a0d --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsTopLevelOfModule.3(module=system).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsTopLevelOfModule.3.ts (0 errors) ==== + export { y }; + + using z = { [Symbol.dispose]() {} }; + + if (false) { + var y = 1; + } + + function f() { + console.log(y, z); + } + + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..6410038d9075c --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.1.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..6410038d9075c --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.1.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..6410038d9075c --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.1(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.1.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..c0d483fd76b74 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.10.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..c0d483fd76b74 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.10.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..c0d483fd76b74 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.10(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.10.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..56a1dd4015895 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=es2015).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.11.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..56a1dd4015895 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=es5).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.11.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..56a1dd4015895 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.11(module=system,target=esnext).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.11.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..336ca1f5ff380 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=es2015).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.12.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C as D }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..336ca1f5ff380 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=es5).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.12.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C as D }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..336ca1f5ff380 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.12(module=system,target=esnext).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.12.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C as D }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..25f652aa4c866 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.2.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..25f652aa4c866 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.2.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..25f652aa4c866 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.2(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.2.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..ce1fcbdf5588a --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=es2015).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.3.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class C { + } + + void C; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..ce1fcbdf5588a --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=es5).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.3.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class C { + } + + void C; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..ce1fcbdf5588a --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.3(module=system,target=esnext).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.3.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class C { + } + + void C; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..2cdefbe879ab6 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.4.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..2cdefbe879ab6 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.4.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..2cdefbe879ab6 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.4(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.4.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..5dcb10fe6e706 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=es2015).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.5.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..5dcb10fe6e706 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=es5).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.5.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..5dcb10fe6e706 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.5(module=system,target=esnext).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.5.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..17ee7bda8e28c --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=es2015).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.6.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C as D }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..17ee7bda8e28c --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=es5).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.6.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C as D }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..17ee7bda8e28c --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.6(module=system,target=esnext).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.6.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C as D }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..2b2a58dae5285 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=es2015).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.7.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + using after = null; + + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..2b2a58dae5285 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=es5).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.7.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + using after = null; + + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..2b2a58dae5285 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.7(module=system,target=esnext).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.7.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + using after = null; + + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..00ecabbfb19fe --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.8.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..00ecabbfb19fe --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.8.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..00ecabbfb19fe --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.8(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.8.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..106504df856e9 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=es2015).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.9.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class C { + } + + void C; + + using after = null; + + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..106504df856e9 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=es5).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.9.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class C { + } + + void C; + + using after = null; + + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..106504df856e9 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithESClassDecorators.9(module=system,target=esnext).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithESClassDecorators.9.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class C { + } + + void C; + + using after = null; + + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..dd484859a1bf6 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.1.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..dd484859a1bf6 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.1.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..dd484859a1bf6 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.1.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..f82f485b57212 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.10.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..f82f485b57212 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.10.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..f82f485b57212 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.10.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..3e18b51fe1984 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es2015).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.11.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..3e18b51fe1984 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es5).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.11.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..3e18b51fe1984 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=esnext).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.11.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..2e992776b82f8 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es2015).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.12.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C as D }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..2e992776b82f8 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es5).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.12.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C as D }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..2e992776b82f8 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=esnext).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.12.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + export { C as D }; + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..d0efc568d924e --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.2.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..d0efc568d924e --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.2.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..d0efc568d924e --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.2.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..dba53684b2de4 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.3.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..dba53684b2de4 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.3.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..dba53684b2de4 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.3.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class C { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..30926090ad838 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.4.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..30926090ad838 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.4.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..30926090ad838 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.4.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + export default class { + } + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..61926462d80bb --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es2015).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.5.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..61926462d80bb --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es5).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.5.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..61926462d80bb --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=esnext).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.5.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..34f7f2659caba --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es2015).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.6.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C as D }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..34f7f2659caba --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es5).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.6.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C as D }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..34f7f2659caba --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=esnext).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.6.ts (0 errors) ==== + export {}; + + declare var dec: any; + + using before = null; + + @dec + class C { + } + + export { C as D }; \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..c84706fe23cde --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.7.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..c84706fe23cde --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.7.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..c84706fe23cde --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.7.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..596c8d06d8322 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.8.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..596c8d06d8322 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.8.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..596c8d06d8322 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.8.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es2015).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es2015).errors.txt new file mode 100644 index 0000000000000..66ce3c7990386 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es2015).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.9.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es5).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es5).errors.txt new file mode 100644 index 0000000000000..66ce3c7990386 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.9.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=esnext).errors.txt b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=esnext).errors.txt new file mode 100644 index 0000000000000..66ce3c7990386 --- /dev/null +++ b/tests/baselines/reference/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=esnext).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== usingDeclarationsWithLegacyClassDecorators.9.ts (0 errors) ==== + export {}; + + declare var dec: any; + + @dec + export default class C { + } + + using after = null; + \ No newline at end of file diff --git a/tests/baselines/reference/varArgsOnConstructorTypes.errors.txt b/tests/baselines/reference/varArgsOnConstructorTypes.errors.txt new file mode 100644 index 0000000000000..ea3caaa25cc9e --- /dev/null +++ b/tests/baselines/reference/varArgsOnConstructorTypes.errors.txt @@ -0,0 +1,29 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== varArgsOnConstructorTypes.ts (0 errors) ==== + export class A { + constructor(ctor) { } + } + + export class B extends A { + private p1: number; + private p2: string; + + constructor(element: any, url: string) { + super(element); + this.p1 = element; + this.p2 = url; + } + } + + export interface I1 { + register(inputClass: new(...params: any[]) => A); + register(inputClass: { new (...params: any[]): A; }[]); + } + + + var reg: I1; + reg.register(B); + \ No newline at end of file diff --git a/tests/baselines/reference/varArgsOnConstructorTypes.types b/tests/baselines/reference/varArgsOnConstructorTypes.types index 7be083f9b5d39..dc92a7cf583ab 100644 --- a/tests/baselines/reference/varArgsOnConstructorTypes.types +++ b/tests/baselines/reference/varArgsOnConstructorTypes.types @@ -7,6 +7,7 @@ export class A { constructor(ctor) { } >ctor : any +> : ^^^ } export class B extends A { @@ -25,6 +26,7 @@ export class B extends A { constructor(element: any, url: string) { >element : any +> : ^^^ >url : string > : ^^^^^^ @@ -34,9 +36,11 @@ export class B extends A { >super : typeof A > : ^^^^^^^^ >element : any +> : ^^^ this.p1 = element; >this.p1 = element : any +> : ^^^ >this.p1 : number > : ^^^^^^ >this : this @@ -44,6 +48,7 @@ export class B extends A { >p1 : number > : ^^^^^^ >element : any +> : ^^^ this.p2 = url; >this.p2 = url : string @@ -84,6 +89,7 @@ var reg: I1; reg.register(B); >reg.register(B) : any +> : ^^^ >reg.register : { (inputClass: new (...params: any[]) => A): any; (inputClass: { new (...params: any[]): A; }[]): any; } > : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ >reg : I1 diff --git a/tests/baselines/reference/verbatimModuleSyntaxCompat.errors.txt b/tests/baselines/reference/verbatimModuleSyntaxCompat.errors.txt index 8c173b0d85ed9..660f32f46e579 100644 --- a/tests/baselines/reference/verbatimModuleSyntaxCompat.errors.txt +++ b/tests/baselines/reference/verbatimModuleSyntaxCompat.errors.txt @@ -3,6 +3,7 @@ error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration. Use 'verbatimModuleSyntax' instead. error TS5105: Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration. @@ -10,5 +11,6 @@ error TS5105: Option 'verbatimModuleSyntax' cannot be used when 'module' is set !!! error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration. !!! error TS5102: Use 'verbatimModuleSyntax' instead. !!! error TS5105: Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== verbatimModuleSyntaxCompat.ts (0 errors) ==== export {}; \ No newline at end of file diff --git a/tests/baselines/reference/withExportDecl.errors.txt b/tests/baselines/reference/withExportDecl.errors.txt new file mode 100644 index 0000000000000..2b16d72472e8b --- /dev/null +++ b/tests/baselines/reference/withExportDecl.errors.txt @@ -0,0 +1,63 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== withExportDecl.ts (0 errors) ==== + var simpleVar; + export var exportedSimpleVar; + + var anotherVar: any; + var varWithSimpleType: number; + var varWithArrayType: number[]; + + var varWithInitialValue = 30; + export var exportedVarWithInitialValue = 70; + + var withComplicatedValue = { x: 30, y: 70, desc: "position" }; + export var exportedWithComplicatedValue = { x: 30, y: 70, desc: "position" }; + + declare var declaredVar; + declare var declareVar2 + + declare var declaredVar; + declare var deckareVarWithType: number; + export declare var exportedDeclaredVar: number; + + var arrayVar: string[] = ['a', 'b']; + + export var exportedArrayVar: { x: number; y: string; }[] ; + exportedArrayVar.push({ x: 30, y : 'hello world' }); + + function simpleFunction() { + return { + x: "Hello", + y: "word", + n: 2 + }; + } + + export function exportedFunction() { + return simpleFunction(); + } + + namespace m1 { + export function foo() { + return "Hello"; + } + } + export declare namespace m2 { + + export var a: number; + } + + + export namespace m3 { + + export function foo() { + return m1.foo(); + } + } + + export var eVar1, eVar2 = 10; + var eVar22; + export var eVar3 = 10, eVar4, eVar5; \ No newline at end of file diff --git a/tests/baselines/reference/withExportDecl.types b/tests/baselines/reference/withExportDecl.types index 124a9fe99303c..72d5370511f0b 100644 --- a/tests/baselines/reference/withExportDecl.types +++ b/tests/baselines/reference/withExportDecl.types @@ -3,12 +3,15 @@ === withExportDecl.ts === var simpleVar; >simpleVar : any +> : ^^^ export var exportedSimpleVar; >exportedSimpleVar : any +> : ^^^ var anotherVar: any; >anotherVar : any +> : ^^^ var varWithSimpleType: number; >varWithSimpleType : number @@ -68,12 +71,15 @@ export var exportedWithComplicatedValue = { x: 30, y: 70, desc: "position" }; declare var declaredVar; >declaredVar : any +> : ^^^ declare var declareVar2 >declareVar2 : any +> : ^^^ declare var declaredVar; >declaredVar : any +> : ^^^ declare var deckareVarWithType: number; >deckareVarWithType : number @@ -206,6 +212,7 @@ export namespace m3 { export var eVar1, eVar2 = 10; >eVar1 : any +> : ^^^ >eVar2 : number > : ^^^^^^ >10 : 10 @@ -213,6 +220,7 @@ export var eVar1, eVar2 = 10; var eVar22; >eVar22 : any +> : ^^^ export var eVar3 = 10, eVar4, eVar5; >eVar3 : number @@ -220,5 +228,7 @@ export var eVar3 = 10, eVar4, eVar5; >10 : 10 > : ^^ >eVar4 : any +> : ^^^ >eVar5 : any +> : ^^^ diff --git a/tests/baselines/reference/withImportDecl.errors.txt b/tests/baselines/reference/withImportDecl.errors.txt new file mode 100644 index 0000000000000..a587af11cfe88 --- /dev/null +++ b/tests/baselines/reference/withImportDecl.errors.txt @@ -0,0 +1,46 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== withImportDecl_1.ts (0 errors) ==== + /// + var simpleVar; + + var anotherVar: any; + var varWithSimpleType: number; + var varWithArrayType: number[]; + + var varWithInitialValue = 30; + + var withComplicatedValue = { x: 30, y: 70, desc: "position" }; + + declare var declaredVar; + declare var declareVar2 + + declare var declaredVar; + declare var deckareVarWithType: number; + + var arrayVar: string[] = ['a', 'b']; + + + function simpleFunction() { + return { + x: "Hello", + y: "word", + n: 2 + }; + } + + namespace m1 { + export function foo() { + return "Hello"; + } + } + + import m3 = require("withImportDecl_0"); + + var b = new m3.A(); + b.foo; +==== withImportDecl_0.ts (0 errors) ==== + export class A { foo: string; } + \ No newline at end of file diff --git a/tests/baselines/reference/withImportDecl.types b/tests/baselines/reference/withImportDecl.types index f309e6c1297d1..a7b711bd97eeb 100644 --- a/tests/baselines/reference/withImportDecl.types +++ b/tests/baselines/reference/withImportDecl.types @@ -4,9 +4,11 @@ /// var simpleVar; >simpleVar : any +> : ^^^ var anotherVar: any; >anotherVar : any +> : ^^^ var varWithSimpleType: number; >varWithSimpleType : number @@ -42,12 +44,15 @@ var withComplicatedValue = { x: 30, y: 70, desc: "position" }; declare var declaredVar; >declaredVar : any +> : ^^^ declare var declareVar2 >declareVar2 : any +> : ^^^ declare var declaredVar; >declaredVar : any +> : ^^^ declare var deckareVarWithType: number; >deckareVarWithType : number From 34f6f967f3f5d2ae9e1dc8edbe6e668ba5bc13b9 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Fri, 24 Oct 2025 11:13:57 -0700 Subject: [PATCH 3/6] Update tests that use AMD without actually trying to test AMD --- src/compiler/diagnosticMessages.json | 5 +- ...alModuleInAnotherExternalModule.errors.txt | 6 +- ...ntExternalModuleInAnotherExternalModule.js | 18 +- ...eInsideNonAmbientExternalModule.errors.txt | 2 - ...nalModuleInsideNonAmbientExternalModule.js | 6 +- .../reference/augmentExportEquals1.errors.txt | 2 - .../reference/augmentExportEquals1.js | 23 +- .../reference/augmentExportEquals2.errors.txt | 2 - .../reference/augmentExportEquals2.js | 23 +- .../reference/augmentExportEquals3.errors.txt | 26 - .../reference/augmentExportEquals3.js | 36 +- .../reference/augmentExportEquals3.types | 1 - .../reference/augmentExportEquals4.errors.txt | 26 - .../reference/augmentExportEquals4.js | 42 +- .../reference/augmentExportEquals4.types | 1 - .../reference/augmentExportEquals5.errors.txt | 83 --- .../reference/augmentExportEquals5.js | 17 +- .../reference/augmentExportEquals5.types | 5 - .../reference/augmentExportEquals6.errors.txt | 30 - .../reference/augmentExportEquals6.js | 58 +- .../reference/augmentExportEquals6.types | 1 - .../badExternalModuleReference.errors.txt | 6 +- .../reference/badExternalModuleReference.js | 6 +- ...nctionDeclarationInStrictModule.errors.txt | 7 +- ...ScopedFunctionDeclarationInStrictModule.js | 14 +- ...collisionExportsRequireAndAlias.errors.txt | 6 +- .../collisionExportsRequireAndAlias.js | 52 +- .../collisionExportsRequireAndAlias.symbols | 10 +- .../collisionExportsRequireAndAlias.types | 4 +- ...onExportsRequireAndAmbientClass.errors.txt | 40 -- .../collisionExportsRequireAndAmbientClass.js | 12 +- ...ionExportsRequireAndAmbientEnum.errors.txt | 63 -- .../collisionExportsRequireAndAmbientEnum.js | 12 +- ...xportsRequireAndAmbientFunction.errors.txt | 18 - ...llisionExportsRequireAndAmbientFunction.js | 14 +- ...nExportsRequireAndAmbientModule.errors.txt | 97 --- ...collisionExportsRequireAndAmbientModule.js | 30 +- ...sionExportsRequireAndAmbientVar.errors.txt | 29 - .../collisionExportsRequireAndAmbientVar.js | 14 +- .../commentOnImportStatement1.errors.txt | 6 +- .../reference/commentOnImportStatement1.js | 6 +- .../reference/commonSourceDir5.errors.txt | 6 +- tests/baselines/reference/commonSourceDir5.js | 38 -- .../constDeclarations-access5.errors.txt | 4 +- .../reference/constDeclarations-access5.js | 80 ++- .../constDeclarations-access5.symbols | 2 +- .../reference/constDeclarations-access5.types | 2 +- ...StringLiteralsInJsxAttributes02.errors.txt | 2 - ...llyTypedStringLiteralsInJsxAttributes02.js | 41 +- .../copyrightWithNewLine1.errors.txt | 6 +- .../reference/copyrightWithNewLine1.js | 15 +- .../copyrightWithoutNewLine1.errors.txt | 6 +- .../reference/copyrightWithoutNewLine1.js | 18 +- ...IntypeCheckInvocationExpression.errors.txt | 2 - .../crashIntypeCheckInvocationExpression.js | 19 +- .../duplicateLocalVariable2.errors.txt | 2 - .../reference/duplicateLocalVariable2.js | 79 ++- .../duplicateSymbolsExportMatching.errors.txt | 2 - .../duplicateSymbolsExportMatching.js | 76 ++- .../es5ModuleInternalNamedImports.errors.txt | 6 +- .../es5ModuleInternalNamedImports.js | 60 +- .../reference/es6ExportAssignment2.errors.txt | 7 +- .../reference/es6ExportAssignment2.js | 2 +- .../reference/es6ExportAssignment2.symbols | 2 +- .../reference/es6ExportAssignment2.types | 6 +- ...ortClauseWithoutModuleSpecifier.errors.txt | 35 - .../es6ExportClauseWithoutModuleSpecifier.js | 29 +- ...ExportClauseWithoutModuleSpecifier.symbols | 12 +- ...s6ExportClauseWithoutModuleSpecifier.types | 34 +- .../es6ImportDefaultBinding.errors.txt | 17 - .../reference/es6ImportDefaultBinding.js | 6 +- .../reference/es6ImportDefaultBinding.symbols | 4 +- .../reference/es6ImportDefaultBinding.types | 20 +- ...BindingFollowedWithNamedImport1.errors.txt | 48 +- ...tDefaultBindingFollowedWithNamedImport1.js | 24 +- ...ultBindingFollowedWithNamedImport1.symbols | 12 +- ...faultBindingFollowedWithNamedImport1.types | 60 +- ...llowedWithNamedImportWithExport.errors.txt | 14 +- ...indingFollowedWithNamedImportWithExport.js | 53 +- ...gFollowedWithNamedImportWithExport.symbols | 12 +- ...ingFollowedWithNamedImportWithExport.types | 12 +- ...ingFollowedWithNamespaceBinding.errors.txt | 8 +- ...aultBindingFollowedWithNamespaceBinding.js | 4 +- ...indingFollowedWithNamespaceBinding.symbols | 4 +- ...tBindingFollowedWithNamespaceBinding.types | 18 +- ...ngFollowedWithNamespaceBinding1.errors.txt | 12 - ...ultBindingFollowedWithNamespaceBinding1.js | 4 +- ...ndingFollowedWithNamespaceBinding1.symbols | 2 +- ...BindingFollowedWithNamespaceBinding1.types | 14 +- ...WithNamespaceBinding1WithExport.errors.txt | 2 +- ...FollowedWithNamespaceBinding1WithExport.js | 4 +- ...wedWithNamespaceBinding1WithExport.symbols | 2 +- ...lowedWithNamespaceBinding1WithExport.types | 2 +- ...ollowedWithNamespaceBindingDts1.errors.txt | 2 +- ...BindingFollowedWithNamespaceBindingDts1.js | 6 +- ...ngFollowedWithNamespaceBindingDts1.symbols | 2 +- ...dingFollowedWithNamespaceBindingDts1.types | 2 +- ...6ImportDefaultBindingWithExport.errors.txt | 6 +- .../es6ImportDefaultBindingWithExport.js | 26 +- .../es6ImportDefaultBindingWithExport.symbols | 4 +- .../es6ImportDefaultBindingWithExport.types | 4 +- .../es6ImportEqualsDeclaration.errors.txt | 14 +- .../reference/es6ImportEqualsDeclaration.js | 5 +- .../es6ImportEqualsDeclaration.symbols | 9 +- .../es6ImportEqualsDeclaration.types | 17 +- ...s6ImportNamedImportParsingError.errors.txt | 16 +- .../es6ImportNamedImportParsingError.js | 14 +- .../es6ImportNamedImportParsingError.symbols | 8 +- .../es6ImportNamedImportParsingError.types | 20 +- .../exportAssignmentAndDeclaration.errors.txt | 2 - .../exportAssignmentAndDeclaration.js | 28 +- .../reference/exportDeclareClass1.errors.txt | 2 - .../reference/exportDeclareClass1.js | 10 +- .../exportDefaultAsyncFunction2.errors.txt | 28 +- .../reference/exportDefaultAsyncFunction2.js | 16 +- .../exportDefaultAsyncFunction2.symbols | 8 +- .../exportDefaultAsyncFunction2.types | 60 +- .../reference/exportEqualErrorType.errors.txt | 4 +- .../reference/exportEqualErrorType.js | 20 +- .../reference/exportEqualErrorType.symbols | 2 +- .../reference/exportEqualErrorType.types | 2 +- .../exportSameNameFuncVar.errors.txt | 2 - .../reference/exportSameNameFuncVar.js | 16 +- ...exportedBlockScopedDeclarations.errors.txt | 2 - .../exportedBlockScopedDeclarations.js | 41 +- .../fieldAndGetterWithSameName.errors.txt | 2 - .../reference/fieldAndGetterWithSameName.js | 30 +- .../genericMemberFunction.errors.txt | 2 - .../reference/genericMemberFunction.js | 73 +-- .../genericReturnTypeFromGetter1.errors.txt | 2 - .../reference/genericReturnTypeFromGetter1.js | 32 +- tests/baselines/reference/giant.errors.txt | 2 - tests/baselines/reference/giant.js | 598 +++++++++--------- .../importDeclWithClassModifiers.errors.txt | 2 - .../reference/importDeclWithClassModifiers.js | 16 +- .../importDeferInvalidDefault.errors.txt | 7 +- .../reference/importDeferInvalidDefault.js | 4 +- .../importDeferInvalidDefault.symbols | 2 +- .../reference/importDeferInvalidDefault.types | 14 +- .../importDeferInvalidNamed.errors.txt | 7 +- .../reference/importDeferInvalidNamed.js | 4 +- .../reference/importDeferInvalidNamed.symbols | 2 +- .../reference/importDeferInvalidNamed.types | 14 +- .../importDeferTypeConflict1.errors.txt | 2 +- .../reference/importDeferTypeConflict1.js | 4 +- .../importDeferTypeConflict1.symbols | 2 +- .../reference/importDeferTypeConflict1.types | 6 +- .../importDeferTypeConflict2.errors.txt | 2 +- .../reference/importDeferTypeConflict2.js | 4 +- .../importDeferTypeConflict2.symbols | 2 +- .../reference/importDeferTypeConflict2.types | 6 +- .../importNonExternalModule.errors.txt | 2 - .../reference/importNonExternalModule.js | 13 +- .../interfaceDeclaration3.errors.txt | 2 - .../reference/interfaceDeclaration3.js | 100 ++- .../interfaceImplementation6.errors.txt | 2 - .../reference/interfaceImplementation6.js | 54 +- ...lModuleWithoutExportAccessError.errors.txt | 2 - ...sideLocalModuleWithoutExportAccessError.js | 16 +- ...lModuleWithoutExportAccessError.errors.txt | 2 - ...sideLocalModuleWithoutExportAccessError.js | 16 +- .../moduleAugmentationGlobal8.errors.txt | 2 - .../reference/moduleAugmentationGlobal8.js | 5 +- .../moduleAugmentationGlobal8_1.errors.txt | 2 - .../reference/moduleAugmentationGlobal8_1.js | 5 +- .../reference/moduleExports1.errors.txt | 2 - tests/baselines/reference/moduleExports1.js | 48 +- ...ternalModuleImportWithoutExport.errors.txt | 6 +- ...mbientExternalModuleImportWithoutExport.js | 80 +-- ...tExternalModuleImportWithoutExport.symbols | 6 +- ...entExternalModuleImportWithoutExport.types | 4 +- .../privateNameEmitHelpers.errors.txt | 11 +- .../reference/privateNameEmitHelpers.js | 2 +- .../reference/privateNameEmitHelpers.symbols | 34 +- .../reference/privateNameEmitHelpers.types | 2 +- .../privateNameStaticEmitHelpers.errors.txt | 11 +- .../reference/privateNameStaticEmitHelpers.js | 2 +- .../privateNameStaticEmitHelpers.symbols | 34 +- .../privateNameStaticEmitHelpers.types | 2 +- ...ertyIdentityWithPrivacyMismatch.errors.txt | 2 - .../propertyIdentityWithPrivacyMismatch.js | 34 +- ...rtAssignmentAndFindAliasedType1.errors.txt | 4 +- ...siveExportAssignmentAndFindAliasedType1.js | 24 +- ...xportAssignmentAndFindAliasedType1.symbols | 2 +- ...eExportAssignmentAndFindAliasedType1.types | 2 +- ...rtAssignmentAndFindAliasedType2.errors.txt | 4 +- ...siveExportAssignmentAndFindAliasedType2.js | 24 +- ...xportAssignmentAndFindAliasedType2.symbols | 2 +- ...eExportAssignmentAndFindAliasedType2.types | 2 +- ...rtAssignmentAndFindAliasedType3.errors.txt | 4 +- ...siveExportAssignmentAndFindAliasedType3.js | 24 +- ...xportAssignmentAndFindAliasedType3.symbols | 2 +- ...eExportAssignmentAndFindAliasedType3.types | 2 +- ...rtAssignmentAndFindAliasedType4.errors.txt | 10 +- ...siveExportAssignmentAndFindAliasedType4.js | 35 +- ...xportAssignmentAndFindAliasedType4.symbols | 10 +- ...eExportAssignmentAndFindAliasedType4.types | 6 +- ...rtAssignmentAndFindAliasedType5.errors.txt | 12 +- ...siveExportAssignmentAndFindAliasedType5.js | 44 +- ...xportAssignmentAndFindAliasedType5.symbols | 12 +- ...eExportAssignmentAndFindAliasedType5.types | 8 +- ...rtAssignmentAndFindAliasedType6.errors.txt | 14 +- ...siveExportAssignmentAndFindAliasedType6.js | 53 +- ...xportAssignmentAndFindAliasedType6.symbols | 14 +- ...eExportAssignmentAndFindAliasedType6.types | 10 +- ...rtAssignmentAndFindAliasedType7.errors.txt | 25 - ...siveExportAssignmentAndFindAliasedType7.js | 55 +- ...xportAssignmentAndFindAliasedType7.symbols | 14 +- ...eExportAssignmentAndFindAliasedType7.types | 12 +- .../staticInstanceResolution5.errors.txt | 4 +- .../reference/staticInstanceResolution5.js | 42 +- .../staticInstanceResolution5.symbols | 2 +- .../reference/staticInstanceResolution5.types | 2 +- .../topLevelAwaitErrors.11.errors.txt | 2 - .../reference/topLevelAwaitErrors.11.js | 23 +- .../reference/topLevelLambda4.errors.txt | 2 - tests/baselines/reference/topLevelLambda4.js | 10 +- .../tsxAttributeResolution10.errors.txt | 2 - .../reference/tsxAttributeResolution10.js | 36 +- .../tsxAttributeResolution11.errors.txt | 2 - .../tsxAttributeResolution14.errors.txt | 2 - .../tsxAttributeResolution9.errors.txt | 2 - .../reference/tsxAttributeResolution9.js | 28 +- .../tsxElementResolution19.errors.txt | 22 - .../reference/tsxElementResolution19.js | 32 +- .../reference/tsxElementResolution19.types | 3 +- ...ReturnUndefinedStrictNullChecks.errors.txt | 2 - .../tsxSfcReturnUndefinedStrictNullChecks.js | 21 +- ...elessFunctionComponentOverload4.errors.txt | 2 - .../tsxStatelessFunctionComponentOverload4.js | 51 +- ...elessFunctionComponentOverload5.errors.txt | 2 - .../tsxStatelessFunctionComponentOverload5.js | 63 +- ...elessFunctionComponentOverload6.errors.txt | 62 -- .../tsxStatelessFunctionComponentOverload6.js | 65 +- ...xStatelessFunctionComponentOverload6.types | 7 - ...ionComponentsWithTypeArguments4.errors.txt | 2 - ...essFunctionComponentsWithTypeArguments4.js | 17 +- .../typeAliasDeclarationEmit.errors.txt | 2 - .../reference/typeAliasDeclarationEmit.js | 6 +- .../typeUsedAsValueError2.errors.txt | 6 +- .../reference/typeUsedAsValueError2.js | 26 +- .../reference/typeUsedAsValueError2.symbols | 6 +- .../reference/typeUsedAsValueError2.types | 4 +- .../undeclaredModuleError.errors.txt | 6 +- .../reference/undeclaredModuleError.js | 35 +- ...ntExternalModuleInAnotherExternalModule.ts | 2 +- tests/cases/compiler/augmentExportEquals1.ts | 2 +- tests/cases/compiler/augmentExportEquals2.ts | 2 +- tests/cases/compiler/augmentExportEquals3.ts | 2 +- tests/cases/compiler/augmentExportEquals4.ts | 2 +- tests/cases/compiler/augmentExportEquals5.ts | 2 +- tests/cases/compiler/augmentExportEquals6.ts | 2 +- .../compiler/badExternalModuleReference.ts | 2 +- ...ScopedFunctionDeclarationInStrictModule.ts | 4 +- .../collisionExportsRequireAndAlias.ts | 6 +- .../collisionExportsRequireAndAmbientClass.ts | 2 +- .../collisionExportsRequireAndAmbientEnum.ts | 2 +- ...llisionExportsRequireAndAmbientFunction.ts | 2 +- ...collisionExportsRequireAndAmbientModule.ts | 2 +- .../collisionExportsRequireAndAmbientVar.ts | 2 +- .../compiler/commentOnImportStatement1.ts | 2 +- tests/cases/compiler/commonSourceDir5.ts | 2 +- .../compiler/constDeclarations-access5.ts | 4 +- tests/cases/compiler/copyrightWithNewLine1.ts | 2 +- .../compiler/copyrightWithoutNewLine1.ts | 2 +- .../crashIntypeCheckInvocationExpression.ts | 2 +- .../cases/compiler/duplicateLocalVariable2.ts | 2 +- .../duplicateSymbolsExportMatching.ts | 2 +- .../compiler/es5ModuleInternalNamedImports.ts | 2 +- tests/cases/compiler/es6ExportAssignment2.ts | 2 +- .../es6ExportClauseWithoutModuleSpecifier.ts | 10 +- .../cases/compiler/es6ImportDefaultBinding.ts | 4 +- ...tDefaultBindingFollowedWithNamedImport1.ts | 12 +- ...indingFollowedWithNamedImportWithExport.ts | 14 +- ...aultBindingFollowedWithNamespaceBinding.ts | 2 +- ...ultBindingFollowedWithNamespaceBinding1.ts | 2 +- ...FollowedWithNamespaceBinding1WithExport.ts | 2 +- ...BindingFollowedWithNamespaceBindingDts1.ts | 2 +- .../es6ImportDefaultBindingWithExport.ts | 6 +- .../compiler/es6ImportEqualsDeclaration.ts | 2 +- .../es6ImportNamedImportParsingError.ts | 8 +- tests/cases/compiler/exportDeclareClass1.ts | 2 +- .../compiler/exportDefaultAsyncFunction2.ts | 8 +- tests/cases/compiler/exportEqualErrorType.ts | 4 +- tests/cases/compiler/exportSameNameFuncVar.ts | 2 +- .../exportedBlockScopedDeclarations.ts | 2 +- .../compiler/fieldAndGetterWithSameName.ts | 2 +- tests/cases/compiler/genericMemberFunction.ts | 2 +- .../compiler/genericReturnTypeFromGetter1.ts | 2 +- tests/cases/compiler/giant.ts | 2 +- .../compiler/importDeclWithClassModifiers.ts | 2 +- tests/cases/compiler/interfaceDeclaration3.ts | 2 +- .../compiler/interfaceImplementation6.ts | 2 +- ...sideLocalModuleWithoutExportAccessError.ts | 2 +- ...sideLocalModuleWithoutExportAccessError.ts | 2 +- .../compiler/moduleAugmentationGlobal8.ts | 2 +- .../compiler/moduleAugmentationGlobal8_1.ts | 2 +- tests/cases/compiler/moduleExports1.ts | 2 +- ...mbientExternalModuleImportWithoutExport.ts | 6 +- .../propertyIdentityWithPrivacyMismatch.ts | 2 +- ...siveExportAssignmentAndFindAliasedType1.ts | 4 +- ...siveExportAssignmentAndFindAliasedType2.ts | 4 +- ...siveExportAssignmentAndFindAliasedType3.ts | 4 +- ...siveExportAssignmentAndFindAliasedType4.ts | 8 +- ...siveExportAssignmentAndFindAliasedType5.ts | 10 +- ...siveExportAssignmentAndFindAliasedType6.ts | 12 +- ...siveExportAssignmentAndFindAliasedType7.ts | 12 +- .../compiler/staticInstanceResolution5.ts | 4 +- tests/cases/compiler/topLevelLambda4.ts | 2 +- .../compiler/typeAliasDeclarationEmit.ts | 2 +- tests/cases/compiler/typeUsedAsValueError2.ts | 6 +- tests/cases/compiler/undeclaredModuleError.ts | 2 +- ...nalModuleInsideNonAmbientExternalModule.ts | 2 +- .../privateNames/privateNameEmitHelpers.ts | 2 +- .../privateNameStaticEmitHelpers.ts | 2 +- .../exportAssignmentAndDeclaration.ts | 2 +- .../importNonExternalModule.ts | 2 +- .../externalModules/topLevelAwaitErrors.11.ts | 2 +- .../importDefer/importDeferInvalidDefault.ts | 2 +- .../importDefer/importDeferInvalidNamed.ts | 2 +- .../importDefer/importDeferTypeConflict1.ts | 2 +- .../importDefer/importDeferTypeConflict2.ts | 2 +- .../jsx/tsxAttributeResolution10.tsx | 2 +- .../jsx/tsxAttributeResolution11.tsx | 2 +- .../jsx/tsxAttributeResolution14.tsx | 2 +- .../jsx/tsxAttributeResolution9.tsx | 2 +- .../jsx/tsxElementResolution19.tsx | 2 +- .../tsxSfcReturnUndefinedStrictNullChecks.tsx | 2 +- ...tsxStatelessFunctionComponentOverload4.tsx | 2 +- ...tsxStatelessFunctionComponentOverload5.tsx | 2 +- ...tsxStatelessFunctionComponentOverload6.tsx | 2 +- ...ssFunctionComponentsWithTypeArguments4.tsx | 2 +- ...lyTypedStringLiteralsInJsxAttributes02.tsx | 2 +- 333 files changed, 1960 insertions(+), 2907 deletions(-) delete mode 100644 tests/baselines/reference/augmentExportEquals3.errors.txt delete mode 100644 tests/baselines/reference/augmentExportEquals4.errors.txt delete mode 100644 tests/baselines/reference/augmentExportEquals5.errors.txt delete mode 100644 tests/baselines/reference/augmentExportEquals6.errors.txt delete mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientClass.errors.txt delete mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientEnum.errors.txt delete mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientFunction.errors.txt delete mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientModule.errors.txt delete mode 100644 tests/baselines/reference/collisionExportsRequireAndAmbientVar.errors.txt delete mode 100644 tests/baselines/reference/commonSourceDir5.js delete mode 100644 tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.errors.txt delete mode 100644 tests/baselines/reference/es6ImportDefaultBinding.errors.txt delete mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt delete mode 100644 tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.errors.txt delete mode 100644 tests/baselines/reference/tsxElementResolution19.errors.txt delete mode 100644 tests/baselines/reference/tsxStatelessFunctionComponentOverload6.errors.txt diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 7a19b3bb8212b..5731936e4978e 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -6587,10 +6587,7 @@ "category": "Message", "code": 6903 }, - "module === \"system\" or esModuleInterop": { - "category": "Message", - "code": 6904 - }, + "`false`, unless `strict` is set": { "category": "Message", "code": 6905 diff --git a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt index 181912de0ecd9..f8f07f10a8734 100644 --- a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt +++ b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ambientExternalModuleInAnotherExternalModule.ts(4,16): error TS2664: Invalid module name in augmentation, module 'ext' cannot be found. -ambientExternalModuleInAnotherExternalModule.ts(9,22): error TS2792: Cannot find module 'ext'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +ambientExternalModuleInAnotherExternalModule.ts(9,22): error TS2307: Cannot find module 'ext' or its corresponding type declarations. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ambientExternalModuleInAnotherExternalModule.ts (2 errors) ==== class D { } export = D; @@ -17,5 +15,5 @@ ambientExternalModuleInAnotherExternalModule.ts(9,22): error TS2792: Cannot find // Cannot resolve this ext module reference import ext = require("ext"); ~~~~~ -!!! error TS2792: Cannot find module 'ext'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS2307: Cannot find module 'ext' or its corresponding type declarations. var x = ext; \ No newline at end of file diff --git a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js index 09fafb90e70fa..900b03f321350 100644 --- a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js +++ b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js @@ -13,13 +13,13 @@ import ext = require("ext"); var x = ext; //// [ambientExternalModuleInAnotherExternalModule.js] -define(["require", "exports", "ext"], function (require, exports, ext) { - "use strict"; - var D = /** @class */ (function () { - function D() { - } - return D; - }()); - var x = ext; +"use strict"; +var D = /** @class */ (function () { + function D() { + } return D; -}); +}()); +// Cannot resolve this ext module reference +var ext = require("ext"); +var x = ext; +module.exports = D; diff --git a/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt b/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt index 73295d80ceb15..dc26b6b3866a1 100644 --- a/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt +++ b/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ambientExternalModuleInsideNonAmbientExternalModule.ts (2 errors) ==== export declare module "M" { } ~~~~~~ diff --git a/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.js b/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.js index cfbcf7edfabcc..e32c911b48c11 100644 --- a/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.js +++ b/tests/baselines/reference/ambientExternalModuleInsideNonAmbientExternalModule.js @@ -4,7 +4,5 @@ export declare module "M" { } //// [ambientExternalModuleInsideNonAmbientExternalModule.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/augmentExportEquals1.errors.txt b/tests/baselines/reference/augmentExportEquals1.errors.txt index 53f12a5836144..390b06946880c 100644 --- a/tests/baselines/reference/augmentExportEquals1.errors.txt +++ b/tests/baselines/reference/augmentExportEquals1.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file3.ts (1 errors) ==== import x = require("./file1"); import "./file2"; diff --git a/tests/baselines/reference/augmentExportEquals1.js b/tests/baselines/reference/augmentExportEquals1.js index 4fa10b893d7e1..6bc25d7e71bc1 100644 --- a/tests/baselines/reference/augmentExportEquals1.js +++ b/tests/baselines/reference/augmentExportEquals1.js @@ -19,19 +19,14 @@ import "./file2"; let a: x.A; // should not work //// [file1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var x = 1; - return x; -}); +"use strict"; +var x = 1; +module.exports = x; //// [file2.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); //// [file3.js] -define(["require", "exports", "./file2"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a; // should not work -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +require("./file2"); +var a; // should not work diff --git a/tests/baselines/reference/augmentExportEquals2.errors.txt b/tests/baselines/reference/augmentExportEquals2.errors.txt index 9c166759d9f03..cfda8b47dd1ab 100644 --- a/tests/baselines/reference/augmentExportEquals2.errors.txt +++ b/tests/baselines/reference/augmentExportEquals2.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file3.ts (1 errors) ==== import x = require("./file1"); import "./file2"; diff --git a/tests/baselines/reference/augmentExportEquals2.js b/tests/baselines/reference/augmentExportEquals2.js index 7f3a825133794..e565f18dd087a 100644 --- a/tests/baselines/reference/augmentExportEquals2.js +++ b/tests/baselines/reference/augmentExportEquals2.js @@ -18,19 +18,14 @@ import "./file2"; let a: x.A; // should not work //// [file1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - function foo() { } - return foo; -}); +"use strict"; +function foo() { } +module.exports = foo; //// [file2.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); //// [file3.js] -define(["require", "exports", "./file2"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a; // should not work -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +require("./file2"); +var a; // should not work diff --git a/tests/baselines/reference/augmentExportEquals3.errors.txt b/tests/baselines/reference/augmentExportEquals3.errors.txt deleted file mode 100644 index 1c43c48c12b58..0000000000000 --- a/tests/baselines/reference/augmentExportEquals3.errors.txt +++ /dev/null @@ -1,26 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== file1.ts (0 errors) ==== - function foo() {} - namespace foo { - export var v = 1; - } - export = foo; - -==== file2.ts (0 errors) ==== - import x = require("./file1"); - x.b = 1; - - // OK - './file1' is a namespace - declare module "./file1" { - interface A { a } - let b: number; - } - -==== file3.ts (0 errors) ==== - import * as x from "./file1"; - import "./file2"; - let a: x.A; - let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals3.js b/tests/baselines/reference/augmentExportEquals3.js index c17f666c24afe..7f07f319f774f 100644 --- a/tests/baselines/reference/augmentExportEquals3.js +++ b/tests/baselines/reference/augmentExportEquals3.js @@ -24,21 +24,19 @@ let a: x.A; let b = x.b; //// [file1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - function foo() { } - (function (foo) { - foo.v = 1; - })(foo || (foo = {})); - return foo; -}); +"use strict"; +function foo() { } +(function (foo) { + foo.v = 1; +})(foo || (foo = {})); +module.exports = foo; //// [file2.js] -define(["require", "exports", "./file1"], function (require, exports, x) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - x.b = 1; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var 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); @@ -72,10 +70,8 @@ var __importStar = (this && this.__importStar) || (function () { return result; }; })(); -define(["require", "exports", "./file1", "./file2"], function (require, exports, x) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - x = __importStar(x); - var a; - var b = x.b; -}); +Object.defineProperty(exports, "__esModule", { value: true }); +var x = __importStar(require("./file1")); +require("./file2"); +var a; +var b = x.b; diff --git a/tests/baselines/reference/augmentExportEquals3.types b/tests/baselines/reference/augmentExportEquals3.types index d8b3049331e5f..32d70fcb514e4 100644 --- a/tests/baselines/reference/augmentExportEquals3.types +++ b/tests/baselines/reference/augmentExportEquals3.types @@ -43,7 +43,6 @@ declare module "./file1" { interface A { a } >a : any -> : ^^^ let b: number; >b : number diff --git a/tests/baselines/reference/augmentExportEquals4.errors.txt b/tests/baselines/reference/augmentExportEquals4.errors.txt deleted file mode 100644 index 863c8529c71a0..0000000000000 --- a/tests/baselines/reference/augmentExportEquals4.errors.txt +++ /dev/null @@ -1,26 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== file1.ts (0 errors) ==== - class foo {} - namespace foo { - export var v = 1; - } - export = foo; - -==== file2.ts (0 errors) ==== - import x = require("./file1"); - x.b = 1; - - // OK - './file1' is a namespace - declare module "./file1" { - interface A { a } - let b: number; - } - -==== file3.ts (0 errors) ==== - import * as x from "./file1"; - import "./file2"; - let a: x.A; - let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals4.js b/tests/baselines/reference/augmentExportEquals4.js index 3cd96ee115474..fd55f8017fcb1 100644 --- a/tests/baselines/reference/augmentExportEquals4.js +++ b/tests/baselines/reference/augmentExportEquals4.js @@ -24,25 +24,23 @@ let a: x.A; let b = x.b; //// [file1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var foo = /** @class */ (function () { - function foo() { - } - return foo; - }()); - (function (foo) { - foo.v = 1; - })(foo || (foo = {})); +"use strict"; +var foo = /** @class */ (function () { + function foo() { + } return foo; -}); +}()); +(function (foo) { + foo.v = 1; +})(foo || (foo = {})); +module.exports = foo; //// [file2.js] -define(["require", "exports", "./file1"], function (require, exports, x) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - x.b = 1; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var 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); @@ -76,10 +74,8 @@ var __importStar = (this && this.__importStar) || (function () { return result; }; })(); -define(["require", "exports", "./file1", "./file2"], function (require, exports, x) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - x = __importStar(x); - var a; - var b = x.b; -}); +Object.defineProperty(exports, "__esModule", { value: true }); +var x = __importStar(require("./file1")); +require("./file2"); +var a; +var b = x.b; diff --git a/tests/baselines/reference/augmentExportEquals4.types b/tests/baselines/reference/augmentExportEquals4.types index 77b421abfb6e3..acb45a2884923 100644 --- a/tests/baselines/reference/augmentExportEquals4.types +++ b/tests/baselines/reference/augmentExportEquals4.types @@ -43,7 +43,6 @@ declare module "./file1" { interface A { a } >a : any -> : ^^^ let b: number; >b : number diff --git a/tests/baselines/reference/augmentExportEquals5.errors.txt b/tests/baselines/reference/augmentExportEquals5.errors.txt deleted file mode 100644 index 016bf85302fd8..0000000000000 --- a/tests/baselines/reference/augmentExportEquals5.errors.txt +++ /dev/null @@ -1,83 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== express.d.ts (0 errors) ==== - declare namespace 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 (0 errors) ==== - /// - import * as e from "express"; - declare module "express" { - interface Request { - id: number; - } - } - -==== consumer.ts (0 errors) ==== - import { Request } from "express"; - import "./augmentation"; - let x: Request; - const y = x.id; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals5.js b/tests/baselines/reference/augmentExportEquals5.js index 03ef32a071954..70efe35ff7f67 100644 --- a/tests/baselines/reference/augmentExportEquals5.js +++ b/tests/baselines/reference/augmentExportEquals5.js @@ -81,14 +81,11 @@ let x: Request; const y = x.id; //// [augmentation.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); //// [consumer.js] -define(["require", "exports", "./augmentation"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var x; - var y = x.id; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +require("./augmentation"); +var x; +var y = x.id; diff --git a/tests/baselines/reference/augmentExportEquals5.types b/tests/baselines/reference/augmentExportEquals5.types index 254f7fe708c19..bccab4f9d160e 100644 --- a/tests/baselines/reference/augmentExportEquals5.types +++ b/tests/baselines/reference/augmentExportEquals5.types @@ -49,7 +49,6 @@ declare module "express" { >Router : (options?: any) => Router > : ^ ^^^ ^^^^^ >options : any -> : ^^^ export interface Router extends IRouter {} @@ -80,7 +79,6 @@ declare module "express" { interface ErrorRequestHandler { (err: any, req: Request, res: Response, next: Function): any; >err : any -> : ^^^ >req : Request > : ^^^^^^^ >res : Response @@ -110,7 +108,6 @@ declare module "express" { >next : Function > : ^^^^^^^^ >param : any -> : ^^^ } interface Application extends IRouter, Express.Application { @@ -119,7 +116,6 @@ declare module "express" { routes: any; >routes : any -> : ^^^ } interface Express extends Application { @@ -130,7 +126,6 @@ declare module "express" { var static: any; >static : any -> : ^^^ } export = e; diff --git a/tests/baselines/reference/augmentExportEquals6.errors.txt b/tests/baselines/reference/augmentExportEquals6.errors.txt deleted file mode 100644 index 311ace308e755..0000000000000 --- a/tests/baselines/reference/augmentExportEquals6.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== file1.ts (0 errors) ==== - class foo {} - namespace foo { - export class A {} - export namespace B { export let a; } - } - export = foo; - -==== file2.ts (0 errors) ==== - 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 (0 errors) ==== - import * as x from "./file1"; - import "./file2"; - let a: x.A; - let b = a.a; - let c = x.B.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals6.js b/tests/baselines/reference/augmentExportEquals6.js index 328b74696e0f6..5dc782ed8552e 100644 --- a/tests/baselines/reference/augmentExportEquals6.js +++ b/tests/baselines/reference/augmentExportEquals6.js @@ -28,33 +28,31 @@ let b = a.a; let c = x.B.b; //// [file1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var foo = /** @class */ (function () { - function foo() { +"use strict"; +var foo = /** @class */ (function () { + function foo() { + } + return foo; +}()); +(function (foo) { + var A = /** @class */ (function () { + function A() { } - return foo; + return A; }()); - (function (foo) { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); - foo.A = A; - var B; - (function (B) { - })(B = foo.B || (foo.B = {})); - })(foo || (foo = {})); - return foo; -}); + foo.A = A; + var B; + (function (B) { + })(B = foo.B || (foo.B = {})); +})(foo || (foo = {})); +module.exports = foo; //// [file2.js] -define(["require", "exports", "./file1"], function (require, exports, x) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - x.B.b = 1; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var 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); @@ -88,11 +86,9 @@ var __importStar = (this && this.__importStar) || (function () { return result; }; })(); -define(["require", "exports", "./file1", "./file2"], function (require, exports, x) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - x = __importStar(x); - var a; - var b = a.a; - var c = x.B.b; -}); +Object.defineProperty(exports, "__esModule", { value: true }); +var x = __importStar(require("./file1")); +require("./file2"); +var a; +var b = a.a; +var c = x.B.b; diff --git a/tests/baselines/reference/augmentExportEquals6.types b/tests/baselines/reference/augmentExportEquals6.types index a93f7cfa3912b..e8f21b77c0cdc 100644 --- a/tests/baselines/reference/augmentExportEquals6.types +++ b/tests/baselines/reference/augmentExportEquals6.types @@ -17,7 +17,6 @@ namespace foo { >B : typeof B > : ^^^^^^^^ >a : any -> : ^^^ } export = foo; >foo : import("file1.ts") diff --git a/tests/baselines/reference/badExternalModuleReference.errors.txt b/tests/baselines/reference/badExternalModuleReference.errors.txt index 2f7280ef371cc..3e8f3872296e5 100644 --- a/tests/baselines/reference/badExternalModuleReference.errors.txt +++ b/tests/baselines/reference/badExternalModuleReference.errors.txt @@ -1,12 +1,10 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -badExternalModuleReference.ts(1,21): error TS2792: Cannot find module 'garbage'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +badExternalModuleReference.ts(1,21): error TS2307: Cannot find module 'garbage' or its corresponding type declarations. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== badExternalModuleReference.ts (1 errors) ==== import a1 = require("garbage"); ~~~~~~~~~ -!!! error TS2792: Cannot find module 'garbage'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS2307: Cannot find module 'garbage' or its corresponding type declarations. export declare var a: { test1: a1.connectModule; (): a1.connectExport; diff --git a/tests/baselines/reference/badExternalModuleReference.js b/tests/baselines/reference/badExternalModuleReference.js index 4f5d7e4cc2d8a..017e5d940fb2c 100644 --- a/tests/baselines/reference/badExternalModuleReference.js +++ b/tests/baselines/reference/badExternalModuleReference.js @@ -9,7 +9,5 @@ export declare var a: { //// [badExternalModuleReference.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.errors.txt b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.errors.txt index 9e05b46da745c..f958ba0e0570a 100644 --- a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.errors.txt +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.errors.txt @@ -1,14 +1,9 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -blockScopedFunctionDeclarationInStrictModule.ts(2,14): error TS1252: Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode. blockScopedFunctionDeclarationInStrictModule.ts(6,10): error TS2304: Cannot find name 'foo'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== blockScopedFunctionDeclarationInStrictModule.ts (2 errors) ==== +==== blockScopedFunctionDeclarationInStrictModule.ts (1 errors) ==== if (true) { function foo() { } - ~~~ -!!! error TS1252: Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode. foo(); // ok } diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.js b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.js index 512bc5d032753..e7c00bb07a24b 100644 --- a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.js +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictModule.js @@ -9,11 +9,9 @@ if (true) { export = foo; // not ok //// [blockScopedFunctionDeclarationInStrictModule.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - if (true) { - function foo() { } - foo(); // ok - } - return foo; -}); +"use strict"; +if (true) { + function foo() { } + foo(); // ok +} +module.exports = foo; diff --git a/tests/baselines/reference/collisionExportsRequireAndAlias.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAlias.errors.txt index 98e31fb4de94b..8a030e687c10d 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAlias.errors.txt +++ b/tests/baselines/reference/collisionExportsRequireAndAlias.errors.txt @@ -1,14 +1,12 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== collisionExportsRequireAndAlias_file2.ts (2 errors) ==== - import require = require('collisionExportsRequireAndAlias_file1'); // Error + 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 + 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() { diff --git a/tests/baselines/reference/collisionExportsRequireAndAlias.js b/tests/baselines/reference/collisionExportsRequireAndAlias.js index 68c8ae98fb99c..df3f4a3cb36f0 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAlias.js +++ b/tests/baselines/reference/collisionExportsRequireAndAlias.js @@ -8,8 +8,8 @@ export function bar() { export function bar2() { } //// [collisionExportsRequireAndAlias_file2.ts] -import require = require('collisionExportsRequireAndAlias_file1'); // Error -import exports = require('collisionExportsRequireAndAlias_file3333'); // Error +import require = require('./collisionExportsRequireAndAlias_file1'); // Error +import exports = require('./collisionExportsRequireAndAlias_file3333'); // Error export function foo() { require.bar(); } @@ -18,31 +18,27 @@ export function foo2() { } //// [collisionExportsRequireAndAlias_file1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.bar = bar; - function bar() { - } -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = bar; +function bar() { +} //// [collisionExportsRequireAndAlias_file3333.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.bar2 = bar2; - function bar2() { - } -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar2 = bar2; +function bar2() { +} //// [collisionExportsRequireAndAlias_file2.js] -define(["require", "exports", "collisionExportsRequireAndAlias_file1", "collisionExportsRequireAndAlias_file3333"], function (require, exports, require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.foo = foo; - exports.foo2 = foo2; - function foo() { - require.bar(); - } - function foo2() { - exports.bar2(); - } -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.foo2 = foo2; +var require = require("./collisionExportsRequireAndAlias_file1"); // Error +var exports = require("./collisionExportsRequireAndAlias_file3333"); // Error +function foo() { + require.bar(); +} +function foo2() { + exports.bar2(); +} diff --git a/tests/baselines/reference/collisionExportsRequireAndAlias.symbols b/tests/baselines/reference/collisionExportsRequireAndAlias.symbols index 8b85320e2c981..471d8d7742dd7 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAlias.symbols +++ b/tests/baselines/reference/collisionExportsRequireAndAlias.symbols @@ -1,14 +1,14 @@ //// [tests/cases/compiler/collisionExportsRequireAndAlias.ts] //// === collisionExportsRequireAndAlias_file2.ts === -import require = require('collisionExportsRequireAndAlias_file1'); // Error +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, 66)) +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, 69)) +>foo : Symbol(foo, Decl(collisionExportsRequireAndAlias_file2.ts, 1, 71)) require.bar(); >require.bar : Symbol(require.bar, Decl(collisionExportsRequireAndAlias_file1.ts, 0, 0)) @@ -20,7 +20,7 @@ export function foo2() { exports.bar2(); >exports.bar2 : Symbol(exports.bar2, Decl(collisionExportsRequireAndAlias_file3333.ts, 0, 0)) ->exports : Symbol(exports, Decl(collisionExportsRequireAndAlias_file2.ts, 0, 66)) +>exports : Symbol(exports, Decl(collisionExportsRequireAndAlias_file2.ts, 0, 68)) >bar2 : Symbol(exports.bar2, Decl(collisionExportsRequireAndAlias_file3333.ts, 0, 0)) } === collisionExportsRequireAndAlias_file1.ts === diff --git a/tests/baselines/reference/collisionExportsRequireAndAlias.types b/tests/baselines/reference/collisionExportsRequireAndAlias.types index fae7e43435e2d..39d242dc75f75 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAlias.types +++ b/tests/baselines/reference/collisionExportsRequireAndAlias.types @@ -1,11 +1,11 @@ //// [tests/cases/compiler/collisionExportsRequireAndAlias.ts] //// === collisionExportsRequireAndAlias_file2.ts === -import require = require('collisionExportsRequireAndAlias_file1'); // Error +import require = require('./collisionExportsRequireAndAlias_file1'); // Error >require : typeof require > : ^^^^^^^^^^^^^^ -import exports = require('collisionExportsRequireAndAlias_file3333'); // Error +import exports = require('./collisionExportsRequireAndAlias_file3333'); // Error >exports : typeof exports > : ^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientClass.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientClass.errors.txt deleted file mode 100644 index 009f437c249e2..0000000000000 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientClass.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== collisionExportsRequireAndAmbientClass_externalmodule.ts (0 errors) ==== - export declare class require { - } - export declare class exports { - } - declare namespace m1 { - class require { - } - class exports { - } - } - namespace m2 { - export declare class require { - } - export declare class exports { - } - } - -==== collisionExportsRequireAndAmbientClass_globalFile.ts (0 errors) ==== - declare class require { - } - declare class exports { - } - declare namespace m3 { - class require { - } - class exports { - } - } - namespace m4 { - export declare class require { - } - export declare class exports { - } - var a = 10; - } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientClass.js b/tests/baselines/reference/collisionExportsRequireAndAmbientClass.js index 2a83fcf37857e..0cb05d30de00f 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientClass.js +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientClass.js @@ -38,13 +38,11 @@ namespace m4 { } //// [collisionExportsRequireAndAmbientClass_externalmodule.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var m2; - (function (m2) { - })(m2 || (m2 = {})); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var m2; +(function (m2) { +})(m2 || (m2 = {})); //// [collisionExportsRequireAndAmbientClass_globalFile.js] var m4; (function (m4) { diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.errors.txt deleted file mode 100644 index fcd7288027b5d..0000000000000 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.errors.txt +++ /dev/null @@ -1,63 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== collisionExportsRequireAndAmbientEnum_externalmodule.ts (0 errors) ==== - export declare enum require { - _thisVal1, - _thisVal2, - } - export declare enum exports { - _thisVal1, - _thisVal2, - } - declare namespace m1 { - enum require { - _thisVal1, - _thisVal2, - } - enum exports { - _thisVal1, - _thisVal2, - } - } - namespace m2 { - export declare enum require { - _thisVal1, - _thisVal2, - } - export declare enum exports { - _thisVal1, - _thisVal2, - } - } - -==== collisionExportsRequireAndAmbientEnum_globalFile.ts (0 errors) ==== - declare enum require { - _thisVal1, - _thisVal2, - } - declare enum exports { - _thisVal1, - _thisVal2, - } - declare namespace m3 { - enum require { - _thisVal1, - _thisVal2, - } - enum exports { - _thisVal1, - _thisVal2, - } - } - namespace m4 { - export declare enum require { - _thisVal1, - _thisVal2, - } - export declare enum exports { - _thisVal1, - _thisVal2, - } - } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.js b/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.js index 8a28a23366296..b079a99993eae 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.js +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.js @@ -61,13 +61,11 @@ namespace m4 { } //// [collisionExportsRequireAndAmbientEnum_externalmodule.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var m2; - (function (m2) { - })(m2 || (m2 = {})); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var m2; +(function (m2) { +})(m2 || (m2 = {})); //// [collisionExportsRequireAndAmbientEnum_globalFile.js] var m4; (function (m4) { diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.errors.txt deleted file mode 100644 index 6438cb5d82075..0000000000000 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.errors.txt +++ /dev/null @@ -1,18 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== collisionExportsRequireAndAmbientFunction.ts (0 errors) ==== - export declare function exports(): number; - - export declare function require(): string[]; - - declare namespace m1 { - function exports(): string; - function require(): number; - } - namespace m2 { - export declare function exports(): string; - export declare function require(): string[]; - var a = 10; - } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.js b/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.js index b8e48cae79845..adacc64d19b9e 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.js +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.js @@ -16,11 +16,9 @@ namespace m2 { } //// [collisionExportsRequireAndAmbientFunction.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var m2; - (function (m2) { - var a = 10; - })(m2 || (m2 = {})); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var m2; +(function (m2) { + var a = 10; +})(m2 || (m2 = {})); diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientModule.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientModule.errors.txt deleted file mode 100644 index 2e9180a7a6e05..0000000000000 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientModule.errors.txt +++ /dev/null @@ -1,97 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== collisionExportsRequireAndAmbientModule_externalmodule.ts (0 errors) ==== - export declare namespace require { - export interface I { - } - export class C { - } - } - export function foo(): require.I { - return null; - } - export declare namespace exports { - export interface I { - } - export class C { - } - } - export function foo2(): exports.I { - return null; - } - declare namespace m1 { - namespace require { - export interface I { - } - export class C { - } - } - namespace exports { - export interface I { - } - export class C { - } - } - } - namespace m2 { - export declare namespace require { - export interface I { - } - export class C { - } - } - export declare namespace exports { - export interface I { - } - export class C { - } - } - var a = 10; - } - -==== collisionExportsRequireAndAmbientModule_globalFile.ts (0 errors) ==== - declare namespace require { - export interface I { - } - export class C { - } - } - declare namespace exports { - export interface I { - } - export class C { - } - } - declare namespace m3 { - namespace require { - export interface I { - } - export class C { - } - } - namespace exports { - export interface I { - } - export class C { - } - } - } - namespace m4 { - export declare namespace require { - export interface I { - } - export class C { - } - } - export declare namespace exports { - export interface I { - } - export class C { - } - } - - var a = 10; - } - \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientModule.js b/tests/baselines/reference/collisionExportsRequireAndAmbientModule.js index 3680fe8caf028..ef3e16eeca09a 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientModule.js +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientModule.js @@ -95,22 +95,20 @@ namespace m4 { //// [collisionExportsRequireAndAmbientModule_externalmodule.js] -define(["require", "exports"], function (require, exports) { - "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 = {})); -}); +"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) { diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientVar.errors.txt b/tests/baselines/reference/collisionExportsRequireAndAmbientVar.errors.txt deleted file mode 100644 index fd9bef2b9bd66..0000000000000 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientVar.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== collisionExportsRequireAndAmbientVar_externalmodule.ts (0 errors) ==== - export declare var exports: number; - export declare var require: string; - declare namespace m1 { - var exports: string; - var require: number; - } - namespace m2 { - export declare var exports: number; - export declare var require: string; - var a = 10; - } - -==== collisionExportsRequireAndAmbientVar_globalFile.ts (0 errors) ==== - declare var exports: number; - declare var require: string; - declare namespace m3 { - var exports: string; - var require: number; - } - namespace m4 { - export declare var exports: string; - export declare var require: number; - var a = 10; - } \ No newline at end of file diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientVar.js b/tests/baselines/reference/collisionExportsRequireAndAmbientVar.js index cd31c9d2a3547..273cee0d2e37e 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientVar.js +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientVar.js @@ -27,14 +27,12 @@ namespace m4 { } //// [collisionExportsRequireAndAmbientVar_externalmodule.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var m2; - (function (m2) { - var a = 10; - })(m2 || (m2 = {})); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var m2; +(function (m2) { + var a = 10; +})(m2 || (m2 = {})); //// [collisionExportsRequireAndAmbientVar_globalFile.js] var m4; (function (m4) { diff --git a/tests/baselines/reference/commentOnImportStatement1.errors.txt b/tests/baselines/reference/commentOnImportStatement1.errors.txt index e1b2376d39b48..4e5cb3b10c562 100644 --- a/tests/baselines/reference/commentOnImportStatement1.errors.txt +++ b/tests/baselines/reference/commentOnImportStatement1.errors.txt @@ -1,12 +1,10 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -commentOnImportStatement1.ts(3,22): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +commentOnImportStatement1.ts(3,22): error TS2307: Cannot find module './foo' or its corresponding type declarations. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== commentOnImportStatement1.ts (1 errors) ==== /* Copyright */ import foo = require('./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/tests/baselines/reference/commentOnImportStatement1.js b/tests/baselines/reference/commentOnImportStatement1.js index 3ff36c187a46c..93eb14b9a45b2 100644 --- a/tests/baselines/reference/commentOnImportStatement1.js +++ b/tests/baselines/reference/commentOnImportStatement1.js @@ -7,8 +7,6 @@ import foo = require('./foo'); //// [commentOnImportStatement1.js] +"use strict"; /* Copyright */ -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/commonSourceDir5.errors.txt b/tests/baselines/reference/commonSourceDir5.errors.txt index 080f8a47afcd0..33dc2ec159f5f 100644 --- a/tests/baselines/reference/commonSourceDir5.errors.txt +++ b/tests/baselines/reference/commonSourceDir5.errors.txt @@ -1,9 +1,7 @@ -error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== A:/bar.ts (0 errors) ==== import {z} from "./foo"; export var x = z + z; diff --git a/tests/baselines/reference/commonSourceDir5.js b/tests/baselines/reference/commonSourceDir5.js deleted file mode 100644 index 17e144e76e5d2..0000000000000 --- a/tests/baselines/reference/commonSourceDir5.js +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/compiler/commonSourceDir5.ts] //// - -//// [bar.ts] -import {z} from "./foo"; -export var x = z + z; - -//// [foo.ts] -import {pi} from "B:/baz"; -export var i = Math.sqrt(-1); -export var z = pi * pi; - -//// [baz.ts] -import {x} from "A:/bar"; -import {i} from "A:/foo"; -export var pi = Math.PI; -export var y = x * i; - -//// [concat.js] -define("B:/baz", ["require", "exports", "A:/bar", "A:/foo"], function (require, exports, bar_1, foo_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = exports.pi = void 0; - exports.pi = Math.PI; - exports.y = bar_1.x * foo_1.i; -}); -define("A:/foo", ["require", "exports", "B:/baz"], function (require, exports, baz_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = exports.i = void 0; - exports.i = Math.sqrt(-1); - exports.z = baz_1.pi * baz_1.pi; -}); -define("A:/bar", ["require", "exports", "A:/foo"], function (require, exports, foo_2) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = foo_2.z + foo_2.z; -}); diff --git a/tests/baselines/reference/constDeclarations-access5.errors.txt b/tests/baselines/reference/constDeclarations-access5.errors.txt index 08a413a637dda..b4cdcc1481ac3 100644 --- a/tests/baselines/reference/constDeclarations-access5.errors.txt +++ b/tests/baselines/reference/constDeclarations-access5.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. @@ -19,10 +18,9 @@ constDeclarations_access_2.ts(22,7): error TS2540: Cannot assign to 'x' because constDeclarations_access_2.ts(24,3): error TS2540: Cannot assign to 'x' because it is a read-only property. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== constDeclarations_access_2.ts (18 errors) ==== /// - import m = require('constDeclarations_access_1'); + import m = require('./constDeclarations_access_1'); // Errors m.x = 1; ~ diff --git a/tests/baselines/reference/constDeclarations-access5.js b/tests/baselines/reference/constDeclarations-access5.js index 9f56b8c37eb28..4e5ca86aadede 100644 --- a/tests/baselines/reference/constDeclarations-access5.js +++ b/tests/baselines/reference/constDeclarations-access5.js @@ -5,7 +5,7 @@ export const x = 0; //// [constDeclarations_access_2.ts] /// -import m = require('constDeclarations_access_1'); +import m = require('./constDeclarations_access_1'); // Errors m.x = 1; m.x += 2; @@ -47,44 +47,42 @@ m.x.toString(); //// [constDeclarations_access_1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 0; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 0; //// [constDeclarations_access_2.js] -define(["require", "exports", "constDeclarations_access_1"], function (require, exports, m) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - // 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(); -}); +"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/tests/baselines/reference/constDeclarations-access5.symbols b/tests/baselines/reference/constDeclarations-access5.symbols index 65623de9f6023..59d9f3ed8cb7a 100644 --- a/tests/baselines/reference/constDeclarations-access5.symbols +++ b/tests/baselines/reference/constDeclarations-access5.symbols @@ -2,7 +2,7 @@ === constDeclarations_access_2.ts === /// -import m = require('constDeclarations_access_1'); +import m = require('./constDeclarations_access_1'); >m : Symbol(m, Decl(constDeclarations_access_2.ts, 0, 0)) // Errors diff --git a/tests/baselines/reference/constDeclarations-access5.types b/tests/baselines/reference/constDeclarations-access5.types index 54ad90a7a7f49..bbc39860b8a02 100644 --- a/tests/baselines/reference/constDeclarations-access5.types +++ b/tests/baselines/reference/constDeclarations-access5.types @@ -2,7 +2,7 @@ === constDeclarations_access_2.ts === /// -import m = require('constDeclarations_access_1'); +import m = require('./constDeclarations_access_1'); >m : typeof m > : ^^^^^^^^ diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt index 642bdd0427dd6..4adb70251deaf 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(27,64): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -33,7 +32,6 @@ file.tsx(36,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assi Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (6 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js index fe35e91819fa6..aa9bfba6e21b7 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js @@ -40,25 +40,24 @@ const d1 = ; // goTo has type "home" | //// [file.jsx] -define(["require", "exports", "react"], function (require, exports, React) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MainButton = MainButton; - exports.NoOverload = NoOverload; - exports.NoOverload1 = NoOverload1; - function MainButton(props) { - var linkProps = props; - if (linkProps.goTo) { - return this._buildMainLink(props); - } - return this._buildMainButton(props); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MainButton = MainButton; +exports.NoOverload = NoOverload; +exports.NoOverload1 = NoOverload1; +var React = require("react"); +function MainButton(props) { + var linkProps = props; + if (linkProps.goTo) { + return this._buildMainLink(props); } - var b0 = ; // k has type "left" | "right" - var b2 = ; // k has type "left" | "right" - var b3 = ; // goTo has type"home" | "contact" - var b4 = ; // goTo has type "home" | "contact" - function NoOverload(buttonProps) { return undefined; } - var c1 = ; // k has type any - function NoOverload1(linkProps) { return undefined; } - var d1 = ; // goTo has type "home" | "contact" -}); + return this._buildMainButton(props); +} +var b0 = ; // k has type "left" | "right" +var b2 = ; // k has type "left" | "right" +var b3 = ; // goTo has type"home" | "contact" +var b4 = ; // goTo has type "home" | "contact" +function NoOverload(buttonProps) { return undefined; } +var c1 = ; // k has type any +function NoOverload1(linkProps) { return undefined; } +var d1 = ; // goTo has type "home" | "contact" diff --git a/tests/baselines/reference/copyrightWithNewLine1.errors.txt b/tests/baselines/reference/copyrightWithNewLine1.errors.txt index 57df136c0d4fd..c091aec88b66d 100644 --- a/tests/baselines/reference/copyrightWithNewLine1.errors.txt +++ b/tests/baselines/reference/copyrightWithNewLine1.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -copyrightWithNewLine1.ts(5,24): error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +copyrightWithNewLine1.ts(5,24): error TS2307: Cannot find module './greeter' or its corresponding type declarations. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== copyrightWithNewLine1.ts (1 errors) ==== /***************************** * (c) Copyright - Important @@ -10,7 +8,7 @@ copyrightWithNewLine1.ts(5,24): error TS2792: Cannot find module './greeter'. Di import model = require("./greeter") ~~~~~~~~~~~ -!!! error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS2307: Cannot find module './greeter' or its corresponding type declarations. var el = document.getElementById('content'); var greeter = new model.Greeter(el); /** things */ diff --git a/tests/baselines/reference/copyrightWithNewLine1.js b/tests/baselines/reference/copyrightWithNewLine1.js index 0681fec54f7cd..a3c8ab6817a86 100644 --- a/tests/baselines/reference/copyrightWithNewLine1.js +++ b/tests/baselines/reference/copyrightWithNewLine1.js @@ -12,14 +12,13 @@ var greeter = new model.Greeter(el); greeter.start(); //// [copyrightWithNewLine1.js] +"use strict"; /***************************** * (c) Copyright - Important ****************************/ -define(["require", "exports", "./greeter"], function (require, exports, model) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var el = document.getElementById('content'); - var greeter = new model.Greeter(el); - /** things */ - greeter.start(); -}); +Object.defineProperty(exports, "__esModule", { value: true }); +var model = require("./greeter"); +var el = document.getElementById('content'); +var greeter = new model.Greeter(el); +/** things */ +greeter.start(); diff --git a/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt b/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt index 5392f7a6d3d13..cc9d2adb142ed 100644 --- a/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt +++ b/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt @@ -1,15 +1,13 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -copyrightWithoutNewLine1.ts(4,24): error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +copyrightWithoutNewLine1.ts(4,24): error TS2307: Cannot find module './greeter' or its corresponding type declarations. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== copyrightWithoutNewLine1.ts (1 errors) ==== /***************************** * (c) Copyright - Important ****************************/ import model = require("./greeter") ~~~~~~~~~~~ -!!! error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS2307: Cannot find module './greeter' or its corresponding type declarations. var el = document.getElementById('content'); var greeter = new model.Greeter(el); /** things */ diff --git a/tests/baselines/reference/copyrightWithoutNewLine1.js b/tests/baselines/reference/copyrightWithoutNewLine1.js index c7c6e137a6e95..f4cc84e33551e 100644 --- a/tests/baselines/reference/copyrightWithoutNewLine1.js +++ b/tests/baselines/reference/copyrightWithoutNewLine1.js @@ -11,11 +11,13 @@ var greeter = new model.Greeter(el); greeter.start(); //// [copyrightWithoutNewLine1.js] -define(["require", "exports", "./greeter"], function (require, exports, model) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var el = document.getElementById('content'); - var greeter = new model.Greeter(el); - /** things */ - greeter.start(); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/***************************** +* (c) Copyright - Important +****************************/ +var model = require("./greeter"); +var el = document.getElementById('content'); +var greeter = new model.Greeter(el); +/** things */ +greeter.start(); diff --git a/tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt b/tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt index 0e123af520395..d8e595afe59d8 100644 --- a/tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt +++ b/tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt @@ -1,11 +1,9 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== crashIntypeCheckInvocationExpression.ts (4 errors) ==== var nake; function doCompile(fileset: P0, moduleType: P1) { diff --git a/tests/baselines/reference/crashIntypeCheckInvocationExpression.js b/tests/baselines/reference/crashIntypeCheckInvocationExpression.js index aa8f536c1ec13..45aead7e95f15 100644 --- a/tests/baselines/reference/crashIntypeCheckInvocationExpression.js +++ b/tests/baselines/reference/crashIntypeCheckInvocationExpression.js @@ -15,16 +15,11 @@ export var compileServer = task(() => { //// [crashIntypeCheckInvocationExpression.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.compileServer = void 0; - var nake; - function doCompile(fileset, moduleType) { - return undefined; - } - exports.compileServer = task(function () { - var folder = path.join(), fileset = nake.fileSetSync(folder); - return doCompile(fileset, moduleType); - }); +var nake; +function doCompile(fileset, moduleType) { + return undefined; +} +export var compileServer = task(function () { + var folder = path.join(), fileset = nake.fileSetSync(folder); + return doCompile(fileset, moduleType); }); diff --git a/tests/baselines/reference/duplicateLocalVariable2.errors.txt b/tests/baselines/reference/duplicateLocalVariable2.errors.txt index e3c5de61d131c..4760ee1c0a52b 100644 --- a/tests/baselines/reference/duplicateLocalVariable2.errors.txt +++ b/tests/baselines/reference/duplicateLocalVariable2.errors.txt @@ -1,10 +1,8 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== duplicateLocalVariable2.ts (3 errors) ==== export class TestCase { constructor (public name: string, public test: ()=>boolean, public errorMessageRegEx?: string) { diff --git a/tests/baselines/reference/duplicateLocalVariable2.js b/tests/baselines/reference/duplicateLocalVariable2.js index 814fa3c4d2906..0e692ae75e41b 100644 --- a/tests/baselines/reference/duplicateLocalVariable2.js +++ b/tests/baselines/reference/duplicateLocalVariable2.js @@ -38,47 +38,42 @@ export var tests: TestRunner = (function () { })(); //// [duplicateLocalVariable2.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.tests = exports.TestRunner = exports.TestCase = void 0; - var TestCase = /** @class */ (function () { - function TestCase(name, test, errorMessageRegEx) { - this.name = name; - this.test = test; - this.errorMessageRegEx = errorMessageRegEx; +var TestCase = /** @class */ (function () { + function TestCase(name, test, errorMessageRegEx) { + this.name = name; + this.test = test; + this.errorMessageRegEx = errorMessageRegEx; + } + return TestCase; +}()); +export { TestCase }; +var TestRunner = /** @class */ (function () { + function TestRunner() { + } + TestRunner.arrayCompare = function (arg1, arg2) { + return false; + }; + TestRunner.prototype.addTest = function (test) { + }; + return TestRunner; +}()); +export { TestRunner }; +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]); } - return TestCase; - }()); - exports.TestCase = TestCase; - var TestRunner = /** @class */ (function () { - function TestRunner() { + fb.index = 0; + var bytes = []; + for (var i = 0; i < 14; i++) { + bytes.push(fb.readByte()); } - TestRunner.arrayCompare = function (arg1, arg2) { - return false; - }; - TestRunner.prototype.addTest = function (test) { - }; - return TestRunner; - }()); - exports.TestRunner = TestRunner; - exports.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; - })(); -}); + var expected = [0xEF]; + return TestRunner.arrayCompare(bytes, expected); + })); + return testRunner; +})(); diff --git a/tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt b/tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt index f5e82e17b5d13..188c7da0fc336 100644 --- a/tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt +++ b/tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. duplicateSymbolsExportMatching.ts(24,15): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local. duplicateSymbolsExportMatching.ts(25,22): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local. duplicateSymbolsExportMatching.ts(26,22): error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local. @@ -19,7 +18,6 @@ duplicateSymbolsExportMatching.ts(64,11): error TS2395: Individual declarations duplicateSymbolsExportMatching.ts(65,18): error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== duplicateSymbolsExportMatching.ts (18 errors) ==== namespace M { export interface E { } diff --git a/tests/baselines/reference/duplicateSymbolsExportMatching.js b/tests/baselines/reference/duplicateSymbolsExportMatching.js index 745f78bff88a2..0c62dbed38385 100644 --- a/tests/baselines/reference/duplicateSymbolsExportMatching.js +++ b/tests/baselines/reference/duplicateSymbolsExportMatching.js @@ -68,42 +68,40 @@ interface D { } export interface D { } //// [duplicateSymbolsExportMatching.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - // Should report error only once for instantiated module - var M; - (function (M) { - var 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) { - var 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) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - (function (C) { - var t; - })(C = M.C || (M.C = {})); - })(M || (M = {})); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// Should report error only once for instantiated module +var M; +(function (M) { + var 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) { + var 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) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + (function (C) { + var t; + })(C = M.C || (M.C = {})); +})(M || (M = {})); diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt b/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt index 369620d7c3a9c..869e875cf83cd 100644 --- a/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt +++ b/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. @@ -10,10 +9,9 @@ es5ModuleInternalNamedImports.ts(29,5): error TS1194: Export declarations are no 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 TS2792: Cannot find module 'M3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +es5ModuleInternalNamedImports.ts(34,16): error TS2307: Cannot find module 'M3' or its corresponding type declarations. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== es5ModuleInternalNamedImports.ts (12 errors) ==== export namespace M { // variable @@ -72,5 +70,5 @@ es5ModuleInternalNamedImports.ts(34,16): error TS2792: Cannot find module 'M3'. } import M3 from "M3"; ~~~~ -!!! error TS2792: Cannot find module 'M3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS2307: Cannot find module 'M3' or its corresponding type declarations. \ No newline at end of file diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.js b/tests/baselines/reference/es5ModuleInternalNamedImports.js index 28c43195e5860..ac3e2197eceb5 100644 --- a/tests/baselines/reference/es5ModuleInternalNamedImports.js +++ b/tests/baselines/reference/es5ModuleInternalNamedImports.js @@ -38,34 +38,32 @@ import M3 from "M3"; //// [es5ModuleInternalNamedImports.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.M = void 0; - var M; - (function (M) { - // variable - M.M_V = 0; - //calss - var M_C = /** @class */ (function () { - function M_C() { - } - return M_C; - }()); - M.M_C = M_C; - // instantiated module - var 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 - var M_E; - (function (M_E) { - })(M_E = M.M_E || (M.M_E = {})); - // alias - M.M_A = M_M; - })(M || (exports.M = M = {})); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.M = void 0; +var M; +(function (M) { + // variable + M.M_V = 0; + //calss + var M_C = /** @class */ (function () { + function M_C() { + } + return M_C; + }()); + M.M_C = M_C; + // instantiated module + var 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 + var M_E; + (function (M_E) { + })(M_E = M.M_E || (M.M_E = {})); + // alias + M.M_A = M_M; +})(M || (exports.M = M = {})); diff --git a/tests/baselines/reference/es6ExportAssignment2.errors.txt b/tests/baselines/reference/es6ExportAssignment2.errors.txt index e592d4375e859..4a7c3f7332955 100644 --- a/tests/baselines/reference/es6ExportAssignment2.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ExportAssignment2.js b/tests/baselines/reference/es6ExportAssignment2.js index 3278af118c0c9..85867d23e25fa 100644 --- a/tests/baselines/reference/es6ExportAssignment2.js +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ExportAssignment2.symbols b/tests/baselines/reference/es6ExportAssignment2.symbols index 6fa64f1a1e93e..ea19d84a18277 100644 --- a/tests/baselines/reference/es6ExportAssignment2.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ExportAssignment2.types b/tests/baselines/reference/es6ExportAssignment2.types index 782c1b4d6a168..a7e3d69ea097a 100644 --- a/tests/baselines/reference/es6ExportAssignment2.types +++ b/tests/baselines/reference/es6ExportAssignment2.types @@ -12,7 +12,7 @@ export = a; // Error: export = not allowed in ES6 > : ^^^^^^ === b.ts === -import * as a from "a"; ->a : any -> : ^^^ +import * as a from "./a"; +>a : number +> : ^^^^^^ diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.errors.txt b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.errors.txt deleted file mode 100644 index 2a922063829fa..0000000000000 --- a/tests/baselines/reference/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 namespace m { - export var x = 10; - } - export var x = 10; - export namespace 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/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js index 2daf4a31a2cf4..b4e583a415ae2 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js @@ -13,11 +13,11 @@ export namespace 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 { @@ -28,11 +28,10 @@ export 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] @@ -47,8 +46,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/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.symbols b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.symbols index 8a2a2cc1f585c..5bb86fc8bb3fc 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.symbols +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.symbols @@ -21,19 +21,21 @@ export namespace 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/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types index 757835e6a5d7d..a710edd26559f 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types @@ -27,29 +27,29 @@ export namespace 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/tests/baselines/reference/es6ImportDefaultBinding.errors.txt b/tests/baselines/reference/es6ImportDefaultBinding.errors.txt deleted file mode 100644 index 6512953174392..0000000000000 --- a/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBinding.js b/tests/baselines/reference/es6ImportDefaultBinding.js index bdc9b4b846317..4dc135ea4813b 100644 --- a/tests/baselines/reference/es6ImportDefaultBinding.js +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBinding.symbols b/tests/baselines/reference/es6ImportDefaultBinding.symbols index a5b73019ad37d..1b8360a6dda7a 100644 --- a/tests/baselines/reference/es6ImportDefaultBinding.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBinding.types b/tests/baselines/reference/es6ImportDefaultBinding.types index 01d45fb51be4b..d93a534da3580 100644 --- a/tests/baselines/reference/es6ImportDefaultBinding.types +++ b/tests/baselines/reference/es6ImportDefaultBinding.types @@ -12,17 +12,17 @@ export default a; > : ^^^^^^ === 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt index f2a172092a0b7..a581c4deaca0e 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.js index 31194c308ba6b..985f695b6c058 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.js +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.symbols index efe22435de905..db2926e1025e1 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.types index 2825d5a589738..593b3904a3943 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1.types @@ -12,31 +12,31 @@ export default a; > : ^^^^^^ === 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 @@ -45,12 +45,12 @@ import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithName 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 @@ -61,12 +61,12 @@ import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithN 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 @@ -75,18 +75,18 @@ import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNa 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt index e83c7caf32971..08261f24e767f 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -13,7 +12,6 @@ client.ts(11,1): error TS1191: An import declaration cannot have modifiers. client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== server.ts (0 errors) ==== export var a = 10; export var x = a; @@ -21,22 +19,22 @@ client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'. export default {}; ==== client.ts (12 errors) ==== - export import defaultBinding1, { } from "server"; + export import defaultBinding1, { } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. - export import defaultBinding2, { a } from "server"; + 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"; + 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"; + export import defaultBinding4, { x, a as y } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x1: number = x; @@ -45,13 +43,13 @@ client.ts(12,12): 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"; + 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"; + export import defaultBinding6, { m, } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x1: number = m; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js index e2bd0c2d125ac..dd9775e4ddef3 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js @@ -7,42 +7,43 @@ export var m = a; export default {}; //// [client.ts] -export import defaultBinding1, { } from "server"; -export import defaultBinding2, { a } from "server"; +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 import defaultBinding3, { a as b } from "./server"; export var x1: number = b; -export import defaultBinding4, { x, a as y } from "server"; +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 import defaultBinding5, { x as z, } from "./server"; export var x1: number = z; -export import defaultBinding6, { m, } from "server"; +export import defaultBinding6, { m, } from "./server"; export var x1: number = m; //// [server.js] -define(["require", "exports"], function (require, exports) { - "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 = {}; -}); +"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] -define(["require", "exports", "server", "server", "server", "server", "server"], function (require, exports, server_1, server_2, server_3, server_4, server_5) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x1 = void 0; - exports.x1 = server_1.a; - exports.x1 = server_2.a; - exports.x1 = server_3.x; - exports.x1 = server_3.a; - exports.x1 = server_4.x; - exports.x1 = server_5.m; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x1 = void 0; +var server_1 = require("./server"); +exports.x1 = server_1.a; +var server_2 = require("./server"); +exports.x1 = server_2.a; +var server_3 = require("./server"); +exports.x1 = server_3.x; +exports.x1 = server_3.a; +var server_4 = require("./server"); +exports.x1 = server_4.x; +var server_5 = require("./server"); +exports.x1 = server_5.m; //// [server.d.ts] diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols index 3fc028cb7a670..35bbfb8c42413 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols @@ -15,10 +15,10 @@ export var m = a; export default {}; === client.ts === -export import defaultBinding1, { } from "server"; +export import defaultBinding1, { } from "./server"; >defaultBinding1 : Symbol(defaultBinding1, Decl(client.ts, 0, 13)) -export import defaultBinding2, { a } from "server"; +export import defaultBinding2, { a } from "./server"; >defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 1, 13)) >a : Symbol(a, Decl(client.ts, 1, 32)) @@ -26,7 +26,7 @@ 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"; +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)) @@ -35,7 +35,7 @@ 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"; +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)) @@ -49,7 +49,7 @@ 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"; +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)) @@ -58,7 +58,7 @@ 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"; +export import defaultBinding6, { m, } from "./server"; >defaultBinding6 : Symbol(defaultBinding6, Decl(client.ts, 10, 13)) >m : Symbol(m, Decl(client.ts, 10, 32)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types index 69f14f12e1599..cfac0a86f6d93 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types @@ -24,11 +24,11 @@ export default {}; > : ^^ === client.ts === -export import defaultBinding1, { } from "server"; +export import defaultBinding1, { } from "./server"; >defaultBinding1 : {} > : ^^ -export import defaultBinding2, { a } from "server"; +export import defaultBinding2, { a } from "./server"; >defaultBinding2 : {} > : ^^ >a : number @@ -40,7 +40,7 @@ export var x1: number = a; >a : number > : ^^^^^^ -export import defaultBinding3, { a as b } from "server"; +export import defaultBinding3, { a as b } from "./server"; >defaultBinding3 : {} > : ^^ >a : number @@ -54,7 +54,7 @@ export var x1: number = b; >b : number > : ^^^^^^ -export import defaultBinding4, { x, a as y } from "server"; +export import defaultBinding4, { x, a as y } from "./server"; >defaultBinding4 : {} > : ^^ >x : number @@ -76,7 +76,7 @@ export var x1: number = y; >y : number > : ^^^^^^ -export import defaultBinding5, { x as z, } from "server"; +export import defaultBinding5, { x as z, } from "./server"; >defaultBinding5 : {} > : ^^ >x : number @@ -90,7 +90,7 @@ export var x1: number = z; >z : number > : ^^^^^^ -export import defaultBinding6, { m, } from "server"; +export import defaultBinding6, { m, } from "./server"; >defaultBinding6 : {} > : ^^ >m : number diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt index 61a05e784f2e8..446b5e271d756 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.js index 2c86e06263511..e38fa303c6bfe 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.js +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols index 52ba79bf97ab2..f2686bc37c962 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.types index 7a3e50dc097a7..ee79a876e577a 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.types @@ -8,19 +8,19 @@ export var a = 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.errors.txt deleted file mode 100644 index 76a13afad5d47..0000000000000 --- a/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.js index 039b4a3dce8a5..bd12489fc9d52 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.js +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.symbols index b8cac73d9a6f4..700ee31c46dea 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types index 2175e53c77bfc..e41841cb0900f 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types @@ -12,15 +12,15 @@ export default a; > : ^^^^^^ === 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/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt index 39c67cbf27b1a..2c71ce2555eb4 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt @@ -8,7 +8,7 @@ client.ts(1,1): error TS1191: An import declaration cannot have modifiers. export default a; ==== client.ts (1 errors) ==== - export import defaultBinding, * as nameSpaceBinding from "server"; + export import defaultBinding, * as nameSpaceBinding from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x: number = defaultBinding; \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.js index 1d9719ca0c68a..816d4b5fb898d 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.js @@ -5,7 +5,7 @@ var a = 10; export default a; //// [client.ts] -export import defaultBinding, * as nameSpaceBinding from "server"; +export import defaultBinding, * as nameSpaceBinding from "./server"; export var x: number = defaultBinding; //// [server.js] @@ -19,7 +19,7 @@ define(["require", "exports"], function (require, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; -define(["require", "exports", "server"], function (require, exports, server_1) { +define(["require", "exports", "./server"], function (require, exports, server_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.symbols index b8ed20c120288..42acdc7dd56b0 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.symbols +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.symbols @@ -8,7 +8,7 @@ export default a; >a : Symbol(a, Decl(server.ts, 0, 3)) === client.ts === -export import defaultBinding, * as nameSpaceBinding from "server"; +export import defaultBinding, * as nameSpaceBinding from "./server"; >defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 13)) >nameSpaceBinding : Symbol(nameSpaceBinding, Decl(client.ts, 0, 29)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.types index 5cc82390e35da..580e9301d1434 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.types @@ -12,7 +12,7 @@ export default a; > : ^^^^^^ === client.ts === -export import defaultBinding, * as nameSpaceBinding from "server"; +export import defaultBinding, * as nameSpaceBinding from "./server"; >defaultBinding : number > : ^^^^^^ >nameSpaceBinding : typeof nameSpaceBinding diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt index 5cc5f7f706b43..273d72455a1ac 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt @@ -7,5 +7,5 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in Typ export default a; ==== client.ts (0 errors) ==== - import defaultBinding, * as nameSpaceBinding from "server"; + import defaultBinding, * as nameSpaceBinding from "./server"; export var x = new defaultBinding(); \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js index 5ec36f00796b0..e87c1cd5c387d 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js @@ -5,7 +5,7 @@ class a { } export default a; //// [client.ts] -import defaultBinding, * as nameSpaceBinding from "server"; +import defaultBinding, * as nameSpaceBinding from "./server"; export var x = new defaultBinding(); //// [server.js] @@ -23,7 +23,7 @@ define(["require", "exports"], function (require, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; -define(["require", "exports", "server"], function (require, exports, server_1) { +define(["require", "exports", "./server"], function (require, exports, server_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; @@ -37,5 +37,5 @@ declare class a { } export default a; //// [client.d.ts] -import defaultBinding from "server"; +import defaultBinding from "./server"; export declare var x: defaultBinding; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.symbols index d4830a8bb4814..6227c06b0ee62 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.symbols +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.symbols @@ -8,7 +8,7 @@ export default a; >a : Symbol(a, Decl(server.ts, 0, 0)) === client.ts === -import defaultBinding, * as nameSpaceBinding from "server"; +import defaultBinding, * as nameSpaceBinding from "./server"; >defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6)) >nameSpaceBinding : Symbol(nameSpaceBinding, Decl(client.ts, 0, 22)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types index 14af14a2ff542..0a5070ab4ec70 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types @@ -10,7 +10,7 @@ export default a; > : ^ === client.ts === -import defaultBinding, * as nameSpaceBinding from "server"; +import defaultBinding, * as nameSpaceBinding from "./server"; >defaultBinding : typeof defaultBinding > : ^^^^^^^^^^^^^^^^^^^^^ >nameSpaceBinding : typeof nameSpaceBinding diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt index 73aae3037addf..de33de8cdad2c 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt @@ -1,18 +1,16 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. client.ts(1,1): error TS1191: An import declaration cannot have modifiers. client.ts(3,1): error TS1191: An import declaration cannot have modifiers. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== server.ts (0 errors) ==== var a = 10; export default a; ==== client.ts (2 errors) ==== - export import defaultBinding from "server"; + export import defaultBinding from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x = defaultBinding; - export import defaultBinding2 from "server"; // non referenced + export import defaultBinding2 from "./server"; // non referenced ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.js b/tests/baselines/reference/es6ImportDefaultBindingWithExport.js index 6fddaa00b113c..749e4ef07b717 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingWithExport.js +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport.js @@ -5,28 +5,24 @@ var a = 10; export default a; //// [client.ts] -export import defaultBinding from "server"; +export import defaultBinding from "./server"; export var x = defaultBinding; -export import defaultBinding2 from "server"; // non referenced +export import defaultBinding2 from "./server"; // non referenced //// [server.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var a = 10; - exports.default = a; -}); +"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 }; }; -define(["require", "exports", "server"], function (require, exports, server_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - server_1 = __importDefault(server_1); - exports.x = server_1.default; -}); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +var server_1 = __importDefault(require("./server")); +exports.x = server_1.default; //// [server.d.ts] diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.symbols b/tests/baselines/reference/es6ImportDefaultBindingWithExport.symbols index 1801c44853d97..6090e8d56e169 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingWithExport.symbols +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport.symbols @@ -8,13 +8,13 @@ export default a; >a : Symbol(a, Decl(server.ts, 0, 3)) === client.ts === -export import defaultBinding from "server"; +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 +export import defaultBinding2 from "./server"; // non referenced >defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 13)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.types b/tests/baselines/reference/es6ImportDefaultBindingWithExport.types index 10f078e6b451b..5d4a3cab7045c 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingWithExport.types +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport.types @@ -12,7 +12,7 @@ export default a; > : ^^^^^^ === client.ts === -export import defaultBinding from "server"; +export import defaultBinding from "./server"; >defaultBinding : number > : ^^^^^^ @@ -22,7 +22,7 @@ export var x = defaultBinding; >defaultBinding : number > : ^^^^^^ -export import defaultBinding2 from "server"; // non referenced +export import defaultBinding2 from "./server"; // non referenced >defaultBinding2 : number > : ^^^^^^ diff --git a/tests/baselines/reference/es6ImportEqualsDeclaration.errors.txt b/tests/baselines/reference/es6ImportEqualsDeclaration.errors.txt index 13769af4d3819..fec1b354af493 100644 --- a/tests/baselines/reference/es6ImportEqualsDeclaration.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportEqualsDeclaration.js b/tests/baselines/reference/es6ImportEqualsDeclaration.js index f1d1f9d352b41..b994bd728a7db 100644 --- a/tests/baselines/reference/es6ImportEqualsDeclaration.js +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportEqualsDeclaration.symbols b/tests/baselines/reference/es6ImportEqualsDeclaration.symbols index 2cf648276726f..fc301a740c4cc 100644 --- a/tests/baselines/reference/es6ImportEqualsDeclaration.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportEqualsDeclaration.types b/tests/baselines/reference/es6ImportEqualsDeclaration.types index 6f15bcdaeaa8f..cee3906a8961b 100644 --- a/tests/baselines/reference/es6ImportEqualsDeclaration.types +++ b/tests/baselines/reference/es6ImportEqualsDeclaration.types @@ -1,7 +1,18 @@ //// [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/tests/baselines/reference/es6ImportNamedImportParsingError.errors.txt b/tests/baselines/reference/es6ImportNamedImportParsingError.errors.txt index 34ba5ce6972b6..330a18d8df4d7 100644 --- a/tests/baselines/reference/es6ImportNamedImportParsingError.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportNamedImportParsingError.js b/tests/baselines/reference/es6ImportNamedImportParsingError.js index 76f14f91ff2b3..733e5c2d1446d 100644 --- a/tests/baselines/reference/es6ImportNamedImportParsingError.js +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportNamedImportParsingError.symbols b/tests/baselines/reference/es6ImportNamedImportParsingError.symbols index 107241ff45244..e721430df5cef 100644 --- a/tests/baselines/reference/es6ImportNamedImportParsingError.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/es6ImportNamedImportParsingError.types b/tests/baselines/reference/es6ImportNamedImportParsingError.types index dcd8838559d76..95d9d0b14d3e8 100644 --- a/tests/baselines/reference/es6ImportNamedImportParsingError.types +++ b/tests/baselines/reference/es6ImportNamedImportParsingError.types @@ -20,7 +20,7 @@ export var m = a; > : ^^^^^^ === es6ImportNamedImportParsingError_1.ts === -import { * } from "es6ImportNamedImportParsingError_0"; +import { * } from "./es6ImportNamedImportParsingError_0"; >* : number > : ^^^^^^ > : any @@ -29,22 +29,22 @@ import { * } from "es6ImportNamedImportParsingError_0"; > : ^^^ >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 @@ -53,6 +53,6 @@ import { a }, from "es6ImportNamedImportParsingError_0"; > : ^^^ >from : any > : ^^^ ->"es6ImportNamedImportParsingError_0" : "es6ImportNamedImportParsingError_0" -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./es6ImportNamedImportParsingError_0" : "./es6ImportNamedImportParsingError_0" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/exportAssignmentAndDeclaration.errors.txt b/tests/baselines/reference/exportAssignmentAndDeclaration.errors.txt index 58d8bba335bf7..c4c85ea569b06 100644 --- a/tests/baselines/reference/exportAssignmentAndDeclaration.errors.txt +++ b/tests/baselines/reference/exportAssignmentAndDeclaration.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. foo_0.ts(10,1): error TS2309: An export assignment cannot be used in a module with other exported elements. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== foo_0.ts (1 errors) ==== export enum E1 { A,B,C diff --git a/tests/baselines/reference/exportAssignmentAndDeclaration.js b/tests/baselines/reference/exportAssignmentAndDeclaration.js index 76261c23bec97..b24a09d8629b2 100644 --- a/tests/baselines/reference/exportAssignmentAndDeclaration.js +++ b/tests/baselines/reference/exportAssignmentAndDeclaration.js @@ -13,19 +13,17 @@ class C1 { export = C1; //// [foo_0.js] -define(["require", "exports"], function (require, exports) { - "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 = {})); - var C1 = /** @class */ (function () { - function C1() { - } - return C1; - }()); +"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 = {})); +var C1 = /** @class */ (function () { + function C1() { + } return C1; -}); +}()); +module.exports = C1; diff --git a/tests/baselines/reference/exportDeclareClass1.errors.txt b/tests/baselines/reference/exportDeclareClass1.errors.txt index 979518dae9778..d175c12c003d0 100644 --- a/tests/baselines/reference/exportDeclareClass1.errors.txt +++ b/tests/baselines/reference/exportDeclareClass1.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportDeclareClass1.ts (2 errors) ==== export declare class eaC { static tF() { }; diff --git a/tests/baselines/reference/exportDeclareClass1.js b/tests/baselines/reference/exportDeclareClass1.js index 9113e3fa85c1e..c0aadda3896da 100644 --- a/tests/baselines/reference/exportDeclareClass1.js +++ b/tests/baselines/reference/exportDeclareClass1.js @@ -12,9 +12,7 @@ }; //// [exportDeclareClass1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - ; - ; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +; +; diff --git a/tests/baselines/reference/exportDefaultAsyncFunction2.errors.txt b/tests/baselines/reference/exportDefaultAsyncFunction2.errors.txt index 0a8853c29ea2a..90e5a3e61775f 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/exportDefaultAsyncFunction2.js b/tests/baselines/reference/exportDefaultAsyncFunction2.js index a94ad0f12d4a1..db979c7f77f0e 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.js +++ b/tests/baselines/reference/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,7 +31,7 @@ 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] var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -45,12 +45,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; export default () => __awaiter(void 0, void 0, void 0, function* () { 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/tests/baselines/reference/exportDefaultAsyncFunction2.symbols b/tests/baselines/reference/exportDefaultAsyncFunction2.symbols index 04733e02f0de0..449e44d6e43f5 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/exportDefaultAsyncFunction2.types b/tests/baselines/reference/exportDefaultAsyncFunction2.types index 8abb5526e1775..1ef7626cc94c4 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.types +++ b/tests/baselines/reference/exportDefaultAsyncFunction2.types @@ -14,23 +14,23 @@ export function await(...args: any[]): 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>; } @@ -50,39 +50,39 @@ export default async () => { return 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/tests/baselines/reference/exportEqualErrorType.errors.txt b/tests/baselines/reference/exportEqualErrorType.errors.txt index cb859d38c3d4a..37b58684c5726 100644 --- a/tests/baselines/reference/exportEqualErrorType.errors.txt +++ b/tests/baselines/reference/exportEqualErrorType.errors.txt @@ -1,11 +1,9 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportEqualErrorType_1.ts(3,23): error TS2339: Property 'static' does not exist on type '{ (): connectExport; foo: Date; }'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportEqualErrorType_1.ts (1 errors) ==== /// - import connect = require('exportEqualErrorType_0'); + 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; }'. diff --git a/tests/baselines/reference/exportEqualErrorType.js b/tests/baselines/reference/exportEqualErrorType.js index a2b2bed5b4e7d..d1221baaa86d3 100644 --- a/tests/baselines/reference/exportEqualErrorType.js +++ b/tests/baselines/reference/exportEqualErrorType.js @@ -17,19 +17,17 @@ export = server; //// [exportEqualErrorType_1.ts] /// -import connect = require('exportEqualErrorType_0'); +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] -define(["require", "exports"], function (require, exports) { - "use strict"; - var server; - return server; -}); +"use strict"; +var server; +module.exports = server; //// [exportEqualErrorType_1.js] -define(["require", "exports", "exportEqualErrorType_0"], function (require, exports, connect) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/// +var connect = require("./exportEqualErrorType_0"); +connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. diff --git a/tests/baselines/reference/exportEqualErrorType.symbols b/tests/baselines/reference/exportEqualErrorType.symbols index 772dcee14d993..d56b1472fdb58 100644 --- a/tests/baselines/reference/exportEqualErrorType.symbols +++ b/tests/baselines/reference/exportEqualErrorType.symbols @@ -2,7 +2,7 @@ === exportEqualErrorType_1.ts === /// -import connect = require('exportEqualErrorType_0'); +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 ''. diff --git a/tests/baselines/reference/exportEqualErrorType.types b/tests/baselines/reference/exportEqualErrorType.types index 721fe4fa0be5d..673882b391485 100644 --- a/tests/baselines/reference/exportEqualErrorType.types +++ b/tests/baselines/reference/exportEqualErrorType.types @@ -2,7 +2,7 @@ === exportEqualErrorType_1.ts === /// -import connect = require('exportEqualErrorType_0'); +import connect = require('./exportEqualErrorType_0'); >connect : { (): connect.connectExport; foo: Date; } > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ diff --git a/tests/baselines/reference/exportSameNameFuncVar.errors.txt b/tests/baselines/reference/exportSameNameFuncVar.errors.txt index 81e96c2551652..d81f9c5566b4e 100644 --- a/tests/baselines/reference/exportSameNameFuncVar.errors.txt +++ b/tests/baselines/reference/exportSameNameFuncVar.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. exportSameNameFuncVar.ts(1,12): error TS2300: Duplicate identifier 'a'. exportSameNameFuncVar.ts(2,17): error TS2300: Duplicate identifier 'a'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportSameNameFuncVar.ts (2 errors) ==== export var a = 10; ~ diff --git a/tests/baselines/reference/exportSameNameFuncVar.js b/tests/baselines/reference/exportSameNameFuncVar.js index f1a455adfcba3..88272ae169bb1 100644 --- a/tests/baselines/reference/exportSameNameFuncVar.js +++ b/tests/baselines/reference/exportSameNameFuncVar.js @@ -6,12 +6,10 @@ export function a() { } //// [exportSameNameFuncVar.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = a; - exports.a = 10; - function a() { - } -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = a; +exports.a = 10; +function a() { +} diff --git a/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt b/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt index a992bbd8a240e..d6069e99b6875 100644 --- a/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt +++ b/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. @@ -9,7 +8,6 @@ exportedBlockScopedDeclarations.ts(13,14): error TS2448: Block-scoped variable ' exportedBlockScopedDeclarations.ts(16,21): error TS2448: Block-scoped variable 'bar1' used before its declaration. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== exportedBlockScopedDeclarations.ts (8 errors) ==== const foo = foo; // compile error ~~~ diff --git a/tests/baselines/reference/exportedBlockScopedDeclarations.js b/tests/baselines/reference/exportedBlockScopedDeclarations.js index bbda099d1b17b..aa903323e9fec 100644 --- a/tests/baselines/reference/exportedBlockScopedDeclarations.js +++ b/tests/baselines/reference/exportedBlockScopedDeclarations.js @@ -20,26 +20,21 @@ namespace NS1 { } //// [exportedBlockScopedDeclarations.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.bar1 = exports.bar = void 0; - var foo = foo; // compile error - exports.bar = exports.bar; // should be compile error - function f() { - var bar = bar; // compile error - } - var NS; - (function (NS) { - NS.bar = NS.bar; // should be compile error - })(NS || (NS = {})); - var foo1 = foo1; // compile error - exports.bar1 = exports.bar1; // should be compile error - function f1() { - var bar1 = bar1; // compile error - } - var NS1; - (function (NS1) { - NS1.bar1 = NS1.bar1; // should be compile error - })(NS1 || (NS1 = {})); -}); +var foo = foo; // compile error +export var bar = bar; // should be compile error +function f() { + var bar = bar; // compile error +} +var NS; +(function (NS) { + NS.bar = NS.bar; // should be compile error +})(NS || (NS = {})); +var foo1 = foo1; // compile error +export var bar1 = bar1; // should be compile error +function f1() { + var bar1 = bar1; // compile error +} +var NS1; +(function (NS1) { + NS1.bar1 = NS1.bar1; // should be compile error +})(NS1 || (NS1 = {})); diff --git a/tests/baselines/reference/fieldAndGetterWithSameName.errors.txt b/tests/baselines/reference/fieldAndGetterWithSameName.errors.txt index 1eebfe70672fd..048144f971ecd 100644 --- a/tests/baselines/reference/fieldAndGetterWithSameName.errors.txt +++ b/tests/baselines/reference/fieldAndGetterWithSameName.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. fieldAndGetterWithSameName.ts(2,5): error TS2300: Duplicate identifier 'x'. fieldAndGetterWithSameName.ts(3,7): error TS2300: Duplicate identifier 'x'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== fieldAndGetterWithSameName.ts (2 errors) ==== export class C { x: number; diff --git a/tests/baselines/reference/fieldAndGetterWithSameName.js b/tests/baselines/reference/fieldAndGetterWithSameName.js index dcfb29d32771f..cd4b33c46c682 100644 --- a/tests/baselines/reference/fieldAndGetterWithSameName.js +++ b/tests/baselines/reference/fieldAndGetterWithSameName.js @@ -7,19 +7,17 @@ export class C { } //// [fieldAndGetterWithSameName.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; - var C = /** @class */ (function () { - function C() { - } - Object.defineProperty(C.prototype, "x", { - get: function () { return 1; }, - enumerable: false, - configurable: true - }); - return C; - }()); - exports.C = C; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.C = void 0; +var C = /** @class */ (function () { + function C() { + } + Object.defineProperty(C.prototype, "x", { + get: function () { return 1; }, + enumerable: false, + configurable: true + }); + return C; +}()); +exports.C = C; diff --git a/tests/baselines/reference/genericMemberFunction.errors.txt b/tests/baselines/reference/genericMemberFunction.errors.txt index 072a793bc5ed5..16af2975230f1 100644 --- a/tests/baselines/reference/genericMemberFunction.errors.txt +++ b/tests/baselines/reference/genericMemberFunction.errors.txt @@ -1,10 +1,8 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== genericMemberFunction.ts (3 errors) ==== export class BuildError{ public parent(): FileWithErrors { diff --git a/tests/baselines/reference/genericMemberFunction.js b/tests/baselines/reference/genericMemberFunction.js index 49a347a33fc91..4296ad09edb2b 100644 --- a/tests/baselines/reference/genericMemberFunction.js +++ b/tests/baselines/reference/genericMemberFunction.js @@ -25,42 +25,37 @@ export class BuildResult{ //// [genericMemberFunction.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.BuildResult = exports.FileWithErrors = exports.BuildError = void 0; - var BuildError = /** @class */ (function () { - function BuildError() { - } - BuildError.prototype.parent = function () { - return undefined; - }; - return BuildError; - }()); - exports.BuildError = BuildError; - var FileWithErrors = /** @class */ (function () { - function FileWithErrors() { - } - FileWithErrors.prototype.errors = function () { - return undefined; - }; - FileWithErrors.prototype.parent = function () { - return undefined; - }; - return FileWithErrors; - }()); - exports.FileWithErrors = FileWithErrors; - var BuildResult = /** @class */ (function () { - function BuildResult() { - } - BuildResult.prototype.merge = function (other) { - var _this = this; - a.b.c.d.e.f.g = 0; - removedFiles.forEach(function (each) { - _this.removeFile(each); - }); - }; - return BuildResult; - }()); - exports.BuildResult = BuildResult; -}); +var BuildError = /** @class */ (function () { + function BuildError() { + } + BuildError.prototype.parent = function () { + return undefined; + }; + return BuildError; +}()); +export { BuildError }; +var FileWithErrors = /** @class */ (function () { + function FileWithErrors() { + } + FileWithErrors.prototype.errors = function () { + return undefined; + }; + FileWithErrors.prototype.parent = function () { + return undefined; + }; + return FileWithErrors; +}()); +export { FileWithErrors }; +var BuildResult = /** @class */ (function () { + function BuildResult() { + } + BuildResult.prototype.merge = function (other) { + var _this = this; + a.b.c.d.e.f.g = 0; + removedFiles.forEach(function (each) { + _this.removeFile(each); + }); + }; + return BuildResult; +}()); +export { BuildResult }; diff --git a/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt b/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt index 415b3115b1fb5..80cb5a9db80bd 100644 --- a/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt +++ b/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. genericReturnTypeFromGetter1.ts(5,18): error TS2314: Generic type 'A' requires 1 type argument(s). -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== genericReturnTypeFromGetter1.ts (1 errors) ==== export interface A { new (dbSet: DbSet): T; diff --git a/tests/baselines/reference/genericReturnTypeFromGetter1.js b/tests/baselines/reference/genericReturnTypeFromGetter1.js index 029c0ad38a5cd..829b50def3b37 100644 --- a/tests/baselines/reference/genericReturnTypeFromGetter1.js +++ b/tests/baselines/reference/genericReturnTypeFromGetter1.js @@ -11,20 +11,18 @@ export class DbSet { //// [genericReturnTypeFromGetter1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DbSet = void 0; - var DbSet = /** @class */ (function () { - function DbSet() { - } - Object.defineProperty(DbSet.prototype, "entityType", { - get: function () { return this._entityType; } // used to ICE without return type annotation - , - enumerable: false, - configurable: true - }); - return DbSet; - }()); - exports.DbSet = DbSet; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DbSet = void 0; +var DbSet = /** @class */ (function () { + function DbSet() { + } + Object.defineProperty(DbSet.prototype, "entityType", { + get: function () { return this._entityType; } // used to ICE without return type annotation + , + enumerable: false, + configurable: true + }); + return DbSet; +}()); +exports.DbSet = DbSet; diff --git a/tests/baselines/reference/giant.errors.txt b/tests/baselines/reference/giant.errors.txt index 2485a881dba29..248efb5e0f8a7 100644 --- a/tests/baselines/reference/giant.errors.txt +++ b/tests/baselines/reference/giant.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. @@ -232,7 +231,6 @@ 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== giant.ts (231 errors) ==== /* Prefixes diff --git a/tests/baselines/reference/giant.js b/tests/baselines/reference/giant.js index 793991a83e987..fc1c523eb58e2 100644 --- a/tests/baselines/reference/giant.js +++ b/tests/baselines/reference/giant.js @@ -684,25 +684,277 @@ export declare namespace eaM { } //// [giant.js] -define(["require", "exports"], function (require, exports) { - "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 - */ - var p = "propName"; +"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 +*/ +var p = "propName"; +var V; +function F() { } +; +var C = /** @class */ (function () { + function C() { + } + C.prototype.pF = function () { }; + C.prototype.rF = function () { }; + C.prototype.pgF = function () { }; + Object.defineProperty(C.prototype, "pgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + C.prototype.psF = function (param) { }; + Object.defineProperty(C.prototype, "psF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + C.prototype.rgF = function () { }; + Object.defineProperty(C.prototype, "rgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + C.prototype.rsF = function (param) { }; + Object.defineProperty(C.prototype, "rsF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + C.tF = function () { }; + C.tsF = function (param) { }; + Object.defineProperty(C, "tsF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + C.tgF = function () { }; + Object.defineProperty(C, "tgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + return C; +}()); +var M; +(function (M_1) { + var V; + function F() { } + ; + var C = /** @class */ (function () { + function C() { + } + C.prototype.pF = function () { }; + C.prototype.rF = function () { }; + C.prototype.pgF = function () { }; + Object.defineProperty(C.prototype, "pgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + C.prototype.psF = function (param) { }; + Object.defineProperty(C.prototype, "psF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + C.prototype.rgF = function () { }; + Object.defineProperty(C.prototype, "rgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + C.prototype.rsF = function (param) { }; + Object.defineProperty(C.prototype, "rsF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + C.tF = function () { }; + C.tsF = function (param) { }; + Object.defineProperty(C, "tsF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + C.tgF = function () { }; + Object.defineProperty(C, "tgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + return C; + }()); + var M; + (function (M) { + var V; + function F() { } + ; + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + ; + ; + ; + function eF() { } + M.eF = eF; + ; + var eC = /** @class */ (function () { + function eC() { + } + return eC; + }()); + M.eC = eC; + ; + ; + ; + ; + ; + ; + })(M || (M = {})); + function eF() { } + M_1.eF = eF; + ; + var eC = /** @class */ (function () { + function eC() { + } + eC.prototype.pF = function () { }; + eC.prototype.rF = function () { }; + eC.prototype.pgF = function () { }; + Object.defineProperty(eC.prototype, "pgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + eC.prototype.psF = function (param) { }; + Object.defineProperty(eC.prototype, "psF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + eC.prototype.rgF = function () { }; + Object.defineProperty(eC.prototype, "rgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + eC.prototype.rsF = function (param) { }; + Object.defineProperty(eC.prototype, "rsF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + eC.tF = function () { }; + eC.tsF = function (param) { }; + Object.defineProperty(eC, "tsF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + eC.tgF = function () { }; + Object.defineProperty(eC, "tgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + return eC; + }()); + M_1.eC = eC; + var eM; + (function (eM) { + var V; + function F() { } + ; + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + ; + ; + ; + function eF() { } + eM.eF = eF; + ; + var eC = /** @class */ (function () { + function eC() { + } + return eC; + }()); + eM.eC = eC; + ; + ; + ; + ; + ; + ; + })(eM = M_1.eM || (M_1.eM = {})); + ; +})(M || (M = {})); +function eF() { } +; +var eC = /** @class */ (function () { + function eC() { + } + eC.prototype.pF = function () { }; + eC.prototype.rF = function () { }; + eC.prototype.pgF = function () { }; + Object.defineProperty(eC.prototype, "pgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + eC.prototype.psF = function (param) { }; + Object.defineProperty(eC.prototype, "psF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + eC.prototype.rgF = function () { }; + Object.defineProperty(eC.prototype, "rgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + eC.prototype.rsF = function (param) { }; + Object.defineProperty(eC.prototype, "rsF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + eC.tF = function () { }; + eC.tsF = function (param) { }; + Object.defineProperty(eC, "tsF", { + set: function (param) { }, + enumerable: false, + configurable: true + }); + eC.tgF = function () { }; + Object.defineProperty(eC, "tgF", { + get: function () { }, + enumerable: false, + configurable: true + }); + return eC; +}()); +exports.eC = eC; +var eM; +(function (eM_1) { var V; function F() { } ; @@ -751,163 +1003,36 @@ define(["require", "exports"], function (require, exports) { return C; }()); var M; - (function (M_1) { + (function (M) { var V; function F() { } ; var C = /** @class */ (function () { function C() { } - C.prototype.pF = function () { }; - C.prototype.rF = function () { }; - C.prototype.pgF = function () { }; - Object.defineProperty(C.prototype, "pgF", { - get: function () { }, - enumerable: false, - configurable: true - }); - C.prototype.psF = function (param) { }; - Object.defineProperty(C.prototype, "psF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - C.prototype.rgF = function () { }; - Object.defineProperty(C.prototype, "rgF", { - get: function () { }, - enumerable: false, - configurable: true - }); - C.prototype.rsF = function (param) { }; - Object.defineProperty(C.prototype, "rsF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - C.tF = function () { }; - C.tsF = function (param) { }; - Object.defineProperty(C, "tsF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - C.tgF = function () { }; - Object.defineProperty(C, "tgF", { - get: function () { }, - enumerable: false, - configurable: true - }); return C; }()); - var M; - (function (M) { - var V; - function F() { } - ; - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - ; - ; - ; - function eF() { } - M.eF = eF; - ; - var eC = /** @class */ (function () { - function eC() { - } - return eC; - }()); - M.eC = eC; - ; - ; - ; - ; - ; - ; - })(M || (M = {})); + ; + ; + ; function eF() { } - M_1.eF = eF; + M.eF = eF; ; var eC = /** @class */ (function () { function eC() { } - eC.prototype.pF = function () { }; - eC.prototype.rF = function () { }; - eC.prototype.pgF = function () { }; - Object.defineProperty(eC.prototype, "pgF", { - get: function () { }, - enumerable: false, - configurable: true - }); - eC.prototype.psF = function (param) { }; - Object.defineProperty(eC.prototype, "psF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - eC.prototype.rgF = function () { }; - Object.defineProperty(eC.prototype, "rgF", { - get: function () { }, - enumerable: false, - configurable: true - }); - eC.prototype.rsF = function (param) { }; - Object.defineProperty(eC.prototype, "rsF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - eC.tF = function () { }; - eC.tsF = function (param) { }; - Object.defineProperty(eC, "tsF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - eC.tgF = function () { }; - Object.defineProperty(eC, "tgF", { - get: function () { }, - enumerable: false, - configurable: true - }); return eC; }()); - M_1.eC = eC; - var eM; - (function (eM) { - var V; - function F() { } - ; - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - ; - ; - ; - function eF() { } - eM.eF = eF; - ; - var eC = /** @class */ (function () { - function eC() { - } - return eC; - }()); - eM.eC = eC; - ; - ; - ; - ; - ; - ; - })(eM = M_1.eM || (M_1.eM = {})); + M.eC = eC; + ; + ; + ; + ; + ; ; })(M || (M = {})); function eF() { } + eM_1.eF = eF; ; var eC = /** @class */ (function () { function eC() { @@ -953,166 +1078,39 @@ define(["require", "exports"], function (require, exports) { }); return eC; }()); - exports.eC = eC; + eM_1.eC = eC; var eM; - (function (eM_1) { + (function (eM) { var V; function F() { } ; var C = /** @class */ (function () { function C() { } - C.prototype.pF = function () { }; - C.prototype.rF = function () { }; - C.prototype.pgF = function () { }; - Object.defineProperty(C.prototype, "pgF", { - get: function () { }, - enumerable: false, - configurable: true - }); - C.prototype.psF = function (param) { }; - Object.defineProperty(C.prototype, "psF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - C.prototype.rgF = function () { }; - Object.defineProperty(C.prototype, "rgF", { - get: function () { }, - enumerable: false, - configurable: true - }); - C.prototype.rsF = function (param) { }; - Object.defineProperty(C.prototype, "rsF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - C.tF = function () { }; - C.tsF = function (param) { }; - Object.defineProperty(C, "tsF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - C.tgF = function () { }; - Object.defineProperty(C, "tgF", { - get: function () { }, - enumerable: false, - configurable: true - }); return C; }()); - var M; - (function (M) { - var V; - function F() { } - ; - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - ; - ; - ; - function eF() { } - M.eF = eF; - ; - var eC = /** @class */ (function () { - function eC() { - } - return eC; - }()); - M.eC = eC; - ; - ; - ; - ; - ; - ; - })(M || (M = {})); + ; + ; + ; function eF() { } - eM_1.eF = eF; + eM.eF = eF; ; var eC = /** @class */ (function () { function eC() { } - eC.prototype.pF = function () { }; - eC.prototype.rF = function () { }; - eC.prototype.pgF = function () { }; - Object.defineProperty(eC.prototype, "pgF", { - get: function () { }, - enumerable: false, - configurable: true - }); - eC.prototype.psF = function (param) { }; - Object.defineProperty(eC.prototype, "psF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - eC.prototype.rgF = function () { }; - Object.defineProperty(eC.prototype, "rgF", { - get: function () { }, - enumerable: false, - configurable: true - }); - eC.prototype.rsF = function (param) { }; - Object.defineProperty(eC.prototype, "rsF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - eC.tF = function () { }; - eC.tsF = function (param) { }; - Object.defineProperty(eC, "tsF", { - set: function (param) { }, - enumerable: false, - configurable: true - }); - eC.tgF = function () { }; - Object.defineProperty(eC, "tgF", { - get: function () { }, - enumerable: false, - configurable: true - }); return eC; }()); - eM_1.eC = eC; - var eM; - (function (eM) { - var V; - function F() { } - ; - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - ; - ; - ; - function eF() { } - eM.eF = eF; - ; - var eC = /** @class */ (function () { - function eC() { - } - return eC; - }()); - eM.eC = eC; - ; - ; - ; - ; - ; - ; - })(eM = eM_1.eM || (eM_1.eM = {})); + eM.eC = eC; + ; + ; + ; + ; + ; ; - })(eM || (exports.eM = eM = {})); + })(eM = eM_1.eM || (eM_1.eM = {})); ; -}); +})(eM || (exports.eM = eM = {})); +; //// [giant.d.ts] diff --git a/tests/baselines/reference/importDeclWithClassModifiers.errors.txt b/tests/baselines/reference/importDeclWithClassModifiers.errors.txt index 0aaca9ab8e6fc..12e30795fff58 100644 --- a/tests/baselines/reference/importDeclWithClassModifiers.errors.txt +++ b/tests/baselines/reference/importDeclWithClassModifiers.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -10,7 +9,6 @@ importDeclWithClassModifiers.ts(7,26): error TS2708: Cannot use namespace 'x' as importDeclWithClassModifiers.ts(7,28): error TS2694: Namespace 'x' has no exported member 'c'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== importDeclWithClassModifiers.ts (9 errors) ==== namespace x { interface c { diff --git a/tests/baselines/reference/importDeclWithClassModifiers.js b/tests/baselines/reference/importDeclWithClassModifiers.js index d4c7e390ee746..8225d825e9fcb 100644 --- a/tests/baselines/reference/importDeclWithClassModifiers.js +++ b/tests/baselines/reference/importDeclWithClassModifiers.js @@ -12,12 +12,10 @@ var b: a; //// [importDeclWithClassModifiers.js] -define(["require", "exports"], function (require, exports) { - "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; -}); +"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; diff --git a/tests/baselines/reference/importDeferInvalidDefault.errors.txt b/tests/baselines/reference/importDeferInvalidDefault.errors.txt index 98b01b714544e..f73208bd269ad 100644 --- a/tests/baselines/reference/importDeferInvalidDefault.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferInvalidDefault.js b/tests/baselines/reference/importDeferInvalidDefault.js index e0f3491c6329f..1bcd8af7587e5 100644 --- a/tests/baselines/reference/importDeferInvalidDefault.js +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferInvalidDefault.symbols b/tests/baselines/reference/importDeferInvalidDefault.symbols index dd548fc59340a..34b190c10fa5b 100644 --- a/tests/baselines/reference/importDeferInvalidDefault.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferInvalidDefault.types b/tests/baselines/reference/importDeferInvalidDefault.types index 7700b44e4f393..185ee3a294788 100644 --- a/tests/baselines/reference/importDeferInvalidDefault.types +++ b/tests/baselines/reference/importDeferInvalidDefault.types @@ -19,13 +19,13 @@ 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/tests/baselines/reference/importDeferInvalidNamed.errors.txt b/tests/baselines/reference/importDeferInvalidNamed.errors.txt index 4670b0cf31240..f802be536ffec 100644 --- a/tests/baselines/reference/importDeferInvalidNamed.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferInvalidNamed.js b/tests/baselines/reference/importDeferInvalidNamed.js index 8f92f52fa0ee5..925c583e31229 100644 --- a/tests/baselines/reference/importDeferInvalidNamed.js +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferInvalidNamed.symbols b/tests/baselines/reference/importDeferInvalidNamed.symbols index 77f3959cd7e06..83b170aa34388 100644 --- a/tests/baselines/reference/importDeferInvalidNamed.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferInvalidNamed.types b/tests/baselines/reference/importDeferInvalidNamed.types index 9dab475b1002a..ff761ef0b9d79 100644 --- a/tests/baselines/reference/importDeferInvalidNamed.types +++ b/tests/baselines/reference/importDeferInvalidNamed.types @@ -19,13 +19,13 @@ 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/tests/baselines/reference/importDeferTypeConflict1.errors.txt b/tests/baselines/reference/importDeferTypeConflict1.errors.txt index 138cfa68e9b36..a97903b2cf730 100644 --- a/tests/baselines/reference/importDeferTypeConflict1.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferTypeConflict1.js b/tests/baselines/reference/importDeferTypeConflict1.js index 0577f6a08cb7c..463ebf0241037 100644 --- a/tests/baselines/reference/importDeferTypeConflict1.js +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferTypeConflict1.symbols b/tests/baselines/reference/importDeferTypeConflict1.symbols index 961367f241e5b..9771ff173bdbf 100644 --- a/tests/baselines/reference/importDeferTypeConflict1.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferTypeConflict1.types b/tests/baselines/reference/importDeferTypeConflict1.types index ea2a7ef944685..770da70492fd5 100644 --- a/tests/baselines/reference/importDeferTypeConflict1.types +++ b/tests/baselines/reference/importDeferTypeConflict1.types @@ -19,7 +19,7 @@ export function foo() { } === b.ts === -import type defer * as ns1 from "a"; +import type defer * as ns1 from "./a"; >defer : any > : ^^^ > : any @@ -34,6 +34,6 @@ import type defer * as ns1 from "a"; > : ^^^ >from : any > : ^^^ ->"a" : "a" -> : ^^^ +>"./a" : "./a" +> : ^^^^^ diff --git a/tests/baselines/reference/importDeferTypeConflict2.errors.txt b/tests/baselines/reference/importDeferTypeConflict2.errors.txt index 2387d3e34ac4e..6453749d15bd6 100644 --- a/tests/baselines/reference/importDeferTypeConflict2.errors.txt +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferTypeConflict2.js b/tests/baselines/reference/importDeferTypeConflict2.js index 1c06d70469687..393d7ff039cae 100644 --- a/tests/baselines/reference/importDeferTypeConflict2.js +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferTypeConflict2.symbols b/tests/baselines/reference/importDeferTypeConflict2.symbols index ea867e3cfdc51..699eea79269e6 100644 --- a/tests/baselines/reference/importDeferTypeConflict2.symbols +++ b/tests/baselines/reference/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/tests/baselines/reference/importDeferTypeConflict2.types b/tests/baselines/reference/importDeferTypeConflict2.types index bbcc915ad31bc..33b0d0cf855a4 100644 --- a/tests/baselines/reference/importDeferTypeConflict2.types +++ b/tests/baselines/reference/importDeferTypeConflict2.types @@ -19,7 +19,7 @@ export function foo() { } === b.ts === -import defer type * as ns1 from "a"; +import defer type * as ns1 from "./a"; >type : any > : ^^^ >* as : number @@ -32,6 +32,6 @@ import defer type * as ns1 from "a"; > : ^^^ >from : any > : ^^^ ->"a" : "a" -> : ^^^ +>"./a" : "./a" +> : ^^^^^ diff --git a/tests/baselines/reference/importNonExternalModule.errors.txt b/tests/baselines/reference/importNonExternalModule.errors.txt index 85807c8966ae9..1e6a62f49feb2 100644 --- a/tests/baselines/reference/importNonExternalModule.errors.txt +++ b/tests/baselines/reference/importNonExternalModule.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. foo_1.ts(1,22): error TS2306: File 'foo_0.ts' is not a module. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== foo_1.ts (1 errors) ==== import foo = require("./foo_0"); ~~~~~~~~~ diff --git a/tests/baselines/reference/importNonExternalModule.js b/tests/baselines/reference/importNonExternalModule.js index d06f18002980a..7817daebbb9ea 100644 --- a/tests/baselines/reference/importNonExternalModule.js +++ b/tests/baselines/reference/importNonExternalModule.js @@ -19,10 +19,9 @@ var foo; foo.answer = 42; })(foo || (foo = {})); //// [foo_1.js] -define(["require", "exports", "./foo_0"], function (require, exports, foo) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - // Import should fail. foo_0 not an external module - if (foo.answer === 42) { - } -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var foo = require("./foo_0"); +// Import should fail. foo_0 not an external module +if (foo.answer === 42) { +} diff --git a/tests/baselines/reference/interfaceDeclaration3.errors.txt b/tests/baselines/reference/interfaceDeclaration3.errors.txt index eec4a988059f1..12296b53badb3 100644 --- a/tests/baselines/reference/interfaceDeclaration3.errors.txt +++ b/tests/baselines/reference/interfaceDeclaration3.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -8,7 +7,6 @@ interfaceDeclaration3.ts(54,11): error TS2430: Interface 'I2' incorrectly extend Type 'string' is not assignable to type 'number'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== interfaceDeclaration3.ts (3 errors) ==== interface I1 { item:number; } diff --git a/tests/baselines/reference/interfaceDeclaration3.js b/tests/baselines/reference/interfaceDeclaration3.js index 0e9d8a0f2efe0..9d0c5fff0e313 100644 --- a/tests/baselines/reference/interfaceDeclaration3.js +++ b/tests/baselines/reference/interfaceDeclaration3.js @@ -58,56 +58,11 @@ interface I2 extends I1 { item:string; } //// [interfaceDeclaration3.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.M2 = void 0; - var M1; - (function (M1) { - var C1 = /** @class */ (function () { - function C1() { - } - return C1; - }()); - var C2 = /** @class */ (function () { - function C2() { - } - return C2; - }()); - var C3 = /** @class */ (function () { - function C3() { - } - return C3; - }()); - var C4 = /** @class */ (function () { - function C4() { - } - return C4; - }()); - var C5 = /** @class */ (function () { - function C5() { - } - return C5; - }()); - })(M1 || (M1 = {})); - var M2; - (function (M2) { - var C1 = /** @class */ (function () { - function C1() { - } - return C1; - }()); - var C2 = /** @class */ (function () { - function C2() { - } - return C2; - }()); - var C3 = /** @class */ (function () { - function C3() { - } - return C3; - }()); - })(M2 || (exports.M2 = M2 = {})); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.M2 = void 0; +var M1; +(function (M1) { var C1 = /** @class */ (function () { function C1() { } @@ -123,4 +78,47 @@ define(["require", "exports"], function (require, exports) { } return C3; }()); -}); + var C4 = /** @class */ (function () { + function C4() { + } + return C4; + }()); + var C5 = /** @class */ (function () { + function C5() { + } + return C5; + }()); +})(M1 || (M1 = {})); +var M2; +(function (M2) { + var C1 = /** @class */ (function () { + function C1() { + } + return C1; + }()); + var C2 = /** @class */ (function () { + function C2() { + } + return C2; + }()); + var C3 = /** @class */ (function () { + function C3() { + } + return C3; + }()); +})(M2 || (exports.M2 = M2 = {})); +var C1 = /** @class */ (function () { + function C1() { + } + return C1; +}()); +var C2 = /** @class */ (function () { + function C2() { + } + return C2; +}()); +var C3 = /** @class */ (function () { + function C3() { + } + return C3; +}()); diff --git a/tests/baselines/reference/interfaceImplementation6.errors.txt b/tests/baselines/reference/interfaceImplementation6.errors.txt index 9e577dae816a9..ce5a76fbbe9bd 100644 --- a/tests/baselines/reference/interfaceImplementation6.errors.txt +++ b/tests/baselines/reference/interfaceImplementation6.errors.txt @@ -1,11 +1,9 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== interfaceImplementation6.ts (2 errors) ==== interface I1 { item:number; diff --git a/tests/baselines/reference/interfaceImplementation6.js b/tests/baselines/reference/interfaceImplementation6.js index 485665af39084..9e088a1576112 100644 --- a/tests/baselines/reference/interfaceImplementation6.js +++ b/tests/baselines/reference/interfaceImplementation6.js @@ -27,31 +27,29 @@ export class Test { //// [interfaceImplementation6.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Test = void 0; - var C1 = /** @class */ (function () { - function C1() { - } - return C1; - }()); - var C2 = /** @class */ (function () { - function C2() { - } - return C2; - }()); - var C3 = /** @class */ (function () { - function C3() { - var item; - } - return C3; - }()); - var Test = /** @class */ (function () { - function Test() { - this.pt = { item: 1 }; - } - return Test; - }()); - exports.Test = Test; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Test = void 0; +var C1 = /** @class */ (function () { + function C1() { + } + return C1; +}()); +var C2 = /** @class */ (function () { + function C2() { + } + return C2; +}()); +var C3 = /** @class */ (function () { + function C3() { + var item; + } + return C3; +}()); +var Test = /** @class */ (function () { + function Test() { + this.pt = { item: 1 }; + } + return Test; +}()); +exports.Test = Test; diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt index 5528ba47b7565..4711a37c290ff 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(11,10): error TS2694: Namespace '"internalAliasInterfaceInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts (1 errors) ==== export namespace a { export interface I { diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js index cdc041a4a9660..e367c1bfc0d25 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js @@ -14,12 +14,10 @@ export namespace c { var x: c.b; //// [internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - var c; - (function (c) { - })(c || (exports.c = c = {})); - var x; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +var c; +(function (c) { +})(c || (exports.c = c = {})); +var x; diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt index 0ba83a96598c9..7a702689ed566 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(16,17): error TS2694: Namespace '"internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts (1 errors) ==== export namespace a { export namespace b { diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js index 788ac8ef70e01..a08dcb4ac9e2d 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js @@ -19,12 +19,10 @@ export namespace c { export var z: c.b.I; //// [internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = exports.c = void 0; - var c; - (function (c) { - c.x.foo(); - })(c || (exports.c = c = {})); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = exports.c = void 0; +var c; +(function (c) { + c.x.foo(); +})(c || (exports.c = c = {})); diff --git a/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt b/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt index 3674af6661361..5baaa2e211ab1 100644 --- a/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt +++ b/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. moduleAugmentationGlobal8.ts(2,13): error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== moduleAugmentationGlobal8.ts (1 errors) ==== namespace A { declare global { diff --git a/tests/baselines/reference/moduleAugmentationGlobal8.js b/tests/baselines/reference/moduleAugmentationGlobal8.js index 2b15cca3f095a..6b4db1bd3fdbf 100644 --- a/tests/baselines/reference/moduleAugmentationGlobal8.js +++ b/tests/baselines/reference/moduleAugmentationGlobal8.js @@ -10,7 +10,4 @@ export {} //// [moduleAugmentationGlobal8.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +export {}; diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt b/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt index 607134b928640..603a7a8196932 100644 --- a/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt +++ b/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== moduleAugmentationGlobal8_1.ts (2 errors) ==== namespace A { global { diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1.js b/tests/baselines/reference/moduleAugmentationGlobal8_1.js index c4de5018bf775..66a7d16991c4d 100644 --- a/tests/baselines/reference/moduleAugmentationGlobal8_1.js +++ b/tests/baselines/reference/moduleAugmentationGlobal8_1.js @@ -10,7 +10,4 @@ export {} //// [moduleAugmentationGlobal8_1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +export {}; diff --git a/tests/baselines/reference/moduleExports1.errors.txt b/tests/baselines/reference/moduleExports1.errors.txt index 6eb67bf0512e9..fb4a023c6af7f 100644 --- a/tests/baselines/reference/moduleExports1.errors.txt +++ b/tests/baselines/reference/moduleExports1.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. moduleExports1.ts(13,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(13,22): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== moduleExports1.ts (2 errors) ==== export namespace TypeScript.Strasse.Street { export class Rue { diff --git a/tests/baselines/reference/moduleExports1.js b/tests/baselines/reference/moduleExports1.js index d4854f5eb330b..ee43b3555b24a 100644 --- a/tests/baselines/reference/moduleExports1.js +++ b/tests/baselines/reference/moduleExports1.js @@ -16,28 +16,26 @@ void 0; if (!module.exports) module.exports = ""; //// [moduleExports1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.TypeScript = void 0; - var TypeScript; - (function (TypeScript) { - var Strasse; - (function (Strasse) { - var Street; - (function (Street) { - var Rue = /** @class */ (function () { - function Rue() { - } - return Rue; - }()); - 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 = ""; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeScript = void 0; +var TypeScript; +(function (TypeScript) { + var Strasse; + (function (Strasse) { + var Street; + (function (Street) { + var Rue = /** @class */ (function () { + function Rue() { + } + return Rue; + }()); + 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/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt index 71b2ca4016df9..eeb5964c4b96c 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt @@ -1,17 +1,15 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== 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"); + 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(); diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js index 1a60272b6e577..22660575e21ed 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js @@ -33,8 +33,8 @@ declare module 'm2' { // 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"); +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(); @@ -50,45 +50,45 @@ export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.js] //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.js] //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c_public = void 0; - // Public elements - var c_public = /** @class */ (function () { - function c_public() { - } - return c_public; - }()); - exports.c_public = c_public; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c_public = void 0; +// Public elements +var c_public = /** @class */ (function () { + function c_public() { + } + return c_public; +}()); +exports.c_public = c_public; //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c_public = void 0; - var c_public = /** @class */ (function () { - function c_public() { - } - return c_public; - }()); - exports.c_public = c_public; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c_public = void 0; +var c_public = /** @class */ (function () { + function c_public() { + } + return c_public; +}()); +exports.c_public = c_public; //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.js] -define(["require", "exports", "m", "m2", "privacyTopLevelAmbientExternalModuleImportWithoutExport_require"], function (require, exports, im_private_mi_private, im_private_mu_private, im_private_mi_public) { - "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; - // 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(); -}); +"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 +var im_private_mi_private = require("m"); +var im_private_mu_private = require("m2"); +var 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] @@ -114,7 +114,7 @@ export declare class c_public { //// [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"); +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; diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols index 2d499c0ba7207..a3d75551a39b8 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols @@ -10,11 +10,11 @@ import im_private_mi_private = require("m"); 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"); +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, 105)) +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(); diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types index 4864e24a2b60f..b6028d861566b 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types @@ -12,11 +12,11 @@ import im_private_mu_private = require("m2"); >im_private_mu_private : typeof im_private_mu_private > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); +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"); +import im_private_mu_public = require("./privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); >im_private_mu_public : typeof im_private_mu_public > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/privateNameEmitHelpers.errors.txt b/tests/baselines/reference/privateNameEmitHelpers.errors.txt index bbbfcdd1cb43d..92f3c7e9663d6 100644 --- a/tests/baselines/reference/privateNameEmitHelpers.errors.txt +++ b/tests/baselines/reference/privateNameEmitHelpers.errors.txt @@ -1,16 +1,19 @@ -main.ts(3,12): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +main.ts(3,12): error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. +main.ts(4,25): 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'. -==== main.ts (1 errors) ==== +==== main.ts (2 errors) ==== export class C { #a = 1; #b() { this.#c = 42; } ~~~~~~~ -!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. set #c(v: number) { this.#a += v; } + ~~~~~~~ +!!! 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/tests/baselines/reference/privateNameEmitHelpers.js b/tests/baselines/reference/privateNameEmitHelpers.js index 1c46c25afa8fe..844aecf231cf1 100644 --- a/tests/baselines/reference/privateNameEmitHelpers.js +++ b/tests/baselines/reference/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/tests/baselines/reference/privateNameEmitHelpers.symbols b/tests/baselines/reference/privateNameEmitHelpers.symbols index e3ba295c724e5..b13f7512037e9 100644 --- a/tests/baselines/reference/privateNameEmitHelpers.symbols +++ b/tests/baselines/reference/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, --, --)) ->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(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, --, --)) ->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(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/tests/baselines/reference/privateNameEmitHelpers.types b/tests/baselines/reference/privateNameEmitHelpers.types index 69f0d4f6a284d..2e7be91970d54 100644 --- a/tests/baselines/reference/privateNameEmitHelpers.types +++ b/tests/baselines/reference/privateNameEmitHelpers.types @@ -38,7 +38,7 @@ export class C { > : ^^^^^^ } -=== 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/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt b/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt index f973684e94392..2b2cea73b5092 100644 --- a/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt +++ b/tests/baselines/reference/privateNameStaticEmitHelpers.errors.txt @@ -1,16 +1,19 @@ -main.ts(3,19): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +main.ts(3,19): error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. +main.ts(4,30): 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'. -==== main.ts (1 errors) ==== +==== main.ts (2 errors) ==== export class S { static #a = 1; static #b() { this.#a = 42; } ~~~~~~~ -!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'. static get #c() { return S.#b(); } + ~~~~ +!!! 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/tests/baselines/reference/privateNameStaticEmitHelpers.js b/tests/baselines/reference/privateNameStaticEmitHelpers.js index da1af623fe312..8ed176b162d1c 100644 --- a/tests/baselines/reference/privateNameStaticEmitHelpers.js +++ b/tests/baselines/reference/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/tests/baselines/reference/privateNameStaticEmitHelpers.symbols b/tests/baselines/reference/privateNameStaticEmitHelpers.symbols index 6b1b76dfe9947..681c0bd0efef7 100644 --- a/tests/baselines/reference/privateNameStaticEmitHelpers.symbols +++ b/tests/baselines/reference/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, --, --)) ->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(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, --, --)) ->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(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/tests/baselines/reference/privateNameStaticEmitHelpers.types b/tests/baselines/reference/privateNameStaticEmitHelpers.types index 2cf321bb0a728..bd4d15344e8e0 100644 --- a/tests/baselines/reference/privateNameStaticEmitHelpers.types +++ b/tests/baselines/reference/privateNameStaticEmitHelpers.types @@ -34,7 +34,7 @@ export class 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/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.errors.txt b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.errors.txt index 7fe69c1f6d549..74353bba9b409 100644 --- a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.errors.txt +++ b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== propertyIdentityWithPrivacyMismatch_1.ts (2 errors) ==== /// import m1 = require('mod1'); diff --git a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js index 737e8ef2382af..31af18b97fd91 100644 --- a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js +++ b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js @@ -29,21 +29,19 @@ var y: Foo2; //// [propertyIdentityWithPrivacyMismatch_0.js] //// [propertyIdentityWithPrivacyMismatch_1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var x; - var x; // Should be error (mod1.Foo !== mod2.Foo) - var Foo1 = /** @class */ (function () { - function Foo1() { - } - return Foo1; - }()); - var Foo2 = /** @class */ (function () { - function Foo2() { - } - return Foo2; - }()); - var y; - var y; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var x; +var x; // Should be error (mod1.Foo !== mod2.Foo) +var Foo1 = /** @class */ (function () { + function Foo1() { + } + return Foo1; +}()); +var Foo2 = /** @class */ (function () { + function Foo2() { + } + return Foo2; +}()); +var y; +var y; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt index 67ce66cc3e769..5107eac3d64ff 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.errors.txt @@ -1,12 +1,10 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType1_moduleA.ts (0 errors) ==== /// import moduleC = require("moduleC"); - import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); export var b: ClassB; // This should result in type ClassB ==== recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts (1 errors) ==== declare module "moduleC" { diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js index 438620859265f..40bbc2c9cf211 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js @@ -13,22 +13,18 @@ export = ClassB; //// [recursiveExportAssignmentAndFindAliasedType1_moduleA.ts] /// import moduleC = require("moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); export var b: ClassB; // This should result in type ClassB //// [recursiveExportAssignmentAndFindAliasedType1_moduleB.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var ClassB = /** @class */ (function () { - function ClassB() { - } - return ClassB; - }()); +"use strict"; +var ClassB = /** @class */ (function () { + function ClassB() { + } return ClassB; -}); +}()); +module.exports = ClassB; //// [recursiveExportAssignmentAndFindAliasedType1_moduleA.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.symbols index 6b97575ff1fb4..39da715015343 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.symbols +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.symbols @@ -5,7 +5,7 @@ import moduleC = require("moduleC"); >moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleA.ts, 0, 0)) -import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); >ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType1_moduleA.ts, 1, 36)) export var b: ClassB; // This should result in type ClassB diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.types index 9865b081e8849..888968d2858bd 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.types @@ -6,7 +6,7 @@ import moduleC = require("moduleC"); >moduleC : any > : ^^^ -import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); >ClassB : typeof ClassB > : ^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt index 6387332a0370f..95c33f6746f5a 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.errors.txt @@ -1,12 +1,10 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType2_moduleA.ts (0 errors) ==== /// import moduleC = require("moduleC"); - import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); export var b: ClassB; // This should result in type ClassB ==== recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts (1 errors) ==== declare module "moduleC" { diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js index 5f8c71998018d..28dafc1dce3be 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js @@ -17,22 +17,18 @@ export = ClassB; //// [recursiveExportAssignmentAndFindAliasedType2_moduleA.ts] /// import moduleC = require("moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); export var b: ClassB; // This should result in type ClassB //// [recursiveExportAssignmentAndFindAliasedType2_moduleB.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var ClassB = /** @class */ (function () { - function ClassB() { - } - return ClassB; - }()); +"use strict"; +var ClassB = /** @class */ (function () { + function ClassB() { + } return ClassB; -}); +}()); +module.exports = ClassB; //// [recursiveExportAssignmentAndFindAliasedType2_moduleA.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.symbols index 471cf999a06da..54bd6aae65b8f 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.symbols +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.symbols @@ -5,7 +5,7 @@ import moduleC = require("moduleC"); >moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleA.ts, 0, 0)) -import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); >ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType2_moduleA.ts, 1, 36)) export var b: ClassB; // This should result in type ClassB diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.types index 649acc81d37d0..655c5c1f566f7 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.types @@ -6,7 +6,7 @@ import moduleC = require("moduleC"); >moduleC : any > : ^^^ -import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); >ClassB : typeof ClassB > : ^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt index 5bc9ba2db4473..ce36cbc17ff0c 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.errors.txt @@ -1,12 +1,10 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts(2,5): error TS2303: Circular definition of import alias 'self'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType3_moduleA.ts (0 errors) ==== /// import moduleC = require("moduleC"); - import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB"); + import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); export var b: ClassB; // This should result in type ClassB ==== recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts (1 errors) ==== declare module "moduleC" { diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js index 6607502273371..0cb5acfef107b 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js @@ -21,22 +21,18 @@ export = ClassB; //// [recursiveExportAssignmentAndFindAliasedType3_moduleA.ts] /// import moduleC = require("moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); export var b: ClassB; // This should result in type ClassB //// [recursiveExportAssignmentAndFindAliasedType3_moduleB.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var ClassB = /** @class */ (function () { - function ClassB() { - } - return ClassB; - }()); +"use strict"; +var ClassB = /** @class */ (function () { + function ClassB() { + } return ClassB; -}); +}()); +module.exports = ClassB; //// [recursiveExportAssignmentAndFindAliasedType3_moduleA.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.symbols index 1324169d71890..919869325088f 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.symbols +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.symbols @@ -5,7 +5,7 @@ import moduleC = require("moduleC"); >moduleC : Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleA.ts, 0, 0)) -import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); >ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType3_moduleA.ts, 1, 36)) export var b: ClassB; // This should result in type ClassB diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.types index ced2bff504fe3..bab5c22a5f4b3 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.types @@ -6,7 +6,7 @@ import moduleC = require("moduleC"); >moduleC : any > : ^^^ -import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); >ClassB : typeof ClassB > : ^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt index 3b28b99000fb6..2dfcb34389528 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.errors.txt @@ -1,15 +1,13 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType4_moduleC.ts(1,1): error TS2303: Circular definition of import alias 'self'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType4_moduleA.ts (0 errors) ==== - import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); - import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB"); + 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) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2303: Circular definition of import alias 'self'. export = self; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js index 507ef29c4aede..e86ca3080fc0d 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js @@ -1,7 +1,7 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] //// //// [recursiveExportAssignmentAndFindAliasedType4_moduleC.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); export = self; //// [recursiveExportAssignmentAndFindAliasedType4_moduleB.ts] @@ -9,28 +9,23 @@ class ClassB { } export = ClassB; //// [recursiveExportAssignmentAndFindAliasedType4_moduleA.ts] -import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB"); export var b: ClassB; // This should result in type ClassB //// [recursiveExportAssignmentAndFindAliasedType4_moduleC.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType4_moduleC"], function (require, exports, self) { - "use strict"; - return self; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +module.exports = self; //// [recursiveExportAssignmentAndFindAliasedType4_moduleB.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var ClassB = /** @class */ (function () { - function ClassB() { - } - return ClassB; - }()); +"use strict"; +var ClassB = /** @class */ (function () { + function ClassB() { + } return ClassB; -}); +}()); +module.exports = ClassB; //// [recursiveExportAssignmentAndFindAliasedType4_moduleA.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.symbols index 57b1068aa42c5..be2c5d433ab69 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.symbols +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.symbols @@ -1,18 +1,18 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] //// === recursiveExportAssignmentAndFindAliasedType4_moduleA.ts === -import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); +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, 81)) +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, 81)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleA.ts, 0, 83)) === recursiveExportAssignmentAndFindAliasedType4_moduleC.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); >self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType4_moduleC.ts, 0, 0)) export = self; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.types index a3abe4607859f..512d9aaff9111 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.types @@ -1,11 +1,11 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts] //// === recursiveExportAssignmentAndFindAliasedType4_moduleA.ts === -import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); >moduleC : any > : ^^^ -import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB"); >ClassB : typeof ClassB > : ^^^^^^^^^^^^^ @@ -14,7 +14,7 @@ export var b: ClassB; // This should result in type ClassB > : ^^^^^^ === recursiveExportAssignmentAndFindAliasedType4_moduleC.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); >self : any > : ^^^ diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt index 3d61cad919d55..abba655a10667 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.errors.txt @@ -1,19 +1,17 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType5_moduleD.ts(1,1): error TS2303: Circular definition of import alias 'self'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType5_moduleA.ts (0 errors) ==== - import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); - import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB"); + 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) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD"); + import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); export = self; ==== recursiveExportAssignmentAndFindAliasedType5_moduleD.ts (1 errors) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2303: Circular definition of import alias 'self'. export = self; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js index f5236e4a8ebc9..601138d2fde02 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js @@ -1,11 +1,11 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] //// //// [recursiveExportAssignmentAndFindAliasedType5_moduleC.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); export = self; //// [recursiveExportAssignmentAndFindAliasedType5_moduleD.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); export = self; //// [recursiveExportAssignmentAndFindAliasedType5_moduleB.ts] @@ -13,33 +13,27 @@ class ClassB { } export = ClassB; //// [recursiveExportAssignmentAndFindAliasedType5_moduleA.ts] -import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB"); export var b: ClassB; // This should result in type ClassB //// [recursiveExportAssignmentAndFindAliasedType5_moduleD.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType5_moduleC"], function (require, exports, self) { - "use strict"; - return self; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +module.exports = self; //// [recursiveExportAssignmentAndFindAliasedType5_moduleC.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType5_moduleD"], function (require, exports, self) { - "use strict"; - return self; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); +module.exports = self; //// [recursiveExportAssignmentAndFindAliasedType5_moduleB.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var ClassB = /** @class */ (function () { - function ClassB() { - } - return ClassB; - }()); +"use strict"; +var ClassB = /** @class */ (function () { + function ClassB() { + } return ClassB; -}); +}()); +module.exports = ClassB; //// [recursiveExportAssignmentAndFindAliasedType5_moduleA.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.symbols index 8382e50c9b68e..45145f3995770 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.symbols +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.symbols @@ -1,25 +1,25 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] //// === recursiveExportAssignmentAndFindAliasedType5_moduleA.ts === -import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); +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, 81)) +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, 81)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleA.ts, 0, 83)) === recursiveExportAssignmentAndFindAliasedType5_moduleC.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD"); +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"); +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); >self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType5_moduleD.ts, 0, 0)) export = self; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.types index 5ec0db9227124..93a14f8b6870d 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.types @@ -1,11 +1,11 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts] //// === recursiveExportAssignmentAndFindAliasedType5_moduleA.ts === -import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); >moduleC : any > : ^^^ -import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB"); >ClassB : typeof ClassB > : ^^^^^^^^^^^^^ @@ -14,7 +14,7 @@ export var b: ClassB; // This should result in type ClassB > : ^^^^^^ === recursiveExportAssignmentAndFindAliasedType5_moduleC.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); >self : any > : ^^^ @@ -23,7 +23,7 @@ export = self; > : ^^^ === recursiveExportAssignmentAndFindAliasedType5_moduleD.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); >self : any > : ^^^ diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt index 5ec6f8edabaa3..60e523cad3e2c 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.errors.txt @@ -1,23 +1,21 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. recursiveExportAssignmentAndFindAliasedType6_moduleE.ts(1,1): error TS2303: Circular definition of import alias 'self'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== recursiveExportAssignmentAndFindAliasedType6_moduleA.ts (0 errors) ==== - import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); - import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB"); + 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) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD"); + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); export = self; ==== recursiveExportAssignmentAndFindAliasedType6_moduleD.ts (0 errors) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleE"); + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); export = self; ==== recursiveExportAssignmentAndFindAliasedType6_moduleE.ts (1 errors) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2303: Circular definition of import alias 'self'. export = self; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js index d4f49880587e7..245b377424ad3 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js @@ -1,15 +1,15 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] //// //// [recursiveExportAssignmentAndFindAliasedType6_moduleC.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); export = self; //// [recursiveExportAssignmentAndFindAliasedType6_moduleD.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleE"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); export = self; //// [recursiveExportAssignmentAndFindAliasedType6_moduleE.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); export = self; //// [recursiveExportAssignmentAndFindAliasedType6_moduleB.ts] @@ -17,38 +17,31 @@ class ClassB { } export = ClassB; //// [recursiveExportAssignmentAndFindAliasedType6_moduleA.ts] -import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB"); export var b: ClassB; // This should result in type ClassB //// [recursiveExportAssignmentAndFindAliasedType6_moduleE.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleC"], function (require, exports, self) { - "use strict"; - return self; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +module.exports = self; //// [recursiveExportAssignmentAndFindAliasedType6_moduleD.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleE"], function (require, exports, self) { - "use strict"; - return self; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); +module.exports = self; //// [recursiveExportAssignmentAndFindAliasedType6_moduleC.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleD"], function (require, exports, self) { - "use strict"; - return self; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); +module.exports = self; //// [recursiveExportAssignmentAndFindAliasedType6_moduleB.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var ClassB = /** @class */ (function () { - function ClassB() { - } - return ClassB; - }()); +"use strict"; +var ClassB = /** @class */ (function () { + function ClassB() { + } return ClassB; -}); +}()); +module.exports = ClassB; //// [recursiveExportAssignmentAndFindAliasedType6_moduleA.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.symbols index ea40f8b5c0e38..55f08c902157b 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.symbols +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.symbols @@ -1,32 +1,32 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] //// === recursiveExportAssignmentAndFindAliasedType6_moduleA.ts === -import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); +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, 81)) +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, 81)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleA.ts, 0, 83)) === recursiveExportAssignmentAndFindAliasedType6_moduleC.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD"); +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"); +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"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); >self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType6_moduleE.ts, 0, 0)) export = self; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.types index f525b59a903ff..c3bb9d576c077 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.types @@ -1,11 +1,11 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts] //// === recursiveExportAssignmentAndFindAliasedType6_moduleA.ts === -import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); >moduleC : any > : ^^^ -import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB"); >ClassB : typeof ClassB > : ^^^^^^^^^^^^^ @@ -14,7 +14,7 @@ export var b: ClassB; // This should result in type ClassB > : ^^^^^^ === recursiveExportAssignmentAndFindAliasedType6_moduleC.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); >self : any > : ^^^ @@ -23,7 +23,7 @@ export = self; > : ^^^ === recursiveExportAssignmentAndFindAliasedType6_moduleD.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleE"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); >self : any > : ^^^ @@ -32,7 +32,7 @@ export = self; > : ^^^ === recursiveExportAssignmentAndFindAliasedType6_moduleE.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); >self : any > : ^^^ diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.errors.txt b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.errors.txt deleted file mode 100644 index d20ba11088c6d..0000000000000 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.errors.txt +++ /dev/null @@ -1,25 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== recursiveExportAssignmentAndFindAliasedType7_moduleA.ts (0 errors) ==== - import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); - import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB"); - export var b: ClassB; // This should result in type ClassB -==== recursiveExportAssignmentAndFindAliasedType7_moduleC.ts (0 errors) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); - var selfVar = self; - export = selfVar; - -==== recursiveExportAssignmentAndFindAliasedType7_moduleD.ts (0 errors) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE"); - export = self; - -==== recursiveExportAssignmentAndFindAliasedType7_moduleE.ts (0 errors) ==== - import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); - export = self; - -==== recursiveExportAssignmentAndFindAliasedType7_moduleB.ts (0 errors) ==== - class ClassB { } - export = ClassB; - \ No newline at end of file diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js index 7b4a013d7445d..c251691bc4dbf 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js @@ -1,16 +1,16 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] //// //// [recursiveExportAssignmentAndFindAliasedType7_moduleC.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); var selfVar = self; export = selfVar; //// [recursiveExportAssignmentAndFindAliasedType7_moduleD.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); export = self; //// [recursiveExportAssignmentAndFindAliasedType7_moduleE.ts] -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); export = self; //// [recursiveExportAssignmentAndFindAliasedType7_moduleB.ts] @@ -18,39 +18,32 @@ class ClassB { } export = ClassB; //// [recursiveExportAssignmentAndFindAliasedType7_moduleA.ts] -import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB"); export var b: ClassB; // This should result in type ClassB //// [recursiveExportAssignmentAndFindAliasedType7_moduleE.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleC"], function (require, exports, self) { - "use strict"; - return self; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +module.exports = self; //// [recursiveExportAssignmentAndFindAliasedType7_moduleD.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleE"], function (require, exports, self) { - "use strict"; - return self; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); +module.exports = self; //// [recursiveExportAssignmentAndFindAliasedType7_moduleC.js] -define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleD"], function (require, exports, self) { - "use strict"; - var selfVar = self; - return selfVar; -}); +"use strict"; +var self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); +var selfVar = self; +module.exports = selfVar; //// [recursiveExportAssignmentAndFindAliasedType7_moduleB.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var ClassB = /** @class */ (function () { - function ClassB() { - } - return ClassB; - }()); +"use strict"; +var ClassB = /** @class */ (function () { + function ClassB() { + } return ClassB; -}); +}()); +module.exports = ClassB; //// [recursiveExportAssignmentAndFindAliasedType7_moduleA.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.symbols b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.symbols index 6cbe4cff5e4d1..e9095b64c9f2b 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.symbols +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.symbols @@ -1,18 +1,18 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] //// === recursiveExportAssignmentAndFindAliasedType7_moduleA.ts === -import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); +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, 81)) +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, 81)) +>ClassB : Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 83)) === recursiveExportAssignmentAndFindAliasedType7_moduleC.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); >self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 0, 0)) var selfVar = self; @@ -23,14 +23,14 @@ export = selfVar; >selfVar : Symbol(selfVar, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 1, 3)) === recursiveExportAssignmentAndFindAliasedType7_moduleD.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE"); +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"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); >self : Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleE.ts, 0, 0)) export = self; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types index c7f90992e6478..bbb23bb2e04de 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types @@ -1,11 +1,11 @@ //// [tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts] //// === recursiveExportAssignmentAndFindAliasedType7_moduleA.ts === -import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); >moduleC : any > : ^^^ -import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB"); >ClassB : typeof ClassB > : ^^^^^^^^^^^^^ @@ -14,22 +14,20 @@ export var b: ClassB; // This should result in type ClassB > : ^^^^^^ === recursiveExportAssignmentAndFindAliasedType7_moduleC.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); +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"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); >self : any > : ^^^ @@ -38,7 +36,7 @@ export = self; > : ^^^ === recursiveExportAssignmentAndFindAliasedType7_moduleE.ts === -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); >self : any > : ^^^ diff --git a/tests/baselines/reference/staticInstanceResolution5.errors.txt b/tests/baselines/reference/staticInstanceResolution5.errors.txt index a68964c08e97b..d44a6f4221e75 100644 --- a/tests/baselines/reference/staticInstanceResolution5.errors.txt +++ b/tests/baselines/reference/staticInstanceResolution5.errors.txt @@ -1,12 +1,10 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== staticInstanceResolution5_1.ts (3 errors) ==== - import WinJS = require('staticInstanceResolution5_0'); + import WinJS = require('./staticInstanceResolution5_0'); // these 3 should be errors var x = (w1: WinJS) => { }; diff --git a/tests/baselines/reference/staticInstanceResolution5.js b/tests/baselines/reference/staticInstanceResolution5.js index 6b6c30a172071..dc4d27dc14640 100644 --- a/tests/baselines/reference/staticInstanceResolution5.js +++ b/tests/baselines/reference/staticInstanceResolution5.js @@ -8,7 +8,7 @@ export class Promise { } //// [staticInstanceResolution5_1.ts] -import WinJS = require('staticInstanceResolution5_0'); +import WinJS = require('./staticInstanceResolution5_0'); // these 3 should be errors var x = (w1: WinJS) => { }; @@ -17,26 +17,22 @@ function z(w3: WinJS) { } //// [staticInstanceResolution5_0.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Promise = void 0; - var Promise = /** @class */ (function () { - function Promise() { - } - Promise.timeout = function (delay) { - return null; - }; - return Promise; - }()); - exports.Promise = Promise; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Promise = void 0; +var Promise = /** @class */ (function () { + function Promise() { + } + Promise.timeout = function (delay) { + return null; + }; + return Promise; +}()); +exports.Promise = Promise; //// [staticInstanceResolution5_1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - // these 3 should be errors - var x = function (w1) { }; - var y = function (w2) { }; - function z(w3) { } -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// these 3 should be errors +var x = function (w1) { }; +var y = function (w2) { }; +function z(w3) { } diff --git a/tests/baselines/reference/staticInstanceResolution5.symbols b/tests/baselines/reference/staticInstanceResolution5.symbols index 9d178615f6a36..60e199749224e 100644 --- a/tests/baselines/reference/staticInstanceResolution5.symbols +++ b/tests/baselines/reference/staticInstanceResolution5.symbols @@ -1,7 +1,7 @@ //// [tests/cases/compiler/staticInstanceResolution5.ts] //// === staticInstanceResolution5_1.ts === -import WinJS = require('staticInstanceResolution5_0'); +import WinJS = require('./staticInstanceResolution5_0'); >WinJS : Symbol(WinJS, Decl(staticInstanceResolution5_1.ts, 0, 0)) // these 3 should be errors diff --git a/tests/baselines/reference/staticInstanceResolution5.types b/tests/baselines/reference/staticInstanceResolution5.types index b61028cde79de..e3221b6b7161a 100644 --- a/tests/baselines/reference/staticInstanceResolution5.types +++ b/tests/baselines/reference/staticInstanceResolution5.types @@ -1,7 +1,7 @@ //// [tests/cases/compiler/staticInstanceResolution5.ts] //// === staticInstanceResolution5_1.ts === -import WinJS = require('staticInstanceResolution5_0'); +import WinJS = require('./staticInstanceResolution5_0'); >WinJS : typeof WinJS > : ^^^^^^^^^^^^ diff --git a/tests/baselines/reference/topLevelAwaitErrors.11.errors.txt b/tests/baselines/reference/topLevelAwaitErrors.11.errors.txt index 635ffae5bd8f8..65be56f386a4a 100644 --- a/tests/baselines/reference/topLevelAwaitErrors.11.errors.txt +++ b/tests/baselines/reference/topLevelAwaitErrors.11.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. index.ts(3,8): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module. -!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== index.ts (1 errors) ==== // await disallowed in import= declare var require: any; diff --git a/tests/baselines/reference/topLevelAwaitErrors.11.js b/tests/baselines/reference/topLevelAwaitErrors.11.js index e21888aa30a33..c332d24bd00a9 100644 --- a/tests/baselines/reference/topLevelAwaitErrors.11.js +++ b/tests/baselines/reference/topLevelAwaitErrors.11.js @@ -11,22 +11,9 @@ export { _await as await }; //// [other.js] -System.register([], function (exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - return { - setters: [], - execute: function () { - } - }; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.await = void 0; //// [index.js] -System.register([], function (exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - return { - setters: [], - execute: function () { - } - }; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/topLevelLambda4.errors.txt b/tests/baselines/reference/topLevelLambda4.errors.txt index ca661d669da50..588cf7e94441a 100644 --- a/tests/baselines/reference/topLevelLambda4.errors.txt +++ b/tests/baselines/reference/topLevelLambda4.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. topLevelLambda4.ts(1,22): error TS2532: Object is possibly 'undefined'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== topLevelLambda4.ts (1 errors) ==== export var x = () => this.window; ~~~~ diff --git a/tests/baselines/reference/topLevelLambda4.js b/tests/baselines/reference/topLevelLambda4.js index ac6aa2a50784e..f2e291f6c1586 100644 --- a/tests/baselines/reference/topLevelLambda4.js +++ b/tests/baselines/reference/topLevelLambda4.js @@ -4,11 +4,5 @@ export var x = () => this.window; //// [topLevelLambda4.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - var _this = this; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - var x = function () { return _this.window; }; - exports.x = x; -}); +var _this = this; +export var x = function () { return _this.window; }; diff --git a/tests/baselines/reference/tsxAttributeResolution10.errors.txt b/tests/baselines/reference/tsxAttributeResolution10.errors.txt index 2c23af147a4e7..c227256176513 100644 --- a/tests/baselines/reference/tsxAttributeResolution10.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution10.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(11,14): error TS2322: Type 'string' is not assignable to type 'boolean'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== react.d.ts (0 errors) ==== declare namespace JSX { interface Element { } diff --git a/tests/baselines/reference/tsxAttributeResolution10.js b/tests/baselines/reference/tsxAttributeResolution10.js index 68085c199f88d..584d57b65dbf3 100644 --- a/tests/baselines/reference/tsxAttributeResolution10.js +++ b/tests/baselines/reference/tsxAttributeResolution10.js @@ -31,22 +31,20 @@ export class MyComponent { //// [file.jsx] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyComponent = void 0; - var MyComponent = /** @class */ (function () { - function MyComponent() { - } - MyComponent.prototype.render = function () { - }; - return MyComponent; - }()); - exports.MyComponent = MyComponent; - // Should be an error - ; - // Should be OK - ; - // Should be ok - ; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyComponent = void 0; +var MyComponent = /** @class */ (function () { + function MyComponent() { + } + MyComponent.prototype.render = function () { + }; + return MyComponent; +}()); +exports.MyComponent = MyComponent; +// Should be an error +; +// Should be OK +; +// Should be ok +; diff --git a/tests/baselines/reference/tsxAttributeResolution11.errors.txt b/tests/baselines/reference/tsxAttributeResolution11.errors.txt index 76e57ca0868bf..171002b1c1d20 100644 --- a/tests/baselines/reference/tsxAttributeResolution11.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution11.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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; }'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== react.d.ts (0 errors) ==== declare namespace JSX { interface Element { } diff --git a/tests/baselines/reference/tsxAttributeResolution14.errors.txt b/tests/baselines/reference/tsxAttributeResolution14.errors.txt index b2dd830680557..74c6800454187 100644 --- a/tests/baselines/reference/tsxAttributeResolution14.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution14.errors.txt @@ -1,9 +1,7 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== react.d.ts (0 errors) ==== declare namespace JSX { interface Element { } diff --git a/tests/baselines/reference/tsxAttributeResolution9.errors.txt b/tests/baselines/reference/tsxAttributeResolution9.errors.txt index 60cf213c31ea7..df785bce64ea4 100644 --- a/tests/baselines/reference/tsxAttributeResolution9.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution9.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(9,14): error TS2322: Type 'number' is not assignable to type 'string'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== react.d.ts (0 errors) ==== declare namespace JSX { interface Element { } diff --git a/tests/baselines/reference/tsxAttributeResolution9.js b/tests/baselines/reference/tsxAttributeResolution9.js index 09a71abb9ec68..7430199b44075 100644 --- a/tests/baselines/reference/tsxAttributeResolution9.js +++ b/tests/baselines/reference/tsxAttributeResolution9.js @@ -27,18 +27,16 @@ export class MyComponent { //// [file.jsx] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyComponent = void 0; - var MyComponent = /** @class */ (function () { - function MyComponent() { - } - MyComponent.prototype.render = function () { - }; - return MyComponent; - }()); - exports.MyComponent = MyComponent; - ; // ok - ; // should be an error -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyComponent = void 0; +var MyComponent = /** @class */ (function () { + function MyComponent() { + } + MyComponent.prototype.render = function () { + }; + return MyComponent; +}()); +exports.MyComponent = MyComponent; +; // ok +; // should be an error diff --git a/tests/baselines/reference/tsxElementResolution19.errors.txt b/tests/baselines/reference/tsxElementResolution19.errors.txt deleted file mode 100644 index 9a0a58b8a80b1..0000000000000 --- a/tests/baselines/reference/tsxElementResolution19.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== react.d.ts (0 errors) ==== - declare module "react" { - - } - -==== file1.tsx (0 errors) ==== - declare namespace JSX { - interface Element { } - } - export class MyClass { } - -==== file2.tsx (0 errors) ==== - // Should not elide React import - import * as React from 'react'; - import {MyClass} from './file1'; - - ; - \ No newline at end of file diff --git a/tests/baselines/reference/tsxElementResolution19.js b/tests/baselines/reference/tsxElementResolution19.js index 8690026384338..68ad010786870 100644 --- a/tests/baselines/reference/tsxElementResolution19.js +++ b/tests/baselines/reference/tsxElementResolution19.js @@ -20,18 +20,17 @@ import {MyClass} from './file1'; //// [file1.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; - var MyClass = /** @class */ (function () { - function MyClass() { - } - return MyClass; - }()); - exports.MyClass = MyClass; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +var MyClass = /** @class */ (function () { + function MyClass() { + } + return 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); @@ -65,9 +64,8 @@ var __importStar = (this && this.__importStar) || (function () { return result; }; })(); -define(["require", "exports", "react", "./file1"], function (require, exports, React, file1_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - React = __importStar(React); - React.createElement(file1_1.MyClass, null); -}); +Object.defineProperty(exports, "__esModule", { value: true }); +// Should not elide React import +var React = __importStar(require("react")); +var file1_1 = require("./file1"); +React.createElement(file1_1.MyClass, null); diff --git a/tests/baselines/reference/tsxElementResolution19.types b/tests/baselines/reference/tsxElementResolution19.types index a6f14101447cf..475d369b2816f 100644 --- a/tests/baselines/reference/tsxElementResolution19.types +++ b/tests/baselines/reference/tsxElementResolution19.types @@ -26,8 +26,7 @@ import {MyClass} from './file1'; > : ^^^^^^^^^^^^^^ ; -> : any -> : ^^^ +> : error >MyClass : typeof MyClass > : ^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.errors.txt b/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.errors.txt index 16c519577b5e7..5826a14fcd667 100644 --- a/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.errors.txt +++ b/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.errors.txt @@ -1,11 +1,9 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (2 errors) ==== import React = require('react'); diff --git a/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.js b/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.js index 5599f10e07502..575c0bc7229e3 100644 --- a/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.js +++ b/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.js @@ -13,14 +13,13 @@ const foo = ; const G = ; //// [file.jsx] -define(["require", "exports", "react"], function (require, exports, React) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var Foo = function (props) { return undefined; }; - function Greet(x) { - return undefined; - } - // Error - var foo = ; - var G = ; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var React = require("react"); +var Foo = function (props) { return undefined; }; +function Greet(x) { + return undefined; +} +// Error +var foo = ; +var G = ; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt index e11e937392180..725ef6fb2b2bb 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -79,7 +78,6 @@ file.tsx(36,13): error TS2769: No overload matches this call. Type 'string' is not assignable to type 'boolean'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (11 errors) ==== import React = require('react') declare function OneThing(): JSX.Element; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.js b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.js index 76ce01ae5d8dc..eb9ddba05c53e 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.js +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.js @@ -40,29 +40,28 @@ const e4 = Hi //// [file.jsx] -define(["require", "exports", "react"], function (require, exports, React) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var obj = { - yy: 10, - yy1: "hello" - }; - var obj2; - // Error - var c0 = ; // extra property; - var c1 = ; // missing property; - var c2 = ; // type incompatible; - var c3 = ; // This is OK because all attribute are spread - var c4 = ; // extra property; - var c5 = ; // type incompatible; - var c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not - var c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not - // Error - var d1 = ; - var d2 = ; - // Error - var e1 = ; - var e2 = ; - var e3 = ; - var e4 = Hi; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var React = require("react"); +var obj = { + yy: 10, + yy1: "hello" +}; +var obj2; +// Error +var c0 = ; // extra property; +var c1 = ; // missing property; +var c2 = ; // type incompatible; +var c3 = ; // This is OK because all attribute are spread +var c4 = ; // extra property; +var c5 = ; // type incompatible; +var c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +var c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not +// Error +var d1 = ; +var d2 = ; +// Error +var e1 = ; +var e2 = ; +var e3 = ; +var e4 = Hi; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt index 6f6db890b92c8..cf6aab23da1ff 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. file.tsx(48,13): error TS2769: No overload matches this call. Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -34,7 +33,6 @@ file.tsx(56,13): error TS2769: No overload matches this call. Type 'boolean' is not assignable to type 'string'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (4 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.js b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.js index 7302e01113669..3d71699df61c6 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.js +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.js @@ -59,36 +59,35 @@ const b7 = ; const b8 = ; // incorrect type for specified hyphanated name //// [file.jsx] -define(["require", "exports", "react"], function (require, exports, React) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MainButton = MainButton; - var obj0 = { - to: "world" - }; - var obj1 = { - children: "hi", - to: "boo" - }; - var obj2 = { - onClick: function () { } - }; - var obj3; - function MainButton(props) { - var linkProps = props; - if (linkProps.to) { - return this._buildMainLink(props); - } - return this._buildMainButton(props); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MainButton = MainButton; +var React = require("react"); +var obj0 = { + to: "world" +}; +var obj1 = { + children: "hi", + to: "boo" +}; +var obj2 = { + onClick: function () { } +}; +var obj3; +function MainButton(props) { + var linkProps = props; + if (linkProps.to) { + return this._buildMainLink(props); } - // Error - var b0 = GO; // extra property; - var b1 = Hello world; // extra property; - var b2 = ; // extra property - var b3 = ; // extra property - var b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed - var b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes - var b6 = ; // incorrect type for optional attribute - var b7 = ; // incorrect type for optional attribute - var b8 = ; // incorrect type for specified hyphanated name -}); + return this._buildMainButton(props); +} +// Error +var b0 = GO; // extra property; +var b1 = Hello world; // extra property; +var b2 = ; // extra property +var b3 = ; // extra property +var b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed +var b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes +var b6 = ; // incorrect type for optional attribute +var b7 = ; // incorrect type for optional attribute +var b8 = ; // incorrect type for specified hyphanated name diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.errors.txt deleted file mode 100644 index 8b885b3e56eff..0000000000000 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.errors.txt +++ /dev/null @@ -1,62 +0,0 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - - -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== file.tsx (0 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 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 = - - - \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js index 710269fca023d..a6c1613a60863 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js @@ -60,37 +60,36 @@ const b12 = //// [file.jsx] -define(["require", "exports", "react"], function (require, exports, React) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MainButton = MainButton; - var obj = { - children: "hi", - to: "boo" - }; - var obj1; - var obj2 = { - onClick: function () { } - }; - function MainButton(props) { - var linkProps = props; - if (linkProps.to) { - return this._buildMainLink(props); - } - return this._buildMainButton(props); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MainButton = MainButton; +var React = require("react"); +var obj = { + children: "hi", + to: "boo" +}; +var obj1; +var obj2 = { + onClick: function () { } +}; +function MainButton(props) { + var linkProps = props; + if (linkProps.to) { + return this._buildMainLink(props); } - // OK - var b0 = GO; - var b1 = Hello world; - var b2 = ; - var b3 = ; - var b4 = ; // any; just pick the first overload - var b5 = ; // should pick the second overload - var b6 = ; - var b7 = ; - var b8 = ; // OK; method declaration get retained (See GitHub #13365) - var b9 = GO; - var b10 = ; - var b11 = Hello world; - var b12 = ; -}); + return this._buildMainButton(props); +} +// OK +var b0 = GO; +var b1 = Hello world; +var b2 = ; +var b3 = ; +var b4 = ; // any; just pick the first overload +var b5 = ; // should pick the second overload +var b6 = ; +var b7 = ; +var b8 = ; // OK; method declaration get retained (See GitHub #13365) +var b9 = GO; +var b10 = ; +var b11 = Hello world; +var b12 = ; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types index eb6a213669700..9bad96ee1daee 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types @@ -55,7 +55,6 @@ let obj = { } let obj1: any; >obj1 : any -> : ^^^ let obj2 = { >obj2 : { onClick: () => void; } @@ -120,9 +119,7 @@ export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.El return this._buildMainLink(props); >this._buildMainLink(props) : any -> : ^^^ >this._buildMainLink : any -> : ^^^ >this : any > : ^^^ >_buildMainLink : any @@ -133,9 +130,7 @@ export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.El return this._buildMainButton(props); >this._buildMainButton(props) : any -> : ^^^ >this._buildMainButton : any -> : ^^^ >this : any > : ^^^ >_buildMainButton : any @@ -207,7 +202,6 @@ const b4 = ; // any; just pick the first overload >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 @@ -217,7 +211,6 @@ const b5 = ; // should pick the seco >MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } > : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ >obj1 : any -> : ^^^ >to : string > : ^^^^^^ diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt index bd3fc087a3a54..fdd4fa153df6f 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt @@ -1,4 +1,3 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -18,7 +17,6 @@ file.tsx(10,15): error TS2769: No overload matches this call. Property 'a' is missing in type '{ b: number; } & { "ignore-prop": true; }' but required in type '{ b: unknown; a: unknown; }'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== file.tsx (2 errors) ==== import React = require('react') diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.js b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.js index e008e91ddc043..9354b3dad1cfb 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.js +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.js @@ -14,12 +14,11 @@ function Baz(arg1: T, a } //// [file.jsx] -define(["require", "exports", "react"], function (require, exports, React) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - // Error - function Baz(arg1, arg2) { - var a0 = ; - var a2 = ; // missing a - } -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var React = require("react"); +// Error +function Baz(arg1, arg2) { + var a0 = ; + var a2 = ; // missing a +} diff --git a/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt b/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt index 426b92efe6408..fea09b9ba2ca4 100644 --- a/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt +++ b/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt @@ -1,8 +1,6 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. typeAliasDeclarationEmit.ts(3,37): error TS2314: Generic type 'callback' requires 1 type argument(s). -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== typeAliasDeclarationEmit.ts (1 errors) ==== export type callback = () => T; diff --git a/tests/baselines/reference/typeAliasDeclarationEmit.js b/tests/baselines/reference/typeAliasDeclarationEmit.js index 5cdb7e0aa9378..8413241fabb1f 100644 --- a/tests/baselines/reference/typeAliasDeclarationEmit.js +++ b/tests/baselines/reference/typeAliasDeclarationEmit.js @@ -6,10 +6,8 @@ export type callback = () => T; export type CallbackArray = () => T; //// [typeAliasDeclarationEmit.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); //// [typeAliasDeclarationEmit.d.ts] diff --git a/tests/baselines/reference/typeUsedAsValueError2.errors.txt b/tests/baselines/reference/typeUsedAsValueError2.errors.txt index 1cd675fc0e407..76f4d379dbc94 100644 --- a/tests/baselines/reference/typeUsedAsValueError2.errors.txt +++ b/tests/baselines/reference/typeUsedAsValueError2.errors.txt @@ -1,12 +1,10 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== world.ts (2 errors) ==== - import HelloInterface = require("helloInterface"); - import HelloNamespace = require("helloNamespace"); + import HelloInterface = require("./helloInterface"); + import HelloNamespace = require("./helloNamespace"); HelloInterface.world; ~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/typeUsedAsValueError2.js b/tests/baselines/reference/typeUsedAsValueError2.js index d7b083e1b6c96..4e69754c6ee4e 100644 --- a/tests/baselines/reference/typeUsedAsValueError2.js +++ b/tests/baselines/reference/typeUsedAsValueError2.js @@ -15,26 +15,20 @@ namespace HelloNamespace { export = HelloNamespace; //// [world.ts] -import HelloInterface = require("helloInterface"); -import HelloNamespace = require("helloNamespace"); +import HelloInterface = require("./helloInterface"); +import HelloNamespace = require("./helloNamespace"); HelloInterface.world; HelloNamespace.world; //// [helloInterface.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); //// [helloNamespace.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); //// [world.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - HelloInterface.world; - HelloNamespace.world; -}); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +HelloInterface.world; +HelloNamespace.world; diff --git a/tests/baselines/reference/typeUsedAsValueError2.symbols b/tests/baselines/reference/typeUsedAsValueError2.symbols index d4f9237cfbec5..2675ab57abf64 100644 --- a/tests/baselines/reference/typeUsedAsValueError2.symbols +++ b/tests/baselines/reference/typeUsedAsValueError2.symbols @@ -1,11 +1,11 @@ //// [tests/cases/compiler/typeUsedAsValueError2.ts] //// === world.ts === -import HelloInterface = require("helloInterface"); +import HelloInterface = require("./helloInterface"); >HelloInterface : Symbol(HelloInterface, Decl(world.ts, 0, 0)) -import HelloNamespace = require("helloNamespace"); ->HelloNamespace : Symbol(HelloNamespace, Decl(world.ts, 0, 50)) +import HelloNamespace = require("./helloNamespace"); +>HelloNamespace : Symbol(HelloNamespace, Decl(world.ts, 0, 52)) HelloInterface.world; HelloNamespace.world; diff --git a/tests/baselines/reference/typeUsedAsValueError2.types b/tests/baselines/reference/typeUsedAsValueError2.types index f0860e66efe17..5a20c8b8c3208 100644 --- a/tests/baselines/reference/typeUsedAsValueError2.types +++ b/tests/baselines/reference/typeUsedAsValueError2.types @@ -1,11 +1,11 @@ //// [tests/cases/compiler/typeUsedAsValueError2.ts] //// === world.ts === -import HelloInterface = require("helloInterface"); +import HelloInterface = require("./helloInterface"); >HelloInterface : any > : ^^^ -import HelloNamespace = require("helloNamespace"); +import HelloNamespace = require("./helloNamespace"); >HelloNamespace : any > : ^^^ diff --git a/tests/baselines/reference/undeclaredModuleError.errors.txt b/tests/baselines/reference/undeclaredModuleError.errors.txt index 179e3672eb6f0..296075556541c 100644 --- a/tests/baselines/reference/undeclaredModuleError.errors.txt +++ b/tests/baselines/reference/undeclaredModuleError.errors.txt @@ -1,15 +1,13 @@ -error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -undeclaredModuleError.ts(1,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +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'. -!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== undeclaredModuleError.ts (3 errors) ==== import fs = require('fs'); ~~~~ -!!! error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! 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[]) {} diff --git a/tests/baselines/reference/undeclaredModuleError.js b/tests/baselines/reference/undeclaredModuleError.js index 13ac6a20bfdae..2c57e85fa8dcf 100644 --- a/tests/baselines/reference/undeclaredModuleError.js +++ b/tests/baselines/reference/undeclaredModuleError.js @@ -18,24 +18,23 @@ function instrumentFile(covFileDir: string, covFileName: string, originalFilePat } //// [undeclaredModuleError.js] -define(["require", "exports", "fs"], function (require, exports, fs) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - function readdir(path, accept, callback) { } - function join() { - var paths = []; - for (var _i = 0; _i < arguments.length; _i++) { - paths[_i] = arguments[_i]; - } +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var fs = require("fs"); +function readdir(path, accept, callback) { } +function join() { + var paths = []; + for (var _i = 0; _i < arguments.length; _i++) { + paths[_i] = arguments[_i]; } - function instrumentFile(covFileDir, covFileName, originalFilePath) { - fs.readFile(originalFilePath, function () { - readdir(covFileDir, function () { - }, function (error, files) { - files.forEach(function (file) { - var fullPath = join(IDoNotExist); - }); +} +function instrumentFile(covFileDir, covFileName, originalFilePath) { + fs.readFile(originalFilePath, function () { + readdir(covFileDir, function () { + }, function (error, files) { + files.forEach(function (file) { + var fullPath = join(IDoNotExist); }); }); - } -}); + }); +} diff --git a/tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts b/tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts index 9c562917cdb07..853ae67b2439c 100644 --- a/tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts +++ b/tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs class D { } export = D; diff --git a/tests/cases/compiler/augmentExportEquals1.ts b/tests/cases/compiler/augmentExportEquals1.ts index 4479fd063b962..d814bfdcc71b2 100644 --- a/tests/cases/compiler/augmentExportEquals1.ts +++ b/tests/cases/compiler/augmentExportEquals1.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @filename: file1.ts var x = 1; export = x; diff --git a/tests/cases/compiler/augmentExportEquals2.ts b/tests/cases/compiler/augmentExportEquals2.ts index 1d4c1fae35c61..b037249645ac9 100644 --- a/tests/cases/compiler/augmentExportEquals2.ts +++ b/tests/cases/compiler/augmentExportEquals2.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @filename: file1.ts function foo() {} diff --git a/tests/cases/compiler/augmentExportEquals3.ts b/tests/cases/compiler/augmentExportEquals3.ts index 81a0e1d5448f2..e8585aba26d56 100644 --- a/tests/cases/compiler/augmentExportEquals3.ts +++ b/tests/cases/compiler/augmentExportEquals3.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @filename: file1.ts function foo() {} diff --git a/tests/cases/compiler/augmentExportEquals4.ts b/tests/cases/compiler/augmentExportEquals4.ts index 85294682f5cc8..5e0f28ce963ed 100644 --- a/tests/cases/compiler/augmentExportEquals4.ts +++ b/tests/cases/compiler/augmentExportEquals4.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @filename: file1.ts class foo {} diff --git a/tests/cases/compiler/augmentExportEquals5.ts b/tests/cases/compiler/augmentExportEquals5.ts index 4e3e7a5a2f4f8..0b60538a7d6f6 100644 --- a/tests/cases/compiler/augmentExportEquals5.ts +++ b/tests/cases/compiler/augmentExportEquals5.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @filename: express.d.ts diff --git a/tests/cases/compiler/augmentExportEquals6.ts b/tests/cases/compiler/augmentExportEquals6.ts index a0dd50c53f0fd..4b10586779a64 100644 --- a/tests/cases/compiler/augmentExportEquals6.ts +++ b/tests/cases/compiler/augmentExportEquals6.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @filename: file1.ts class foo {} diff --git a/tests/cases/compiler/badExternalModuleReference.ts b/tests/cases/compiler/badExternalModuleReference.ts index 9b1d367e528ef..2cb7f89468c59 100644 --- a/tests/cases/compiler/badExternalModuleReference.ts +++ b/tests/cases/compiler/badExternalModuleReference.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs import a1 = require("garbage"); export declare var a: { test1: a1.connectModule; diff --git a/tests/cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts b/tests/cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts index 48c68770620f7..3590ab47a4031 100644 --- a/tests/cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts +++ b/tests/cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts @@ -1,5 +1,5 @@ -// @target: ES5 -// @module: amd +// @target: esnext +// @module: commonjs if (true) { function foo() { } foo(); // ok diff --git a/tests/cases/compiler/collisionExportsRequireAndAlias.ts b/tests/cases/compiler/collisionExportsRequireAndAlias.ts index b79da28f66bc3..ccb4a6f63143e 100644 --- a/tests/cases/compiler/collisionExportsRequireAndAlias.ts +++ b/tests/cases/compiler/collisionExportsRequireAndAlias.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs // @Filename: collisionExportsRequireAndAlias_file1.ts export function bar() { } @@ -7,8 +7,8 @@ export function bar() { export function bar2() { } // @Filename: collisionExportsRequireAndAlias_file2.ts -import require = require('collisionExportsRequireAndAlias_file1'); // Error -import exports = require('collisionExportsRequireAndAlias_file3333'); // Error +import require = require('./collisionExportsRequireAndAlias_file1'); // Error +import exports = require('./collisionExportsRequireAndAlias_file3333'); // Error export function foo() { require.bar(); } diff --git a/tests/cases/compiler/collisionExportsRequireAndAmbientClass.ts b/tests/cases/compiler/collisionExportsRequireAndAmbientClass.ts index ad703c2fddc0e..1e37befb2d7f6 100644 --- a/tests/cases/compiler/collisionExportsRequireAndAmbientClass.ts +++ b/tests/cases/compiler/collisionExportsRequireAndAmbientClass.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs //@filename: collisionExportsRequireAndAmbientClass_externalmodule.ts export declare class require { } diff --git a/tests/cases/compiler/collisionExportsRequireAndAmbientEnum.ts b/tests/cases/compiler/collisionExportsRequireAndAmbientEnum.ts index c303a099b16ec..e12815db674aa 100644 --- a/tests/cases/compiler/collisionExportsRequireAndAmbientEnum.ts +++ b/tests/cases/compiler/collisionExportsRequireAndAmbientEnum.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs //@filename: collisionExportsRequireAndAmbientEnum_externalmodule.ts export declare enum require { _thisVal1, diff --git a/tests/cases/compiler/collisionExportsRequireAndAmbientFunction.ts b/tests/cases/compiler/collisionExportsRequireAndAmbientFunction.ts index 5b54298b5879d..d10f67512a137 100644 --- a/tests/cases/compiler/collisionExportsRequireAndAmbientFunction.ts +++ b/tests/cases/compiler/collisionExportsRequireAndAmbientFunction.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs export declare function exports(): number; export declare function require(): string[]; diff --git a/tests/cases/compiler/collisionExportsRequireAndAmbientModule.ts b/tests/cases/compiler/collisionExportsRequireAndAmbientModule.ts index cc37a4cf670e0..41367e3bda5b6 100644 --- a/tests/cases/compiler/collisionExportsRequireAndAmbientModule.ts +++ b/tests/cases/compiler/collisionExportsRequireAndAmbientModule.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs //@filename: collisionExportsRequireAndAmbientModule_externalmodule.ts export declare namespace require { export interface I { diff --git a/tests/cases/compiler/collisionExportsRequireAndAmbientVar.ts b/tests/cases/compiler/collisionExportsRequireAndAmbientVar.ts index 25c98898c7277..4078d2497237d 100644 --- a/tests/cases/compiler/collisionExportsRequireAndAmbientVar.ts +++ b/tests/cases/compiler/collisionExportsRequireAndAmbientVar.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs //@filename: collisionExportsRequireAndAmbientVar_externalmodule.ts export declare var exports: number; export declare var require: string; diff --git a/tests/cases/compiler/commentOnImportStatement1.ts b/tests/cases/compiler/commentOnImportStatement1.ts index 597509075b337..ab918149621e5 100644 --- a/tests/cases/compiler/commentOnImportStatement1.ts +++ b/tests/cases/compiler/commentOnImportStatement1.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @removeComments: false /* Copyright */ diff --git a/tests/cases/compiler/commonSourceDir5.ts b/tests/cases/compiler/commonSourceDir5.ts index d21fa6ece08d6..02e7a00e2643d 100644 --- a/tests/cases/compiler/commonSourceDir5.ts +++ b/tests/cases/compiler/commonSourceDir5.ts @@ -1,5 +1,5 @@ // @outFile: concat.js -// @module: amd +// @module: esnext // @moduleResolution: bundler // @Filename: A:/bar.ts import {z} from "./foo"; diff --git a/tests/cases/compiler/constDeclarations-access5.ts b/tests/cases/compiler/constDeclarations-access5.ts index 1590d9289ef71..769e72c266a76 100644 --- a/tests/cases/compiler/constDeclarations-access5.ts +++ b/tests/cases/compiler/constDeclarations-access5.ts @@ -1,5 +1,5 @@ // @target: ES6 -// @module: amd +// @module: commonjs // @Filename: constDeclarations_access_1.ts @@ -7,7 +7,7 @@ export const x = 0; // @Filename: constDeclarations_access_2.ts /// -import m = require('constDeclarations_access_1'); +import m = require('./constDeclarations_access_1'); // Errors m.x = 1; m.x += 2; diff --git a/tests/cases/compiler/copyrightWithNewLine1.ts b/tests/cases/compiler/copyrightWithNewLine1.ts index e64242c4b6f42..60a52f0b71101 100644 --- a/tests/cases/compiler/copyrightWithNewLine1.ts +++ b/tests/cases/compiler/copyrightWithNewLine1.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs /***************************** * (c) Copyright - Important ****************************/ diff --git a/tests/cases/compiler/copyrightWithoutNewLine1.ts b/tests/cases/compiler/copyrightWithoutNewLine1.ts index 6cd2c398b8a3f..a7e794b545d09 100644 --- a/tests/cases/compiler/copyrightWithoutNewLine1.ts +++ b/tests/cases/compiler/copyrightWithoutNewLine1.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs /***************************** * (c) Copyright - Important ****************************/ diff --git a/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts b/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts index 80c0f8da3c45d..a2062ef6bda75 100644 --- a/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts +++ b/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: esnext var nake; function doCompile(fileset: P0, moduleType: P1) { diff --git a/tests/cases/compiler/duplicateLocalVariable2.ts b/tests/cases/compiler/duplicateLocalVariable2.ts index 63c387e97d644..5c08541773af5 100644 --- a/tests/cases/compiler/duplicateLocalVariable2.ts +++ b/tests/cases/compiler/duplicateLocalVariable2.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: esnext export class TestCase { constructor (public name: string, public test: ()=>boolean, public errorMessageRegEx?: string) { } diff --git a/tests/cases/compiler/duplicateSymbolsExportMatching.ts b/tests/cases/compiler/duplicateSymbolsExportMatching.ts index 1fbd5e2aea00e..4d2eeaa9d0e62 100644 --- a/tests/cases/compiler/duplicateSymbolsExportMatching.ts +++ b/tests/cases/compiler/duplicateSymbolsExportMatching.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs namespace M { export interface E { } interface I { } diff --git a/tests/cases/compiler/es5ModuleInternalNamedImports.ts b/tests/cases/compiler/es5ModuleInternalNamedImports.ts index b527ec23c20a8..25d231247bfda 100644 --- a/tests/cases/compiler/es5ModuleInternalNamedImports.ts +++ b/tests/cases/compiler/es5ModuleInternalNamedImports.ts @@ -1,5 +1,5 @@ // @target: ES5 -// @module: AMD +// @module: commonjs export namespace M { // variable diff --git a/tests/cases/compiler/es6ExportAssignment2.ts b/tests/cases/compiler/es6ExportAssignment2.ts index b07427209f9f0..0b06ddbdde103 100644 --- a/tests/cases/compiler/es6ExportAssignment2.ts +++ b/tests/cases/compiler/es6ExportAssignment2.ts @@ -5,4 +5,4 @@ var a = 10; export = a; // Error: export = not allowed in ES6 // @filename: b.ts -import * as a from "a"; +import * as a from "./a"; diff --git a/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifier.ts b/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifier.ts index 07cae1c7da7f2..a88257901af15 100644 --- a/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifier.ts +++ b/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifier.ts @@ -14,8 +14,8 @@ export namespace uninstantiated { } // @filename: 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"; \ No newline at end of file +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"; \ No newline at end of file diff --git a/tests/cases/compiler/es6ImportDefaultBinding.ts b/tests/cases/compiler/es6ImportDefaultBinding.ts index 2e68248d9ede5..53d040f665953 100644 --- a/tests/cases/compiler/es6ImportDefaultBinding.ts +++ b/tests/cases/compiler/es6ImportDefaultBinding.ts @@ -7,6 +7,6 @@ var a = 10; export default a; // @filename: 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 diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.ts index 81f8c15320b94..fa262dfffd732 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.ts @@ -6,15 +6,15 @@ var a = 10; export default a; // @filename: 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; diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts index 341a7c6c89676..62d7977f3fe90 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @declaration: true // @target: ES5 @@ -9,15 +9,15 @@ export var m = a; export default {}; // @filename: client.ts -export import defaultBinding1, { } from "server"; -export import defaultBinding2, { a } from "server"; +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 import defaultBinding3, { a as b } from "./server"; export var x1: number = b; -export import defaultBinding4, { x, a as y } from "server"; +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 import defaultBinding5, { x as z, } from "./server"; export var x1: number = z; -export import defaultBinding6, { m, } from "server"; +export import defaultBinding6, { m, } from "./server"; export var x1: number = m; diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.ts index e0f9d953afe62..c3bbf20eaa229 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.ts @@ -6,5 +6,5 @@ export var a = 10; // @filename: es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts -import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; var x: number = nameSpaceBinding.a; \ No newline at end of file diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.ts index dc75c522e9c27..112d81573e59b 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.ts @@ -6,5 +6,5 @@ var a = 10; export default a; // @filename: es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts -import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; var x: number = defaultBinding; \ No newline at end of file diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts index e9f8c9e5a14e3..731843ca48b6e 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts @@ -7,5 +7,5 @@ var a = 10; export default a; // @filename: client.ts -export import defaultBinding, * as nameSpaceBinding from "server"; +export import defaultBinding, * as nameSpaceBinding from "./server"; export var x: number = defaultBinding; \ No newline at end of file diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts index 80038a40ba27b..8f8f1fe977093 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts @@ -7,5 +7,5 @@ class a { } export default a; // @filename: client.ts -import defaultBinding, * as nameSpaceBinding from "server"; +import defaultBinding, * as nameSpaceBinding from "./server"; export var x = new defaultBinding(); \ No newline at end of file diff --git a/tests/cases/compiler/es6ImportDefaultBindingWithExport.ts b/tests/cases/compiler/es6ImportDefaultBindingWithExport.ts index 5bc98d15de94c..016f7c670d56c 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingWithExport.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingWithExport.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @declaration: true // @target: ES5 @@ -7,6 +7,6 @@ var a = 10; export default a; // @filename: client.ts -export import defaultBinding from "server"; +export import defaultBinding from "./server"; export var x = defaultBinding; -export import defaultBinding2 from "server"; // non referenced \ No newline at end of file +export import defaultBinding2 from "./server"; // non referenced \ No newline at end of file diff --git a/tests/cases/compiler/es6ImportEqualsDeclaration.ts b/tests/cases/compiler/es6ImportEqualsDeclaration.ts index 7df85a31d75cd..a777e39788f70 100644 --- a/tests/cases/compiler/es6ImportEqualsDeclaration.ts +++ b/tests/cases/compiler/es6ImportEqualsDeclaration.ts @@ -5,4 +5,4 @@ var a = 10; export = a; // @filename: client.ts -import a = require("server"); \ No newline at end of file +import a = require("./server"); \ No newline at end of file diff --git a/tests/cases/compiler/es6ImportNamedImportParsingError.ts b/tests/cases/compiler/es6ImportNamedImportParsingError.ts index 26bd9b6915376..932cfd926efc9 100644 --- a/tests/cases/compiler/es6ImportNamedImportParsingError.ts +++ b/tests/cases/compiler/es6ImportNamedImportParsingError.ts @@ -6,7 +6,7 @@ export var x = a; export var m = a; // @filename: es6ImportNamedImportParsingError_1.ts -import { * } from "es6ImportNamedImportParsingError_0"; -import defaultBinding, from "es6ImportNamedImportParsingError_0"; -import , { a } from "es6ImportNamedImportParsingError_0"; -import { a }, from "es6ImportNamedImportParsingError_0"; \ No newline at end of file +import { * } from "./es6ImportNamedImportParsingError_0"; +import defaultBinding, from "./es6ImportNamedImportParsingError_0"; +import , { a } from "./es6ImportNamedImportParsingError_0"; +import { a }, from "./es6ImportNamedImportParsingError_0"; \ No newline at end of file diff --git a/tests/cases/compiler/exportDeclareClass1.ts b/tests/cases/compiler/exportDeclareClass1.ts index c3acc5447b8ea..9230eda30aaed 100644 --- a/tests/cases/compiler/exportDeclareClass1.ts +++ b/tests/cases/compiler/exportDeclareClass1.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs export declare class eaC { static tF() { }; static tsF(param:any) { }; diff --git a/tests/cases/compiler/exportDefaultAsyncFunction2.ts b/tests/cases/compiler/exportDefaultAsyncFunction2.ts index 2d2ee4ef345e7..e96f091baa2dd 100644 --- a/tests/cases/compiler/exportDefaultAsyncFunction2.ts +++ b/tests/cases/compiler/exportDefaultAsyncFunction2.ts @@ -5,23 +5,23 @@ export function async(...args: any[]): any { } export function await(...args: any[]): any { } // @filename: a.ts -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async(() => await(Promise.resolve(1))); // @filename: b.ts export default async () => { return 0; }; // @filename: c.ts -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async(); // @filename: d.ts -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async; // @filename: e.ts -import { async, await } from 'asyncawait'; +import { async, await } from './asyncawait'; export default async diff --git a/tests/cases/compiler/exportEqualErrorType.ts b/tests/cases/compiler/exportEqualErrorType.ts index d5195c411ac6d..5adaffcbaee4d 100644 --- a/tests/cases/compiler/exportEqualErrorType.ts +++ b/tests/cases/compiler/exportEqualErrorType.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs // @Filename: exportEqualErrorType_0.ts namespace server { export interface connectModule { @@ -16,5 +16,5 @@ export = server; // @Filename: exportEqualErrorType_1.ts /// -import connect = require('exportEqualErrorType_0'); +import connect = require('./exportEqualErrorType_0'); connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''. diff --git a/tests/cases/compiler/exportSameNameFuncVar.ts b/tests/cases/compiler/exportSameNameFuncVar.ts index f026da43aa0e3..33140bf874ef1 100644 --- a/tests/cases/compiler/exportSameNameFuncVar.ts +++ b/tests/cases/compiler/exportSameNameFuncVar.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs export var a = 10; export function a() { } \ No newline at end of file diff --git a/tests/cases/compiler/exportedBlockScopedDeclarations.ts b/tests/cases/compiler/exportedBlockScopedDeclarations.ts index f7a0216e8bee5..54f43adfe75bf 100644 --- a/tests/cases/compiler/exportedBlockScopedDeclarations.ts +++ b/tests/cases/compiler/exportedBlockScopedDeclarations.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: esnext const foo = foo; // compile error export const bar = bar; // should be compile error function f() { diff --git a/tests/cases/compiler/fieldAndGetterWithSameName.ts b/tests/cases/compiler/fieldAndGetterWithSameName.ts index 598f34c436ed4..c488187ec76b0 100644 --- a/tests/cases/compiler/fieldAndGetterWithSameName.ts +++ b/tests/cases/compiler/fieldAndGetterWithSameName.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs export class C { x: number; get x(): number { return 1; } diff --git a/tests/cases/compiler/genericMemberFunction.ts b/tests/cases/compiler/genericMemberFunction.ts index 97c65c0d9d3df..f05c2928ea119 100644 --- a/tests/cases/compiler/genericMemberFunction.ts +++ b/tests/cases/compiler/genericMemberFunction.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: esnext export class BuildError{ public parent(): FileWithErrors { return undefined; diff --git a/tests/cases/compiler/genericReturnTypeFromGetter1.ts b/tests/cases/compiler/genericReturnTypeFromGetter1.ts index b1c869e6852d4..547ccbf3e8a0d 100644 --- a/tests/cases/compiler/genericReturnTypeFromGetter1.ts +++ b/tests/cases/compiler/genericReturnTypeFromGetter1.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs export interface A { new (dbSet: DbSet): T; } diff --git a/tests/cases/compiler/giant.ts b/tests/cases/compiler/giant.ts index f88c914ca8114..a7087654ec0d0 100644 --- a/tests/cases/compiler/giant.ts +++ b/tests/cases/compiler/giant.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs // @declaration: true /* diff --git a/tests/cases/compiler/importDeclWithClassModifiers.ts b/tests/cases/compiler/importDeclWithClassModifiers.ts index 2a5f92d5a30a8..da35704f3577b 100644 --- a/tests/cases/compiler/importDeclWithClassModifiers.ts +++ b/tests/cases/compiler/importDeclWithClassModifiers.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs namespace x { interface c { } diff --git a/tests/cases/compiler/interfaceDeclaration3.ts b/tests/cases/compiler/interfaceDeclaration3.ts index 6dd9e787e3e20..4fd57c9405f98 100644 --- a/tests/cases/compiler/interfaceDeclaration3.ts +++ b/tests/cases/compiler/interfaceDeclaration3.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs interface I1 { item:number; } namespace M1 { diff --git a/tests/cases/compiler/interfaceImplementation6.ts b/tests/cases/compiler/interfaceImplementation6.ts index 5d8bfdb329aea..1b36ab08b4144 100644 --- a/tests/cases/compiler/interfaceImplementation6.ts +++ b/tests/cases/compiler/interfaceImplementation6.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs interface I1 { item:number; } diff --git a/tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts b/tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts index fb1764a7ca241..48d34ff1e68dc 100644 --- a/tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts +++ b/tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs export namespace a { export interface I { } diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts index 39b5a8ec24654..6a091f2208b84 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs export namespace a { export namespace b { export interface I { diff --git a/tests/cases/compiler/moduleAugmentationGlobal8.ts b/tests/cases/compiler/moduleAugmentationGlobal8.ts index e28b07d6bfd7a..5c00c49a8bf46 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal8.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal8.ts @@ -1,5 +1,5 @@ // @target: es5 -// @module: amd +// @module: esnext namespace A { declare global { interface Array { x } diff --git a/tests/cases/compiler/moduleAugmentationGlobal8_1.ts b/tests/cases/compiler/moduleAugmentationGlobal8_1.ts index 9031e4742b083..e4900a9be4c5e 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal8_1.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal8_1.ts @@ -1,5 +1,5 @@ // @target: es5 -// @module: amd +// @module: esnext namespace A { global { interface Array { x } diff --git a/tests/cases/compiler/moduleExports1.ts b/tests/cases/compiler/moduleExports1.ts index 049988b7af6b2..c118c13721b36 100644 --- a/tests/cases/compiler/moduleExports1.ts +++ b/tests/cases/compiler/moduleExports1.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs export namespace TypeScript.Strasse.Street { export class Rue { public address:string; diff --git a/tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.ts b/tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.ts index f663871cbdb36..8a90fd5fed4a8 100644 --- a/tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.ts +++ b/tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs //@declaration: true // @Filename: privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts @@ -34,8 +34,8 @@ declare module 'm2' { // 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"); +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(); diff --git a/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts b/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts index c127c3ee7866d..d215069686965 100644 --- a/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts +++ b/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs // @Filename: propertyIdentityWithPrivacyMismatch_0.ts declare module 'mod1' { class Foo { diff --git a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType1.ts b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType1.ts index 1b28dbf22f7ab..8823d43a02fd4 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType1.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType1.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs // @Filename: recursiveExportAssignmentAndFindAliasedType1_moduleDef.d.ts declare module "moduleC" { import self = require("moduleC"); @@ -12,5 +12,5 @@ export = ClassB; // @Filename: recursiveExportAssignmentAndFindAliasedType1_moduleA.ts /// import moduleC = require("moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType1_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType1_moduleB"); export var b: ClassB; // This should result in type ClassB \ No newline at end of file diff --git a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2.ts b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2.ts index 32b76ecc55114..55dd02da674a6 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType2.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs // @Filename: recursiveExportAssignmentAndFindAliasedType2_moduleDef.d.ts declare module "moduleC" { import self = require("moduleD"); @@ -16,5 +16,5 @@ export = ClassB; // @Filename: recursiveExportAssignmentAndFindAliasedType2_moduleA.ts /// import moduleC = require("moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType2_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType2_moduleB"); export var b: ClassB; // This should result in type ClassB \ No newline at end of file diff --git a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType3.ts b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType3.ts index bdaaecee25b6b..bbf5d73db87eb 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType3.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType3.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs // @Filename: recursiveExportAssignmentAndFindAliasedType3_moduleDef.d.ts declare module "moduleC" { import self = require("moduleD"); @@ -20,5 +20,5 @@ export = ClassB; // @Filename: recursiveExportAssignmentAndFindAliasedType3_moduleA.ts /// import moduleC = require("moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType3_moduleB"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType3_moduleB"); export var b: ClassB; // This should result in type ClassB \ No newline at end of file diff --git a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts index 70536b9b8a2ca..2e7398dc02a56 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType4.ts @@ -1,6 +1,6 @@ -//@module: amd +//@module: commonjs // @Filename: recursiveExportAssignmentAndFindAliasedType4_moduleC.ts -import self = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); export = self; // @Filename: recursiveExportAssignmentAndFindAliasedType4_moduleB.ts @@ -8,6 +8,6 @@ class ClassB { } export = ClassB; // @Filename: recursiveExportAssignmentAndFindAliasedType4_moduleA.ts -import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType4_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType4_moduleB"); export var b: ClassB; // This should result in type ClassB \ No newline at end of file diff --git a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts index e66f23f2ba10a..faa1129fd696a 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType5.ts @@ -1,10 +1,10 @@ -//@module: amd +//@module: commonjs // @Filename: recursiveExportAssignmentAndFindAliasedType5_moduleC.ts -import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleD"); export = self; // @Filename: recursiveExportAssignmentAndFindAliasedType5_moduleD.ts -import self = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); export = self; // @Filename: recursiveExportAssignmentAndFindAliasedType5_moduleB.ts @@ -12,6 +12,6 @@ class ClassB { } export = ClassB; // @Filename: recursiveExportAssignmentAndFindAliasedType5_moduleA.ts -import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType5_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType5_moduleB"); export var b: ClassB; // This should result in type ClassB \ No newline at end of file diff --git a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts index 7a1a819521679..54f1c79e4c94a 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType6.ts @@ -1,14 +1,14 @@ -//@module: amd +//@module: commonjs // @Filename: recursiveExportAssignmentAndFindAliasedType6_moduleC.ts -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleD"); export = self; // @Filename: recursiveExportAssignmentAndFindAliasedType6_moduleD.ts -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleE"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleE"); export = self; // @Filename: recursiveExportAssignmentAndFindAliasedType6_moduleE.ts -import self = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); export = self; // @Filename: recursiveExportAssignmentAndFindAliasedType6_moduleB.ts @@ -16,6 +16,6 @@ class ClassB { } export = ClassB; // @Filename: recursiveExportAssignmentAndFindAliasedType6_moduleA.ts -import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType6_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType6_moduleB"); export var b: ClassB; // This should result in type ClassB \ No newline at end of file diff --git a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts index 34e7e5f839279..b6eeaf94687d6 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts @@ -1,15 +1,15 @@ -//@module: amd +//@module: commonjs // @Filename: recursiveExportAssignmentAndFindAliasedType7_moduleC.ts -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); var selfVar = self; export = selfVar; // @Filename: recursiveExportAssignmentAndFindAliasedType7_moduleD.ts -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleE"); export = self; // @Filename: recursiveExportAssignmentAndFindAliasedType7_moduleE.ts -import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); +import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); export = self; // @Filename: recursiveExportAssignmentAndFindAliasedType7_moduleB.ts @@ -17,6 +17,6 @@ class ClassB { } export = ClassB; // @Filename: recursiveExportAssignmentAndFindAliasedType7_moduleA.ts -import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); -import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB"); +import moduleC = require("./recursiveExportAssignmentAndFindAliasedType7_moduleC"); +import ClassB = require("./recursiveExportAssignmentAndFindAliasedType7_moduleB"); export var b: ClassB; // This should result in type ClassB \ No newline at end of file diff --git a/tests/cases/compiler/staticInstanceResolution5.ts b/tests/cases/compiler/staticInstanceResolution5.ts index ed34dbd535f27..c2cd884bf1af7 100644 --- a/tests/cases/compiler/staticInstanceResolution5.ts +++ b/tests/cases/compiler/staticInstanceResolution5.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs // @Filename: staticInstanceResolution5_0.ts export class Promise { static timeout(delay: number): Promise { @@ -7,7 +7,7 @@ export class Promise { } // @Filename: staticInstanceResolution5_1.ts -import WinJS = require('staticInstanceResolution5_0'); +import WinJS = require('./staticInstanceResolution5_0'); // these 3 should be errors var x = (w1: WinJS) => { }; diff --git a/tests/cases/compiler/topLevelLambda4.ts b/tests/cases/compiler/topLevelLambda4.ts index 306349454c6f5..badf43d900a61 100644 --- a/tests/cases/compiler/topLevelLambda4.ts +++ b/tests/cases/compiler/topLevelLambda4.ts @@ -1,2 +1,2 @@ -//@module: amd +//@module: esnext export var x = () => this.window; \ No newline at end of file diff --git a/tests/cases/compiler/typeAliasDeclarationEmit.ts b/tests/cases/compiler/typeAliasDeclarationEmit.ts index be7e40453f60d..205a703ae7f0b 100644 --- a/tests/cases/compiler/typeAliasDeclarationEmit.ts +++ b/tests/cases/compiler/typeAliasDeclarationEmit.ts @@ -1,5 +1,5 @@ // @target: ES5 -// @module: AMD +// @module: commonjs // @declaration: true export type callback = () => T; diff --git a/tests/cases/compiler/typeUsedAsValueError2.ts b/tests/cases/compiler/typeUsedAsValueError2.ts index dd89225ef96e0..1e8c389694489 100644 --- a/tests/cases/compiler/typeUsedAsValueError2.ts +++ b/tests/cases/compiler/typeUsedAsValueError2.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @filename: helloInterface.ts interface HelloInterface { world: any; @@ -14,8 +14,8 @@ namespace HelloNamespace { export = HelloNamespace; // @filename: world.ts -import HelloInterface = require("helloInterface"); -import HelloNamespace = require("helloNamespace"); +import HelloInterface = require("./helloInterface"); +import HelloNamespace = require("./helloNamespace"); HelloInterface.world; HelloNamespace.world; \ No newline at end of file diff --git a/tests/cases/compiler/undeclaredModuleError.ts b/tests/cases/compiler/undeclaredModuleError.ts index 98b54e41c5a0b..5a78e48b411a9 100644 --- a/tests/cases/compiler/undeclaredModuleError.ts +++ b/tests/cases/compiler/undeclaredModuleError.ts @@ -1,4 +1,4 @@ -//@module: amd +//@module: commonjs 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 ) {} diff --git a/tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts b/tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts index 027dc4d300869..f45f4549fbf74 100644 --- a/tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts +++ b/tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts @@ -1,2 +1,2 @@ -//@module: amd +//@module: commonjs export declare module "M" { } \ No newline at end of file diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameEmitHelpers.ts b/tests/cases/conformance/classes/members/privateNames/privateNameEmitHelpers.ts index 82dc5693d42ba..6fb0df2290110 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameEmitHelpers.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameEmitHelpers.ts @@ -10,7 +10,7 @@ export class C { set #c(v: number) { this.#a += v; } } -// @filename: tslib.d.ts +// @filename: 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; export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameStaticEmitHelpers.ts b/tests/cases/conformance/classes/members/privateNames/privateNameStaticEmitHelpers.ts index b1261a039e563..1d59a8164faa1 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticEmitHelpers.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticEmitHelpers.ts @@ -10,7 +10,7 @@ export class S { static get #c() { return S.#b(); } } -// @filename: tslib.d.ts +// @filename: 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; export declare function __classPrivateFieldSet(receiver: T, state: any, value: V): V; diff --git a/tests/cases/conformance/externalModules/exportAssignmentAndDeclaration.ts b/tests/cases/conformance/externalModules/exportAssignmentAndDeclaration.ts index 9c9ee883fd9ca..1106f396f3eef 100644 --- a/tests/cases/conformance/externalModules/exportAssignmentAndDeclaration.ts +++ b/tests/cases/conformance/externalModules/exportAssignmentAndDeclaration.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @Filename: foo_0.ts export enum E1 { A,B,C diff --git a/tests/cases/conformance/externalModules/importNonExternalModule.ts b/tests/cases/conformance/externalModules/importNonExternalModule.ts index c0df030aa941e..28f82ee789991 100644 --- a/tests/cases/conformance/externalModules/importNonExternalModule.ts +++ b/tests/cases/conformance/externalModules/importNonExternalModule.ts @@ -1,4 +1,4 @@ -// @module: amd +// @module: commonjs // @Filename: foo_0.ts namespace foo { export var answer = 42; diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts index 8bbf3142e1995..c200b17ef3598 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts @@ -1,5 +1,5 @@ // @target: esnext -// @module: system +// @module: commonjs // @filename: index.ts // await disallowed in import= diff --git a/tests/cases/conformance/importDefer/importDeferInvalidDefault.ts b/tests/cases/conformance/importDefer/importDeferInvalidDefault.ts index d3f02c8d13926..ba6972e84899f 100644 --- a/tests/cases/conformance/importDefer/importDeferInvalidDefault.ts +++ b/tests/cases/conformance/importDefer/importDeferInvalidDefault.ts @@ -6,6 +6,6 @@ export default function foo() { } // @filename: b.ts -import defer foo from "a"; +import defer foo from "./a"; foo(); \ No newline at end of file diff --git a/tests/cases/conformance/importDefer/importDeferInvalidNamed.ts b/tests/cases/conformance/importDefer/importDeferInvalidNamed.ts index 078f5a132223f..a1b3a006fa7f5 100644 --- a/tests/cases/conformance/importDefer/importDeferInvalidNamed.ts +++ b/tests/cases/conformance/importDefer/importDeferInvalidNamed.ts @@ -5,6 +5,6 @@ export function foo() { } // @filename: b.ts -import defer { foo } from "a"; +import defer { foo } from "./a"; foo(); \ No newline at end of file diff --git a/tests/cases/conformance/importDefer/importDeferTypeConflict1.ts b/tests/cases/conformance/importDefer/importDeferTypeConflict1.ts index 5cf5ef7c544ae..788c94f759701 100644 --- a/tests/cases/conformance/importDefer/importDeferTypeConflict1.ts +++ b/tests/cases/conformance/importDefer/importDeferTypeConflict1.ts @@ -5,4 +5,4 @@ export function foo() { } // @filename: b.ts -import type defer * as ns1 from "a"; +import type defer * as ns1 from "./a"; diff --git a/tests/cases/conformance/importDefer/importDeferTypeConflict2.ts b/tests/cases/conformance/importDefer/importDeferTypeConflict2.ts index a12aa3529e3a3..9c7a38771bb9b 100644 --- a/tests/cases/conformance/importDefer/importDeferTypeConflict2.ts +++ b/tests/cases/conformance/importDefer/importDeferTypeConflict2.ts @@ -5,4 +5,4 @@ export function foo() { } // @filename: b.ts -import defer type * as ns1 from "a"; +import defer type * as ns1 from "./a"; diff --git a/tests/cases/conformance/jsx/tsxAttributeResolution10.tsx b/tests/cases/conformance/jsx/tsxAttributeResolution10.tsx index 2b04a9a80d9b4..3dbab6f161798 100644 --- a/tests/cases/conformance/jsx/tsxAttributeResolution10.tsx +++ b/tests/cases/conformance/jsx/tsxAttributeResolution10.tsx @@ -1,5 +1,5 @@ //@jsx: preserve -//@module: amd +//@module: commonjs //@filename: react.d.ts declare namespace JSX { diff --git a/tests/cases/conformance/jsx/tsxAttributeResolution11.tsx b/tests/cases/conformance/jsx/tsxAttributeResolution11.tsx index b918c3b11223f..199f5172f60f5 100644 --- a/tests/cases/conformance/jsx/tsxAttributeResolution11.tsx +++ b/tests/cases/conformance/jsx/tsxAttributeResolution11.tsx @@ -1,5 +1,5 @@ //@jsx: preserve -//@module: amd +//@module: commonjs //@filename: react.d.ts declare namespace JSX { diff --git a/tests/cases/conformance/jsx/tsxAttributeResolution14.tsx b/tests/cases/conformance/jsx/tsxAttributeResolution14.tsx index 8069e4811effe..9200d0584f8b2 100644 --- a/tests/cases/conformance/jsx/tsxAttributeResolution14.tsx +++ b/tests/cases/conformance/jsx/tsxAttributeResolution14.tsx @@ -1,5 +1,5 @@ //@jsx: preserve -//@module: amd +//@module: commonjs //@filename: react.d.ts declare namespace JSX { diff --git a/tests/cases/conformance/jsx/tsxAttributeResolution9.tsx b/tests/cases/conformance/jsx/tsxAttributeResolution9.tsx index b2b1d51d69b34..2ec0b1732b11c 100644 --- a/tests/cases/conformance/jsx/tsxAttributeResolution9.tsx +++ b/tests/cases/conformance/jsx/tsxAttributeResolution9.tsx @@ -1,5 +1,5 @@ //@jsx: preserve -//@module: amd +//@module: commonjs //@filename: react.d.ts declare namespace JSX { diff --git a/tests/cases/conformance/jsx/tsxElementResolution19.tsx b/tests/cases/conformance/jsx/tsxElementResolution19.tsx index ae4fb5baf1ba3..77bd17c0a9faa 100644 --- a/tests/cases/conformance/jsx/tsxElementResolution19.tsx +++ b/tests/cases/conformance/jsx/tsxElementResolution19.tsx @@ -1,5 +1,5 @@ //@jsx: react -//@module: amd +//@module: commonjs //@filename: react.d.ts declare module "react" { diff --git a/tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx b/tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx index b2b6f101cbbee..e8733600f0457 100644 --- a/tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx +++ b/tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx @@ -1,6 +1,6 @@ // @filename: file.tsx // @jsx: preserve -// @module: amd +// @module: commonjs // @noLib: true // @strictNullChecks: true // @skipLibCheck: true diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx index d5c247aa22412..79855c7279138 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx @@ -1,6 +1,6 @@ // @filename: file.tsx // @jsx: preserve -// @module: amd +// @module: commonjs // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx index b32393c44ceb4..61d2297ccd6e0 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx @@ -1,6 +1,6 @@ // @filename: file.tsx // @jsx: preserve -// @module: amd +// @module: commonjs // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx index eb8f3f3d12890..5cee1a4b79645 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx @@ -1,6 +1,6 @@ // @filename: file.tsx // @jsx: preserve -// @module: amd +// @module: commonjs // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx index 6cd88999425b3..6982dbc7a0280 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx @@ -1,6 +1,6 @@ // @filename: file.tsx // @jsx: preserve -// @module: amd +// @module: commonjs // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts diff --git a/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx b/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx index 53171833d9def..ca309d23a1255 100644 --- a/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx +++ b/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx @@ -1,6 +1,6 @@ // @filename: file.tsx // @jsx: preserve -// @module: amd +// @module: commonjs // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts From 5899d885d71b12fa95d529271543aa8cf8dab669 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Fri, 24 Oct 2025 11:30:41 -0700 Subject: [PATCH 4/6] Add deprecation for --moduleResolution classic, update tests, update baselines --- src/compiler/program.ts | 3 + src/compiler/utilities.ts | 1 + ...sions(moduleresolution=classic).errors.txt | 2 + ...false,moduleresolution=classic).errors.txt | 19 ++ ...=true,moduleresolution=classic).errors.txt | 19 ++ ...Identifiers_module(module=none).errors.txt | 4 - .../cachedModuleResolution3.errors.txt | 12 ++ .../cachedModuleResolution4.errors.txt | 13 ++ .../cachedModuleResolution8.errors.txt | 2 + .../cachedModuleResolution9.errors.txt | 2 + .../module/tsconfig.json | 6 +- ...hLocalCollisions(module=node16).errors.txt | 12 -- ...lpersWithLocalCollisions(module=node16).js | 7 +- ...hLocalCollisions(module=node18).errors.txt | 12 -- ...lpersWithLocalCollisions(module=node18).js | 7 +- ...hLocalCollisions(module=node20).errors.txt | 14 -- ...lpersWithLocalCollisions(module=node20).js | 7 +- ...ocalCollisions(module=nodenext).errors.txt | 14 -- ...ersWithLocalCollisions(module=nodenext).js | 7 +- .../es5-importHelpersAsyncFunctions.js | 2 +- .../es5-importHelpersAsyncFunctions.symbols | 50 +++--- .../es5-importHelpersAsyncFunctions.types | 2 +- ...ingEmitHelpers-classDecorator.1.errors.txt | 2 + ...ingEmitHelpers-classDecorator.2.errors.txt | 2 + ...ingEmitHelpers-classDecorator.3.errors.txt | 2 + ...rs-nonStaticPrivateAutoAccessor.errors.txt | 2 + ...itHelpers-nonStaticPrivateField.errors.txt | 2 + ...tHelpers-nonStaticPrivateGetter.errors.txt | 2 + ...tHelpers-nonStaticPrivateMethod.errors.txt | 2 + ...tHelpers-nonStaticPrivateSetter.errors.txt | 2 + ...pers-staticComputedAutoAccessor.errors.txt | 2 + ...EmitHelpers-staticComputedField.errors.txt | 2 + ...mitHelpers-staticComputedGetter.errors.txt | 2 + ...mitHelpers-staticComputedMethod.errors.txt | 2 + ...mitHelpers-staticComputedSetter.errors.txt | 2 + ...lpers-staticPrivateAutoAccessor.errors.txt | 2 + ...gEmitHelpers-staticPrivateField.errors.txt | 2 + ...EmitHelpers-staticPrivateGetter.errors.txt | 2 + ...EmitHelpers-staticPrivateMethod.errors.txt | 2 + ...EmitHelpers-staticPrivateSetter.errors.txt | 2 + ...ingEmitHelpers-classDecorator.1.errors.txt | 2 + ...ngEmitHelpers-classDecorator.10.errors.txt | 2 + ...ngEmitHelpers-classDecorator.11.errors.txt | 2 + ...ngEmitHelpers-classDecorator.12.errors.txt | 2 + ...ngEmitHelpers-classDecorator.13.errors.txt | 2 + ...ngEmitHelpers-classDecorator.14.errors.txt | 2 + ...ngEmitHelpers-classDecorator.15.errors.txt | 2 + ...ngEmitHelpers-classDecorator.16.errors.txt | 2 + ...ngEmitHelpers-classDecorator.17.errors.txt | 2 + ...ingEmitHelpers-classDecorator.2.errors.txt | 2 + ...ingEmitHelpers-classDecorator.3.errors.txt | 2 + ...ingEmitHelpers-classDecorator.4.errors.txt | 2 + ...ingEmitHelpers-classDecorator.5.errors.txt | 2 + ...ingEmitHelpers-classDecorator.6.errors.txt | 2 + ...ingEmitHelpers-classDecorator.7.errors.txt | 2 + ...ingEmitHelpers-classDecorator.8.errors.txt | 2 + ...ingEmitHelpers-classDecorator.9.errors.txt | 2 + ...ority(moduleresolution=classic).errors.txt | 20 +++ tests/baselines/reference/importHelpers.js | 2 +- .../baselines/reference/importHelpers.symbols | 52 +++--- tests/baselines/reference/importHelpers.types | 2 +- .../importHelpersInIsolatedModules.js | 2 +- .../importHelpersInIsolatedModules.symbols | 46 ++--- .../importHelpersInIsolatedModules.types | 2 +- .../baselines/reference/importHelpersInTsx.js | 2 +- .../reference/importHelpersInTsx.symbols | 46 ++--- .../reference/importHelpersInTsx.types | 2 +- .../importHelpersNoHelpers.errors.txt | 2 + ...persNoHelpersForAsyncGenerators.errors.txt | 2 + ...elpersNoHelpersForPrivateFields.errors.txt | 2 + .../importHelpersNoModule.errors.txt | 2 + ...WithLocalCollisions(module=amd).errors.txt | 7 +- ...tHelpersWithLocalCollisions(module=amd).js | 2 +- ...ersWithLocalCollisions(module=commonjs).js | 2 +- ...lpersWithLocalCollisions(module=es2015).js | 2 +- ...hLocalCollisions(module=system).errors.txt | 7 +- ...lpersWithLocalCollisions(module=system).js | 2 +- ...oneDynamicImport(target=es2015).errors.txt | 4 - ...oneDynamicImport(target=es2020).errors.txt | 4 - .../reference/moduleNoneErrors.errors.txt | 4 - .../reference/moduleNoneOutFile.errors.txt | 4 - ...duleResolution_classicPrefersTs.errors.txt | 13 ++ ...eAugmentationInDeclarationFile1.errors.txt | 4 - ...eAugmentationInDeclarationFile2.errors.txt | 4 - ...eAugmentationInDeclarationFile3.errors.txt | 4 - ...packageJsonExportsOptionsCompat.errors.txt | 5 +- ...ompat(moduleresolution=classic).errors.txt | 2 + ...gBasedModuleResolution3_classic.errors.txt | 2 + ...gBasedModuleResolution4_classic.errors.txt | 5 +- ...gBasedModuleResolution8_classic.errors.txt | 5 +- .../project/baseline/amd/baseline.errors.txt | 2 + .../project/baseline/node/baseline.errors.txt | 12 ++ .../baseline2/amd/baseline2.errors.txt | 2 + .../baseline2/node/baseline2.errors.txt | 12 ++ .../baseline3/amd/baseline3.errors.txt | 2 + .../baseline3/node/baseline3.errors.txt | 11 ++ .../amd/cantFindTheModule.errors.txt | 2 + .../node/cantFindTheModule.errors.txt | 2 + .../amd/circularReferencing.errors.txt | 2 + .../node/circularReferencing.errors.txt | 14 ++ .../amd/circularReferencing2.errors.txt | 2 + .../node/circularReferencing2.errors.txt | 28 +++ .../amd/declarationDir.errors.txt | 2 + .../node/declarationDir.errors.txt | 19 ++ .../amd/declarationDir2.errors.txt | 2 + .../node/declarationDir2.errors.txt | 19 ++ .../amd/declarationDir3.errors.txt | 2 + .../node/declarationDir3.errors.txt | 2 + .../declarationsCascadingImports.errors.txt | 2 + .../declarationsCascadingImports.errors.txt | 28 +++ .../declarationsExportNamespace.errors.txt | 2 + .../declarationsExportNamespace.errors.txt | 15 ++ .../amd/declarationsGlobalImport.errors.txt | 2 + .../node/declarationsGlobalImport.errors.txt | 19 ++ .../declarationsImportedInPrivate.errors.txt | 2 + .../declarationsImportedInPrivate.errors.txt | 24 +++ ...clarationsImportedUseInFunction.errors.txt | 2 + ...clarationsImportedUseInFunction.errors.txt | 17 ++ ...directImportShouldResultInError.errors.txt | 2 + ...directImportShouldResultInError.errors.txt | 26 +++ ...declarationsMultipleTimesImport.errors.txt | 2 + ...declarationsMultipleTimesImport.errors.txt | 33 ++++ ...ionsMultipleTimesMultipleImport.errors.txt | 2 + ...ionsMultipleTimesMultipleImport.errors.txt | 36 ++++ .../amd/declarationsSimpleImport.errors.txt | 2 + .../node/declarationsSimpleImport.errors.txt | 27 +++ .../amd/declareExportAdded.errors.txt | 2 + .../node/declareExportAdded.errors.txt | 14 ++ .../amd/declareVariableCollision.errors.txt | 2 + .../node/declareVariableCollision.errors.txt | 2 + ...aultExcludeNodeModulesAndOutDir.errors.txt | 5 +- ...aultExcludeNodeModulesAndOutDir.errors.txt | 14 ++ ...NodeModulesAndOutDirWithAllowJS.errors.txt | 5 +- ...NodeModulesAndOutDirWithAllowJS.errors.txt | 14 ++ ...odeModulesAndRelativePathOutDir.errors.txt | 5 +- ...odeModulesAndRelativePathOutDir.errors.txt | 14 ++ ...ndRelativePathOutDirWithAllowJS.errors.txt | 5 +- ...ndRelativePathOutDirWithAllowJS.errors.txt | 14 ++ .../defaultExcludeOnlyNodeModules.errors.txt | 5 +- .../defaultExcludeOnlyNodeModules.errors.txt | 13 ++ ...MetadataCommonJSISolatedModules.errors.txt | 5 +- ...MetadataCommonJSISolatedModules.errors.txt | 5 +- ...ommonJSISolatedModulesNoResolve.errors.txt | 5 +- ...ommonJSISolatedModulesNoResolve.errors.txt | 5 +- .../emitDecoratorMetadataSystemJS.errors.txt | 5 +- .../emitDecoratorMetadataSystemJS.errors.txt | 5 +- ...MetadataSystemJSISolatedModules.errors.txt | 5 +- ...MetadataSystemJSISolatedModules.errors.txt | 5 +- ...ystemJSISolatedModulesNoResolve.errors.txt | 5 +- ...ystemJSISolatedModulesNoResolve.errors.txt | 5 +- .../amd/extReferencingExtAndInt.errors.txt | 2 + .../node/extReferencingExtAndInt.errors.txt | 18 ++ .../amd/intReferencingExtAndInt.errors.txt | 2 + .../node/intReferencingExtAndInt.errors.txt | 2 + .../amd/invalidRootFile.errors.txt | 2 + .../node/invalidRootFile.errors.txt | 2 + ...ationDifferentNamesNotSpecified.errors.txt | 5 +- ...ationDifferentNamesNotSpecified.errors.txt | 5 +- ...entNamesNotSpecifiedWithAllowJs.errors.txt | 5 +- ...entNamesNotSpecifiedWithAllowJs.errors.txt | 5 +- ...pilationDifferentNamesSpecified.errors.txt | 5 +- ...pilationDifferentNamesSpecified.errors.txt | 5 +- ...ferentNamesSpecifiedWithAllowJs.errors.txt | 5 +- ...ferentNamesSpecifiedWithAllowJs.errors.txt | 5 +- ...CompilationSameNameDTsSpecified.errors.txt | 2 + ...CompilationSameNameDTsSpecified.errors.txt | 8 + ...SameNameDTsSpecifiedWithAllowJs.errors.txt | 5 +- ...SameNameDTsSpecifiedWithAllowJs.errors.txt | 12 ++ ...pilationSameNameDtsNotSpecified.errors.txt | 2 + ...pilationSameNameDtsNotSpecified.errors.txt | 8 + ...eNameDtsNotSpecifiedWithAllowJs.errors.txt | 5 +- ...eNameDtsNotSpecifiedWithAllowJs.errors.txt | 5 +- ...lationSameNameFilesNotSpecified.errors.txt | 2 + ...lationSameNameFilesNotSpecified.errors.txt | 8 + ...ameFilesNotSpecifiedWithAllowJs.errors.txt | 5 +- ...ameFilesNotSpecifiedWithAllowJs.errors.txt | 9 + ...mpilationSameNameFilesSpecified.errors.txt | 2 + ...mpilationSameNameFilesSpecified.errors.txt | 8 + ...meNameFilesSpecifiedWithAllowJs.errors.txt | 5 +- ...meNameFilesSpecifiedWithAllowJs.errors.txt | 12 ++ ...olutePathMixedSubfolderNoOutdir.errors.txt | 2 + ...olutePathMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...tePathModuleMultifolderNoOutdir.errors.txt | 2 + ...tePathModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...bsolutePathModuleSimpleNoOutdir.errors.txt | 2 + ...bsolutePathModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...thModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...thModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...lutePathModuleSubfolderNoOutdir.errors.txt | 2 + ...lutePathModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...AbsolutePathMultifolderNoOutdir.errors.txt | 2 + ...AbsolutePathMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...athMultifolderSpecifyOutputFile.errors.txt | 2 + ...athMultifolderSpecifyOutputFile.errors.txt | 2 + ...pRootAbsolutePathSimpleNoOutdir.errors.txt | 2 + ...pRootAbsolutePathSimpleNoOutdir.errors.txt | 25 +++ ...athSimpleSpecifyOutputDirectory.errors.txt | 2 + ...athSimpleSpecifyOutputDirectory.errors.txt | 25 +++ ...lutePathSimpleSpecifyOutputFile.errors.txt | 2 + ...lutePathSimpleSpecifyOutputFile.errors.txt | 2 + ...tAbsolutePathSingleFileNoOutdir.errors.txt | 2 + ...tAbsolutePathSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ ...PathSingleFileSpecifyOutputFile.errors.txt | 2 + ...PathSingleFileSpecifyOutputFile.errors.txt | 2 + ...otAbsolutePathSubfolderNoOutdir.errors.txt | 2 + ...otAbsolutePathSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ ...ePathSubfolderSpecifyOutputFile.errors.txt | 2 + ...ePathSubfolderSpecifyOutputFile.errors.txt | 2 + ...ativePathMixedSubfolderNoOutdir.errors.txt | 2 + ...ativePathMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...vePathModuleMultifolderNoOutdir.errors.txt | 2 + ...vePathModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...elativePathModuleSimpleNoOutdir.errors.txt | 2 + ...elativePathModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...thModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...thModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...tivePathModuleSubfolderNoOutdir.errors.txt | 2 + ...tivePathModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...RelativePathMultifolderNoOutdir.errors.txt | 2 + ...RelativePathMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...athMultifolderSpecifyOutputFile.errors.txt | 2 + ...athMultifolderSpecifyOutputFile.errors.txt | 2 + ...pRootRelativePathSimpleNoOutdir.errors.txt | 2 + ...pRootRelativePathSimpleNoOutdir.errors.txt | 25 +++ ...athSimpleSpecifyOutputDirectory.errors.txt | 2 + ...athSimpleSpecifyOutputDirectory.errors.txt | 25 +++ ...tivePathSimpleSpecifyOutputFile.errors.txt | 2 + ...tivePathSimpleSpecifyOutputFile.errors.txt | 2 + ...tRelativePathSingleFileNoOutdir.errors.txt | 2 + ...tRelativePathSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ ...PathSingleFileSpecifyOutputFile.errors.txt | 2 + ...PathSingleFileSpecifyOutputFile.errors.txt | 2 + ...otRelativePathSubfolderNoOutdir.errors.txt | 2 + ...otRelativePathSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ ...ePathSubfolderSpecifyOutputFile.errors.txt | 2 + ...ePathSubfolderSpecifyOutputFile.errors.txt | 2 + ...SourceRootWithNoSourceMapOption.errors.txt | 2 + ...SourceRootWithNoSourceMapOption.errors.txt | 2 + .../mapRootWithNoSourceMapOption.errors.txt | 2 + .../mapRootWithNoSourceMapOption.errors.txt | 2 + ...aprootUrlMixedSubfolderNoOutdir.errors.txt | 2 + ...aprootUrlMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 2 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + .../maprootUrlModuleSimpleNoOutdir.errors.txt | 2 + .../maprootUrlModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...rlModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...rlModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...prootUrlModuleSubfolderNoOutdir.errors.txt | 2 + ...prootUrlModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + .../maprootUrlMultifolderNoOutdir.errors.txt | 2 + .../maprootUrlMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...UrlMultifolderSpecifyOutputFile.errors.txt | 2 + ...UrlMultifolderSpecifyOutputFile.errors.txt | 2 + .../amd/maprootUrlSimpleNoOutdir.errors.txt | 2 + .../node/maprootUrlSimpleNoOutdir.errors.txt | 25 +++ ...UrlSimpleSpecifyOutputDirectory.errors.txt | 2 + ...UrlSimpleSpecifyOutputDirectory.errors.txt | 25 +++ ...prootUrlSimpleSpecifyOutputFile.errors.txt | 2 + ...prootUrlSimpleSpecifyOutputFile.errors.txt | 2 + .../maprootUrlSingleFileNoOutdir.errors.txt | 2 + .../maprootUrlSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ ...tUrlSingleFileSpecifyOutputFile.errors.txt | 2 + ...tUrlSingleFileSpecifyOutputFile.errors.txt | 2 + .../maprootUrlSubfolderNoOutdir.errors.txt | 2 + .../maprootUrlSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ ...otUrlSubfolderSpecifyOutputFile.errors.txt | 2 + ...otUrlSubfolderSpecifyOutputFile.errors.txt | 2 + ...cerootUrlMixedSubfolderNoOutdir.errors.txt | 2 + ...cerootUrlMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 2 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...urcerootUrlModuleSimpleNoOutdir.errors.txt | 2 + ...urcerootUrlModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...rlModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...rlModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...erootUrlModuleSubfolderNoOutdir.errors.txt | 2 + ...erootUrlModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...ourcerootUrlMultifolderNoOutdir.errors.txt | 2 + ...ourcerootUrlMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...UrlMultifolderSpecifyOutputFile.errors.txt | 2 + ...UrlMultifolderSpecifyOutputFile.errors.txt | 2 + ...tUrlsourcerootUrlSimpleNoOutdir.errors.txt | 2 + ...tUrlsourcerootUrlSimpleNoOutdir.errors.txt | 25 +++ ...UrlSimpleSpecifyOutputDirectory.errors.txt | 2 + ...UrlSimpleSpecifyOutputDirectory.errors.txt | 25 +++ ...erootUrlSimpleSpecifyOutputFile.errors.txt | 2 + ...erootUrlSimpleSpecifyOutputFile.errors.txt | 2 + ...sourcerootUrlSingleFileNoOutdir.errors.txt | 2 + ...sourcerootUrlSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ ...tUrlSingleFileSpecifyOutputFile.errors.txt | 2 + ...tUrlSingleFileSpecifyOutputFile.errors.txt | 2 + ...lsourcerootUrlSubfolderNoOutdir.errors.txt | 2 + ...lsourcerootUrlSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ ...otUrlSubfolderSpecifyOutputFile.errors.txt | 2 + ...otUrlSubfolderSpecifyOutputFile.errors.txt | 2 + .../amd/moduleIdentifier.errors.txt | 2 + .../node/moduleIdentifier.errors.txt | 13 ++ .../amd/moduleMergingOrdering1.errors.txt | 2 + .../node/moduleMergingOrdering1.errors.txt | 27 +++ .../amd/moduleMergingOrdering2.errors.txt | 2 + .../node/moduleMergingOrdering2.errors.txt | 27 +++ .../multipleLevelsModuleResolution.errors.txt | 2 + .../multipleLevelsModuleResolution.errors.txt | 41 +++++ .../amd/nestedDeclare.errors.txt | 2 + .../node/nestedDeclare.errors.txt | 15 ++ .../nestedLocalModuleSimpleCase.errors.txt | 2 + .../nestedLocalModuleSimpleCase.errors.txt | 2 + ...calModuleWithRecursiveTypecheck.errors.txt | 2 + ...calModuleWithRecursiveTypecheck.errors.txt | 2 + .../amd/nestedReferenceTags.errors.txt | 2 + .../node/nestedReferenceTags.errors.txt | 25 +++ .../noProjectOptionAndInputFiles.errors.txt | 2 + .../noProjectOptionAndInputFiles.errors.txt | 8 + .../nonRelative/amd/nonRelative.errors.txt | 2 + .../nonRelative/node/nonRelative.errors.txt | 33 ++++ .../amd/outMixedSubfolderNoOutdir.errors.txt | 2 + .../node/outMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + .../outModuleMultifolderNoOutdir.errors.txt | 2 + .../outModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + .../amd/outModuleSimpleNoOutdir.errors.txt | 2 + .../node/outModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...utModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...utModuleSimpleSpecifyOutputFile.errors.txt | 2 + .../amd/outModuleSubfolderNoOutdir.errors.txt | 2 + .../outModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + .../amd/outMultifolderNoOutdir.errors.txt | 2 + .../node/outMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...outMultifolderSpecifyOutputFile.errors.txt | 2 + ...outMultifolderSpecifyOutputFile.errors.txt | 2 + .../amd/outSimpleNoOutdir.errors.txt | 2 + .../node/outSimpleNoOutdir.errors.txt | 25 +++ ...outSimpleSpecifyOutputDirectory.errors.txt | 2 + ...outSimpleSpecifyOutputDirectory.errors.txt | 25 +++ .../amd/outSimpleSpecifyOutputFile.errors.txt | 2 + .../outSimpleSpecifyOutputFile.errors.txt | 2 + .../amd/outSingleFileNoOutdir.errors.txt | 2 + .../node/outSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ .../outSingleFileSpecifyOutputFile.errors.txt | 2 + .../outSingleFileSpecifyOutputFile.errors.txt | 2 + .../amd/outSubfolderNoOutdir.errors.txt | 2 + .../node/outSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ .../outSubfolderSpecifyOutputFile.errors.txt | 2 + .../outSubfolderSpecifyOutputFile.errors.txt | 2 + ...dModuleDeclarationsInsideModule.errors.txt | 2 + ...dModuleDeclarationsInsideModule.errors.txt | 2 + ...arationsInsideNonExportedModule.errors.txt | 2 + ...arationsInsideNonExportedModule.errors.txt | 2 + ...leImportStatementInParentModule.errors.txt | 2 + ...leImportStatementInParentModule.errors.txt | 2 + ...OnImportedModuleSimpleReference.errors.txt | 2 + ...OnImportedModuleSimpleReference.errors.txt | 64 +++++++ ...IndirectTypeFromTheExternalType.errors.txt | 2 + ...IndirectTypeFromTheExternalType.errors.txt | 14 ++ .../amd/projectOptionTest.errors.txt | 2 + .../node/projectOptionTest.errors.txt | 8 + .../prologueEmit/amd/prologueEmit.errors.txt | 2 + .../prologueEmit/node/prologueEmit.errors.txt | 2 + .../quotesInFileAndDirectoryNames.errors.txt | 2 + .../quotesInFileAndDirectoryNames.errors.txt | 16 ++ .../amd/referencePathStatic.errors.txt | 2 + .../node/referencePathStatic.errors.txt | 13 ++ ...eferenceResolutionRelativePaths.errors.txt | 2 + ...eferenceResolutionRelativePaths.errors.txt | 14 ++ ...nRelativePathsFromRootDirectory.errors.txt | 2 + ...nRelativePathsFromRootDirectory.errors.txt | 14 ++ ...esolutionRelativePathsNoResolve.errors.txt | 2 + ...esolutionRelativePathsNoResolve.errors.txt | 14 ++ ...ivePathsRelativeToRootDirectory.errors.txt | 2 + ...ivePathsRelativeToRootDirectory.errors.txt | 14 ++ ...eferenceResolutionSameFileTwice.errors.txt | 2 + ...eferenceResolutionSameFileTwice.errors.txt | 7 + ...esolutionSameFileTwiceNoResolve.errors.txt | 2 + ...esolutionSameFileTwiceNoResolve.errors.txt | 7 + .../amd/relativeGlobal.errors.txt | 2 + .../node/relativeGlobal.errors.txt | 18 ++ .../amd/relativeGlobalRef.errors.txt | 2 + .../node/relativeGlobalRef.errors.txt | 19 ++ .../amd/relativeNested.errors.txt | 2 + .../node/relativeNested.errors.txt | 29 +++ .../amd/relativeNestedRef.errors.txt | 2 + .../node/relativeNestedRef.errors.txt | 19 ++ .../amd/relativePaths.errors.txt | 2 + .../node/relativePaths.errors.txt | 18 ++ .../amd/rootDirectory.errors.txt | 2 + .../node/rootDirectory.errors.txt | 14 ++ .../amd/rootDirectoryErrors.errors.txt | 2 + .../node/rootDirectoryErrors.errors.txt | 2 + .../rootDirectoryWithSourceRoot.errors.txt | 2 + .../rootDirectoryWithSourceRoot.errors.txt | 14 ++ .../amd/rootDirectoryWithoutOutDir.errors.txt | 2 + .../rootDirectoryWithoutOutDir.errors.txt | 2 + ...olutePathMixedSubfolderNoOutdir.errors.txt | 2 + ...olutePathMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...tePathModuleMultifolderNoOutdir.errors.txt | 2 + ...tePathModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...bsolutePathModuleSimpleNoOutdir.errors.txt | 2 + ...bsolutePathModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...thModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...thModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...lutePathModuleSubfolderNoOutdir.errors.txt | 2 + ...lutePathModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...AbsolutePathMultifolderNoOutdir.errors.txt | 2 + ...AbsolutePathMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...athMultifolderSpecifyOutputFile.errors.txt | 2 + ...athMultifolderSpecifyOutputFile.errors.txt | 2 + ...eRootAbsolutePathSimpleNoOutdir.errors.txt | 2 + ...eRootAbsolutePathSimpleNoOutdir.errors.txt | 25 +++ ...athSimpleSpecifyOutputDirectory.errors.txt | 2 + ...athSimpleSpecifyOutputDirectory.errors.txt | 25 +++ ...lutePathSimpleSpecifyOutputFile.errors.txt | 2 + ...lutePathSimpleSpecifyOutputFile.errors.txt | 2 + ...tAbsolutePathSingleFileNoOutdir.errors.txt | 2 + ...tAbsolutePathSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ ...PathSingleFileSpecifyOutputFile.errors.txt | 2 + ...PathSingleFileSpecifyOutputFile.errors.txt | 2 + ...otAbsolutePathSubfolderNoOutdir.errors.txt | 2 + ...otAbsolutePathSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ ...ePathSubfolderSpecifyOutputFile.errors.txt | 2 + ...ePathSubfolderSpecifyOutputFile.errors.txt | 2 + ...ativePathMixedSubfolderNoOutdir.errors.txt | 2 + ...ativePathMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...vePathModuleMultifolderNoOutdir.errors.txt | 2 + ...vePathModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...elativePathModuleSimpleNoOutdir.errors.txt | 2 + ...elativePathModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...thModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...thModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...tivePathModuleSubfolderNoOutdir.errors.txt | 2 + ...tivePathModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...RelativePathMultifolderNoOutdir.errors.txt | 2 + ...RelativePathMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...athMultifolderSpecifyOutputFile.errors.txt | 2 + ...athMultifolderSpecifyOutputFile.errors.txt | 2 + ...eRootRelativePathSimpleNoOutdir.errors.txt | 2 + ...eRootRelativePathSimpleNoOutdir.errors.txt | 25 +++ ...athSimpleSpecifyOutputDirectory.errors.txt | 2 + ...athSimpleSpecifyOutputDirectory.errors.txt | 25 +++ ...tivePathSimpleSpecifyOutputFile.errors.txt | 2 + ...tivePathSimpleSpecifyOutputFile.errors.txt | 2 + ...tRelativePathSingleFileNoOutdir.errors.txt | 2 + ...tRelativePathSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ ...PathSingleFileSpecifyOutputFile.errors.txt | 2 + ...PathSingleFileSpecifyOutputFile.errors.txt | 2 + ...otRelativePathSubfolderNoOutdir.errors.txt | 2 + ...otRelativePathSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ ...ePathSubfolderSpecifyOutputFile.errors.txt | 2 + ...ePathSubfolderSpecifyOutputFile.errors.txt | 2 + ...sourceRootWithNoSourceMapOption.errors.txt | 2 + ...sourceRootWithNoSourceMapOption.errors.txt | 2 + ...sourcemapMixedSubfolderNoOutdir.errors.txt | 2 + ...sourcemapMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...rcemapModuleMultifolderNoOutdir.errors.txt | 2 + ...rcemapModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + .../sourcemapModuleSimpleNoOutdir.errors.txt | 2 + .../sourcemapModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...apModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...apModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...ourcemapModuleSubfolderNoOutdir.errors.txt | 2 + ...ourcemapModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + .../sourcemapMultifolderNoOutdir.errors.txt | 2 + .../sourcemapMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...mapMultifolderSpecifyOutputFile.errors.txt | 2 + ...mapMultifolderSpecifyOutputFile.errors.txt | 2 + .../amd/sourcemapSimpleNoOutdir.errors.txt | 2 + .../node/sourcemapSimpleNoOutdir.errors.txt | 25 +++ ...mapSimpleSpecifyOutputDirectory.errors.txt | 2 + ...mapSimpleSpecifyOutputDirectory.errors.txt | 25 +++ ...ourcemapSimpleSpecifyOutputFile.errors.txt | 2 + ...ourcemapSimpleSpecifyOutputFile.errors.txt | 2 + .../sourcemapSingleFileNoOutdir.errors.txt | 2 + .../sourcemapSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ ...emapSingleFileSpecifyOutputFile.errors.txt | 2 + ...emapSingleFileSpecifyOutputFile.errors.txt | 2 + .../amd/sourcemapSubfolderNoOutdir.errors.txt | 2 + .../sourcemapSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ ...cemapSubfolderSpecifyOutputFile.errors.txt | 2 + ...cemapSubfolderSpecifyOutputFile.errors.txt | 2 + ...cerootUrlMixedSubfolderNoOutdir.errors.txt | 2 + ...cerootUrlMixedSubfolderNoOutdir.errors.txt | 36 ++++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...MixedSubfolderSpecifyOutputFile.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ifyOutputFileAndOutputDirectory.errors.txt | 2 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 2 + ...ootUrlModuleMultifolderNoOutdir.errors.txt | 39 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 39 ++++ ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...uleMultifolderSpecifyOutputFile.errors.txt | 2 + ...urcerootUrlModuleSimpleNoOutdir.errors.txt | 2 + ...urcerootUrlModuleSimpleNoOutdir.errors.txt | 27 +++ ...uleSimpleSpecifyOutputDirectory.errors.txt | 2 + ...uleSimpleSpecifyOutputDirectory.errors.txt | 27 +++ ...rlModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...rlModuleSimpleSpecifyOutputFile.errors.txt | 2 + ...erootUrlModuleSubfolderNoOutdir.errors.txt | 2 + ...erootUrlModuleSubfolderNoOutdir.errors.txt | 27 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 27 +++ ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...oduleSubfolderSpecifyOutputFile.errors.txt | 2 + ...ourcerootUrlMultifolderNoOutdir.errors.txt | 2 + ...ourcerootUrlMultifolderNoOutdir.errors.txt | 36 ++++ ...ltifolderSpecifyOutputDirectory.errors.txt | 2 + ...ltifolderSpecifyOutputDirectory.errors.txt | 36 ++++ ...UrlMultifolderSpecifyOutputFile.errors.txt | 2 + ...UrlMultifolderSpecifyOutputFile.errors.txt | 2 + .../sourcerootUrlSimpleNoOutdir.errors.txt | 2 + .../sourcerootUrlSimpleNoOutdir.errors.txt | 25 +++ ...UrlSimpleSpecifyOutputDirectory.errors.txt | 2 + ...UrlSimpleSpecifyOutputDirectory.errors.txt | 25 +++ ...erootUrlSimpleSpecifyOutputFile.errors.txt | 2 + ...erootUrlSimpleSpecifyOutputFile.errors.txt | 2 + ...sourcerootUrlSingleFileNoOutdir.errors.txt | 2 + ...sourcerootUrlSingleFileNoOutdir.errors.txt | 14 ++ ...ingleFileSpecifyOutputDirectory.errors.txt | 2 + ...ingleFileSpecifyOutputDirectory.errors.txt | 14 ++ ...tUrlSingleFileSpecifyOutputFile.errors.txt | 2 + ...tUrlSingleFileSpecifyOutputFile.errors.txt | 2 + .../sourcerootUrlSubfolderNoOutdir.errors.txt | 2 + .../sourcerootUrlSubfolderNoOutdir.errors.txt | 25 +++ ...SubfolderSpecifyOutputDirectory.errors.txt | 2 + ...SubfolderSpecifyOutputDirectory.errors.txt | 25 +++ ...otUrlSubfolderSpecifyOutputFile.errors.txt | 2 + ...otUrlSubfolderSpecifyOutputFile.errors.txt | 2 + ...specifyExcludeUsingRelativepath.errors.txt | 5 +- ...specifyExcludeUsingRelativepath.errors.txt | 18 ++ ...udeUsingRelativepathWithAllowJS.errors.txt | 5 +- ...udeUsingRelativepathWithAllowJS.errors.txt | 18 ++ ...ExcludeWithOutUsingRelativePath.errors.txt | 5 +- ...ExcludeWithOutUsingRelativePath.errors.txt | 18 ++ ...OutUsingRelativePathWithAllowJS.errors.txt | 5 +- ...OutUsingRelativePathWithAllowJS.errors.txt | 18 ++ ...sibilityOfTypeUsedAcrossModules.errors.txt | 2 + ...sibilityOfTypeUsedAcrossModules.errors.txt | 37 ++++ ...ibilityOfTypeUsedAcrossModules2.errors.txt | 2 + ...ibilityOfTypeUsedAcrossModules2.errors.txt | 2 + .../relativePathToDeclarationFile.errors.txt | 29 +++ ...ireOfJsonFileWithModuleEmitNone.errors.txt | 6 +- ...Type1(moduleresolution=classic).errors.txt | 2 + ...port1(moduleresolution=classic).errors.txt | 2 + .../scopedPackagesClassic.errors.txt | 10 ++ .../non-module-projects-without-prepend.js | 32 +--- ...roject-uses-different-module-resolution.js | 25 ++- ...se-different-module-resolution-settings.js | 42 ++++- .../tsc/composite/converting-to-modules.js | 12 +- ...file-is-added-to-the-referenced-project.js | 72 +------- ...-recursive-directory-watcher-is-invoked.js | 24 +-- .../programUpdates/change-module-to-none.js | 12 +- ...odule-resolution-changes-in-config-file.js | 12 +- ...errors-and-still-try-to-build-a-project.js | 12 +- ...file-is-added-to-the-referenced-project.js | 60 +------ ...roject-uses-different-module-resolution.js | 18 +- ...are-global-and-installed-at-later-point.js | 38 +--- ...ing-useSourceOfProjectReferenceRedirect.js | 60 +------ ...-host-implementing-getParsedCommandLine.js | 24 +-- .../emit-in-project-with-dts-emit.js | 28 --- .../tsserver/compileOnSave/emit-in-project.js | 28 --- ...odule-resolution-changes-in-config-file.js | 17 +- .../isDefinitionAcrossGlobalProjects.js | 30 ---- ...-when-module-resolution-settings-change.js | 17 +- ...project-structure-and-reports-no-errors.js | 28 --- ...-as-project-build-with-external-project.js | 28 --- ...e-doesnt-load-ancestor-sibling-projects.js | 28 --- ...ding-references-in-overlapping-projects.js | 28 --- ...disableSourceOfProjectReferenceRedirect.js | 140 --------------- ...ect-when-referenced-project-is-not-open.js | 28 --- ...disableSourceOfProjectReferenceRedirect.js | 168 ------------------ ...project-when-referenced-project-is-open.js | 56 ------ ...ng-solution-and-siblings-are-not-loaded.js | 28 --- .../resolutionCache/when-resolution-fails.js | 14 ++ .../when-resolves-to-ambient-module.js | 14 ++ .../emitHelpersWithLocalCollisions.ts | 1 - .../es5-importHelpersAsyncFunctions.ts | 3 +- tests/cases/compiler/importHelpers.ts | 3 +- .../compiler/importHelpersDeclarations.ts | 1 - .../importHelpersInIsolatedModules.ts | 3 +- tests/cases/compiler/importHelpersInTsx.tsx | 3 +- .../importHelpersWithLocalCollisions.ts | 3 +- 758 files changed, 6713 insertions(+), 1209 deletions(-) create mode 100644 tests/baselines/reference/allowImportingTypesDtsExtension(allowimportingtsextensions=false,moduleresolution=classic).errors.txt create mode 100644 tests/baselines/reference/allowImportingTypesDtsExtension(allowimportingtsextensions=true,moduleresolution=classic).errors.txt create mode 100644 tests/baselines/reference/cachedModuleResolution3.errors.txt create mode 100644 tests/baselines/reference/cachedModuleResolution4.errors.txt delete mode 100644 tests/baselines/reference/emitHelpersWithLocalCollisions(module=node16).errors.txt delete mode 100644 tests/baselines/reference/emitHelpersWithLocalCollisions(module=node18).errors.txt delete mode 100644 tests/baselines/reference/emitHelpersWithLocalCollisions(module=node20).errors.txt delete mode 100644 tests/baselines/reference/emitHelpersWithLocalCollisions(module=nodenext).errors.txt create mode 100644 tests/baselines/reference/extensionLoadingPriority(moduleresolution=classic).errors.txt create mode 100644 tests/baselines/reference/moduleResolution_classicPrefersTs.errors.txt create mode 100644 tests/baselines/reference/project/baseline/node/baseline.errors.txt create mode 100644 tests/baselines/reference/project/baseline2/node/baseline2.errors.txt create mode 100644 tests/baselines/reference/project/baseline3/node/baseline3.errors.txt create mode 100644 tests/baselines/reference/project/circularReferencing/node/circularReferencing.errors.txt create mode 100644 tests/baselines/reference/project/circularReferencing2/node/circularReferencing2.errors.txt create mode 100644 tests/baselines/reference/project/declarationDir/node/declarationDir.errors.txt create mode 100644 tests/baselines/reference/project/declarationDir2/node/declarationDir2.errors.txt create mode 100644 tests/baselines/reference/project/declarationsCascadingImports/node/declarationsCascadingImports.errors.txt create mode 100644 tests/baselines/reference/project/declarationsExportNamespace/node/declarationsExportNamespace.errors.txt create mode 100644 tests/baselines/reference/project/declarationsGlobalImport/node/declarationsGlobalImport.errors.txt create mode 100644 tests/baselines/reference/project/declarationsImportedInPrivate/node/declarationsImportedInPrivate.errors.txt create mode 100644 tests/baselines/reference/project/declarationsImportedUseInFunction/node/declarationsImportedUseInFunction.errors.txt create mode 100644 tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/declarationsIndirectImportShouldResultInError.errors.txt create mode 100644 tests/baselines/reference/project/declarationsMultipleTimesImport/node/declarationsMultipleTimesImport.errors.txt create mode 100644 tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/declarationsMultipleTimesMultipleImport.errors.txt create mode 100644 tests/baselines/reference/project/declarationsSimpleImport/node/declarationsSimpleImport.errors.txt create mode 100644 tests/baselines/reference/project/declareExportAdded/node/declareExportAdded.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt create mode 100644 tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.errors.txt create mode 100644 tests/baselines/reference/project/extReferencingExtAndInt/node/extReferencingExtAndInt.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/node/jsFileCompilationSameNameDTsSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/node/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/node/jsFileCompilationSameNameDtsNotSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/node/jsFileCompilationSameNameFilesNotSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/jsFileCompilationSameNameFilesSpecified.errors.txt create mode 100644 tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/moduleIdentifier/node/moduleIdentifier.errors.txt create mode 100644 tests/baselines/reference/project/moduleMergingOrdering1/node/moduleMergingOrdering1.errors.txt create mode 100644 tests/baselines/reference/project/moduleMergingOrdering2/node/moduleMergingOrdering2.errors.txt create mode 100644 tests/baselines/reference/project/multipleLevelsModuleResolution/node/multipleLevelsModuleResolution.errors.txt create mode 100644 tests/baselines/reference/project/nestedDeclare/node/nestedDeclare.errors.txt create mode 100644 tests/baselines/reference/project/nestedReferenceTags/node/nestedReferenceTags.errors.txt create mode 100644 tests/baselines/reference/project/noProjectOptionAndInputFiles/node/noProjectOptionAndInputFiles.errors.txt create mode 100644 tests/baselines/reference/project/nonRelative/node/nonRelative.errors.txt create mode 100644 tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/outMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/outModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSimpleNoOutdir/node/outModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/outModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outMultifolderNoOutdir/node/outMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outSimpleNoOutdir/node/outSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outSingleFileNoOutdir/node/outSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/outSubfolderNoOutdir/node/outSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/node/privacyCheckOnImportedModuleSimpleReference.errors.txt create mode 100644 tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/node/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt create mode 100644 tests/baselines/reference/project/projectOptionTest/node/projectOptionTest.errors.txt create mode 100644 tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/quotesInFileAndDirectoryNames.errors.txt create mode 100644 tests/baselines/reference/project/referencePathStatic/node/referencePathStatic.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionRelativePaths/node/referenceResolutionRelativePaths.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/referenceResolutionRelativePathsFromRootDirectory.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/referenceResolutionRelativePathsNoResolve.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionSameFileTwice/node/referenceResolutionSameFileTwice.errors.txt create mode 100644 tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/referenceResolutionSameFileTwiceNoResolve.errors.txt create mode 100644 tests/baselines/reference/project/relativeGlobal/node/relativeGlobal.errors.txt create mode 100644 tests/baselines/reference/project/relativeGlobalRef/node/relativeGlobalRef.errors.txt create mode 100644 tests/baselines/reference/project/relativeNested/node/relativeNested.errors.txt create mode 100644 tests/baselines/reference/project/relativeNestedRef/node/relativeNestedRef.errors.txt create mode 100644 tests/baselines/reference/project/relativePaths/node/relativePaths.errors.txt create mode 100644 tests/baselines/reference/project/rootDirectory/node/rootDirectory.errors.txt create mode 100644 tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.errors.txt create mode 100644 tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.errors.txt create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.errors.txt create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.errors.txt create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt create mode 100644 tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/visibilityOfTypeUsedAcrossModules.errors.txt create mode 100644 tests/baselines/reference/relativePathToDeclarationFile.errors.txt create mode 100644 tests/baselines/reference/scopedPackagesClassic.errors.txt diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 607556b932b25..23ecd881ec09c 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -4498,6 +4498,9 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro if (options.moduleResolution === ModuleResolutionKind.Node10) { createDeprecatedDiagnostic("moduleResolution", "node10", /*useInstead*/ undefined, Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information); } + if (options.moduleResolution === ModuleResolutionKind.Classic) { + createDeprecatedDiagnostic("moduleResolution", "classic", /*useInstead*/ undefined, /*related*/ undefined); + } if (options.baseUrl !== undefined) { createDeprecatedDiagnostic("baseUrl", /*value*/ undefined, /*useInstead*/ undefined, Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information); } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index b8657c1f328fd..9805b7ae9b1e4 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -9020,6 +9020,7 @@ const _computedOptions = createComputedCompilerOptions({ } const moduleKind = _computedOptions.module.computeValue(compilerOptions); switch (moduleKind) { + case ModuleKind.None: case ModuleKind.AMD: case ModuleKind.UMD: case ModuleKind.System: diff --git a/tests/baselines/reference/allowImportingTsExtensions(moduleresolution=classic).errors.txt b/tests/baselines/reference/allowImportingTsExtensions(moduleresolution=classic).errors.txt index ae5bc45ff3c2e..98e3d340ca637 100644 --- a/tests/baselines/reference/allowImportingTsExtensions(moduleresolution=classic).errors.txt +++ b/tests/baselines/reference/allowImportingTsExtensions(moduleresolution=classic).errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /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? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /ts.ts (0 errors) ==== export {}; diff --git a/tests/baselines/reference/allowImportingTypesDtsExtension(allowimportingtsextensions=false,moduleresolution=classic).errors.txt b/tests/baselines/reference/allowImportingTypesDtsExtension(allowimportingtsextensions=false,moduleresolution=classic).errors.txt new file mode 100644 index 0000000000000..8bac3b2cb1dd0 --- /dev/null +++ b/tests/baselines/reference/allowImportingTypesDtsExtension(allowimportingtsextensions=false,moduleresolution=classic).errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /types.d.ts (0 errors) ==== + export declare type User = { + name: string; + } + +==== /a.ts (0 errors) ==== + import type { User } from "./types.d.ts"; + export type { User } from "./types.d.ts"; + + export const user: User = { name: "John" }; + + export function getUser(): import("./types.d.ts").User { + return user; + } + \ No newline at end of file diff --git a/tests/baselines/reference/allowImportingTypesDtsExtension(allowimportingtsextensions=true,moduleresolution=classic).errors.txt b/tests/baselines/reference/allowImportingTypesDtsExtension(allowimportingtsextensions=true,moduleresolution=classic).errors.txt new file mode 100644 index 0000000000000..8bac3b2cb1dd0 --- /dev/null +++ b/tests/baselines/reference/allowImportingTypesDtsExtension(allowimportingtsextensions=true,moduleresolution=classic).errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /types.d.ts (0 errors) ==== + export declare type User = { + name: string; + } + +==== /a.ts (0 errors) ==== + import type { User } from "./types.d.ts"; + export type { User } from "./types.d.ts"; + + export const user: User = { name: "John" }; + + export function getUser(): import("./types.d.ts").User { + return user; + } + \ No newline at end of file diff --git a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt index bf948e58e5c39..137bc8405d91d 100644 --- a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt +++ b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_module(module=none).errors.txt @@ -1,13 +1,9 @@ -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. arbitraryModuleNamespaceIdentifiers_module.ts(20,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(24,7): error TS2322: Type '"expect error about someType"' is not assignable to type '"someType"'. arbitraryModuleNamespaceIdentifiers_module.ts(29,7): error TS2322: Type '"expect error about otherType"' is not assignable to type '"otherType"'. -!!! 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. ==== arbitraryModuleNamespaceIdentifiers_module.ts (3 errors) ==== const someValue = "someValue"; diff --git a/tests/baselines/reference/cachedModuleResolution3.errors.txt b/tests/baselines/reference/cachedModuleResolution3.errors.txt new file mode 100644 index 0000000000000..a215118639b4d --- /dev/null +++ b/tests/baselines/reference/cachedModuleResolution3.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /a/b/foo.d.ts (0 errors) ==== + export declare let x: number + +==== /a/b/c/d/e/app.ts (0 errors) ==== + import {x} from "foo"; + +==== /a/b/c/lib.ts (0 errors) ==== + import {x} from "foo"; \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution4.errors.txt b/tests/baselines/reference/cachedModuleResolution4.errors.txt new file mode 100644 index 0000000000000..dbee47cdf6822 --- /dev/null +++ b/tests/baselines/reference/cachedModuleResolution4.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /a/b/foo.d.ts (0 errors) ==== + export declare let x: number + +==== /a/b/c/lib.ts (0 errors) ==== + import {x} from "foo"; + +==== /a/b/c/d/e/app.ts (0 errors) ==== + import {x} from "foo"; + \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution8.errors.txt b/tests/baselines/reference/cachedModuleResolution8.errors.txt index 454954606fd73..c507bb0e52655 100644 --- a/tests/baselines/reference/cachedModuleResolution8.errors.txt +++ b/tests/baselines/reference/cachedModuleResolution8.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /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? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /a/b/c/d/e/app.ts (1 errors) ==== import {x} from "foo"; ~~~~~ diff --git a/tests/baselines/reference/cachedModuleResolution9.errors.txt b/tests/baselines/reference/cachedModuleResolution9.errors.txt index 5c56ae758db02..73ac6316facb1 100644 --- a/tests/baselines/reference/cachedModuleResolution9.errors.txt +++ b/tests/baselines/reference/cachedModuleResolution9.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /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? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /a/b/c/lib.ts (1 errors) ==== import {x} from "foo"; ~~~~~ diff --git a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/module/tsconfig.json b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/module/tsconfig.json index e7f1c93b4ccb7..76640f8c61e97 100644 --- a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/module/tsconfig.json +++ b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/module/tsconfig.json @@ -1,5 +1,9 @@ { "compilerOptions": { - "module": "none" + "module": "none", + "moduleResolution": "classic", + "resolvePackageJsonExports": false, + "resolvePackageJsonImports": false, + "resolveJsonModule": false } } diff --git a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node16).errors.txt b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node16).errors.txt deleted file mode 100644 index 67291b1f976cd..0000000000000 --- a/tests/baselines/reference/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/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node16).js b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node16).js index 47204b7a76f30..2bf5641f43b50 100644 --- a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node16).js +++ b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node16).js @@ -10,17 +10,20 @@ const y = { ...o }; //// [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([ +exports.A = A; +exports.A = A = __decorate([ dec ], A); -export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node18).errors.txt b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node18).errors.txt deleted file mode 100644 index 7dfd532d52b18..0000000000000 --- a/tests/baselines/reference/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/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node18).js b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node18).js index 47204b7a76f30..2bf5641f43b50 100644 --- a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node18).js +++ b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node18).js @@ -10,17 +10,20 @@ const y = { ...o }; //// [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([ +exports.A = A; +exports.A = A = __decorate([ dec ], A); -export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node20).errors.txt b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node20).errors.txt deleted file mode 100644 index 07470d26af612..0000000000000 --- a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node20).errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -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; - @dec export class A { - } - - const o = { a: 1 }; - const y = { ...o }; - \ No newline at end of file diff --git a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node20).js b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node20).js index 47204b7a76f30..2bf5641f43b50 100644 --- a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node20).js +++ b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=node20).js @@ -10,17 +10,20 @@ const y = { ...o }; //// [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([ +exports.A = A; +exports.A = A = __decorate([ dec ], A); -export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=nodenext).errors.txt b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=nodenext).errors.txt deleted file mode 100644 index 3537cb1753855..0000000000000 --- a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=nodenext).errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -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; - @dec export class A { - } - - const o = { a: 1 }; - const y = { ...o }; - \ No newline at end of file diff --git a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=nodenext).js b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=nodenext).js index 47204b7a76f30..2bf5641f43b50 100644 --- a/tests/baselines/reference/emitHelpersWithLocalCollisions(module=nodenext).js +++ b/tests/baselines/reference/emitHelpersWithLocalCollisions(module=nodenext).js @@ -10,17 +10,20 @@ const y = { ...o }; //// [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([ +exports.A = A; +exports.A = A = __decorate([ dec ], A); -export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions.js b/tests/baselines/reference/es5-importHelpersAsyncFunctions.js index 03a239f92195d..d01de6ede62b8 100644 --- a/tests/baselines/reference/es5-importHelpersAsyncFunctions.js +++ b/tests/baselines/reference/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/tests/baselines/reference/es5-importHelpersAsyncFunctions.symbols b/tests/baselines/reference/es5-importHelpersAsyncFunctions.symbols index c0f483062139e..5781f210fb6c1 100644 --- a/tests/baselines/reference/es5-importHelpersAsyncFunctions.symbols +++ b/tests/baselines/reference/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, --, --)) ->d : Symbol(d, Decl(tslib.d.ts, --, --)) +>__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, --, --)) +>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, --, --)) ->t : Symbol(t, Decl(tslib.d.ts, --, --)) ->sources : Symbol(sources, Decl(tslib.d.ts, --, --)) +>__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, --, --)) ->decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) +>__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, --, --)) ->key : Symbol(key, Decl(tslib.d.ts, --, --)) ->desc : Symbol(desc, Decl(tslib.d.ts, --, --)) +>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, --, --)) ->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) ->decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) +>__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, --, --)) ->metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) ->metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) +>__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, --, --)) ->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(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, --, --)) +>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, --, --)) ->body : Symbol(body, Decl(tslib.d.ts, --, --)) +>__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/tests/baselines/reference/es5-importHelpersAsyncFunctions.types b/tests/baselines/reference/es5-importHelpersAsyncFunctions.types index f582f971bbb83..6a5b209059eb6 100644 --- a/tests/baselines/reference/es5-importHelpersAsyncFunctions.types +++ b/tests/baselines/reference/es5-importHelpersAsyncFunctions.types @@ -12,7 +12,7 @@ async function foo() { > : ^^^^^^^^^^^^^^^^^^^ } -=== tslib.d.ts === +=== node_modules/tslib/index.d.ts === export declare function __extends(d: Function, b: Function): void; >__extends : (d: Function, b: Function) => void > : ^ ^^ ^^ ^^ ^^^^^ diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt index 4e02a0aa1f994..da6d8195b1e06 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (2 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt index 22a986b9e5a3f..657dc265c2631 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt index 34f05ae11fab0..604b8d5ef42f5 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt index ff8f45539b4d6..7f097b90519d4 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt index b47515bd36ec2..ded49d9dbb2d6 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (2 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt index af0c5e359fa6a..159602037907b 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt index 8b14940e4d002..1e4931d2da24d 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt index 4cb66dd237a97..1ee336acfa1ae 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt index b898766dbb070..38dc9bc586074 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt index d08a1c6ef44be..763a76014c14e 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt index 489843175f354..24fbc1625dd91 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt index a1fbd5c590608..e35e3c3b1106e 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt index 2b1d68632ddf9..b77962ffe3e9a 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt index 3cb1ee85a8a9f..def48e013e92f 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt index 870c3f04cae09..cdc9d8b50e5c9 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (2 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt index 5cea45d643ee6..17da55b9cb616 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt index 13f357800ef76..aee17b86ec519 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt index c6dd8dec742ef..f56990d1a61da 100644 --- a/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt +++ b/tests/baselines/reference/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {} diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt index f7da9e69d2a1b..4174a28ed1865 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt index 158223d45b0c8..36b4326789a61 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt index 6edc9212fbd14..5e0780d3a7ac9 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt index f510e6aea6006..f3d883d83eb61 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt index ebde494ee6eb1..aef7415378c72 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt index 29120dafafd8b..c4ba413982997 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (4 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt index d964b2c8c093c..3d0af4507d5b0 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt index ee9cd74f912e2..2ffb54ed36493 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (4 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt index f510b08fac8a5..c43881c25729c 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt index d5166e4ac5081..ad47215331f2a 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (2 errors) ==== declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt index 32e3c26fce6c4..b5d3930d6cc43 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt index 512e41daf1ef5..656b9cb545ddf 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt index cae8fa9adaf4e..55bdbeefbf202 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt index 51303bf08520a..b01d2ed809d18 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt index 7436b7408a045..1bd8a9a65a631 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt index dd1464b64ce68..51011b66f0781 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt index abadcda487de8..acd3b2d3a9316 100644 --- a/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt +++ b/tests/baselines/reference/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export {}; declare var dec: any; diff --git a/tests/baselines/reference/extensionLoadingPriority(moduleresolution=classic).errors.txt b/tests/baselines/reference/extensionLoadingPriority(moduleresolution=classic).errors.txt new file mode 100644 index 0000000000000..7974b162a5b2a --- /dev/null +++ b/tests/baselines/reference/extensionLoadingPriority(moduleresolution=classic).errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /project/a.js (0 errors) ==== + export default "a.js"; + +==== /project/a.js.js (0 errors) ==== + export default "a.js.js"; + +==== /project/dir/index.ts (0 errors) ==== + export default "dir/index.ts"; + +==== /project/dir.js (0 errors) ==== + export default "dir.js"; + +==== /project/b.ts (0 errors) ==== + import a from "./a.js"; + import dir from "./dir"; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpers.js b/tests/baselines/reference/importHelpers.js index edc0aa2c58fa3..34b5f67f8c555 100644 --- a/tests/baselines/reference/importHelpers.js +++ b/tests/baselines/reference/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/tests/baselines/reference/importHelpers.symbols b/tests/baselines/reference/importHelpers.symbols index b936b78e42a6e..0deee4ae08814 100644 --- a/tests/baselines/reference/importHelpers.symbols +++ b/tests/baselines/reference/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, --, --)) ->d : Symbol(d, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->b : Symbol(b, Decl(tslib.d.ts, --, --)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --)) ->decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --)) ->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) ->decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->generator : Symbol(generator, Decl(tslib.d.ts, --, --)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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/tests/baselines/reference/importHelpers.types b/tests/baselines/reference/importHelpers.types index d786b11dda4f9..56dbec9860293 100644 --- a/tests/baselines/reference/importHelpers.types +++ b/tests/baselines/reference/importHelpers.types @@ -102,7 +102,7 @@ const result = id`hello world`; >`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 > : ^ ^^ ^^ ^^ ^^^^^ diff --git a/tests/baselines/reference/importHelpersInIsolatedModules.js b/tests/baselines/reference/importHelpersInIsolatedModules.js index 884cfa84fe172..2c771e83caf2d 100644 --- a/tests/baselines/reference/importHelpersInIsolatedModules.js +++ b/tests/baselines/reference/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/tests/baselines/reference/importHelpersInIsolatedModules.symbols b/tests/baselines/reference/importHelpersInIsolatedModules.symbols index 6b2d6e11a796c..356825cb37971 100644 --- a/tests/baselines/reference/importHelpersInIsolatedModules.symbols +++ b/tests/baselines/reference/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, --, --)) ->d : Symbol(d, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->b : Symbol(b, Decl(tslib.d.ts, --, --)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --)) ->decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --)) ->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) ->decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->generator : Symbol(generator, Decl(tslib.d.ts, --, --)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) diff --git a/tests/baselines/reference/importHelpersInIsolatedModules.types b/tests/baselines/reference/importHelpersInIsolatedModules.types index 85f1bbc2d93e5..bcec951637ca5 100644 --- a/tests/baselines/reference/importHelpersInIsolatedModules.types +++ b/tests/baselines/reference/importHelpersInIsolatedModules.types @@ -60,7 +60,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 > : ^ ^^ ^^ ^^ ^^^^^ diff --git a/tests/baselines/reference/importHelpersInTsx.js b/tests/baselines/reference/importHelpersInTsx.js index 5005140e453aa..230c81859a682 100644 --- a/tests/baselines/reference/importHelpersInTsx.js +++ b/tests/baselines/reference/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/tests/baselines/reference/importHelpersInTsx.symbols b/tests/baselines/reference/importHelpersInTsx.symbols index d5ba009e7f950..f5041b7d836c6 100644 --- a/tests/baselines/reference/importHelpersInTsx.symbols +++ b/tests/baselines/reference/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, --, --)) ->d : Symbol(d, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->b : Symbol(b, Decl(tslib.d.ts, --, --)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --)) ->decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --)) ->paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) ->decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) +>__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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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(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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->generator : Symbol(generator, Decl(tslib.d.ts, --, --)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) >Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) diff --git a/tests/baselines/reference/importHelpersInTsx.types b/tests/baselines/reference/importHelpersInTsx.types index 3d32a7cdead3b..b166d5cb97047 100644 --- a/tests/baselines/reference/importHelpersInTsx.types +++ b/tests/baselines/reference/importHelpersInTsx.types @@ -28,7 +28,7 @@ const x = > : ^^^ >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 > : ^ ^^ ^^ ^^ ^^^^^ diff --git a/tests/baselines/reference/importHelpersNoHelpers.errors.txt b/tests/baselines/reference/importHelpersNoHelpers.errors.txt index 47c053824e89c..4c58dcf6c2063 100644 --- a/tests/baselines/reference/importHelpersNoHelpers.errors.txt +++ b/tests/baselines/reference/importHelpersNoHelpers.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -7,6 +8,7 @@ external.ts(14,13): error TS2343: This syntax requires an imported helper named 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== external.ts (7 errors) ==== export * from "./other"; ~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.errors.txt b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.errors.txt index 92a47c28a2fb0..652f4ef43c909 100644 --- a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.errors.txt +++ b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. @@ -5,6 +6,7 @@ main.ts(4,5): error TS2343: This syntax requires an imported helper named '__asy 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (5 errors) ==== export async function * f() { ~ diff --git a/tests/baselines/reference/importHelpersNoHelpersForPrivateFields.errors.txt b/tests/baselines/reference/importHelpersNoHelpersForPrivateFields.errors.txt index 05586f6d42048..57d046a360081 100644 --- a/tests/baselines/reference/importHelpersNoHelpersForPrivateFields.errors.txt +++ b/tests/baselines/reference/importHelpersNoHelpersForPrivateFields.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 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'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== export class Foo { #field = true; diff --git a/tests/baselines/reference/importHelpersNoModule.errors.txt b/tests/baselines/reference/importHelpersNoModule.errors.txt index 93d201ee1a591..ed5940d20f2e7 100644 --- a/tests/baselines/reference/importHelpersNoModule.errors.txt +++ b/tests/baselines/reference/importHelpersNoModule.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. external.ts(2,16): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== external.ts (1 errors) ==== export class A { } export class B extends A { } diff --git a/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).errors.txt b/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).errors.txt index 9e13d982bc953..4275b79ce7fea 100644 --- a/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).errors.txt +++ b/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).errors.txt @@ -1,17 +1,20 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +a.ts(2,1): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== a.ts (0 errors) ==== +==== a.ts (1 errors) ==== declare var dec: any, __decorate: any; @dec export class A { + ~~~~ +!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. } const o = { a: 1 }; const y = { ...o }; -==== tslib.d.ts (0 errors) ==== +==== node_modules/tslib/index.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; diff --git a/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).js b/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).js index 8cd41ea7a3e7c..2b80d8f0bc8b2 100644 --- a/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).js +++ b/tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).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/tests/baselines/reference/importHelpersWithLocalCollisions(module=commonjs).js b/tests/baselines/reference/importHelpersWithLocalCollisions(module=commonjs).js index adaba14dce798..d0149baffbef5 100644 --- a/tests/baselines/reference/importHelpersWithLocalCollisions(module=commonjs).js +++ b/tests/baselines/reference/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/tests/baselines/reference/importHelpersWithLocalCollisions(module=es2015).js b/tests/baselines/reference/importHelpersWithLocalCollisions(module=es2015).js index ba22069c306f2..a974a5de5cf8f 100644 --- a/tests/baselines/reference/importHelpersWithLocalCollisions(module=es2015).js +++ b/tests/baselines/reference/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/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).errors.txt b/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).errors.txt index 5c2c8ba5d6ac7..c0c6ac22da1c2 100644 --- a/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).errors.txt +++ b/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).errors.txt @@ -1,17 +1,20 @@ error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +a.ts(2,1): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. !!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== a.ts (0 errors) ==== +==== a.ts (1 errors) ==== declare var dec: any, __decorate: any; @dec export class A { + ~~~~ +!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. } const o = { a: 1 }; const y = { ...o }; -==== tslib.d.ts (0 errors) ==== +==== node_modules/tslib/index.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; diff --git a/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).js b/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).js index 788e5ae4d8d46..2bbe62e910cc9 100644 --- a/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).js +++ b/tests/baselines/reference/importHelpersWithLocalCollisions(module=system).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/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt b/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt index e2c5580e84230..506f5a57da502 100644 --- a/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt +++ b/tests/baselines/reference/moduleNoneDynamicImport(target=es2015).errors.txt @@ -1,10 +1,6 @@ -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. -!!! 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. ==== /a.ts (0 errors) ==== const foo = import("./b"); diff --git a/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt b/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt index e2c5580e84230..506f5a57da502 100644 --- a/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt +++ b/tests/baselines/reference/moduleNoneDynamicImport(target=es2020).errors.txt @@ -1,10 +1,6 @@ -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. -!!! 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. ==== /a.ts (0 errors) ==== const foo = import("./b"); diff --git a/tests/baselines/reference/moduleNoneErrors.errors.txt b/tests/baselines/reference/moduleNoneErrors.errors.txt index c88b224978fec..7ff5b8706838c 100644 --- a/tests/baselines/reference/moduleNoneErrors.errors.txt +++ b/tests/baselines/reference/moduleNoneErrors.errors.txt @@ -1,11 +1,7 @@ -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. a.ts(1,14): 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. ==== a.ts (1 errors) ==== export class Foo { diff --git a/tests/baselines/reference/moduleNoneOutFile.errors.txt b/tests/baselines/reference/moduleNoneOutFile.errors.txt index 055f8e05bb714..12037428e5f2a 100644 --- a/tests/baselines/reference/moduleNoneOutFile.errors.txt +++ b/tests/baselines/reference/moduleNoneOutFile.errors.txt @@ -1,10 +1,6 @@ -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. -!!! 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. ==== first.ts (0 errors) ==== class Foo {} diff --git a/tests/baselines/reference/moduleResolution_classicPrefersTs.errors.txt b/tests/baselines/reference/moduleResolution_classicPrefersTs.errors.txt new file mode 100644 index 0000000000000..15dcc5fb668cf --- /dev/null +++ b/tests/baselines/reference/moduleResolution_classicPrefersTs.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /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 (0 errors) ==== + import a from "a"; + \ No newline at end of file diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt index de7b5af018515..693651860fc9d 100644 --- a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt +++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile1.errors.txt @@ -1,10 +1,6 @@ -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. -!!! 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. ==== 0.d.ts (0 errors) ==== export = a; diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt index f115db2d47c2a..7ad4ea8858b04 100644 --- a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt +++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt @@ -1,11 +1,7 @@ -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. 1.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. ==== 1.ts (1 errors) ==== export var j = "hello"; // error diff --git a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt index b8b13381bdee3..ba676c872cc92 100644 --- a/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt +++ b/tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt @@ -1,11 +1,7 @@ -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. 1.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. ==== 0.d.ts (0 errors) ==== export = a; diff --git a/tests/baselines/reference/packageJsonExportsOptionsCompat.errors.txt b/tests/baselines/reference/packageJsonExportsOptionsCompat.errors.txt index 435349fe337d7..3ff1544aade3e 100644 --- a/tests/baselines/reference/packageJsonExportsOptionsCompat.errors.txt +++ b/tests/baselines/reference/packageJsonExportsOptionsCompat.errors.txt @@ -1,12 +1,15 @@ +/tsconfig.json(3,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /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) ==== +==== /tsconfig.json (4 errors) ==== { "compilerOptions": { "moduleResolution": "classic", + ~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "customConditions": ["webpack", "browser"], ~~~~~~~~~~~~~~~~~~ !!! error TS5098: Option 'customConditions' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. diff --git a/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt b/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt index 5d90d36e485be..bc6129833a4db 100644 --- a/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt +++ b/tests/baselines/reference/packageJsonImportsExportsOptionCompat(moduleresolution=classic).errors.txt @@ -1,8 +1,10 @@ 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=classic' 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=classic' 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/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt index 20a16ef94f7fd..954947986d00f 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.errors.txt @@ -1,11 +1,13 @@ error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5101: Visit https://aka.ms/ts6 for migration information. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== c:/root/folder1/file1.ts (0 errors) ==== import {x} from "folder2/file2" declare function use(a: any): void; diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt index 10317b50586bf..e26a99f3bff90 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.errors.txt @@ -1,13 +1,16 @@ c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +c:/root/tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. -==== c:/root/tsconfig.json (2 errors) ==== +==== c:/root/tsconfig.json (3 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "baseUrl": "." ~~~~~~~~~ !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt index 595409d48bda3..95c012f361034 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.errors.txt @@ -1,13 +1,16 @@ c:/root/tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +c:/root/tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. c:/root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. -==== c:/root/tsconfig.json (2 errors) ==== +==== c:/root/tsconfig.json (3 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "baseUrl": ".", ~~~~~~~~~ !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/project/baseline/amd/baseline.errors.txt b/tests/baselines/reference/project/baseline/amd/baseline.errors.txt index c8e153598acff..7a2f702213bb1 100644 --- a/tests/baselines/reference/project/baseline/amd/baseline.errors.txt +++ b/tests/baselines/reference/project/baseline/amd/baseline.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (0 errors) ==== export interface Point { x: number; y: number; }; export function point (x: number, y: number): Point { diff --git a/tests/baselines/reference/project/baseline/node/baseline.errors.txt b/tests/baselines/reference/project/baseline/node/baseline.errors.txt new file mode 100644 index 0000000000000..30ec6e699721c --- /dev/null +++ b/tests/baselines/reference/project/baseline/node/baseline.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export interface Point { x: number; y: number; }; + export function point (x: number, y: number): Point { + return { x: x, y: y }; + } +==== emit.ts (0 errors) ==== + import g = require("./decl"); + var p = g.point(10,20); \ No newline at end of file diff --git a/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt b/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt index 41e83eb220b84..d515b287e96e1 100644 --- a/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt +++ b/tests/baselines/reference/project/baseline2/amd/baseline2.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (0 errors) ==== export interface Point { x: number; y: number; }; export function point (x: number, y: number): Point { diff --git a/tests/baselines/reference/project/baseline2/node/baseline2.errors.txt b/tests/baselines/reference/project/baseline2/node/baseline2.errors.txt new file mode 100644 index 0000000000000..617a04f2151c7 --- /dev/null +++ b/tests/baselines/reference/project/baseline2/node/baseline2.errors.txt @@ -0,0 +1,12 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export interface Point { x: number; y: number; }; + export function point (x: number, y: number): Point { + return { x: x, y: y }; + } +==== dont_emit.ts (0 errors) ==== + import g = require("decl"); + var p: g.Point = { x: 10, y: 20 }; \ No newline at end of file diff --git a/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt b/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt index 31c7e76c835bb..3590de718d749 100644 --- a/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt +++ b/tests/baselines/reference/project/baseline3/amd/baseline3.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== nestedModule.ts (0 errors) ==== export namespace outer { export namespace inner { diff --git a/tests/baselines/reference/project/baseline3/node/baseline3.errors.txt b/tests/baselines/reference/project/baseline3/node/baseline3.errors.txt new file mode 100644 index 0000000000000..3fa1f12ca1258 --- /dev/null +++ b/tests/baselines/reference/project/baseline3/node/baseline3.errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== nestedModule.ts (0 errors) ==== + export namespace outer { + export namespace inner { + var local = 1; + export var a = local; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt b/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt index f0885adb03ca6..b9d9e8b2b893e 100644 --- a/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt +++ b/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt @@ -1,10 +1,12 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. decl.ts(1,26): error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? decl.ts(2,26): error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? decl.ts(3,26): error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (3 errors) ==== import modErr = require("./foo/bar.tx"); ~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt b/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt index 09e738e27c13d..48a6b2a4975ba 100644 --- a/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt +++ b/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. decl.ts(1,26): error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? decl.ts(2,26): error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? decl.ts(3,26): error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (3 errors) ==== import modErr = require("./foo/bar.tx"); ~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt b/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt index a8350b4a50ba4..cf15263948181 100644 --- a/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt +++ b/tests/baselines/reference/project/circularReferencing/amd/circularReferencing.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (0 errors) ==== import mod = require("consume"); export function call() { diff --git a/tests/baselines/reference/project/circularReferencing/node/circularReferencing.errors.txt b/tests/baselines/reference/project/circularReferencing/node/circularReferencing.errors.txt new file mode 100644 index 0000000000000..e6f259522ede2 --- /dev/null +++ b/tests/baselines/reference/project/circularReferencing/node/circularReferencing.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + import mod = require("consume"); + export function call() { + mod.call(); + } +==== consume.ts (0 errors) ==== + import mod = require("decl"); + export function call() { + mod.call(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt b/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt index d3cef10218d4d..d699f043eeab4 100644 --- a/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt +++ b/tests/baselines/reference/project/circularReferencing2/amd/circularReferencing2.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.ts (0 errors) ==== import A = require("a"); diff --git a/tests/baselines/reference/project/circularReferencing2/node/circularReferencing2.errors.txt b/tests/baselines/reference/project/circularReferencing2/node/circularReferencing2.errors.txt new file mode 100644 index 0000000000000..cd945d1f622d7 --- /dev/null +++ b/tests/baselines/reference/project/circularReferencing2/node/circularReferencing2.errors.txt @@ -0,0 +1,28 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + import A = require("a"); + + export class B extends A.A { + constructor () { + super(); + } + } +==== c.ts (0 errors) ==== + import B = require("b"); + + export class C extends B.B { + constructor () { + super(); + } + } + +==== a.ts (0 errors) ==== + import C = require("c"); + + export class A { + constructor () { } + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt b/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt index ae4cb74ca85d8..0d8c2778d28cf 100644 --- a/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt +++ b/tests/baselines/reference/project/declarationDir/amd/declarationDir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.ts (0 errors) ==== export class B { diff --git a/tests/baselines/reference/project/declarationDir/node/declarationDir.errors.txt b/tests/baselines/reference/project/declarationDir/node/declarationDir.errors.txt new file mode 100644 index 0000000000000..7595d62dab7a2 --- /dev/null +++ b/tests/baselines/reference/project/declarationDir/node/declarationDir.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + export class B { + + } +==== a.ts (0 errors) ==== + import {B} from './subfolder/b'; + export class A { + b: B; + } +==== subfolder/c.ts (0 errors) ==== + import {A} from '../a'; + + export class C { + a: A; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt b/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt index ae4cb74ca85d8..0d8c2778d28cf 100644 --- a/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt +++ b/tests/baselines/reference/project/declarationDir2/amd/declarationDir2.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.ts (0 errors) ==== export class B { diff --git a/tests/baselines/reference/project/declarationDir2/node/declarationDir2.errors.txt b/tests/baselines/reference/project/declarationDir2/node/declarationDir2.errors.txt new file mode 100644 index 0000000000000..7595d62dab7a2 --- /dev/null +++ b/tests/baselines/reference/project/declarationDir2/node/declarationDir2.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + export class B { + + } +==== a.ts (0 errors) ==== + import {B} from './subfolder/b'; + export class A { + b: B; + } +==== subfolder/c.ts (0 errors) ==== + import {A} from '../a'; + + export class C { + a: A; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt b/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt index 5e5746fb5efb1..fdd4900316bb9 100644 --- a/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt +++ b/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt @@ -1,9 +1,11 @@ error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.ts (0 errors) ==== export class B { diff --git a/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt b/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt index c877782f38964..5ed911b169808 100644 --- a/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt +++ b/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt @@ -1,8 +1,10 @@ error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. !!! error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== b.ts (0 errors) ==== export class B { diff --git a/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt b/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt index 3526b12ca1299..5befa870d86ac 100644 --- a/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt +++ b/tests/baselines/reference/project/declarationsCascadingImports/amd/declarationsCascadingImports.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m4.ts (0 errors) ==== export class d { }; diff --git a/tests/baselines/reference/project/declarationsCascadingImports/node/declarationsCascadingImports.errors.txt b/tests/baselines/reference/project/declarationsCascadingImports/node/declarationsCascadingImports.errors.txt new file mode 100644 index 0000000000000..a70585d1ef8fc --- /dev/null +++ b/tests/baselines/reference/project/declarationsCascadingImports/node/declarationsCascadingImports.errors.txt @@ -0,0 +1,28 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== useModule.ts (0 errors) ==== + declare module "quotedm1" { + import m4 = require("m4"); + export class v { + public c: m4.d; + } + } + + declare module "quotedm2" { + import m1 = require("quotedm1"); + export var c: m1.v; + } + + + + \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt b/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt index 30024ffe1eced..833478d927747 100644 --- a/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt +++ b/tests/baselines/reference/project/declarationsExportNamespace/amd/declarationsExportNamespace.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.d.ts (0 errors) ==== export interface A { b: number; diff --git a/tests/baselines/reference/project/declarationsExportNamespace/node/declarationsExportNamespace.errors.txt b/tests/baselines/reference/project/declarationsExportNamespace/node/declarationsExportNamespace.errors.txt new file mode 100644 index 0000000000000..f6e1a7f7645d0 --- /dev/null +++ b/tests/baselines/reference/project/declarationsExportNamespace/node/declarationsExportNamespace.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.d.ts (0 errors) ==== + export interface A { + b: number; + } + export as namespace moduleA; +==== useModule.ts (0 errors) ==== + namespace moduleB { + export interface IUseModuleA { + a: moduleA.A; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt b/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt index 1d22bb66a1a84..71f7e801d987e 100644 --- a/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt +++ b/tests/baselines/reference/project/declarationsGlobalImport/amd/declarationsGlobalImport.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== glo_m4.ts (0 errors) ==== export class d { diff --git a/tests/baselines/reference/project/declarationsGlobalImport/node/declarationsGlobalImport.errors.txt b/tests/baselines/reference/project/declarationsGlobalImport/node/declarationsGlobalImport.errors.txt new file mode 100644 index 0000000000000..70efa77735aab --- /dev/null +++ b/tests/baselines/reference/project/declarationsGlobalImport/node/declarationsGlobalImport.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== glo_m4.ts (0 errors) ==== + + export class d { + }; + export var x: d; + export function foo(): d { + return new d(); + } + + +==== useModule.ts (0 errors) ==== + import glo_m4 = require("glo_m4"); + export var useGlo_m4_x4 = glo_m4.x; + export var useGlo_m4_d4 = glo_m4.d; + export var useGlo_m4_f4 = glo_m4.foo(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt index 4728146fdd816..5a2867d36b6fe 100644 --- a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/declarationsImportedInPrivate.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== private_m4.ts (0 errors) ==== export class d { diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/node/declarationsImportedInPrivate.errors.txt b/tests/baselines/reference/project/declarationsImportedInPrivate/node/declarationsImportedInPrivate.errors.txt new file mode 100644 index 0000000000000..1cab1c03a3e64 --- /dev/null +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/node/declarationsImportedInPrivate.errors.txt @@ -0,0 +1,24 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== private_m4.ts (0 errors) ==== + + export class d { + }; + export var x: d; + export function foo(): d { + return new d(); + } + + +==== useModule.ts (0 errors) ==== + // only used privately no need to emit + import private_m4 = require("private_m4"); + export namespace usePrivate_m4_m1 { + var x3 = private_m4.x; + var d3 = private_m4.d; + var f3 = private_m4.foo(); + + export var numberVar: number; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt index 5e558eb0b4094..9c0dcb6ab676b 100644 --- a/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt +++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/declarationsImportedUseInFunction.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== fncOnly_m4.ts (0 errors) ==== export class d { diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/node/declarationsImportedUseInFunction.errors.txt b/tests/baselines/reference/project/declarationsImportedUseInFunction/node/declarationsImportedUseInFunction.errors.txt new file mode 100644 index 0000000000000..800a0933dc5c8 --- /dev/null +++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/node/declarationsImportedUseInFunction.errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== fncOnly_m4.ts (0 errors) ==== + + export class d { + }; + export var x: d; + export function foo(): d { + return new d(); + } + + +==== useModule.ts (0 errors) ==== + import fncOnly_m4 = require("fncOnly_m4"); + export var useFncOnly_m4_f4 = fncOnly_m4.foo(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt index eeac47a8a0c91..f2d98e4b42baa 100644 --- a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt +++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/declarationsIndirectImportShouldResultInError.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m4.ts (0 errors) ==== export class d { }; diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/declarationsIndirectImportShouldResultInError.errors.txt b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/declarationsIndirectImportShouldResultInError.errors.txt new file mode 100644 index 0000000000000..2eb82cb61b2e5 --- /dev/null +++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/declarationsIndirectImportShouldResultInError.errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== m5.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export function foo2() { + return new m4.d(); + } +==== useModule.ts (0 errors) ==== + // Do not emit unused import + import m5 = require("m5"); + export var d = m5.foo2(); + export var x = m5.foo2; + + export function n() { + return m5.foo2(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt index 0b2e1306cf161..2e320cff19d44 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt +++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/declarationsMultipleTimesImport.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m4.ts (0 errors) ==== export class d { }; diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/node/declarationsMultipleTimesImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesImport/node/declarationsMultipleTimesImport.errors.txt new file mode 100644 index 0000000000000..adbf74ce77c1f --- /dev/null +++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/node/declarationsMultipleTimesImport.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== useModule.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export var x4 = m4.x; + export var d4 = m4.d; + export var f4 = m4.foo(); + + export namespace m1 { + export var x2 = m4.x; + export var d2 = m4.d; + export var f2 = m4.foo(); + + var x3 = m4.x; + var d3 = m4.d; + var f3 = m4.foo(); + } + + // Do not emit multiple used import statements + import multiImport_m4 = require("m4"); // Emit used + export var useMultiImport_m4_x4 = multiImport_m4.x; + export var useMultiImport_m4_d4 = multiImport_m4.d; + export var useMultiImport_m4_f4 = multiImport_m4.foo(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt index 9b20581c5b1dd..f1d13f19b4505 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt +++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/declarationsMultipleTimesMultipleImport.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m4.ts (0 errors) ==== export class d { }; diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/declarationsMultipleTimesMultipleImport.errors.txt b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/declarationsMultipleTimesMultipleImport.errors.txt new file mode 100644 index 0000000000000..9fd68a4c43ccf --- /dev/null +++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/declarationsMultipleTimesMultipleImport.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== m5.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export function foo2() { + return new m4.d(); + } +==== useModule.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export var x4 = m4.x; + export var d4 = m4.d; + export var f4 = m4.foo(); + + export namespace m1 { + export var x2 = m4.x; + export var d2 = m4.d; + export var f2 = m4.foo(); + + var x3 = m4.x; + var d3 = m4.d; + var f3 = m4.foo(); + } + + // Do not emit unused import + import m5 = require("m5"); + export var d = m5.foo2(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt b/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt index a50dd986d2f6b..1d0efa7d14624 100644 --- a/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt +++ b/tests/baselines/reference/project/declarationsSimpleImport/amd/declarationsSimpleImport.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m4.ts (0 errors) ==== export class d { }; diff --git a/tests/baselines/reference/project/declarationsSimpleImport/node/declarationsSimpleImport.errors.txt b/tests/baselines/reference/project/declarationsSimpleImport/node/declarationsSimpleImport.errors.txt new file mode 100644 index 0000000000000..d32645887060c --- /dev/null +++ b/tests/baselines/reference/project/declarationsSimpleImport/node/declarationsSimpleImport.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m4.ts (0 errors) ==== + export class d { + }; + export var x: d; + export function foo() { + return new d(); + } + +==== useModule.ts (0 errors) ==== + import m4 = require("m4"); // Emit used + export var x4 = m4.x; + export var d4 = m4.d; + export var f4 = m4.foo(); + + export namespace m1 { + export var x2 = m4.x; + export var d2 = m4.d; + export var f2 = m4.foo(); + + var x3 = m4.x; + var d3 = m4.d; + var f3 = m4.foo(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt b/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt index 06b093ff0e9b4..1ca880ef898ef 100644 --- a/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt +++ b/tests/baselines/reference/project/declareExportAdded/amd/declareExportAdded.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref.d.ts (0 errors) ==== declare module M1 { diff --git a/tests/baselines/reference/project/declareExportAdded/node/declareExportAdded.errors.txt b/tests/baselines/reference/project/declareExportAdded/node/declareExportAdded.errors.txt new file mode 100644 index 0000000000000..cec554c516db9 --- /dev/null +++ b/tests/baselines/reference/project/declareExportAdded/node/declareExportAdded.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref.d.ts (0 errors) ==== + declare module M1 + { + export function f1(): void; + } +==== consumer.ts (0 errors) ==== + /// + + // in the generated code a 'this' is added before this call + M1.f1(); \ No newline at end of file diff --git a/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt b/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt index 33d9e0f27bc57..b1f81b629f7d4 100644 --- a/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt +++ b/tests/baselines/reference/project/declareVariableCollision/amd/declareVariableCollision.errors.txt @@ -1,9 +1,11 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. in1.d.ts(1,8): error TS2300: Duplicate identifier 'a'. in2.d.ts(1,8): error TS2300: Duplicate identifier 'a'. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.d.ts (0 errors) ==== // bug 535531: duplicate identifier error reported for "import" declarations in separate files diff --git a/tests/baselines/reference/project/declareVariableCollision/node/declareVariableCollision.errors.txt b/tests/baselines/reference/project/declareVariableCollision/node/declareVariableCollision.errors.txt index 73d3a86d014bc..a2584e6b97c29 100644 --- a/tests/baselines/reference/project/declareVariableCollision/node/declareVariableCollision.errors.txt +++ b/tests/baselines/reference/project/declareVariableCollision/node/declareVariableCollision.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. in1.d.ts(1,8): error TS2300: Duplicate identifier 'a'. in2.d.ts(1,8): error TS2300: Duplicate identifier 'a'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.d.ts (0 errors) ==== // bug 535531: duplicate identifier error reported for "import" declarations in separate files diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt index 926c07a9288e2..1a9ede8c45089 100644 --- a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outDir": "OutDir", "declaration": true } diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.errors.txt new file mode 100644 index 0000000000000..c152eb847a1e5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.errors.txt @@ -0,0 +1,14 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "OutDir", + "declaration": true + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt index 3dc456b4ab5c1..0994c19e96f40 100644 --- a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outDir": "OutDir", "allowJs": true } diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt new file mode 100644 index 0000000000000..89f9957c19347 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.errors.txt @@ -0,0 +1,14 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "OutDir", + "allowJs": true + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt index 3d0c96c06817c..c17623171c4b4 100644 --- a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outDir": "./OutDir", "declaration": true } diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt new file mode 100644 index 0000000000000..b8ef2bd450e25 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.errors.txt @@ -0,0 +1,14 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "./OutDir", + "declaration": true + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt index e1064b8022d86..33138ca2028ff 100644 --- a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outDir": "./OutDir", "allowJs": true } diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt new file mode 100644 index 0000000000000..6fae14f105e6b --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.errors.txt @@ -0,0 +1,14 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "./OutDir", + "allowJs": true + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt index dee9727b57877..ef94fccaf8f8b 100644 --- a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "target": "es5" } } diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.errors.txt b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.errors.txt new file mode 100644 index 0000000000000..593927f1e7d0e --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.errors.txt @@ -0,0 +1,13 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "target": "es5" + } + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt index fc3b36e2fd967..06a7bb238c97a 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt @@ -1,11 +1,14 @@ +tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (1 errors) ==== +==== tsconfig.json (2 errors) ==== { "compileOnSave": true, "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "target": "es5", "module": "commonjs", ~~~~~~~~~~ diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt index e645d251235a1..9ced49cce9130 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt @@ -1,10 +1,13 @@ +tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "target": "es5", "module": "commonjs", "emitDecoratorMetadata": true, diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt index b76d5fadd7dc3..762e07cf1d37d 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt @@ -1,11 +1,14 @@ +tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (1 errors) ==== +==== tsconfig.json (2 errors) ==== { "compileOnSave": true, "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "target": "es5", "module": "commonjs", ~~~~~~~~~~ diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt index 4362efe8f139e..4f2e4137d9955 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt @@ -1,10 +1,13 @@ +tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "target": "es5", "module": "commonjs", "emitDecoratorMetadata": true, diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt index 22c7951db7738..4c3cba22b2566 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt @@ -1,11 +1,14 @@ +tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (1 errors) ==== +==== tsconfig.json (2 errors) ==== { "compileOnSave": true, "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "target": "es5", "module": "system", ~~~~~~~~ diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt index b8ae506a1ffa4..1e19b3cfa4c97 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt @@ -1,10 +1,13 @@ +tsconfig.json(3,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "target": "es5", "module": "system", "emitDecoratorMetadata": true, diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt index 041ddb0403b02..cb44c70831178 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt @@ -1,8 +1,9 @@ tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(6,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (1 errors) ==== +==== tsconfig.json (2 errors) ==== { "compileOnSave": true, "compilerOptions": { @@ -11,6 +12,8 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "moduleResolution": "node", + ~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "emitDecoratorMetadata": true, "experimentalDecorators": true, "isolatedModules": true diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt index 05181175f9372..f2f6708ec1f3e 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt @@ -1,13 +1,16 @@ +tsconfig.json(6,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", + ~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "emitDecoratorMetadata": true, "experimentalDecorators": true, "isolatedModules": true diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt index b82cfb429682c..4dd71c2480382 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt @@ -1,8 +1,9 @@ tsconfig.json(5,15): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(6,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (1 errors) ==== +==== tsconfig.json (2 errors) ==== { "compileOnSave": true, "compilerOptions": { @@ -11,6 +12,8 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "moduleResolution": "node", + ~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "emitDecoratorMetadata": true, "experimentalDecorators": true, "isolatedModules": true, diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt index 555f6f1a7ccb6..6f129bfd68837 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt @@ -1,13 +1,16 @@ +tsconfig.json(6,25): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -==== tsconfig.json (0 errors) ==== +==== tsconfig.json (1 errors) ==== { "compileOnSave": true, "compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", + ~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "emitDecoratorMetadata": true, "experimentalDecorators": true, "isolatedModules": true, diff --git a/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt index 07f0214154b4f..e386dc0900383 100644 --- a/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt +++ b/tests/baselines/reference/project/extReferencingExtAndInt/amd/extReferencingExtAndInt.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== internal.ts (0 errors) ==== namespace outer { export var b = "foo"; diff --git a/tests/baselines/reference/project/extReferencingExtAndInt/node/extReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/extReferencingExtAndInt/node/extReferencingExtAndInt.errors.txt new file mode 100644 index 0000000000000..dcef28814220e --- /dev/null +++ b/tests/baselines/reference/project/extReferencingExtAndInt/node/extReferencingExtAndInt.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== internal.ts (0 errors) ==== + namespace outer { + export var b = "foo"; + } +==== external2.ts (0 errors) ==== + export function square(x: number) { + return (x * x); + } +==== external.ts (0 errors) ==== + /// + import a = require("external2"); + + outer.b = "bar"; + var c = a.square(5); \ No newline at end of file diff --git a/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt index 4b2cfba74a242..c9b00e285d34f 100644 --- a/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt +++ b/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt @@ -1,9 +1,11 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. internal2.ts(2,21): error TS1147: Import declarations in a namespace cannot reference a module. internal2.ts(2,21): error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== internal2.ts (2 errors) ==== namespace outer { import g = require("external2") diff --git a/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt index 4d0524e49b483..2141f273cc9cc 100644 --- a/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt +++ b/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. internal2.ts(2,21): error TS1147: Import declarations in a namespace cannot reference a module. internal2.ts(2,21): error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== internal2.ts (2 errors) ==== namespace outer { import g = require("external2") diff --git a/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt b/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt index 6ccff2909a060..d45c4c02594e3 100644 --- a/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt +++ b/tests/baselines/reference/project/invalidRootFile/amd/invalidRootFile.errors.txt @@ -1,4 +1,5 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6053: File 'a.ts' not found. The file is in the program because: Root file specified for compilation @@ -11,6 +12,7 @@ error TS6231: Could not resolve the path 'a' with the extensions: '.ts', '.tsx', !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6053: File 'a.ts' not found. !!! error TS6053: The file is in the program because: !!! error TS6053: Root file specified for compilation diff --git a/tests/baselines/reference/project/invalidRootFile/node/invalidRootFile.errors.txt b/tests/baselines/reference/project/invalidRootFile/node/invalidRootFile.errors.txt index ce9c2a81f90ee..4fcba270f6d00 100644 --- a/tests/baselines/reference/project/invalidRootFile/node/invalidRootFile.errors.txt +++ b/tests/baselines/reference/project/invalidRootFile/node/invalidRootFile.errors.txt @@ -1,3 +1,4 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6053: File 'a.ts' not found. The file is in the program because: Root file specified for compilation @@ -9,6 +10,7 @@ error TS6231: Could not resolve the path 'a' with the extensions: '.ts', '.tsx', Root file specified for compilation +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6053: File 'a.ts' not found. !!! error TS6053: The file is in the program because: !!! error TS6053: Root file specified for compilation diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt index c444ffbb66544..3d0b1a53d87a5 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt @@ -1,11 +1,14 @@ DifferentNamesNotSpecified/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +DifferentNamesNotSpecified/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== DifferentNamesNotSpecified/tsconfig.json (1 errors) ==== +==== DifferentNamesNotSpecified/tsconfig.json (2 errors) ==== { "compilerOptions": { "outFile": "test.js" } ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. } ==== DifferentNamesNotSpecified/a.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt index 94920694c0774..7ecee4af6d6cc 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt @@ -1,9 +1,12 @@ +DifferentNamesNotSpecified/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. DifferentNamesNotSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -==== DifferentNamesNotSpecified/tsconfig.json (1 errors) ==== +==== DifferentNamesNotSpecified/tsconfig.json (2 errors) ==== { "compilerOptions": { "outFile": "test.js" } + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ~~~~~~~~~ !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. } diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt index 7abaf6829b2a2..b40a4ad1bab39 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt @@ -1,11 +1,14 @@ DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outFile": "test.js", "allowJs": true } diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt index f6601905979af..454843c1b1547 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt @@ -1,9 +1,12 @@ +DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(3,5): error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outFile": "test.js", ~~~~~~~~~ !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt index 16f49565d3f50..e1eb0c3dc70ae 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt @@ -2,17 +2,20 @@ error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you The file is in the program because: Part of 'files' list in tsconfig.json DifferentNamesSpecified/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +DifferentNamesSpecified/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? !!! error TS6504: The file is in the program because: !!! error TS6504: Part of 'files' list in tsconfig.json !!! related TS1410 DifferentNamesSpecified/tsconfig.json:3:22: File is matched by 'files' list specified here. -==== DifferentNamesSpecified/tsconfig.json (1 errors) ==== +==== DifferentNamesSpecified/tsconfig.json (2 errors) ==== { "compilerOptions": { "outFile": "test.js" }, ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "files": [ "a.ts", "b.js" ] } diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt index 2a527c77f34d7..29b42d19cdc69 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt @@ -1,6 +1,7 @@ error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? The file is in the program because: Part of 'files' list in tsconfig.json +DifferentNamesSpecified/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. DifferentNamesSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. @@ -8,9 +9,11 @@ DifferentNamesSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'syste !!! error TS6504: The file is in the program because: !!! error TS6504: Part of 'files' list in tsconfig.json !!! related TS1410 DifferentNamesSpecified/tsconfig.json:3:22: File is matched by 'files' list specified here. -==== DifferentNamesSpecified/tsconfig.json (1 errors) ==== +==== DifferentNamesSpecified/tsconfig.json (2 errors) ==== { "compilerOptions": { "outFile": "test.js" }, + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ~~~~~~~~~ !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. "files": [ "a.ts", "b.js" ] diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt index 742ad9ec9c5b8..53ba08a0e8fbb 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt @@ -1,11 +1,14 @@ DifferentNamesSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +DifferentNamesSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outFile": "test.js", "allowJs": true }, diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt index 5e9b61c196d63..a6a84514ee0a7 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt @@ -1,9 +1,12 @@ +DifferentNamesSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. DifferentNamesSpecifiedWithAllowJs/tsconfig.json(3,5): error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. -==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outFile": "test.js", ~~~~~~~~~ !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt index 504aa5823ac00..8f432f9a92f8c 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/amd/jsFileCompilationSameNameDTsSpecified.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== SameNameDTsSpecified/tsconfig.json (0 errors) ==== { "files": [ "a.d.ts" ] } ==== SameNameDTsSpecified/a.d.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/node/jsFileCompilationSameNameDTsSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/node/jsFileCompilationSameNameDTsSpecified.errors.txt new file mode 100644 index 0000000000000..aeda30adafc6e --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecified/node/jsFileCompilationSameNameDTsSpecified.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameDTsSpecified/tsconfig.json (0 errors) ==== + { "files": [ "a.d.ts" ] } +==== SameNameDTsSpecified/a.d.ts (0 errors) ==== + declare var test: number; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt index f2e2dee7bcddc..fda0dddeff21a 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt @@ -1,11 +1,14 @@ SameNameDTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +SameNameDTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== SameNameDTsSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== SameNameDTsSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { "allowJs": true }, ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "files": [ "a.d.ts" ] } ==== SameNameDTsSpecifiedWithAllowJs/a.d.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/node/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/node/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..8214bf14d39d6 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDTsSpecifiedWithAllowJs/node/jsFileCompilationSameNameDTsSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,12 @@ +SameNameDTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== SameNameDTsSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { + "compilerOptions": { "allowJs": true }, + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "files": [ "a.d.ts" ] + } +==== SameNameDTsSpecifiedWithAllowJs/a.d.ts (0 errors) ==== + declare var test: number; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt index 566cbd8053af9..7bab7566c8c99 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/amd/jsFileCompilationSameNameDtsNotSpecified.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== SameNameDTsNotSpecified/tsconfig.json (0 errors) ==== ==== SameNameDTsNotSpecified/a.d.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/node/jsFileCompilationSameNameDtsNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/node/jsFileCompilationSameNameDtsNotSpecified.errors.txt new file mode 100644 index 0000000000000..f373c7d74c8d6 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecified/node/jsFileCompilationSameNameDtsNotSpecified.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameDTsNotSpecified/tsconfig.json (0 errors) ==== + +==== SameNameDTsNotSpecified/a.d.ts (0 errors) ==== + declare var a: number; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt index d1774c4a29138..b704a662fe3b1 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt @@ -3,16 +3,19 @@ error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.d.ts' beca error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/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. SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.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 TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/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. -==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { "allowJs": true } } ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== SameNameDTsNotSpecifiedWithAllowJs/a.d.ts (0 errors) ==== declare var a: number; ==== SameNameDTsNotSpecifiedWithAllowJs/a.js (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt index 45cdfd7a3bc42..03de92d63f76d 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameDtsNotSpecifiedWithAllowJs.errors.txt @@ -2,14 +2,17 @@ error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.d.ts' beca 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 'SameNameDTsNotSpecifiedWithAllowJs/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. +SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/a.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 TS5055: Cannot write file 'SameNameDTsNotSpecifiedWithAllowJs/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. -==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (0 errors) ==== +==== SameNameDTsNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== { "compilerOptions": { "allowJs": true } } + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== SameNameDTsNotSpecifiedWithAllowJs/a.d.ts (0 errors) ==== declare var a: number; ==== SameNameDTsNotSpecifiedWithAllowJs/a.js (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt index 70f5b9b01803a..4633efa5dfbc8 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/jsFileCompilationSameNameFilesNotSpecified.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== SameNameFilesNotSpecified/tsconfig.json (0 errors) ==== ==== SameNameFilesNotSpecified/a.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/node/jsFileCompilationSameNameFilesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/node/jsFileCompilationSameNameFilesNotSpecified.errors.txt new file mode 100644 index 0000000000000..2b9b7a6b064be --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/node/jsFileCompilationSameNameFilesNotSpecified.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameFilesNotSpecified/tsconfig.json (0 errors) ==== + +==== SameNameFilesNotSpecified/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt index 4a3c5d1f2c973..a928effffd57f 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt @@ -1,9 +1,12 @@ SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { "allowJs": true } } ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== SameNameFilesNotSpecifiedWithAllowJs/a.ts (0 errors) ==== var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..f8bb575be7262 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,9 @@ +SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json(1,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== SameNameFilesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { "compilerOptions": { "allowJs": true } } + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameFilesNotSpecifiedWithAllowJs/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt index 746fc6e28f827..0ab587e1d0ca7 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/jsFileCompilationSameNameFilesSpecified.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== SameNameTsSpecified/tsconfig.json (0 errors) ==== { "files": [ "a.ts" ] } ==== SameNameTsSpecified/a.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/jsFileCompilationSameNameFilesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/jsFileCompilationSameNameFilesSpecified.errors.txt new file mode 100644 index 0000000000000..0a3ac10ee871a --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/jsFileCompilationSameNameFilesSpecified.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== SameNameTsSpecified/tsconfig.json (0 errors) ==== + { "files": [ "a.ts" ] } +==== SameNameTsSpecified/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt index 6972f0f40c60e..d2ed3a4f3643c 100644 --- a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt @@ -1,11 +1,14 @@ SameNameTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +SameNameTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. -==== SameNameTsSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== SameNameTsSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { "allowJs": true }, ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "files": [ "a.ts" ] } ==== SameNameTsSpecifiedWithAllowJs/a.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..8c3a5814cb324 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/node/jsFileCompilationSameNameFilesSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,12 @@ +SameNameTsSpecifiedWithAllowJs/tsconfig.json(2,3): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== SameNameTsSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { + "compilerOptions": { "allowJs": true }, + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "files": [ "a.ts" ] + } +==== SameNameTsSpecifiedWithAllowJs/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt index 48e46a4143ac8..e7cb96db65bd7 100644 --- a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/amd/mapRootSourceRootWithNoSourceMapOption.errors.txt @@ -1,11 +1,13 @@ error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. !!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/node/mapRootSourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/node/mapRootSourceRootWithNoSourceMapOption.errors.txt index aa02b659d5de9..31632130645cc 100644 --- a/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/node/mapRootSourceRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/mapRootSourceRootWithNoSourceMapOption/node/mapRootSourceRootWithNoSourceMapOption.errors.txt @@ -1,9 +1,11 @@ error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. !!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt index 065d522a0a82b..4452a4cd37a11 100644 --- a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/amd/mapRootWithNoSourceMapOption.errors.txt @@ -1,9 +1,11 @@ error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/node/mapRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/node/mapRootWithNoSourceMapOption.errors.txt index 7ad42e1a26d37..d38d2c2f6b490 100644 --- a/tests/baselines/reference/project/mapRootWithNoSourceMapOption/node/mapRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/mapRootWithNoSourceMapOption/node/mapRootWithNoSourceMapOption.errors.txt @@ -1,7 +1,9 @@ error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5069: Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt b/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt index 04af2cceb9460..8bda4388decac 100644 --- a/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt +++ b/tests/baselines/reference/project/moduleIdentifier/amd/moduleIdentifier.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (0 errors) ==== export interface P { x: number; y: number; } export var a = 1; diff --git a/tests/baselines/reference/project/moduleIdentifier/node/moduleIdentifier.errors.txt b/tests/baselines/reference/project/moduleIdentifier/node/moduleIdentifier.errors.txt new file mode 100644 index 0000000000000..11eea719c5f2a --- /dev/null +++ b/tests/baselines/reference/project/moduleIdentifier/node/moduleIdentifier.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export interface P { x: number; y: number; } + export var a = 1; +==== consume.ts (0 errors) ==== + import M = require("./decl"); + + var p : M.P; + var x1 = M.a; + \ No newline at end of file diff --git a/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt index 48b2e2d5d9c1d..d6da6659accad 100644 --- a/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt +++ b/tests/baselines/reference/project/moduleMergingOrdering1/amd/moduleMergingOrdering1.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== a.ts (0 errors) ==== namespace Test { class A { diff --git a/tests/baselines/reference/project/moduleMergingOrdering1/node/moduleMergingOrdering1.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering1/node/moduleMergingOrdering1.errors.txt new file mode 100644 index 0000000000000..b25a7ac2aa141 --- /dev/null +++ b/tests/baselines/reference/project/moduleMergingOrdering1/node/moduleMergingOrdering1.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + namespace Test { + class A { + one: string; + two: boolean; + constructor (t: string) { + this.one = t; + this.two = false; + } + } + export class B { + private member: A[]; + + constructor () { + this.member = []; + } + } + } + +==== b.ts (0 errors) ==== + namespace Test {} + + \ No newline at end of file diff --git a/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt index 25713c623f7bf..31066548247b1 100644 --- a/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt +++ b/tests/baselines/reference/project/moduleMergingOrdering2/amd/moduleMergingOrdering2.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.ts (0 errors) ==== namespace Test {} diff --git a/tests/baselines/reference/project/moduleMergingOrdering2/node/moduleMergingOrdering2.errors.txt b/tests/baselines/reference/project/moduleMergingOrdering2/node/moduleMergingOrdering2.errors.txt new file mode 100644 index 0000000000000..574a78301e6fa --- /dev/null +++ b/tests/baselines/reference/project/moduleMergingOrdering2/node/moduleMergingOrdering2.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + namespace Test {} + + +==== a.ts (0 errors) ==== + namespace Test { + class A { + one: string; + two: boolean; + constructor (t: string) { + this.one = t; + this.two = false; + } + } + export class B { + private member: A[]; + + constructor () { + this.member = []; + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt b/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt index 4719f1b3a4955..dd5fe29148fd6 100644 --- a/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt +++ b/tests/baselines/reference/project/multipleLevelsModuleResolution/amd/multipleLevelsModuleResolution.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== A.ts (0 errors) ==== export class A { diff --git a/tests/baselines/reference/project/multipleLevelsModuleResolution/node/multipleLevelsModuleResolution.errors.txt b/tests/baselines/reference/project/multipleLevelsModuleResolution/node/multipleLevelsModuleResolution.errors.txt new file mode 100644 index 0000000000000..7070e3a8d8655 --- /dev/null +++ b/tests/baselines/reference/project/multipleLevelsModuleResolution/node/multipleLevelsModuleResolution.errors.txt @@ -0,0 +1,41 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== A.ts (0 errors) ==== + export class A + { + public A(): string{ return "hello from A"; } + } + +==== AA.ts (0 errors) ==== + export class AA + { + public A(): string{ return "hello from AA"; } + } + +==== B.ts (0 errors) ==== + import A = require("../A/A"); + import AA = require("../A/AA/AA"); + + export class B + { + public Create(): IA + { + return new A.A(); + } + } + + export interface IA + { + A(): string; + } + +==== root.ts (0 errors) ==== + //import A = require("./A/A"); + import B = require("B/B"); + + var a = (new B.B()).Create(); + + + \ No newline at end of file diff --git a/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt b/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt index 763a23ce31de6..43c30f6649690 100644 --- a/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt +++ b/tests/baselines/reference/project/nestedDeclare/amd/nestedDeclare.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== consume.ts (0 errors) ==== declare module "math" { diff --git a/tests/baselines/reference/project/nestedDeclare/node/nestedDeclare.errors.txt b/tests/baselines/reference/project/nestedDeclare/node/nestedDeclare.errors.txt new file mode 100644 index 0000000000000..11092cea6c360 --- /dev/null +++ b/tests/baselines/reference/project/nestedDeclare/node/nestedDeclare.errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== consume.ts (0 errors) ==== + declare module "math" + { + import blah = require("blah"); + export function baz(); + } + + declare module "blah" + { + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt index c8cead4e1d6c6..d6c6e4048d3b4 100644 --- a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt +++ b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/amd/nestedLocalModuleSimpleCase.errors.txt @@ -1,8 +1,10 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test1.ts(2,23): error TS1147: Import declarations in a namespace cannot reference a module. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test1.ts (1 errors) ==== export namespace myModule { import foo = require("test2"); diff --git a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/node/nestedLocalModuleSimpleCase.errors.txt b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/node/nestedLocalModuleSimpleCase.errors.txt index 55588f39d5425..461ab4646c228 100644 --- a/tests/baselines/reference/project/nestedLocalModuleSimpleCase/node/nestedLocalModuleSimpleCase.errors.txt +++ b/tests/baselines/reference/project/nestedLocalModuleSimpleCase/node/nestedLocalModuleSimpleCase.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test1.ts(2,23): error TS1147: Import declarations in a namespace cannot reference a module. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test1.ts (1 errors) ==== export namespace myModule { import foo = require("test2"); diff --git a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt index d81cb09f8bdd9..22bdd7c7c1273 100644 --- a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt +++ b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt @@ -1,9 +1,11 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test1.ts(3,23): error TS1147: Import declarations in a namespace cannot reference a module. test1.ts(3,23): error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test1.ts (2 errors) ==== namespace myModule { diff --git a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt index 82636696b5dfe..eb43a5136b922 100644 --- a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt +++ b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt @@ -1,7 +1,9 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test1.ts(3,23): error TS1147: Import declarations in a namespace cannot reference a module. test1.ts(3,23): error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test1.ts (2 errors) ==== namespace myModule { diff --git a/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt b/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt index c06452c3ebf12..9699825d7f176 100644 --- a/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt +++ b/tests/baselines/reference/project/nestedReferenceTags/amd/nestedReferenceTags.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== lib/classA.ts (0 errors) ==== namespace test { export class ClassA diff --git a/tests/baselines/reference/project/nestedReferenceTags/node/nestedReferenceTags.errors.txt b/tests/baselines/reference/project/nestedReferenceTags/node/nestedReferenceTags.errors.txt new file mode 100644 index 0000000000000..19feb3cc3e42b --- /dev/null +++ b/tests/baselines/reference/project/nestedReferenceTags/node/nestedReferenceTags.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== lib/classA.ts (0 errors) ==== + namespace test { + export class ClassA + { + public method() { } + } + } +==== lib/classB.ts (0 errors) ==== + /// + + namespace test { + export class ClassB extends ClassA + { + } + } +==== main.ts (0 errors) ==== + /// + /// + + class ClassC extends test.ClassA { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt b/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt index c247553165dd8..1e2d30f4ad32a 100644 --- a/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt +++ b/tests/baselines/reference/project/noProjectOptionAndInputFiles/amd/noProjectOptionAndInputFiles.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== tsconfig.json (0 errors) ==== { "files": [ "a.ts" ] } ==== a.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/noProjectOptionAndInputFiles/node/noProjectOptionAndInputFiles.errors.txt b/tests/baselines/reference/project/noProjectOptionAndInputFiles/node/noProjectOptionAndInputFiles.errors.txt new file mode 100644 index 0000000000000..852e30746ec44 --- /dev/null +++ b/tests/baselines/reference/project/noProjectOptionAndInputFiles/node/noProjectOptionAndInputFiles.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== tsconfig.json (0 errors) ==== + { "files": [ "a.ts" ] } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt b/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt index e5b61bf2bb1da..ac559b316d169 100644 --- a/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt +++ b/tests/baselines/reference/project/nonRelative/amd/nonRelative.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (0 errors) ==== export function call() { return "success"; diff --git a/tests/baselines/reference/project/nonRelative/node/nonRelative.errors.txt b/tests/baselines/reference/project/nonRelative/node/nonRelative.errors.txt new file mode 100644 index 0000000000000..ddb0b1a767bab --- /dev/null +++ b/tests/baselines/reference/project/nonRelative/node/nonRelative.errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export function call() { + return "success"; + } +==== b.ts (0 errors) ==== + export function hello() { } + +==== a.ts (0 errors) ==== + import b = require("lib/foo/b"); + export function hello() { } + +==== a.ts (0 errors) ==== + export function hello() { } + +==== consume.ts (0 errors) ==== + import mod = require("decl"); + import x = require("lib/foo/a"); + import y = require("lib/bar/a"); + + x.hello(); + y.hello(); + + var str = mod.call(); + + + declare function fail(); + if(str !== "success") { + fail(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/outMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/outMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/outMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/outMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/outModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/outModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/outModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/outModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/outModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/outModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/outModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/outModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/outModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/outModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/outModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/outModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/outMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/node/outMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/outMultifolderNoOutdir/node/outMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/node/outMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/outSimpleNoOutdir/amd/outSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/node/outSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/outSimpleNoOutdir/node/outSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/outSimpleNoOutdir/node/outSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/outSingleFileNoOutdir/amd/outSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/outSingleFileNoOutdir/node/outSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/outSingleFileNoOutdir/node/outSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/outSingleFileNoOutdir/node/outSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/outSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/node/outSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/outSubfolderNoOutdir/node/outSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/node/outSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt index c4a96baa91404..3518e3dd59d30 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt @@ -1,4 +1,5 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. testGlo.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module. testGlo.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? testGlo.ts(21,35): error TS1147: Import declarations in a namespace cannot reference a module. @@ -6,6 +7,7 @@ testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== testGlo.ts (4 errors) ==== namespace m2 { export import mExported = require("mExported"); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt index 0ca4f7ce17672..b05de9e6a31a3 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. testGlo.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module. testGlo.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? testGlo.ts(21,35): error TS1147: Import declarations in a namespace cannot reference a module. testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== testGlo.ts (4 errors) ==== namespace m2 { export import mExported = require("mExported"); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt index 8f12d651e0b16..63c8847b9aa3e 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt @@ -1,4 +1,5 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test.ts(5,39): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(5,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? test.ts(24,35): error TS1147: Import declarations in a namespace cannot reference a module. @@ -6,6 +7,7 @@ test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (4 errors) ==== export namespace m1 { } diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt index c3458f201e26d..cae3389af4f33 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test.ts(5,39): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(5,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? test.ts(24,35): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (4 errors) ==== export namespace m1 { } diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt index 68313105a24ed..be421859a8ffd 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt @@ -1,4 +1,5 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? test.ts(42,35): error TS1147: Import declarations in a namespace cannot reference a module. @@ -6,6 +7,7 @@ test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (4 errors) ==== export namespace m2 { export import mExported = require("mExported"); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt index 30d923b82171b..136705639f89a 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt @@ -1,9 +1,11 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. test.ts(2,39): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(2,39): error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? test.ts(42,35): error TS1147: Import declarations in a namespace cannot reference a module. test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (4 errors) ==== export namespace m2 { export import mExported = require("mExported"); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt index 4f860116bdd0e..acf505d4d9ce9 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/amd/privacyCheckOnImportedModuleSimpleReference.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== mExported.ts (0 errors) ==== export namespace me { export class class1 { diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/node/privacyCheckOnImportedModuleSimpleReference.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/node/privacyCheckOnImportedModuleSimpleReference.errors.txt new file mode 100644 index 0000000000000..9bd26355c3d90 --- /dev/null +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleSimpleReference/node/privacyCheckOnImportedModuleSimpleReference.errors.txt @@ -0,0 +1,64 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== mExported.ts (0 errors) ==== + export namespace me { + export class class1 { + public prop1 = 0; + } + + export var x = class1; + export function foo() { + return new class1(); + } + } +==== mNonExported.ts (0 errors) ==== + export namespace mne { + export class class1 { + public prop1 = 0; + } + + export var x = class1; + export function foo() { + return new class1(); + } + } +==== test.ts (0 errors) ==== + export import mExported = require("mExported"); + export var c1 = new mExported.me.class1; + export function f1() { + return new mExported.me.class1(); + } + export var x1 = mExported.me.x; + + export class class1 extends mExported.me.class1 { + } + + var c2 = new mExported.me.class1; + function f2() { + return new mExported.me.class1(); + } + var x2 = mExported.me.x; + + class class2 extends mExported.me.class1 { + } + + import mNonExported = require("mNonExported"); + export var c3 = new mNonExported.mne.class1; + export function f3() { + return new mNonExported.mne.class1(); + } + export var x3 = mNonExported.mne.x; + + export class class3 extends mNonExported.mne.class1 { + } + + var c4 = new mNonExported.mne.class1; + function f4() { + return new mNonExported.mne.class1(); + } + var x4 = mNonExported.mne.x; + + class class4 extends mNonExported.mne.class1 { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt index 0b5db3c28f27c..ed5090279fd40 100644 --- a/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/amd/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== indirectExternalModule.ts (0 errors) ==== export class indirectClass { } diff --git a/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/node/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/node/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt new file mode 100644 index 0000000000000..162f60016b6f7 --- /dev/null +++ b/tests/baselines/reference/project/privacyCheckOnIndirectTypeFromTheExternalType/node/privacyCheckOnIndirectTypeFromTheExternalType.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== indirectExternalModule.ts (0 errors) ==== + export class indirectClass { + } +==== externalModule.ts (0 errors) ==== + import im0 = require("indirectExternalModule"); + export var x = new im0.indirectClass(); + +==== test.ts (0 errors) ==== + import im1 = require("externalModule"); + export var x = im1.x; \ No newline at end of file diff --git a/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt b/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt index 3fbdf138cb2ad..ebfcea0af98dd 100644 --- a/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt +++ b/tests/baselines/reference/project/projectOptionTest/amd/projectOptionTest.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== Test/tsconfig.json (0 errors) ==== { "files": [ "a.ts" ] } ==== Test/a.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/projectOptionTest/node/projectOptionTest.errors.txt b/tests/baselines/reference/project/projectOptionTest/node/projectOptionTest.errors.txt new file mode 100644 index 0000000000000..e333a1b225fcf --- /dev/null +++ b/tests/baselines/reference/project/projectOptionTest/node/projectOptionTest.errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== Test/tsconfig.json (0 errors) ==== + { "files": [ "a.ts" ] } +==== Test/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt b/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt index 2dbf1a397115d..b8f55915d4f74 100644 --- a/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt +++ b/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== globalThisCapture.ts (0 errors) ==== // Add a lambda to ensure global 'this' capture is triggered (()=>this.window); diff --git a/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt b/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt index 31dfc62b1de14..14f4663365e4f 100644 --- a/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt +++ b/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== globalThisCapture.ts (0 errors) ==== // Add a lambda to ensure global 'this' capture is triggered diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt index 3cbbf6a7931cb..a01bffd6f0550 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/quotesInFileAndDirectoryNames.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== li'b/class'A.ts (0 errors) ==== namespace test { export class ClassA diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/quotesInFileAndDirectoryNames.errors.txt b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/quotesInFileAndDirectoryNames.errors.txt new file mode 100644 index 0000000000000..07a8aa4633c4e --- /dev/null +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/quotesInFileAndDirectoryNames.errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== li'b/class'A.ts (0 errors) ==== + namespace test { + export class ClassA + { + public method() { } + } + } +==== m'ain.ts (0 errors) ==== + /// + + class ClassC extends test.ClassA { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt b/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt index 478bb6f3be753..d7e28101b9377 100644 --- a/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt +++ b/tests/baselines/reference/project/referencePathStatic/amd/referencePathStatic.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== lib.ts (0 errors) ==== namespace Lib { export class LibType {} diff --git a/tests/baselines/reference/project/referencePathStatic/node/referencePathStatic.errors.txt b/tests/baselines/reference/project/referencePathStatic/node/referencePathStatic.errors.txt new file mode 100644 index 0000000000000..10a5b21a8f645 --- /dev/null +++ b/tests/baselines/reference/project/referencePathStatic/node/referencePathStatic.errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== lib.ts (0 errors) ==== + namespace Lib { + export class LibType {} + } + +==== test.ts (0 errors) ==== + /// + + var libType: Lib.LibType; \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt index cb31d0ba9f0ed..50f26f3c08d6d 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt +++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/referenceResolutionRelativePaths.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ../../../bar/bar.ts (0 errors) ==== /// // This is bar.ts diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/node/referenceResolutionRelativePaths.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePaths/node/referenceResolutionRelativePaths.errors.txt new file mode 100644 index 0000000000000..265dcf67beaa1 --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/node/referenceResolutionRelativePaths.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ../../../bar/bar.ts (0 errors) ==== + /// + // This is bar.ts + class bar { + } +==== foo.ts (0 errors) ==== + /// + + class foo { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt index 15742a77ff129..bbffbb7d5b757 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/referenceResolutionRelativePathsFromRootDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== bar/bar.ts (0 errors) ==== /// // This is bar.ts diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/referenceResolutionRelativePathsFromRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/referenceResolutionRelativePathsFromRootDirectory.errors.txt new file mode 100644 index 0000000000000..033c78f64dc8b --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/referenceResolutionRelativePathsFromRootDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== bar/bar.ts (0 errors) ==== + /// + // This is bar.ts + class bar { + } +==== src/ts/foo/foo.ts (0 errors) ==== + /// + + class foo { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt index a1c02de523ba5..03a77445d9acd 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/referenceResolutionRelativePathsNoResolve.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== foo.ts (0 errors) ==== /// diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/referenceResolutionRelativePathsNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/referenceResolutionRelativePathsNoResolve.errors.txt new file mode 100644 index 0000000000000..72764a5d5c9f7 --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/referenceResolutionRelativePathsNoResolve.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + /// + + class foo { + } +==== ../../../bar/bar.ts (0 errors) ==== + /// + // This is bar.ts + class bar { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt index b232bbc2ecdd0..f647ca73570f7 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ../../../bar/bar.ts (0 errors) ==== /// // This is bar.ts diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt new file mode 100644 index 0000000000000..3340b539e9fa5 --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/referenceResolutionRelativePathsRelativeToRootDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ../../../bar/bar.ts (0 errors) ==== + /// + // This is bar.ts + class bar { + } +==== ../../../src/ts/foo/foo.ts (0 errors) ==== + /// + + class foo { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt index 24ebdb498e3bd..45161e39e10e3 100644 --- a/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/referenceResolutionSameFileTwice.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== class test { } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/referenceResolutionSameFileTwice.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/referenceResolutionSameFileTwice.errors.txt new file mode 100644 index 0000000000000..5a5b572dc6e22 --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/referenceResolutionSameFileTwice.errors.txt @@ -0,0 +1,7 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + class test { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt index 24ebdb498e3bd..45161e39e10e3 100644 --- a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/referenceResolutionSameFileTwiceNoResolve.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== class test { } \ No newline at end of file diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/referenceResolutionSameFileTwiceNoResolve.errors.txt b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/referenceResolutionSameFileTwiceNoResolve.errors.txt new file mode 100644 index 0000000000000..5a5b572dc6e22 --- /dev/null +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/referenceResolutionSameFileTwiceNoResolve.errors.txt @@ -0,0 +1,7 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + class test { + } \ No newline at end of file diff --git a/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt b/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt index 146c6a44dbf7c..4061bec552b4e 100644 --- a/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt +++ b/tests/baselines/reference/project/relativeGlobal/amd/relativeGlobal.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (0 errors) ==== export function call() { return "success"; diff --git a/tests/baselines/reference/project/relativeGlobal/node/relativeGlobal.errors.txt b/tests/baselines/reference/project/relativeGlobal/node/relativeGlobal.errors.txt new file mode 100644 index 0000000000000..9974eddc3def4 --- /dev/null +++ b/tests/baselines/reference/project/relativeGlobal/node/relativeGlobal.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export function call() { + return "success"; + } + export var x = 1; +==== consume.ts (0 errors) ==== + import decl = require("./decl"); + var str = decl.call(); + + declare function fail(); + + if(str !== "success") { + fail(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt b/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt index afe57ce71ee07..67c4e4276445a 100644 --- a/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt +++ b/tests/baselines/reference/project/relativeGlobalRef/amd/relativeGlobalRef.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.d.ts (0 errors) ==== declare module "decl" { diff --git a/tests/baselines/reference/project/relativeGlobalRef/node/relativeGlobalRef.errors.txt b/tests/baselines/reference/project/relativeGlobalRef/node/relativeGlobalRef.errors.txt new file mode 100644 index 0000000000000..71989a7a7eed0 --- /dev/null +++ b/tests/baselines/reference/project/relativeGlobalRef/node/relativeGlobalRef.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.d.ts (0 errors) ==== + declare module "decl" + { + export function call(); + } +==== consume.ts (0 errors) ==== + /// + import decl = require("decl"); + var str = decl.call(); + + declare function fail(); + + if(str !== "success") { + fail(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt b/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt index c86e078c0fa95..d7c18c0883041 100644 --- a/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt +++ b/tests/baselines/reference/project/relativeNested/amd/relativeNested.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.ts (0 errors) ==== export function call() { return "success"; diff --git a/tests/baselines/reference/project/relativeNested/node/relativeNested.errors.txt b/tests/baselines/reference/project/relativeNested/node/relativeNested.errors.txt new file mode 100644 index 0000000000000..7999b36424ef5 --- /dev/null +++ b/tests/baselines/reference/project/relativeNested/node/relativeNested.errors.txt @@ -0,0 +1,29 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.ts (0 errors) ==== + export function call() { + return "success"; + } + export var x = 1; +==== consume.ts (0 errors) ==== + import decl = require("../decl"); + + declare function fail(); + + export function call() + { + var str = decl.call(); + + + + if (str !== "success") + { + fail(); + } + } +==== app.ts (0 errors) ==== + import consume = require("./main/consume"); + + consume.call(); \ No newline at end of file diff --git a/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt b/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt index 5fabda6c5f059..e09709f8a2af8 100644 --- a/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt +++ b/tests/baselines/reference/project/relativeNestedRef/amd/relativeNestedRef.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== decl.d.ts (0 errors) ==== declare module "decl" { diff --git a/tests/baselines/reference/project/relativeNestedRef/node/relativeNestedRef.errors.txt b/tests/baselines/reference/project/relativeNestedRef/node/relativeNestedRef.errors.txt new file mode 100644 index 0000000000000..a9dc85ea7d1f2 --- /dev/null +++ b/tests/baselines/reference/project/relativeNestedRef/node/relativeNestedRef.errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== decl.d.ts (0 errors) ==== + declare module "decl" + { + export function call(); + } +==== main/consume.ts (0 errors) ==== + /// + import decl = require("decl"); + var str = decl.call(); + + declare function fail(); + + if(str !== "success") { + fail(); + } \ No newline at end of file diff --git a/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt b/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt index 8e5e00bacd0ad..7203056d2abfd 100644 --- a/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt +++ b/tests/baselines/reference/project/relativePaths/amd/relativePaths.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== b.ts (0 errors) ==== export function B(): void { throw new Error('Should not be called'); diff --git a/tests/baselines/reference/project/relativePaths/node/relativePaths.errors.txt b/tests/baselines/reference/project/relativePaths/node/relativePaths.errors.txt new file mode 100644 index 0000000000000..a7246844ddae6 --- /dev/null +++ b/tests/baselines/reference/project/relativePaths/node/relativePaths.errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== b.ts (0 errors) ==== + export function B(): void { + throw new Error('Should not be called'); + } +==== a.ts (0 errors) ==== + import b = require('b'); + + export function A(): void { + b.B(); + } +==== app.ts (0 errors) ==== + import a = require('A/a'); + + a.A(); \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt b/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt index 70ccf85f965d3..9e41c3338fb3c 100644 --- a/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt +++ b/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ==== class C { } diff --git a/tests/baselines/reference/project/rootDirectory/node/rootDirectory.errors.txt b/tests/baselines/reference/project/rootDirectory/node/rootDirectory.errors.txt new file mode 100644 index 0000000000000..1722096680e75 --- /dev/null +++ b/tests/baselines/reference/project/rootDirectory/node/rootDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ==== + class C { + } + +==== FolderA/FolderB/fileB.ts (0 errors) ==== + /// + class B { + public c: C; + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt b/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt index f4fb64dbf13d1..7a71502a51064 100644 --- a/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt +++ b/tests/baselines/reference/project/rootDirectoryErrors/amd/rootDirectoryErrors.errors.txt @@ -1,10 +1,12 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. The file is in the program because: Root file specified for compilation !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. !!! error TS6059: The file is in the program because: !!! error TS6059: Root file specified for compilation diff --git a/tests/baselines/reference/project/rootDirectoryErrors/node/rootDirectoryErrors.errors.txt b/tests/baselines/reference/project/rootDirectoryErrors/node/rootDirectoryErrors.errors.txt index 4e3492c206fdb..6bb24b32a7b9d 100644 --- a/tests/baselines/reference/project/rootDirectoryErrors/node/rootDirectoryErrors.errors.txt +++ b/tests/baselines/reference/project/rootDirectoryErrors/node/rootDirectoryErrors.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. The file is in the program because: Root file specified for compilation +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. !!! error TS6059: The file is in the program because: !!! error TS6059: Root file specified for compilation diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt index 70ccf85f965d3..9e41c3338fb3c 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ==== class C { } diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.errors.txt b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.errors.txt new file mode 100644 index 0000000000000..1722096680e75 --- /dev/null +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== FolderA/FolderB/FolderC/fileC.ts (0 errors) ==== + class C { + } + +==== FolderA/FolderB/fileB.ts (0 errors) ==== + /// + class B { + public c: C; + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt index f4fb64dbf13d1..7a71502a51064 100644 --- a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt +++ b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/amd/rootDirectoryWithoutOutDir.errors.txt @@ -1,10 +1,12 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. The file is in the program because: Root file specified for compilation !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. !!! error TS6059: The file is in the program because: !!! error TS6059: Root file specified for compilation diff --git a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/node/rootDirectoryWithoutOutDir.errors.txt b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/node/rootDirectoryWithoutOutDir.errors.txt index 4e3492c206fdb..6bb24b32a7b9d 100644 --- a/tests/baselines/reference/project/rootDirectoryWithoutOutDir/node/rootDirectoryWithoutOutDir.errors.txt +++ b/tests/baselines/reference/project/rootDirectoryWithoutOutDir/node/rootDirectoryWithoutOutDir.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. The file is in the program because: Root file specified for compilation +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6059: File 'FolderA/FolderB/fileB.ts' is not under 'rootDir' 'FolderA/FolderB/FolderC'. 'rootDir' is expected to contain all source files. !!! error TS6059: The file is in the program because: !!! error TS6059: Root file specified for compilation diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt index 1cca30b31ea4b..04f498acb4492 100644 --- a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/amd/sourceRootWithNoSourceMapOption.errors.txt @@ -1,9 +1,11 @@ error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/node/sourceRootWithNoSourceMapOption.errors.txt b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/node/sourceRootWithNoSourceMapOption.errors.txt index b79cae049ffa5..686d415edb7bc 100644 --- a/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/node/sourceRootWithNoSourceMapOption.errors.txt +++ b/tests/baselines/reference/project/sourceRootWithNoSourceMapOption/node/sourceRootWithNoSourceMapOption.errors.txt @@ -1,7 +1,9 @@ error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5051: Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..6e50d90f13b84 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index d2108d520634c..a5ca1482b5cd4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 51edf2991adfc..8463ae5b1a4d5 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4685d61030d8a --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,39 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt index f5ac809333e61..07a45826b8bd9 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt index 247f9e4f2f2a1..8d5143f60ad82 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..16c4884ea2d8b --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt index f2216b554174b..3d31526af0a6b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt index 12592331fb591..2e947050950b0 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..c78e96ab66dc4 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,27 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 20ccd140ed004..5336de40839f2 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; export class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 42154149020d1..bc6455bd40ffe 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..3c41aa562c69b --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt index 9fbf00f5700e1..7319ec3d03e3d 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt index 664beb97bc203..979a434de92b0 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..7c16ec1b548bc --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt index 5875c51939b46..477be2decfcb0 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt index 53fc18f86c749..7e7a851c111e4 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..4793d714a6d0f --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt index 398af4e172fa6..0d25528f041b5 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== test.ts (0 errors) ==== var a1 = 10; class c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt index eb358c3b79d38..17a2812a8c151 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt new file mode 100644 index 0000000000000..a599424df40d9 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.errors.txt @@ -0,0 +1,25 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt index 236beee037424..babb41566a553 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; class m1_c1 { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt index 110e384982030..f174bdb49dd18 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt index c35bfaf635e0a..427e3681ec178 100644 --- a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outDir": "./OutDir", "declaration": true }, diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.errors.txt new file mode 100644 index 0000000000000..e24ede6c05610 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.errors.txt @@ -0,0 +1,18 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "./OutDir", + "declaration": true + }, + "exclude": [ + "./node_modules", + "./OutDir" + ] + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt index c3a1a603f9372..26658d309e487 100644 --- a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outDir": "./OutDir", "allowJs": true }, diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.errors.txt new file mode 100644 index 0000000000000..2439b82b7c5f4 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.errors.txt @@ -0,0 +1,18 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "./OutDir", + "allowJs": true + }, + "exclude": [ + "./node_modules", + "./OutDir" + ] + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt index 315dfe48da108..ae52d48bc64d9 100644 --- a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outDir": "OutDir", "declaration": true }, diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.errors.txt new file mode 100644 index 0000000000000..423a4e03772e1 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.errors.txt @@ -0,0 +1,18 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "OutDir", + "declaration": true + }, + "exclude": [ + "node_modules", + "OutDir" + ] + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt index 8c724cf44b5d4..31e94df7ec0e1 100644 --- a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt @@ -1,11 +1,14 @@ tsconfig.json(2,5): error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' 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 (2 errors) ==== { "compilerOptions": { ~~~~~~~~~~~~~~~~~ !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. "outDir": "OutDir", "allowJs": true }, diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt new file mode 100644 index 0000000000000..1da1dcec92d07 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.errors.txt @@ -0,0 +1,18 @@ +tsconfig.json(2,5): error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +==== tsconfig.json (1 errors) ==== + { + "compilerOptions": { + ~~~~~~~~~~~~~~~~~ +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + "outDir": "OutDir", + "allowJs": true + }, + "exclude": [ + "node_modules", + "OutDir" + ] + } +==== a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt index 5cd791b3623be..b77acf2ad6542 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/visibilityOfTypeUsedAcrossModules.errors.txt @@ -1,7 +1,9 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== fs.ts (0 errors) ==== import commands = require('./commands'); diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/visibilityOfTypeUsedAcrossModules.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/visibilityOfTypeUsedAcrossModules.errors.txt new file mode 100644 index 0000000000000..08306b9f63710 --- /dev/null +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/visibilityOfTypeUsedAcrossModules.errors.txt @@ -0,0 +1,37 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== fs.ts (0 errors) ==== + import commands = require('./commands'); + + export class RM { + + public getName() { + return 'rm'; + } + + public getDescription() { + return "\t\t\tDelete file"; + } + + private run(configuration: commands.IConfiguration) { + var absoluteWorkspacePath = configuration.workspace.toAbsolutePath(configuration.server); + } + } +==== server.ts (0 errors) ==== + export interface IServer { + } + + export interface IWorkspace { + toAbsolutePath(server:IServer, workspaceRelativePath?:string):string; + } +==== commands.ts (0 errors) ==== + import fs = require('fs'); + import server = require('server'); + + export interface IConfiguration { + workspace: server.IWorkspace; + server?: server.IServer; + } + \ No newline at end of file diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt index 0ddab4230349b..e4a31039c53ea 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/amd/visibilityOfTypeUsedAcrossModules2.errors.txt @@ -1,10 +1,12 @@ error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,22): error TS1006: A file cannot have a reference to itself. main.ts(2,22): error TS6053: File 'nonExistingFile1.ts' not found. main.ts(3,22): error TS6053: File 'nonExistingFile2.ts' not found. !!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== /// ~~~~~~~ diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/node/visibilityOfTypeUsedAcrossModules2.errors.txt b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/node/visibilityOfTypeUsedAcrossModules2.errors.txt index 88f77a6a2e84e..c8ace33a22355 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/node/visibilityOfTypeUsedAcrossModules2.errors.txt +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules2/node/visibilityOfTypeUsedAcrossModules2.errors.txt @@ -1,8 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. main.ts(1,22): error TS1006: A file cannot have a reference to itself. main.ts(2,22): error TS6053: File 'nonExistingFile1.ts' not found. main.ts(3,22): error TS6053: File 'nonExistingFile2.ts' not found. +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== main.ts (3 errors) ==== /// ~~~~~~~ diff --git a/tests/baselines/reference/relativePathToDeclarationFile.errors.txt b/tests/baselines/reference/relativePathToDeclarationFile.errors.txt new file mode 100644 index 0000000000000..61d4d95b60bdd --- /dev/null +++ b/tests/baselines/reference/relativePathToDeclarationFile.errors.txt @@ -0,0 +1,29 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test/file1.ts (0 errors) ==== + 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)); + } + +==== test/foo.d.ts (0 errors) ==== + export declare namespace M2 { + export var x: boolean; + } + +==== test/other.d.ts (0 errors) ==== + export declare namespace 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/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt index 1f804dd8bace3..44d3758ebc6b6 100644 --- a/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt @@ -1,11 +1,9 @@ -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 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 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 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/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt b/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt index f7596129d6f40..7de26d273b827 100644 --- a/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt +++ b/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt @@ -1,6 +1,7 @@ error TS2688: Cannot find type definition file for 'foo'. The file is in the program because: Entry point for implicit type library 'foo' +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /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? @@ -9,6 +10,7 @@ error TS2688: Cannot find type definition file for 'foo'. !!! 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' +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /node_modules/@types/foo/package.json (0 errors) ==== { "name": "@types/foo", diff --git a/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt b/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt index 8e52a8e3c12ce..a5ade620990a9 100644 --- a/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt +++ b/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt @@ -1,6 +1,7 @@ error TS2688: Cannot find type definition file for 'foo'. The file is in the program because: Entry point for implicit type library 'foo' +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /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? @@ -9,6 +10,7 @@ error TS2688: Cannot find type definition file for 'foo'. !!! 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' +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /node_modules/@types/foo/package.json (0 errors) ==== { "name": "@types/foo", diff --git a/tests/baselines/reference/scopedPackagesClassic.errors.txt b/tests/baselines/reference/scopedPackagesClassic.errors.txt new file mode 100644 index 0000000000000..fc020f78f7316 --- /dev/null +++ b/tests/baselines/reference/scopedPackagesClassic.errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== /a.ts (0 errors) ==== + import { x } from "@see/saw"; + +==== /node_modules/@types/see__saw/index.d.ts (0 errors) ==== + export const x = 0; + \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js index 1068aac301d94..5eba8a1b00c04 100644 --- a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js +++ b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js @@ -139,16 +139,6 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/first/tsconfig.json'... -first/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -first/tsconfig.json:4:24 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -4 "composite": true, "module": "none", -   ~~~~~~~~ - first/tsconfig.json:4:34 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 4 "composite": true, "module": "none", @@ -158,16 +148,6 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/second/tsconfig.json'... -second/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -second/tsconfig.json:4:24 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -4 "composite": true, "module": "none", -   ~~~~~~~~ - second/tsconfig.json:4:34 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 4 "composite": true, "module": "none", @@ -177,23 +157,13 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/third/tsconfig.json'... -third/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -third/tsconfig.json:4:24 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -4 "composite": true, "module": "none", -   ~~~~~~~~ - third/tsconfig.json:4:34 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 4 "composite": true, "module": "none",    ~~~~~~ -Found 9 errors. +Found 3 errors. diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js index 8964c0f93506c..13842f3141c28 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js @@ -85,6 +85,11 @@ declare const console: { log(msg: any): void; }; Output:: /home/src/tslibs/TS/Lib/lib.d.ts /user/username/projects/transitiveReferences/a.ts +tsconfig.b.json:4:25 - error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +4 "moduleResolution": "classic" +   ~~~~~~~~~ + /home/src/tslibs/TS/Lib/lib.d.ts /user/username/projects/transitiveReferences/a.d.ts /user/username/projects/transitiveReferences/b.ts @@ -100,7 +105,7 @@ Output:: /user/username/projects/transitiveReferences/refs/a.d.ts /user/username/projects/transitiveReferences/c.ts -Found 1 error. +Found 2 errors. @@ -177,7 +182,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileIdsList":[[2]],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"6078874460-import { A } from 'a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./b.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileIdsList":[[2]],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"6078874460-import { A } from 'a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -228,9 +233,23 @@ export declare const b: A; "./a.d.ts" ] }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./a.d.ts", + "not cached or not changed" + ], + [ + "./b.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./b.d.ts", "version": "FakeTSVersion", - "size": 875 + "size": 912 } //// [/user/username/projects/transitiveReferences/c.js] diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js index 1bd8941afe43e..09303ad5cae87 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js @@ -92,7 +92,12 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/myproject/project2/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:7:25 - error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +7 "moduleResolution": "classic" +   ~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -197,7 +202,7 @@ export {}; //// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo] -{"fileNames":["../../../../../home/src/tslibs/ts/lib/lib.d.ts","./file.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts"],"fileIdsList":[[2]],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n"},{"version":"-12737086933-export const foo = 10;","impliedFormat":1}],"root":[3],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./index.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../../home/src/tslibs/ts/lib/lib.d.ts","./file.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts"],"fileIdsList":[[2]],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n"},{"version":"-12737086933-export const foo = 10;","impliedFormat":1}],"root":[3],"options":{"composite":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -258,9 +263,27 @@ export {}; "./file.d.ts" ] }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./file.d.ts", + "not cached or not changed" + ], + [ + "./index.ts", + "not cached or not changed" + ], + [ + "../node_modules/@types/foo/index.d.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./index.d.ts", "version": "FakeTSVersion", - "size": 933 + "size": 972 } @@ -357,11 +380,7 @@ Program files:: /user/username/projects/myproject/project2/index.ts /user/username/projects/myproject/node_modules/@types/foo/index.d.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/project2/file.d.ts -/user/username/projects/myproject/project2/index.ts -/user/username/projects/myproject/node_modules/@types/foo/index.d.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -394,7 +413,12 @@ Output:: [HH:MM:SS AM] Building project '/user/username/projects/myproject/project1/tsconfig.json'... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project2/tsconfig.json:7:25 - error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +7 "moduleResolution": "classic" +   ~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tsc/composite/converting-to-modules.js b/tests/baselines/reference/tsc/composite/converting-to-modules.js index e36ccbb485ea2..18f4cdc9795fc 100644 --- a/tests/baselines/reference/tsc/composite/converting-to-modules.js +++ b/tests/baselines/reference/tsc/composite/converting-to-modules.js @@ -28,23 +28,13 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: -tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -Found 3 errors in the same file, starting at: tsconfig.json:2 +Found 1 error in tsconfig.json:3 diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js index 5cb1071eb3348..9323244cc7a7e 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js @@ -50,23 +50,13 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -i -p project2 Output:: -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -Found 3 errors in the same file, starting at: project2/tsconfig.json:2 +Found 1 error in project2/tsconfig.json:3 @@ -177,23 +167,13 @@ Output::   ~~~~~ File is output from referenced project specified here. -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -Found 4 errors in the same file, starting at: project2/tsconfig.json:2 +Found 2 errors in the same file, starting at: project2/tsconfig.json:3 @@ -209,23 +189,13 @@ declare class class3 {} /home/src/tslibs/TS/Lib/tsc.js -i -p project2 Output:: -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -Found 3 errors in the same file, starting at: project2/tsconfig.json:2 +Found 1 error in project2/tsconfig.json:3 @@ -325,23 +295,13 @@ declare class file {} /home/src/tslibs/TS/Lib/tsc.js -i -p project2 Output:: -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -Found 3 errors in the same file, starting at: project2/tsconfig.json:2 +Found 1 error in project2/tsconfig.json:3 @@ -368,23 +328,13 @@ Output::   ~~~~~ File is output from referenced project specified here. -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -Found 4 errors in the same file, starting at: project2/tsconfig.json:2 +Found 2 errors in the same file, starting at: project2/tsconfig.json:3 @@ -470,23 +420,13 @@ declare class class3 {} /home/src/tslibs/TS/Lib/tsc.js -i -p project2 Output:: -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -Found 3 errors in the same file, starting at: project2/tsconfig.json:2 +Found 1 error in project2/tsconfig.json:3 diff --git a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js index 4e57fa945487a..ee90c305f145e 100644 --- a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js +++ b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js @@ -38,22 +38,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -135,22 +125,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js b/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js index 2fdeed2c40c08..daa114e6fc071 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js +++ b/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js @@ -104,22 +104,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none" -   ~~~~~~~~ - tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none"    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js index 946cff2e82750..a42a452a9637f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js @@ -135,7 +135,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +project/tsconfig.json:3:49 - error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + +3 "moduleResolution": "classic" +   ~~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -204,10 +209,7 @@ Program files:: /user/username/workspace/solution/projects/module1.ts /user/username/workspace/solution/projects/project/file1.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/workspace/solution/projects/module1.ts -/user/username/workspace/solution/projects/project/file1.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/workspace/solution/projects/module1.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js b/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js index f2fae244abc50..a058af2dfe756 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js @@ -35,16 +35,6 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:2:25 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -tsconfig.json:3:29 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - tsconfig.json:3:39 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none", @@ -55,7 +45,7 @@ Output:: 4 "allowAnything": true    ~~~~~~~~~~~~~~~ -[HH:MM:SS AM] Found 4 errors. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js index abe42055bdc00..ccd1955da9f94 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js @@ -71,22 +71,12 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -276,22 +266,12 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj   ~~~~~ File is output from referenced project specified here. -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 4 errors. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -416,22 +396,12 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -642,22 +612,12 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj   ~~~~~ File is output from referenced project specified here. -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 4 errors. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -858,22 +818,12 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js index 018d027e4bed7..cdcf37e4ea990 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js @@ -152,7 +152,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileIdsList":[[2]],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"referencedMap":[[3,1]],"latestChangedDtsFile":"./b.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileIdsList":[[2]],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts","version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -203,9 +203,23 @@ export declare const b: A; "./a.d.ts" ] }, + "semanticDiagnosticsPerFile": [ + [ + "../../../../home/src/tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./a.d.ts", + "not cached or not changed" + ], + [ + "./b.ts", + "not cached or not changed" + ] + ], "latestChangedDtsFile": "./b.d.ts", "version": "FakeTSVersion", - "size": 877 + "size": 914 } //// [/user/username/projects/transitiveReferences/c.js] diff --git a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js index a278d12275b66..e1f603739a710 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js @@ -42,22 +42,12 @@ Output::    ~~~~~~~~~~~~~~~~~ File is entry point of type library specified here. -tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 4 errors. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -151,22 +141,22 @@ FsWatchesRecursive:: {} Timeout callback:: count: 2 -12: timerToInvalidateFailedLookupResolutions *new* -13: timerToUpdateProgram *new* +11: timerToInvalidateFailedLookupResolutions *new* +12: timerToUpdateProgram *new* Before running Timeout callback:: count: 2 -12: timerToInvalidateFailedLookupResolutions -13: timerToUpdateProgram +11: timerToInvalidateFailedLookupResolutions +12: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 1 Timeout callback:: count: 1 -13: timerToUpdateProgram *deleted* -14: timerToUpdateProgram *new* +12: timerToUpdateProgram *deleted* +13: timerToUpdateProgram *new* Before running Timeout callback:: count: 1 -14: timerToUpdateProgram +13: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -174,22 +164,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js index ac5c42dbe0477..dcdc31bc469ac 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js @@ -71,22 +71,12 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -274,22 +264,12 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj   ~~~~~ File is output from referenced project specified here. -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 4 errors. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -412,22 +392,12 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -636,22 +606,12 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj   ~~~~~ File is output from referenced project specified here. -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 4 errors. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -850,22 +810,12 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.d.ts 250 undefined Source file -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js index c64b69f92eea1..f00fd1c4946b3 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js @@ -71,22 +71,12 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory @@ -261,22 +251,12 @@ CreatingProgramWith:: options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} projectReferences: [{"path":"/user/username/projects/myproject/projects/project1","originalPath":"../project1"}] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project1/class3.ts 250 undefined Source file -project2/tsconfig.json:2:3 - error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. - -2 "compilerOptions": { -   ~~~~~~~~~~~~~~~~~ - -project2/tsconfig.json:3:5 - error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. - -3 "module": "none", -   ~~~~~~~~ - project2/tsconfig.json:3:15 - error TS5107: Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. 3 "module": "none",    ~~~~~~ -[HH:MM:SS AM] Found 3 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js index f49524ee0490a..0690451a25b92 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js @@ -167,34 +167,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/file1.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 3, - "offset": 3 - }, - "end": { - "line": 3, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - }, - { - "start": { - "line": 5, - "offset": 5 - }, - "end": { - "line": 5, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - }, { "start": { "line": 5, diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js index 1ea1270901cd7..349f99e764652 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js @@ -167,34 +167,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/file1.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 3, - "offset": 3 - }, - "end": { - "line": 3, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - }, - { - "start": { - "line": 5, - "offset": 5 - }, - "end": { - "line": 5, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - }, { "start": { "line": 5, diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js index 4c3c0611eb6de..458476870bc5a 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js @@ -531,7 +531,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/project/a/b/tsconfig.json", "configFile": "/user/username/projects/project/a/b/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 25 + }, + "end": { + "line": 3, + "offset": 34 + }, + "text": "Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/project/a/b/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* diff --git a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js index d7b8fdf8a5bc8..69968a6de6302 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js +++ b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js @@ -230,16 +230,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/a/index.ts", "configFile": "/home/src/workspaces/project/a/tsconfig.json", "diagnostics": [ - { - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error" - }, - { - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error" - }, { "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", "code": 5107, @@ -611,16 +601,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/b/index.ts", "configFile": "/home/src/workspaces/project/b/tsconfig.json", "diagnostics": [ - { - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error" - }, - { - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error" - }, { "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", "code": 5107, @@ -687,16 +667,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/c/index.ts", "configFile": "/home/src/workspaces/project/c/tsconfig.json", "diagnostics": [ - { - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error" - }, - { - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error" - }, { "text": "Option 'module=None' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", "code": 5107, diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js index 53c954941ed87..c5bf19afffc7e 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js @@ -1108,7 +1108,22 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/projects/project/tsconfig.json", "configFile": "/home/src/projects/project/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 44 + }, + "end": { + "line": 1, + "offset": 53 + }, + "text": "Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/home/src/projects/project/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* diff --git a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js index 8b34caee7aaeb..c4270b4c9dc77 100644 --- a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js @@ -153,34 +153,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/a/b/projects/myproject/bar/app.ts", "configFile": "/a/b/projects/myproject/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/a/b/projects/myproject/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/a/b/projects/myproject/tsconfig.json" - }, { "start": { "line": 3, diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js index 47dea525b6c01..466c87bc8a835 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js @@ -340,34 +340,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/SiblingClass/Source.ts", "configFile": "/user/username/projects/myproject/SiblingClass/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 8, - "offset": 3 - }, - "end": { - "line": 8, - "offset": 20 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/SiblingClass/tsconfig.json" - }, - { - "start": { - "line": 8, - "offset": 3 - }, - "end": { - "line": 8, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/SiblingClass/tsconfig.json" - }, { "start": { "line": 8, diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor-sibling-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor-sibling-projects.js index c604605f0d71f..4433210b6254e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor-sibling-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor-sibling-projects.js @@ -202,34 +202,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/solution/compiler/program.ts", "configFile": "/user/username/projects/solution/compiler/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/solution/compiler/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/solution/compiler/tsconfig.json" - }, { "start": { "line": 4, diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js index b07d40692cbc1..bc07ea07522ee 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js @@ -452,34 +452,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/solution/a/index.ts", "configFile": "/user/username/projects/solution/a/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/solution/a/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/solution/a/tsconfig.json" - }, { "start": { "line": 4, diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js index 92f6c1cb9526d..a84627cb3351c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js @@ -196,34 +196,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project2/class2.ts", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -373,34 +345,6 @@ Info seq [hh:mm:ss:mss] event: } ] }, - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -571,34 +515,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -806,34 +722,6 @@ Info seq [hh:mm:ss:mss] event: } ] }, - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -965,34 +853,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js index d8649cc09d10d..78fd941646495 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js @@ -193,34 +193,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project2/class2.ts", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js index 4bc4ac2a868b1..385f50ac0a8d2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js @@ -196,34 +196,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project2/class2.ts", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -415,34 +387,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project1/class1.ts", "configFile": "/user/username/projects/myproject/projects/project1/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" - }, { "start": { "line": 3, @@ -618,34 +562,6 @@ Info seq [hh:mm:ss:mss] event: } ] }, - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -887,34 +803,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -1163,34 +1051,6 @@ Info seq [hh:mm:ss:mss] event: } ] }, - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -1350,34 +1210,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js index 0230d6373b43a..63802dd273a40 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js @@ -193,34 +193,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project2/class2.ts", "configFile": "/user/username/projects/myproject/projects/project2/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project2/tsconfig.json" - }, { "start": { "line": 3, @@ -413,34 +385,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/projects/project1/class1.ts", "configFile": "/user/username/projects/myproject/projects/project1/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" - }, - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/myproject/projects/project1/tsconfig.json" - }, { "start": { "line": 3, diff --git a/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js b/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js index e6a320aee5c8e..fe81ab88f9aab 100644 --- a/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js +++ b/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js @@ -205,34 +205,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/solution/compiler/program.ts", "configFile": "/user/username/projects/solution/compiler/tsconfig.json", "diagnostics": [ - { - "start": { - "line": 2, - "offset": 3 - }, - "end": { - "line": 2, - "offset": 20 - }, - "text": "Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.", - "code": 5095, - "category": "error", - "fileName": "/user/username/projects/solution/compiler/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 13 - }, - "text": "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.", - "code": 5071, - "category": "error", - "fileName": "/user/username/projects/solution/compiler/tsconfig.json" - }, { "start": { "line": 4, diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js index 51ea50f0f810a..746910b4f5cef 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -224,6 +224,20 @@ Info seq [hh:mm:ss:mss] event: "category": "error", "fileName": "/user/username/projects/myproject/src/tsconfig.json" }, + { + "start": { + "line": 4, + "offset": 25 + }, + "end": { + "line": 4, + "offset": 34 + }, + "text": "Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/src/tsconfig.json" + }, { "start": { "line": 7, diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js index fcb5c946f8be3..b02e1aa0a682e 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js @@ -236,6 +236,20 @@ Info seq [hh:mm:ss:mss] event: "category": "error", "fileName": "/user/username/projects/myproject/src/tsconfig.json" }, + { + "start": { + "line": 4, + "offset": 25 + }, + "end": { + "line": 4, + "offset": 34 + }, + "text": "Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.", + "code": 5107, + "category": "error", + "fileName": "/user/username/projects/myproject/src/tsconfig.json" + }, { "start": { "line": 7, diff --git a/tests/cases/compiler/emitHelpersWithLocalCollisions.ts b/tests/cases/compiler/emitHelpersWithLocalCollisions.ts index c10e037abc934..510cfa9d3ec6b 100644 --- a/tests/cases/compiler/emitHelpersWithLocalCollisions.ts +++ b/tests/cases/compiler/emitHelpersWithLocalCollisions.ts @@ -1,6 +1,5 @@ // @target: es6 // @module: * -// @moduleResolution: classic // @experimentalDecorators: true // @filename: a.ts // @noTypesAndSymbols: true diff --git a/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts b/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts index 87acc67a59b31..5fbdba5571738 100644 --- a/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts +++ b/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts @@ -2,7 +2,6 @@ // @importHelpers: true // @target: es5 // @module: commonjs -// @moduleResolution: classic // @filename: external.ts export async function foo() { } @@ -11,7 +10,7 @@ export async function foo() { async function foo() { } -// @filename: tslib.d.ts +// @filename: node_modules/tslib/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/tests/cases/compiler/importHelpers.ts b/tests/cases/compiler/importHelpers.ts index becbc2eb715d0..319d7815f7e6c 100644 --- a/tests/cases/compiler/importHelpers.ts +++ b/tests/cases/compiler/importHelpers.ts @@ -1,7 +1,6 @@ // @importHelpers: true // @target: es5 // @module: commonjs -// @moduleResolution: classic // @experimentalDecorators: true // @emitDecoratorMetadata: true // @filename: external.ts @@ -40,7 +39,7 @@ function id(x: T) { const result = id`hello world`; -// @filename: tslib.d.ts +// @filename: node_modules/tslib/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/tests/cases/compiler/importHelpersDeclarations.ts b/tests/cases/compiler/importHelpersDeclarations.ts index 7b958cda78901..943a412f162e6 100644 --- a/tests/cases/compiler/importHelpersDeclarations.ts +++ b/tests/cases/compiler/importHelpersDeclarations.ts @@ -1,7 +1,6 @@ // @importHelpers: true // @target: es5 // @module: commonjs -// @moduleResolution: classic // @filename: declaration.d.ts export declare class D { } diff --git a/tests/cases/compiler/importHelpersInIsolatedModules.ts b/tests/cases/compiler/importHelpersInIsolatedModules.ts index 4c1dfd06ec082..c954dd466f98f 100644 --- a/tests/cases/compiler/importHelpersInIsolatedModules.ts +++ b/tests/cases/compiler/importHelpersInIsolatedModules.ts @@ -2,7 +2,6 @@ // @isolatedModules: true // @target: es5 // @module: commonjs -// @moduleResolution: classic // @experimentalDecorators: true // @emitDecoratorMetadata: true // @filename: external.ts @@ -29,7 +28,7 @@ class C { } } -// @filename: tslib.d.ts +// @filename: node_modules/tslib/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/tests/cases/compiler/importHelpersInTsx.tsx b/tests/cases/compiler/importHelpersInTsx.tsx index 32e0e5bf3a0c0..82b1fabc45108 100644 --- a/tests/cases/compiler/importHelpersInTsx.tsx +++ b/tests/cases/compiler/importHelpersInTsx.tsx @@ -1,7 +1,6 @@ // @importHelpers: true // @target: es5 // @module: commonjs -// @moduleResolution: classic // @jsx: react // @experimentalDecorators: true // @emitDecoratorMetadata: true @@ -15,7 +14,7 @@ declare var React: any; declare var o: any; const x = -// @filename: tslib.d.ts +// @filename: node_modules/tslib/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/tests/cases/compiler/importHelpersWithLocalCollisions.ts b/tests/cases/compiler/importHelpersWithLocalCollisions.ts index 30e67ca069be7..3994e1bb03054 100644 --- a/tests/cases/compiler/importHelpersWithLocalCollisions.ts +++ b/tests/cases/compiler/importHelpersWithLocalCollisions.ts @@ -1,7 +1,6 @@ // @importHelpers: true // @target: es6 // @module: commonjs, system, amd, es2015 -// @moduleResolution: classic // @experimentalDecorators: true // @filename: a.ts // @noTypesAndSymbols: true @@ -13,7 +12,7 @@ declare var dec: any, __decorate: any; const o = { a: 1 }; const y = { ...o }; -// @filename: tslib.d.ts +// @filename: node_modules/tslib/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; From 647a265089479ab2466c528c4486506c0568a4b5 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Fri, 24 Oct 2025 12:07:25 -0700 Subject: [PATCH 5/6] Update fourslash tests --- src/services/completions.ts | 10 +++++----- tests/cases/fourslash/codeFixCalledES2015Import3.ts | 2 +- tests/cases/fourslash/codeFixCalledES2015Import6.ts | 2 +- tests/cases/fourslash/codeFixCalledES2015Import9.ts | 2 +- .../completionListForTransitivelyExportedMembers04.ts | 4 ++-- .../completionPropertyShorthandForObjectLiteral5.ts | 3 ++- tests/cases/fourslash/completionsImportBaseUrl.ts | 2 +- .../fourslash/completionsImport_default_anonymous.ts | 4 ++-- .../completionsImport_default_didNotExistBefore.ts | 4 ++-- ...ompletionsImport_default_exportDefaultIdentifier.ts | 4 ++-- .../completionsImport_exportEquals_anonymous.ts | 2 +- tests/cases/fourslash/completionsImport_matching.ts | 2 +- .../completionsImport_multipleWithSameName.ts | 6 +++--- .../completionsImport_named_exportEqualsNamespace.ts | 4 ++-- .../cases/fourslash/completionsImport_notFromIndex.ts | 9 ++------- tests/cases/fourslash/completionsImport_ofAlias.ts | 4 ++-- .../completionsImport_ofAlias_preferShortPath.ts | 9 ++++----- tests/cases/fourslash/completionsImport_quoteStyle.ts | 2 +- .../fourslash/completionsImport_reExportDefault.ts | 9 ++++----- .../cases/fourslash/completionsUniqueSymbol_import.ts | 4 ++-- tests/cases/fourslash/getPreProcessedFile.ts | 10 ++++++---- .../noImportCompletionsInOtherJavaScriptFile.ts | 8 ++++---- tests/cases/fourslash/server/autoImportProvider3.ts | 4 ++-- .../server/importSuggestionsCache_exportUndefined.ts | 4 ++-- .../importSuggestionsCache_moduleAugmentation.ts | 2 +- 25 files changed, 56 insertions(+), 60 deletions(-) diff --git a/src/services/completions.ts b/src/services/completions.ts index 96f01f824bd57..fbb0cf9406436 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -481,7 +481,7 @@ export const enum SymbolOriginInfoKind { ComputedPropertyName = 1 << 9, SymbolMemberNoExport = SymbolMember, - SymbolMemberExport = SymbolMember | Export, + SymbolMemberExport = SymbolMember | ResolvedExport, } /** @internal */ @@ -535,7 +535,7 @@ function originIsExport(origin: SymbolOriginInfo | undefined): origin is SymbolO } function originIsResolvedExport(origin: SymbolOriginInfo | undefined): origin is SymbolOriginInfoResolvedExport { - return !!(origin && origin.kind === SymbolOriginInfoKind.ResolvedExport); + return !!(origin && origin.kind & SymbolOriginInfoKind.ResolvedExport); } function originIncludesSymbolName(origin: SymbolOriginInfo | undefined): origin is SymbolOriginInfoExport | SymbolOriginInfoResolvedExport | SymbolOriginInfoComputedPropertyName { @@ -2621,12 +2621,12 @@ function isRecommendedCompletionMatch(localSymbol: Symbol, recommendedCompletion } function getSourceFromOrigin(origin: SymbolOriginInfo | undefined): string | undefined { - if (originIsExport(origin)) { - return stripQuotes(origin.moduleSymbol.name); - } if (originIsResolvedExport(origin)) { return origin.moduleSpecifier; } + if (originIsExport(origin)) { + return stripQuotes(origin.moduleSymbol.name); + } if (origin?.kind === SymbolOriginInfoKind.ThisType) { return CompletionSource.ThisProperty; } diff --git a/tests/cases/fourslash/codeFixCalledES2015Import3.ts b/tests/cases/fourslash/codeFixCalledES2015Import3.ts index 6d8a6e475c168..c07a80e83e337 100644 --- a/tests/cases/fourslash/codeFixCalledES2015Import3.ts +++ b/tests/cases/fourslash/codeFixCalledES2015Import3.ts @@ -12,7 +12,7 @@ goTo.file(1); verify.codeFix({ - description: `Convert to default import`, + description: `Replace import with 'import foo from "./foo";'.`, newFileContent: `import foo from "./foo"; function invoke(f: () => void) { f(); } invoke(foo);`, diff --git a/tests/cases/fourslash/codeFixCalledES2015Import6.ts b/tests/cases/fourslash/codeFixCalledES2015Import6.ts index 678739f7abb8f..c71b6d3230dba 100644 --- a/tests/cases/fourslash/codeFixCalledES2015Import6.ts +++ b/tests/cases/fourslash/codeFixCalledES2015Import6.ts @@ -11,7 +11,7 @@ goTo.file(1); verify.codeFix({ - description: `Convert to default import`, + description: `Replace import with 'import foo from "./foo";'.`, newRangeContent: `import foo from "./foo";`, index: 0, }); diff --git a/tests/cases/fourslash/codeFixCalledES2015Import9.ts b/tests/cases/fourslash/codeFixCalledES2015Import9.ts index cdd2f02471af6..02f4334462668 100644 --- a/tests/cases/fourslash/codeFixCalledES2015Import9.ts +++ b/tests/cases/fourslash/codeFixCalledES2015Import9.ts @@ -11,7 +11,7 @@ goTo.file(1); verify.codeFix({ - description: `Convert to default import`, + description: `Replace import with 'import foo from "./foo";'.`, newRangeContent: `import foo from "./foo";`, index: 0, }); diff --git a/tests/cases/fourslash/completionListForTransitivelyExportedMembers04.ts b/tests/cases/fourslash/completionListForTransitivelyExportedMembers04.ts index 289c7aa64b97a..15be4d24678a2 100644 --- a/tests/cases/fourslash/completionListForTransitivelyExportedMembers04.ts +++ b/tests/cases/fourslash/completionListForTransitivelyExportedMembers04.ts @@ -24,8 +24,8 @@ // @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"; diff --git a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral5.ts b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral5.ts index 85d45299f3694..a8874a0accecd 100644 --- a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral5.ts +++ b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral5.ts @@ -1,3 +1,4 @@ +/// // @module: esnext // @Filename: /a.ts @@ -9,7 +10,7 @@ verify.completions({ marker: "", - includes: { name: "exportedConstant", source: "/a", hasAction: true, sortText: completion.SortText.AutoImportSuggestions }, + includes: { name: "exportedConstant", source: "./a", hasAction: true, sortText: completion.SortText.AutoImportSuggestions }, isNewIdentifierLocation: true, preferences: { includeCompletionsForModuleExports: true }, }); diff --git a/tests/cases/fourslash/completionsImportBaseUrl.ts b/tests/cases/fourslash/completionsImportBaseUrl.ts index 5f67a7d4d6301..6aa071d3ca508 100644 --- a/tests/cases/fourslash/completionsImportBaseUrl.ts +++ b/tests/cases/fourslash/completionsImportBaseUrl.ts @@ -19,7 +19,7 @@ verify.completions({ marker: "", includes: { name: "foo", - source: "/src/a", + source: "./a", sourceDisplay: "./a", text: "const foo: 0", kind: "const", diff --git a/tests/cases/fourslash/completionsImport_default_anonymous.ts b/tests/cases/fourslash/completionsImport_default_anonymous.ts index a7a2ffad06fef..568b1fb5e9026 100644 --- a/tests/cases/fourslash/completionsImport_default_anonymous.ts +++ b/tests/cases/fourslash/completionsImport_default_anonymous.ts @@ -23,7 +23,7 @@ verify.completions( marker: "1", includes: { name: "fooBar", - source: "/src/foo-bar", + source: "./foo-bar", sourceDisplay: "./foo-bar", text: "(property) default: 0", kind: "property", @@ -36,7 +36,7 @@ verify.completions( ); verify.applyCodeActionFromCompletion("1", { name: "fooBar", - source: "/src/foo-bar", + source: "./foo-bar", description: `Add import from "./foo-bar"`, newFileContent: `import fooBar from "./foo-bar" diff --git a/tests/cases/fourslash/completionsImport_default_didNotExistBefore.ts b/tests/cases/fourslash/completionsImport_default_didNotExistBefore.ts index 3459a342d10fb..18c877f6a0ee8 100644 --- a/tests/cases/fourslash/completionsImport_default_didNotExistBefore.ts +++ b/tests/cases/fourslash/completionsImport_default_didNotExistBefore.ts @@ -12,7 +12,7 @@ verify.completions({ marker: "", includes: { name: "foo", - source: "/a", + source: "./a", sourceDisplay: "./a", text: "function foo(): void", kind: "function", @@ -24,7 +24,7 @@ verify.completions({ }); verify.applyCodeActionFromCompletion("", { name: "foo", - source: "/a", + source: "./a", description: `Add import from "./a"`, newFileContent: `import foo from "./a"; diff --git a/tests/cases/fourslash/completionsImport_default_exportDefaultIdentifier.ts b/tests/cases/fourslash/completionsImport_default_exportDefaultIdentifier.ts index f4db7061043b7..dd91eea6ca853 100644 --- a/tests/cases/fourslash/completionsImport_default_exportDefaultIdentifier.ts +++ b/tests/cases/fourslash/completionsImport_default_exportDefaultIdentifier.ts @@ -16,7 +16,7 @@ verify.completions({ marker: "", includes: { name: "foo", - source: "/a", + source: "./a", sourceDisplay: "./a", text: "(alias) const foo: 0\nexport default foo", kind: "alias", @@ -29,7 +29,7 @@ verify.completions({ verify.applyCodeActionFromCompletion("", { name: "foo", - source: "/a", + source: "./a", description: `Add import from "./a"`, newFileContent: `import foo from "./a"; diff --git a/tests/cases/fourslash/completionsImport_exportEquals_anonymous.ts b/tests/cases/fourslash/completionsImport_exportEquals_anonymous.ts index 436549ee6b14b..069e27736c190 100644 --- a/tests/cases/fourslash/completionsImport_exportEquals_anonymous.ts +++ b/tests/cases/fourslash/completionsImport_exportEquals_anonymous.ts @@ -37,7 +37,7 @@ verify.completions( preferences } ); -verify.applyCodeActionFromCompletion("0", { +verify.applyCodeActionFromCompletion("1", { name: "fooBar", source: "./foo-bar", description: `Add import from "./foo-bar"`, diff --git a/tests/cases/fourslash/completionsImport_matching.ts b/tests/cases/fourslash/completionsImport_matching.ts index e2227319a8e49..4b48eaa86a962 100644 --- a/tests/cases/fourslash/completionsImport_matching.ts +++ b/tests/cases/fourslash/completionsImport_matching.ts @@ -21,7 +21,7 @@ verify.completions({ includes: ["aBcdef", "a_bcdef", "BDF"].map(name => ({ name, - source: "/a", + source: "./a", text: `function ${name}(): void`, hasAction: true, kind: "function", diff --git a/tests/cases/fourslash/completionsImport_multipleWithSameName.ts b/tests/cases/fourslash/completionsImport_multipleWithSameName.ts index d7433b41492db..a54e6a14503b2 100644 --- a/tests/cases/fourslash/completionsImport_multipleWithSameName.ts +++ b/tests/cases/fourslash/completionsImport_multipleWithSameName.ts @@ -29,7 +29,7 @@ verify.completions({ }, { name: "foo", - source: "/a", + source: "./a", sourceDisplay: "./a", text: "const foo: 0", kind: "const", @@ -39,7 +39,7 @@ verify.completions({ }, { name: "foo", - source: "/b", + source: "./b", sourceDisplay: "./b", text: "const foo: 1", kind: "const", @@ -52,7 +52,7 @@ verify.completions({ }); verify.applyCodeActionFromCompletion("", { name: "foo", - source: "/b", + source: "./b", description: `Add import from "./b"`, newFileContent: `import { foo } from "./b"; diff --git a/tests/cases/fourslash/completionsImport_named_exportEqualsNamespace.ts b/tests/cases/fourslash/completionsImport_named_exportEqualsNamespace.ts index d4566dd5dfcf9..be1edc1650fb4 100644 --- a/tests/cases/fourslash/completionsImport_named_exportEqualsNamespace.ts +++ b/tests/cases/fourslash/completionsImport_named_exportEqualsNamespace.ts @@ -15,7 +15,7 @@ verify.completions({ marker: "", includes: { name: "foo", - source: "/a", + source: "./a", sourceDisplay: "./a", text: "const N.foo: 0", kind: "const", @@ -27,7 +27,7 @@ verify.completions({ }); verify.applyCodeActionFromCompletion("", { name: "foo", - source: "/a", + source: "./a", description: `Add import from "./a"`, newFileContent: `import { foo } from "./a"; diff --git a/tests/cases/fourslash/completionsImport_notFromIndex.ts b/tests/cases/fourslash/completionsImport_notFromIndex.ts index 87b167d338927..6b1cd2c9c7627 100644 --- a/tests/cases/fourslash/completionsImport_notFromIndex.ts +++ b/tests/cases/fourslash/completionsImport_notFromIndex.ts @@ -1,7 +1,5 @@ /// -// @moduleResolution: node10 - // @Filename: /src/a.ts ////export const x = 0; @@ -22,11 +20,8 @@ for (const [marker, sourceDisplay] of [["0", "./src"], ["1", "./a"], ["2", "../a marker, includes: { name: "x", - source: "/src/a", + source: sourceDisplay, sourceDisplay, - text: "const x: 0", - kind: "const", - kindModifiers: "export", hasAction: true, sortText: completion.SortText.AutoImportSuggestions }, @@ -34,7 +29,7 @@ for (const [marker, sourceDisplay] of [["0", "./src"], ["1", "./a"], ["2", "../a }); verify.applyCodeActionFromCompletion(marker, { name: "x", - source: "/src/a", + source: sourceDisplay, description: `Add import from "${sourceDisplay}"`, newFileContent: `import { x } from "${sourceDisplay}";\n\nx`, }); diff --git a/tests/cases/fourslash/completionsImport_ofAlias.ts b/tests/cases/fourslash/completionsImport_ofAlias.ts index e6a882f712539..20b86ec2a5d32 100644 --- a/tests/cases/fourslash/completionsImport_ofAlias.ts +++ b/tests/cases/fourslash/completionsImport_ofAlias.ts @@ -28,7 +28,7 @@ verify.completions({ completion.undefinedVarEntry, { name: "foo", - source: "/a", + source: "./a", sourceDisplay: "./a", text: "(alias) const foo: 0\nexport foo", kind: "alias", @@ -42,7 +42,7 @@ verify.completions({ verify.applyCodeActionFromCompletion("", { name: "foo", - source: "/a", + source: "./a", description: `Add import from "./a"`, newFileContent: `import { foo } from "./a"; diff --git a/tests/cases/fourslash/completionsImport_ofAlias_preferShortPath.ts b/tests/cases/fourslash/completionsImport_ofAlias_preferShortPath.ts index aaea053032775..3bdd5e326bba1 100644 --- a/tests/cases/fourslash/completionsImport_ofAlias_preferShortPath.ts +++ b/tests/cases/fourslash/completionsImport_ofAlias_preferShortPath.ts @@ -2,7 +2,6 @@ // Test that the completion is for the shortest path, even if that's a re-export. -// @moduleResolution: node10 // @module: commonJs // @noLib: true @@ -20,10 +19,10 @@ verify.completions({ exact: completion.globalsPlus([ { name: "foo", - source: "/foo/lib/foo", + source: "./foo", sourceDisplay: "./foo", - text: "const foo: 0", - kind: "const", + text: "(alias) const foo: 0\nexport foo", + kind: "alias", kindModifiers: "export", hasAction: true, sortText: completion.SortText.AutoImportSuggestions @@ -33,7 +32,7 @@ verify.completions({ }); verify.applyCodeActionFromCompletion("", { name: "foo", - source: "/foo/lib/foo", + source: "./foo", description: `Add import from "./foo"`, newFileContent: `import { foo } from "./foo"; diff --git a/tests/cases/fourslash/completionsImport_quoteStyle.ts b/tests/cases/fourslash/completionsImport_quoteStyle.ts index a06fc247e961b..15d38586c4c52 100644 --- a/tests/cases/fourslash/completionsImport_quoteStyle.ts +++ b/tests/cases/fourslash/completionsImport_quoteStyle.ts @@ -11,7 +11,7 @@ goTo.marker(""); verify.applyCodeActionFromCompletion("", { name: "foo", - source: "/a", + source: "./a", description: `Add import from "./a"`, preferences: { quotePreference: "single", diff --git a/tests/cases/fourslash/completionsImport_reExportDefault.ts b/tests/cases/fourslash/completionsImport_reExportDefault.ts index 0216f5730b556..1a84942123b93 100644 --- a/tests/cases/fourslash/completionsImport_reExportDefault.ts +++ b/tests/cases/fourslash/completionsImport_reExportDefault.ts @@ -1,7 +1,6 @@ /// // @module: esnext -// @moduleResolution: node10 // @Filename: /a/b/impl.ts ////export default function foo() {} @@ -17,10 +16,10 @@ verify.completions({ exact: completion.globalsPlus([ { name: "foo", - source: "/a/b/impl", + source: "./a", sourceDisplay: "./a", - text: "function foo(): void", - kind: "function", + text: "(alias) function foo(): void\nexport foo", + kind: "alias", kindModifiers: "export", hasAction: true, sortText: completion.SortText.AutoImportSuggestions @@ -30,7 +29,7 @@ verify.completions({ }); verify.applyCodeActionFromCompletion("", { name: "foo", - source: "/a/b/impl", + source: "./a", description: `Add import from "./a"`, newFileContent: `import { foo } from "./a"; diff --git a/tests/cases/fourslash/completionsUniqueSymbol_import.ts b/tests/cases/fourslash/completionsUniqueSymbol_import.ts index dbdaec369ac4e..ef57d17ee7a20 100644 --- a/tests/cases/fourslash/completionsUniqueSymbol_import.ts +++ b/tests/cases/fourslash/completionsUniqueSymbol_import.ts @@ -24,7 +24,7 @@ verify.completions({ marker: "", exact: [ "n", - { name: "publicSym", source: "/a", insertText: "[publicSym]", sortText: completion.SortText.GlobalsOrKeywords, replacementSpan: test.ranges()[0], hasAction: true }, + { name: "publicSym", source: "./a", insertText: "[publicSym]", sortText: completion.SortText.GlobalsOrKeywords, replacementSpan: test.ranges()[0], hasAction: true }, ], preferences: { includeInsertTextCompletions: true, @@ -34,7 +34,7 @@ verify.completions({ verify.applyCodeActionFromCompletion("", { name: "publicSym", - source: "/a", + source: "./a", description: `Update import from "./a"`, newFileContent: `import { i, publicSym } from "./a"; diff --git a/tests/cases/fourslash/getPreProcessedFile.ts b/tests/cases/fourslash/getPreProcessedFile.ts index 2a82cdc6d7eb5..348c2bba52d29 100644 --- a/tests/cases/fourslash/getPreProcessedFile.ts +++ b/tests/cases/fourslash/getPreProcessedFile.ts @@ -1,5 +1,7 @@ /// +// @moduleResolution: classic + // @Filename: refFile1.ts //// class D { } @@ -11,10 +13,10 @@ //// /// //// /// //// /*3*/////*4*/ -//// import ref2 = require("./refFile2"); -//// import noExistref2 = require(/*5*/"./NotExistRefFile2"/*6*/); -//// import invalidRef1 /*7*/require/*8*/("./refFile2"); -//// import invalidRef2 = /*9*/requi/*10*/(/*10A*/"./refFile2"); +//// import ref2 = require("refFile2"); +//// import noExistref2 = require(/*5*/"NotExistRefFile2"/*6*/); +//// import invalidRef1 /*7*/require/*8*/("refFile2"); +//// import invalidRef2 = /*9*/requi/*10*/(/*10A*/"refFile2"); //// var obj: /*11*/C/*12*/; //// var obj1: D; //// var obj2: ref2.E; diff --git a/tests/cases/fourslash/noImportCompletionsInOtherJavaScriptFile.ts b/tests/cases/fourslash/noImportCompletionsInOtherJavaScriptFile.ts index 6051a5d80fc7a..fd2d095d4e5ce 100644 --- a/tests/cases/fourslash/noImportCompletionsInOtherJavaScriptFile.ts +++ b/tests/cases/fourslash/noImportCompletionsInOtherJavaScriptFile.ts @@ -26,8 +26,8 @@ goTo.eachMarker(() => { verify.completions({ includes: { name: "fail", - source: "/node_modules/foo/index", - sourceDisplay: "./node_modules/foo/index", + source: "foo", + sourceDisplay: "foo", text: "const fail: number", kind: "const", kindModifiers: "export,declare", @@ -40,8 +40,8 @@ goTo.eachMarker(() => { verify.completions({ includes: { name: "fail", - source: "/node_modules/foo/index", - sourceDisplay: "./node_modules/foo/index", + source: "foo", + sourceDisplay: "foo", text: "const fail: number", kind: "const", kindModifiers: "export,declare", diff --git a/tests/cases/fourslash/server/autoImportProvider3.ts b/tests/cases/fourslash/server/autoImportProvider3.ts index 106fd20a5e112..1f6024116c24a 100644 --- a/tests/cases/fourslash/server/autoImportProvider3.ts +++ b/tests/cases/fourslash/server/autoImportProvider3.ts @@ -32,13 +32,13 @@ verify.completions({ includes: [{ name: "PackageDependency", hasAction: true, - source: "/home/src/workspaces/project/node_modules/package-dependency/index", + source: "package-dependency", sortText: completion.SortText.AutoImportSuggestions, isPackageJsonImport: true }, { name: "CommonDependency", hasAction: true, - source: "/home/src/workspaces/project/node_modules/common-dependency/index", + source: "common-dependency", sortText: completion.SortText.AutoImportSuggestions, isPackageJsonImport: true }], diff --git a/tests/cases/fourslash/server/importSuggestionsCache_exportUndefined.ts b/tests/cases/fourslash/server/importSuggestionsCache_exportUndefined.ts index 153bc7ae4ece0..83938188ccb4f 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_exportUndefined.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_exportUndefined.ts @@ -20,7 +20,7 @@ verify.completions({ name: "x", hasAction: true, sortText: completion.SortText.AutoImportSuggestions, - source: "/home/src/workspaces/project/undefinedAlias" + source: "./undefinedAlias" }], preferences: { includeCompletionsForModuleExports: true, @@ -34,7 +34,7 @@ verify.completions({ name: "x", hasAction: true, sortText: completion.SortText.AutoImportSuggestions, - source: "/home/src/workspaces/project/undefinedAlias" + source: "./undefinedAlias" }], preferences: { includeCompletionsForModuleExports: true, diff --git a/tests/cases/fourslash/server/importSuggestionsCache_moduleAugmentation.ts b/tests/cases/fourslash/server/importSuggestionsCache_moduleAugmentation.ts index 4eb82b806df39..4241243654821 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_moduleAugmentation.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_moduleAugmentation.ts @@ -26,7 +26,7 @@ function verifyIncludes(name: string) { verify.completions({ includes: { name, - source: "/home/src/workspaces/project/node_modules/@types/react/index", + source: "react", hasAction: true, sortText: completion.SortText.AutoImportSuggestions, }, From 14750a988f4c93186b366d59c193649668498f89 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Fri, 24 Oct 2025 12:29:23 -0700 Subject: [PATCH 6/6] Fix unit tests --- .../evaluation/awaitUsingDeclarations.ts | 2 +- .../evaluation/updateExpressionInModule.ts | 8 +- .../unittests/evaluation/usingDeclarations.ts | 4 +- .../unittests/tscWatch/incremental.ts | 5 +- .../own-file-emit-with-errors-incremental.js | 73 +- .../own-file-emit-with-errors-watch.js | 69 +- ...wn-file-emit-without-errors-incremental.js | 69 +- .../own-file-emit-without-errors-watch.js | 63 +- .../with---out-incremental.js | 37 +- .../module-compilation/with---out-watch.js | 34 +- .../importSuggestionsCache_exportUndefined.js | 736 +++ ...portSuggestionsCache_moduleAugmentation.js | 4786 +++++++++++++++++ 12 files changed, 5662 insertions(+), 224 deletions(-) diff --git a/src/testRunner/unittests/evaluation/awaitUsingDeclarations.ts b/src/testRunner/unittests/evaluation/awaitUsingDeclarations.ts index 6cd8864e85785..56e8422632f77 100644 --- a/src/testRunner/unittests/evaluation/awaitUsingDeclarations.ts +++ b/src/testRunner/unittests/evaluation/awaitUsingDeclarations.ts @@ -1445,7 +1445,7 @@ describe("unittests:: evaluation:: awaitUsingDeclarations", () => { export const y = 2; output.push("after export y"); `, - { target: ts.ScriptTarget.ES2018, module: ts.ModuleKind.System }, + { target: ts.ScriptTarget.ES2018, module: ts.ModuleKind.System, ignoreDeprecations: "6.0" }, ); assert.strictEqual(x, 1); diff --git a/src/testRunner/unittests/evaluation/updateExpressionInModule.ts b/src/testRunner/unittests/evaluation/updateExpressionInModule.ts index 2dc7b5188a650..357ca120ba682 100644 --- a/src/testRunner/unittests/evaluation/updateExpressionInModule.ts +++ b/src/testRunner/unittests/evaluation/updateExpressionInModule.ts @@ -31,7 +31,7 @@ describe("unittests:: evaluation:: updateExpressionInModule", () => { }, rootFiles: ["/.src/main.ts"], main: "/.src/main.ts", - }, { module: ts.ModuleKind.System }); + }, { module: ts.ModuleKind.System, ignoreDeprecations: "6.0" }); assert.equal(result.a, 2); assert.equal(result.b, 2); }); @@ -67,7 +67,7 @@ describe("unittests:: evaluation:: updateExpressionInModule", () => { rootFiles: ["/.src/main.ts"], main: "/.src/main.ts", }, - { module: ts.ModuleKind.System }, + { module: ts.ModuleKind.System, ignoreDeprecations: "6.0" }, { BigInt }, ); assert.equal(result.a, BigInt(2)); @@ -99,7 +99,7 @@ describe("unittests:: evaluation:: updateExpressionInModule", () => { }, rootFiles: ["/.src/main.ts"], main: "/.src/main.ts", - }, { module: ts.ModuleKind.System }); + }, { module: ts.ModuleKind.System, ignoreDeprecations: "6.0" }); assert.equal(result.a, 2); assert.equal(result.b, 1); }); @@ -135,7 +135,7 @@ describe("unittests:: evaluation:: updateExpressionInModule", () => { rootFiles: ["/.src/main.ts"], main: "/.src/main.ts", }, - { module: ts.ModuleKind.System }, + { module: ts.ModuleKind.System, ignoreDeprecations: "6.0" }, { BigInt }, ); assert.equal(result.a, BigInt(2)); diff --git a/src/testRunner/unittests/evaluation/usingDeclarations.ts b/src/testRunner/unittests/evaluation/usingDeclarations.ts index 64bfa12416bc1..a9819941fe70d 100644 --- a/src/testRunner/unittests/evaluation/usingDeclarations.ts +++ b/src/testRunner/unittests/evaluation/usingDeclarations.ts @@ -1594,7 +1594,7 @@ describe("unittests:: evaluation:: usingDeclarations", () => { export const y = 2; output.push("after export y"); `, - { target: ts.ScriptTarget.ES2018, module: ts.ModuleKind.AMD }, + { target: ts.ScriptTarget.ES2018, module: ts.ModuleKind.AMD, ignoreDeprecations: "6.0" }, ); assert.strictEqual(x, 1); @@ -1624,7 +1624,7 @@ describe("unittests:: evaluation:: usingDeclarations", () => { export const y = 2; output.push("after export y"); `, - { target: ts.ScriptTarget.ES2018, module: ts.ModuleKind.System }, + { target: ts.ScriptTarget.ES2018, module: ts.ModuleKind.System, ignoreDeprecations: "6.0" }, ); assert.strictEqual(x, 1); diff --git a/src/testRunner/unittests/tscWatch/incremental.ts b/src/testRunner/unittests/tscWatch/incremental.ts index 30114dc48f8a2..d9cce42321d01 100644 --- a/src/testRunner/unittests/tscWatch/incremental.ts +++ b/src/testRunner/unittests/tscWatch/incremental.ts @@ -130,7 +130,7 @@ describe("unittests:: tscWatch:: incremental:: emit file --incremental", () => { }; const config: File = { path: configFile.path, - content: jsonToReadableText({ compilerOptions: { incremental: true, module: "amd" } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, module: "amd", ignoreDeprecations: "6.0" } }), }; verifyIncrementalWatchEmit({ @@ -202,6 +202,7 @@ describe("unittests:: tscWatch:: incremental:: emit file --incremental", () => { incremental: true, module: ts.ModuleKind.AMD, configFilePath: config.path, + ignoreDeprecations: "6.0", }); assert.equal(ts.arrayFrom(builderProgram.state.referencedMap!.keys()).length, 0); @@ -228,7 +229,7 @@ describe("unittests:: tscWatch:: incremental:: emit file --incremental", () => { verifyIncrementalWatchEmit({ files: () => [file1, file2, { path: configFile.path, - content: jsonToReadableText({ compilerOptions: { incremental: true, module: "amd", outFile: "out.js" } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, module: "amd", outFile: "out.js", ignoreDeprecations: "6.0" } }), }], subScenario: "module compilation/with --out", }); diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js index 9a8e8dd1a8f7f..a2ad91a6497bd 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js @@ -10,7 +10,8 @@ export const y: string = 20; { "compilerOptions": { "incremental": true, - "module": "amd" + "module": "amd", + "ignoreDeprecations": "6.0" } } @@ -31,13 +32,13 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -i Output:: -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +file2.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'. -4 "module": "amd" -   ~~~~~ +1 export const y: string = 20; +   ~ -Found 1 error in tsconfig.json:4 +Found 1 error in file2.ts:1 @@ -60,7 +61,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[[3,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -102,21 +103,21 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], [ "./file2.ts", - "not cached or not changed" + [ + { + "start": 13, + "length": 1, + "code": 2322, + "category": 1, + "messageText": "Type 'number' is not assignable to type 'string'." + } + ] ] ], "version": "FakeTSVersion", - "size": 719 + "size": 834 } @@ -127,6 +128,7 @@ Program root files: [ Program options: { "incremental": true, "module": 2, + "ignoreDeprecations": "6.0", "configFilePath": "/users/username/projects/project/tsconfig.json" } Program structureReused: Not @@ -135,7 +137,10 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/users/username/projects/project/file1.ts +/users/username/projects/project/file2.ts Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -152,13 +157,13 @@ export const z = 10; Output:: -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +file2.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'. -4 "module": "amd" -   ~~~~~ +1 export const y: string = 20; +   ~ -Found 1 error in tsconfig.json:4 +Found 1 error in file2.ts:1 @@ -172,7 +177,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[[3,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -218,21 +223,21 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], [ "./file2.ts", - "not cached or not changed" + [ + { + "start": 13, + "length": 1, + "code": 2322, + "category": 1, + "messageText": "Type 'number' is not assignable to type 'string'." + } + ] ] ], "version": "FakeTSVersion", - "size": 788 + "size": 903 } @@ -243,6 +248,7 @@ Program root files: [ Program options: { "incremental": true, "module": 2, + "ignoreDeprecations": "6.0", "configFilePath": "/users/username/projects/project/tsconfig.json" } Program structureReused: Not @@ -251,7 +257,8 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/users/username/projects/project/file1.ts Shape signatures in builder refreshed for:: /users/username/projects/project/file1.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js index 774766d7d5447..7673fbdba0516 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js @@ -10,7 +10,8 @@ export const y: string = 20; { "compilerOptions": { "incremental": true, - "module": "amd" + "module": "amd", + "ignoreDeprecations": "6.0" } } @@ -34,10 +35,10 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +file2.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'. -4 "module": "amd" -   ~~~~~ +1 export const y: string = 20; +   ~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -62,7 +63,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[[3,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,21 +105,21 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], [ "./file2.ts", - "not cached or not changed" + [ + { + "start": 13, + "length": 1, + "code": 2322, + "category": 1, + "messageText": "Type 'number' is not assignable to type 'string'." + } + ] ] ], "version": "FakeTSVersion", - "size": 719 + "size": 834 } @@ -149,6 +150,7 @@ Program root files: [ Program options: { "incremental": true, "module": 2, + "ignoreDeprecations": "6.0", "watch": true, "configFilePath": "/users/username/projects/project/tsconfig.json" } @@ -158,7 +160,10 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/users/username/projects/project/file1.ts +/users/username/projects/project/file2.ts Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -198,10 +203,10 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +file2.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'. -4 "module": "amd" -   ~~~~~ +1 export const y: string = 20; +   ~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -217,7 +222,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[[3,[{"start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -263,21 +268,21 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], [ "./file2.ts", - "not cached or not changed" + [ + { + "start": 13, + "length": 1, + "code": 2322, + "category": 1, + "messageText": "Type 'number' is not assignable to type 'string'." + } + ] ] ], "version": "FakeTSVersion", - "size": 788 + "size": 903 } @@ -308,6 +313,7 @@ Program root files: [ Program options: { "incremental": true, "module": 2, + "ignoreDeprecations": "6.0", "watch": true, "configFilePath": "/users/username/projects/project/tsconfig.json" } @@ -317,7 +323,8 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/users/username/projects/project/file1.ts Shape signatures in builder refreshed for:: /users/username/projects/project/file1.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js index 53b6e419ed19e..6d7a88da066a5 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js @@ -10,7 +10,8 @@ export const y = 20; { "compilerOptions": { "incremental": true, - "module": "amd" + "module": "amd", + "ignoreDeprecations": "6.0" } } @@ -31,14 +32,6 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -i Output:: -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - -4 "module": "amd" -   ~~~~~ - - -Found 1 error in tsconfig.json:4 - //// [/users/username/projects/project/file1.js] @@ -60,7 +53,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,22 +94,8 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, - "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], - [ - "./file2.ts", - "not cached or not changed" - ] - ], "version": "FakeTSVersion", - "size": 711 + "size": 674 } @@ -127,6 +106,7 @@ Program root files: [ Program options: { "incremental": true, "module": 2, + "ignoreDeprecations": "6.0", "configFilePath": "/users/username/projects/project/tsconfig.json" } Program structureReused: Not @@ -135,14 +115,17 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/users/username/projects/project/file1.ts +/users/username/projects/project/file2.ts Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) /users/username/projects/project/file1.ts (used version) /users/username/projects/project/file2.ts (used version) -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success Change:: @@ -152,14 +135,6 @@ export const z = 10; Output:: -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - -4 "module": "amd" -   ~~~~~ - - -Found 1 error in tsconfig.json:4 - //// [/users/username/projects/project/file2.js] @@ -172,7 +147,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -217,22 +192,8 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, - "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], - [ - "./file2.ts", - "not cached or not changed" - ] - ], "version": "FakeTSVersion", - "size": 780 + "size": 743 } @@ -243,6 +204,7 @@ Program root files: [ Program options: { "incremental": true, "module": 2, + "ignoreDeprecations": "6.0", "configFilePath": "/users/username/projects/project/tsconfig.json" } Program structureReused: Not @@ -251,9 +213,10 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/users/username/projects/project/file2.ts Shape signatures in builder refreshed for:: /users/username/projects/project/file2.ts (computed .d.ts) -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js index e1cccb10b4ff7..1e464b0c5fcd6 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js @@ -10,7 +10,8 @@ export const y = 20; { "compilerOptions": { "incremental": true, - "module": "amd" + "module": "amd", + "ignoreDeprecations": "6.0" } } @@ -34,12 +35,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - -4 "module": "amd" -   ~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -62,7 +58,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,22 +99,8 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, - "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], - [ - "./file2.ts", - "not cached or not changed" - ] - ], "version": "FakeTSVersion", - "size": 711 + "size": 674 } @@ -149,6 +131,7 @@ Program root files: [ Program options: { "incremental": true, "module": 2, + "ignoreDeprecations": "6.0", "watch": true, "configFilePath": "/users/username/projects/project/tsconfig.json" } @@ -158,7 +141,10 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/users/username/projects/project/file1.ts +/users/username/projects/project/file2.ts Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -198,12 +184,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - -4 "module": "amd" -   ~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -217,7 +198,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -262,22 +243,8 @@ define(["require", "exports"], function (require, exports) { "options": { "module": 2 }, - "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], - [ - "./file2.ts", - "not cached or not changed" - ] - ], "version": "FakeTSVersion", - "size": 780 + "size": 743 } @@ -308,6 +275,7 @@ Program root files: [ Program options: { "incremental": true, "module": 2, + "ignoreDeprecations": "6.0", "watch": true, "configFilePath": "/users/username/projects/project/tsconfig.json" } @@ -317,7 +285,8 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/users/username/projects/project/file2.ts Shape signatures in builder refreshed for:: /users/username/projects/project/file2.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js index 7d733814d6016..73d91647ebd64 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js @@ -11,7 +11,8 @@ export const y = 20; "compilerOptions": { "incremental": true, "module": "amd", - "outFile": "out.js" + "outFile": "out.js", + "ignoreDeprecations": "6.0" } } @@ -32,14 +33,6 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -i Output:: -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - -4 "module": "amd", -   ~~~~~ - - -Found 1 error in tsconfig.json:4 - //// [/users/username/projects/project/out.js] @@ -58,7 +51,7 @@ define("file2", ["require", "exports"], function (require, exports) { //// [/users/username/projects/project/out.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { @@ -86,22 +79,8 @@ define("file2", ["require", "exports"], function (require, exports) { "module": 2, "outFile": "./out.js" }, - "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], - [ - "./file2.ts", - "not cached or not changed" - ] - ], "version": "FakeTSVersion", - "size": 694 + "size": 657 } @@ -113,6 +92,7 @@ Program options: { "incremental": true, "module": 2, "outFile": "/users/username/projects/project/out.js", + "ignoreDeprecations": "6.0", "configFilePath": "/users/username/projects/project/tsconfig.json" } Program structureReused: Not @@ -121,8 +101,11 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/users/username/projects/project/file1.ts +/users/username/projects/project/file2.ts No shapes updated in the builder:: -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js index 01e45d3f44629..f5195729a96bf 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js @@ -11,7 +11,8 @@ export const y = 20; "compilerOptions": { "incremental": true, "module": "amd", - "outFile": "out.js" + "outFile": "out.js", + "ignoreDeprecations": "6.0" } } @@ -35,12 +36,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:4:15 - error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. - -4 "module": "amd", -   ~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -60,7 +56,7 @@ define("file2", ["require", "exports"], function (require, exports) { //// [/users/username/projects/project/out.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"},"semanticDiagnosticsPerFile":[1,2,3],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { @@ -88,22 +84,8 @@ define("file2", ["require", "exports"], function (require, exports) { "module": 2, "outFile": "./out.js" }, - "semanticDiagnosticsPerFile": [ - [ - "../../../../home/src/tslibs/ts/lib/lib.d.ts", - "not cached or not changed" - ], - [ - "./file1.ts", - "not cached or not changed" - ], - [ - "./file2.ts", - "not cached or not changed" - ] - ], "version": "FakeTSVersion", - "size": 694 + "size": 657 } @@ -135,6 +117,7 @@ Program options: { "incremental": true, "module": 2, "outFile": "/users/username/projects/project/out.js", + "ignoreDeprecations": "6.0", "watch": true, "configFilePath": "/users/username/projects/project/tsconfig.json" } @@ -144,7 +127,10 @@ Program files:: /users/username/projects/project/file1.ts /users/username/projects/project/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/home/src/tslibs/TS/Lib/lib.d.ts +/users/username/projects/project/file1.ts +/users/username/projects/project/file2.ts No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js index ab9286b3e42ce..d4a5624f2865d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js @@ -1099,3 +1099,739 @@ Projects:: projectStateVersion: 1 projectProgramVersion: 1 autoImportProviderHost: false *changed* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/index.ts", + "line": 1, + "offset": 1 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 1 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 5, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "using", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "x", + "kind": "const", + "kindModifiers": "", + "sortText": "16", + "source": "./undefinedAlias", + "hasAction": true, + "sourceDisplay": [ + { + "text": "./undefinedAlias", + "kind": "text" + } + ], + "data": { + "exportName": "export=", + "exportMapKey": "1 * x ", + "moduleSpecifier": "./undefinedAlias", + "fileName": "/home/src/workspaces/project/undefinedAlias.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ], + "defaultCommitCharacters": [ + ".", + ",", + ";" + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js index 4112f4d22bc11..3323b4222a6b6 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js @@ -1185,3 +1185,4789 @@ Projects:: projectStateVersion: 1 projectProgramVersion: 1 autoImportProviderHost: false *changed* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 6, + "offset": 4 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 5, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 6, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 4 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "using", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "useBlah", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "source": "react", + "hasAction": true, + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], + "data": { + "exportName": "useBlah", + "exportMapKey": "7 * useBlah ", + "moduleSpecifier": "react", + "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "useState", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "source": "react", + "hasAction": true, + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], + "data": { + "exportName": "useState", + "exportMapKey": "8 * useState ", + "moduleSpecifier": "react", + "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ], + "defaultCommitCharacters": [ + ".", + ",", + ";" + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 6, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 1, + "endLine": 3, + "endOffset": 37, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 7, + "success": true + } +After Request +Projects:: +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/home/src/workspaces/project/tsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-1 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 8, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-2 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 2, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 9, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 2, + "endLine": 3, + "endOffset": 2, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 10, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-3 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 3, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 3, + "endLine": 3, + "endOffset": 3, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 12, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-4 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 4, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 4, + "endLine": 3, + "endOffset": 4, + "insertString": "x" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 14, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-5 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 5, + "key": "x" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 15, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 5, + "endLine": 3, + "endOffset": 5, + "insertString": "p" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 16, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-6 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 6, + "key": "p" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 17, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 6, + "endLine": 3, + "endOffset": 6, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 18, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-7 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 7, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 19, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 7, + "endLine": 3, + "endOffset": 7, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 20, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-8 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 8, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 21, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 8, + "endLine": 3, + "endOffset": 8, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 22, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-9 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 9, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 23, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 9, + "endLine": 3, + "endOffset": 9, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 24, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-10 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 10, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 25, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 10, + "endLine": 3, + "endOffset": 10, + "insertString": "f" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 26, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-11 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 11, + "key": "f" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 27, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 11, + "endLine": 3, + "endOffset": 11, + "insertString": "u" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 28, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-12 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 29, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 12, + "key": "u" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 29, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 30, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 12, + "endLine": 3, + "endOffset": 12, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 30, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-13 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 31, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 13, + "key": "n" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 31, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 32, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 13, + "endLine": 3, + "endOffset": 13, + "insertString": "c" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 32, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-14 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 33, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 14, + "key": "c" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 33, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 34, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 14, + "endLine": 3, + "endOffset": 14, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 34, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-15 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 35, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 15, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 35, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 36, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 15, + "endLine": 3, + "endOffset": 15, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 36, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-16 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 37, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 16, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 37, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 38, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 16, + "endLine": 3, + "endOffset": 16, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 38, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-17 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 39, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 17, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 39, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 40, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 17, + "endLine": 3, + "endOffset": 17, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 40, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-18 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 41, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 18, + "key": "n" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 41, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 42, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 18, + "endLine": 3, + "endOffset": 18, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 42, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-19 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 43, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 19, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 43, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 44, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 19, + "endLine": 3, + "endOffset": 19, + "insertString": "u" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 44, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-20 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 45, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 20, + "key": "u" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 45, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 46, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 20, + "endLine": 3, + "endOffset": 20, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 46, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-21 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 47, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 21, + "key": "s" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 47, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 48, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 21, + "endLine": 3, + "endOffset": 21, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 48, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-22 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 49, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 22, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 49, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 50, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 22, + "endLine": 3, + "endOffset": 22, + "insertString": "Y" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 50, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-23 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 51, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 23, + "key": "Y" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 51, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 52, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 23, + "endLine": 3, + "endOffset": 23, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 52, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-24 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 53, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 24, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 53, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 54, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 24, + "endLine": 3, + "endOffset": 24, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 54, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-25 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 55, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 25, + "key": "s" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 55, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 56, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 25, + "endLine": 3, + "endOffset": 25, + "insertString": "(" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 56, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-26 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 57, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 26, + "key": "(" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 57, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 58, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 26, + "endLine": 3, + "endOffset": 26, + "insertString": ")" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 58, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-27 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 59, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 27, + "key": ")" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 59, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 60, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 27, + "endLine": 3, + "endOffset": 27, + "insertString": ":" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 60, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-28 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 61, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 28, + "key": ":" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 61, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 62, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 28, + "endLine": 3, + "endOffset": 28, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 62, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-29 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 63, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 29, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 63, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 64, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 29, + "endLine": 3, + "endOffset": 29, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 64, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-30 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 65, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 30, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 65, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 66, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 30, + "endLine": 3, + "endOffset": 30, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 66, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-31 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 67, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 31, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 67, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 68, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 31, + "endLine": 3, + "endOffset": 31, + "insertString": "u" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 68, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-32 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 69, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 32, + "key": "u" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 69, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 70, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 32, + "endLine": 3, + "endOffset": 32, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 70, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/a.ts (Open) *changed* + version: SVC-2-33 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/tsconfig.json (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 71, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 3, + "offset": 33, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 71, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 72, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 72, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 73, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 6, + "offset": 4 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /home/src/workspaces/project/node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" + /home/src/workspaces/project/a.ts SVC-2-33 "import 'react';\ndeclare module 'react' {\n export function useYes(): true\n}\n0;\nuse" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 73, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 6, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 4 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "using", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "useState", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "source": "react", + "hasAction": true, + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], + "data": { + "exportName": "useState", + "exportMapKey": "8 * useState ", + "moduleSpecifier": "react", + "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "useYes", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "source": "react", + "hasAction": true, + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], + "data": { + "exportName": "useYes", + "exportMapKey": "6 * useYes ", + "moduleSpecifier": "react", + "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ], + "defaultCommitCharacters": [ + ".", + ",", + ";" + ] + } + } +After Request +Projects:: +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/home/src/workspaces/project/tsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: false *changed* + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] request: + { + "seq": 74, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 74, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 75, + "type": "request", + "arguments": { + "file": "/home/src/workspaces/project/a.ts", + "line": 6, + "offset": 4 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 75, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 6, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 4 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "using", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "useState", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "source": "react", + "hasAction": true, + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], + "data": { + "exportName": "useState", + "exportMapKey": "8 * useState ", + "moduleSpecifier": "react", + "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "useYes", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "source": "react", + "hasAction": true, + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], + "data": { + "exportName": "useYes", + "exportMapKey": "6 * useYes ", + "moduleSpecifier": "react", + "fileName": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ], + "defaultCommitCharacters": [ + ".", + ",", + ";" + ] + } + } \ No newline at end of file