From cc6da472141200cd2e5ec369591805644c16869d Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Wed, 14 Dec 2022 16:24:01 -0800 Subject: [PATCH 1/3] Rename `node` to `node10` (preserving alias) --- src/compiler/checker.ts | 4 ++-- src/compiler/commandLineParser.ts | 12 ++++++---- src/compiler/diagnosticMessages.json | 4 ++-- src/compiler/moduleNameResolver.ts | 8 +++---- src/compiler/program.ts | 9 +++---- src/compiler/types.ts | 3 ++- src/compiler/utilities.ts | 2 +- src/server/session.ts | 2 +- src/services/codefixes/importFixes.ts | 2 +- src/services/utilities.ts | 2 +- .../unittests/config/commandLineParsing.ts | 2 +- src/testRunner/unittests/moduleResolution.ts | 16 ++++++------- .../unittests/reuseProgramStructure.ts | 6 ++--- .../unittests/services/transpile.ts | 6 ++--- .../unittests/tsserver/externalProjects.ts | 2 +- src/testRunner/unittests/tsserver/session.ts | 2 +- .../unittests/tsserver/typingsInstaller.ts | 16 ++++++------- src/tsconfig-base.json | 2 +- src/typingsInstallerCore/typingsInstaller.ts | 2 +- .../reference/api/tsserverlibrary.d.ts | 2 +- tests/baselines/reference/api/typescript.d.ts | 2 +- ...rse empty options of --moduleResolution.js | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../moduleResolution/tsconfig.json | 2 +- .../reference/node10IsNode_node.symbols | 15 ++++++++++++ .../reference/node10IsNode_node.trace.json | 21 ++++++++++++++++ .../reference/node10IsNode_node.types | 15 ++++++++++++ .../reference/node10IsNode_node10.symbols | 15 ++++++++++++ .../reference/node10IsNode_node10.trace.json | 21 ++++++++++++++++ .../reference/node10IsNode_node10.types | 15 ++++++++++++ .../moduleResolution/node10IsNode_node.ts | 24 +++++++++++++++++++ .../moduleResolution/node10IsNode_node10.ts | 24 +++++++++++++++++++ 43 files changed, 218 insertions(+), 66 deletions(-) create mode 100644 tests/baselines/reference/node10IsNode_node.symbols create mode 100644 tests/baselines/reference/node10IsNode_node.trace.json create mode 100644 tests/baselines/reference/node10IsNode_node.types create mode 100644 tests/baselines/reference/node10IsNode_node10.symbols create mode 100644 tests/baselines/reference/node10IsNode_node10.trace.json create mode 100644 tests/baselines/reference/node10IsNode_node10.types create mode 100644 tests/cases/conformance/moduleResolution/node10IsNode_node.ts create mode 100644 tests/cases/conformance/moduleResolution/node10IsNode_node10.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 7a9572c993c51..fe66d3b78ab74 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4701,7 +4701,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function resolveExternalModuleName(location: Node, moduleReferenceExpression: Expression, ignoreErrors?: boolean): Symbol | undefined { const isClassic = getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.Classic; const errorMessage = isClassic? - Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option + Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? undefined : errorMessage); } @@ -29790,7 +29790,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } const isClassic = getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.Classic; const errorMessage = isClassic - ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option + ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; const mod = resolveExternalModule(location!, runtimeImportSpecifier, errorMessage, location!); const result = mod && mod !== unknownSymbol ? getMergedSymbol(resolveSymbol(mod)) : undefined; diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index e8f5452edfcba..f47bbe90004c0 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -961,12 +961,15 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [ { name: "moduleResolution", type: new Map(getEntries({ - node: ModuleResolutionKind.NodeJs, + // N.B. The first entry specifies the value shown in `tsc --init` + node10: ModuleResolutionKind.Node10, + node: ModuleResolutionKind.Node10, classic: ModuleResolutionKind.Classic, node16: ModuleResolutionKind.Node16, nodenext: ModuleResolutionKind.NodeNext, bundler: ModuleResolutionKind.Bundler, })), + deprecatedKeys: new Set(["node"]), affectsModuleResolution: true, paramType: Diagnostics.STRATEGY, category: Diagnostics.Modules, @@ -1685,8 +1688,9 @@ export function createCompilerDiagnosticForInvalidCustomType(opt: CommandLineOpt } function createDiagnosticForInvalidCustomType(opt: CommandLineOptionOfCustomType, createDiagnostic: (message: DiagnosticMessage, arg0: string, arg1: string) => Diagnostic): Diagnostic { - const namesOfType = arrayFrom(opt.type.keys()).map(key => `'${key}'`).join(", "); - return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, namesOfType); + const namesOfType = arrayFrom(opt.type.keys()); + const stringNames = (opt.deprecatedKeys ? namesOfType.filter(k => !opt.deprecatedKeys!.has(k)) : namesOfType).map(key => `'${key}'`).join(", "); + return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames); } /** @internal */ @@ -3404,7 +3408,7 @@ function getExtendsConfigPath( return extendedConfigPath; } // If the path isn't a rooted or relative path, resolve like a module - const resolved = nodeModuleNameResolver(extendedConfig, combinePaths(basePath, "tsconfig.json"), { moduleResolution: ModuleResolutionKind.NodeJs }, host, /*cache*/ undefined, /*projectRefs*/ undefined, /*lookupConfig*/ true); + const resolved = nodeModuleNameResolver(extendedConfig, combinePaths(basePath, "tsconfig.json"), { moduleResolution: ModuleResolutionKind.Node10 }, host, /*cache*/ undefined, /*projectRefs*/ undefined, /*lookupConfig*/ true); if (resolved.resolvedModule) { return resolved.resolvedModule.resolvedFileName; } diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index ad3d9ec3e3eba..d0199e5c1195f 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -3391,7 +3391,7 @@ "category": "Error", "code": 2791 }, - "Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?": { + "Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?": { "category": "Error", "code": 2792 }, @@ -4121,7 +4121,7 @@ "category": "Error", "code": 5069 }, - "Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.": { + "Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.": { "category": "Error", "code": 5070 }, diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index 5a1c504bc2515..4bf80337bf530 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -1248,7 +1248,7 @@ export function resolveModuleName(moduleName: string, containingFile: string, co if (moduleResolution === undefined) { switch (getEmitModuleKind(compilerOptions)) { case ModuleKind.CommonJS: - moduleResolution = ModuleResolutionKind.NodeJs; + moduleResolution = ModuleResolutionKind.Node10; break; case ModuleKind.Node16: moduleResolution = ModuleResolutionKind.Node16; @@ -1278,7 +1278,7 @@ export function resolveModuleName(moduleName: string, containingFile: string, co case ModuleResolutionKind.NodeNext: result = nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode); break; - case ModuleResolutionKind.NodeJs: + case ModuleResolutionKind.Node10: result = nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference); break; case ModuleResolutionKind.Classic: @@ -1593,7 +1593,7 @@ function tryResolveJSModuleWorker(moduleName: string, initialDir: string, host: NodeResolutionFeatures.None, moduleName, initialDir, - { moduleResolution: ModuleResolutionKind.NodeJs, allowJs: true }, + { moduleResolution: ModuleResolutionKind.Node10, allowJs: true }, host, /*cache*/ undefined, Extensions.JavaScript, @@ -1656,7 +1656,7 @@ function nodeModuleNameResolverWorker(features: NodeResolutionFeatures, moduleNa } let result; - if (getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.NodeJs) { + if (getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.Node10) { const priorityExtensions = extensions & (Extensions.TypeScript | Extensions.Declaration); const secondaryExtensions = extensions & ~(Extensions.TypeScript | Extensions.Declaration); result = diff --git a/src/compiler/program.ts b/src/compiler/program.ts index ee27160a182e9..dcf36c5e310c0 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -3772,7 +3772,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg i++; } const resolveFrom = combinePaths(currentDirectory, `__lib_node_modules_lookup_${libFileName}__.ts`); - const localOverrideModuleResult = resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ModuleResolutionKind.NodeJs }, host, moduleResolutionCache); + const localOverrideModuleResult = resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ModuleResolutionKind.Node10 }, host, moduleResolutionCache); if (localOverrideModuleResult?.resolvedModule) { return localOverrideModuleResult.resolvedModule.resolvedFileName; } @@ -4118,11 +4118,8 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg } if (getResolveJsonModule(options)) { - if (getEmitModuleResolutionKind(options) !== ModuleResolutionKind.NodeJs && - getEmitModuleResolutionKind(options) !== ModuleResolutionKind.Node16 && - getEmitModuleResolutionKind(options) !== ModuleResolutionKind.NodeNext && - getEmitModuleResolutionKind(options) !== ModuleResolutionKind.Bundler) { - createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy, "resolveJsonModule"); + if (getEmitModuleResolutionKind(options) === ModuleResolutionKind.Classic) { + createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic, "resolveJsonModule"); } // Any emit other than common js, amd, es2015 or esnext is error else if (!hasJsonModuleEmitEnabled(options)) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 22c785897f60c..97d2c9a51a3b4 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6887,7 +6887,7 @@ export function diagnosticCategoryName(d: { category: DiagnosticCategory }, lowe export enum ModuleResolutionKind { Classic = 1, - NodeJs = 2, + Node10 = 2, // Starting with node12, node's module resolver has significant departures from traditional cjs resolution // to better support ecmascript modules and their use within node - however more features are still being added. // TypeScript's Node ESM support was introduced after Node 12 went end-of-life, and Node 14 is the earliest stable @@ -7306,6 +7306,7 @@ export interface CommandLineOptionOfBooleanType extends CommandLineOptionBase { export interface CommandLineOptionOfCustomType extends CommandLineOptionBase { type: Map; // an object literal mapping named values to actual values defaultValueDescription: number | string | undefined | DiagnosticMessage; + deprecatedKeys?: Set; } /** @internal */ diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 826f6e663b2ff..8623475c91d3e 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -7707,7 +7707,7 @@ export function getEmitModuleResolutionKind(compilerOptions: CompilerOptions) { if (moduleResolution === undefined) { switch (getEmitModuleKind(compilerOptions)) { case ModuleKind.CommonJS: - moduleResolution = ModuleResolutionKind.NodeJs; + moduleResolution = ModuleResolutionKind.Node10; break; case ModuleKind.Node16: moduleResolution = ModuleResolutionKind.Node16; diff --git a/src/server/session.ts b/src/server/session.ts index 403e3d0988468..93a2874192494 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -1566,7 +1566,7 @@ export class Session implements EventSender { // resolved from the package root under --moduleResolution node const entrypoints = getEntrypointsFromPackageJsonInfo( packageJson, - { moduleResolution: ModuleResolutionKind.NodeJs }, + { moduleResolution: ModuleResolutionKind.Node10 }, project, project.getModuleResolutionCache()); // This substring is correct only because we checked for a single `/node_modules/` at the top. diff --git a/src/services/codefixes/importFixes.ts b/src/services/codefixes/importFixes.ts index c5f5296275167..ac89579ab0ed5 100644 --- a/src/services/codefixes/importFixes.ts +++ b/src/services/codefixes/importFixes.ts @@ -964,7 +964,7 @@ function compareModuleSpecifiers( function isFixPossiblyReExportingImportingFile(fix: ImportFixWithModuleSpecifier, importingFile: SourceFile, compilerOptions: CompilerOptions, toPath: (fileName: string) => Path): boolean { if (fix.isReExport && fix.exportInfo?.moduleFileName && - getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.NodeJs && + getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.Node10 && isIndexFileName(fix.exportInfo.moduleFileName) ) { const reExportDir = toPath(getDirectoryPath(fix.exportInfo.moduleFileName)); diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 76fa41d4150c0..b105fe98ddeb4 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -2411,7 +2411,7 @@ export function getModuleSpecifierResolverHost(program: Program, host: LanguageS /** @internal */ export function moduleResolutionUsesNodeModules(moduleResolution: ModuleResolutionKind): boolean { - return moduleResolution === ModuleResolutionKind.NodeJs || moduleResolution >= ModuleResolutionKind.Node16 && moduleResolution <= ModuleResolutionKind.NodeNext; + return moduleResolution === ModuleResolutionKind.Node10 || moduleResolution >= ModuleResolutionKind.Node16 && moduleResolution <= ModuleResolutionKind.NodeNext; } /** @internal */ diff --git a/src/testRunner/unittests/config/commandLineParsing.ts b/src/testRunner/unittests/config/commandLineParsing.ts index 2cfbe94d9ed5c..4e5c12269c937 100644 --- a/src/testRunner/unittests/config/commandLineParsing.ts +++ b/src/testRunner/unittests/config/commandLineParsing.ts @@ -170,7 +170,7 @@ describe("unittests:: config:: commandLineParsing:: parseCommandLine", () => { verifyNullNonIncludedOption({ subScenario: "option of type custom map", type: () => new Map(ts.getEntries({ - node: ts.ModuleResolutionKind.NodeJs, + node: ts.ModuleResolutionKind.Node10, classic: ts.ModuleResolutionKind.Classic, })), nonNullValue: "node" diff --git a/src/testRunner/unittests/moduleResolution.ts b/src/testRunner/unittests/moduleResolution.ts index 869a86894dc93..d48993ad4ad23 100644 --- a/src/testRunner/unittests/moduleResolution.ts +++ b/src/testRunner/unittests/moduleResolution.ts @@ -337,7 +337,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p content: '{"version": "0.0.0", "main": "./index"}' } ); - const compilerOptions: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.NodeJs }; + const compilerOptions: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10 }; const cache = ts.createModuleResolutionCache("/", (f) => f); baselines.push(`Resolving "a" from /sub/dir/foo.ts`); let resolution = ts.resolveModuleName("a", "/sub/dir/foo.ts", compilerOptions, host, cache); @@ -365,7 +365,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p { name: "/app/node_modules/linked/package.json", content: '{"version": "0.0.0", "main": "./index"}' }, ); const cache = ts.createModuleResolutionCache("/", (f) => f); - const compilerOptions: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.NodeJs }; + const compilerOptions: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10 }; baselineResolution("/app/src/app.ts"); baselineResolution("/app/lib/main.ts"); runBaseline("non relative preserves originalPath on cache hit", baselines); @@ -635,7 +635,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const file2: File = { name: "/root/folder2/file2.ts" }; const file3: File = { name: "/root/folder2/file3.ts" }; const host = createModuleResolutionHost(baselines, hasDirectoryExists, file1, file2, file3); - for (const moduleResolution of [ts.ModuleResolutionKind.NodeJs, ts.ModuleResolutionKind.Classic]) { + for (const moduleResolution of [ts.ModuleResolutionKind.Node10, ts.ModuleResolutionKind.Classic]) { const options: ts.CompilerOptions = { moduleResolution, baseUrl: "/root" }; { baselines.push(`Resolving "folder2/file2" from ${file1.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); @@ -674,7 +674,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const m3Typings: File = { name: "/root/m3/dist/typings.d.ts" }; const m4: File = { name: "/root/node_modules/m4.ts" }; // fallback to node - const options: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.NodeJs, baseUrl: "/root" }; + const options: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10, baseUrl: "/root" }; const host = createModuleResolutionHost(baselines, hasDirectoryExists, main, m1, m2, m3, m3Typings, m4); check("m1", main); @@ -736,7 +736,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const host = createModuleResolutionHost(baselines, hasDirectoryExists, file1, file2, file3, file4, file4Typings, file5, file6); const options: ts.CompilerOptions = { - moduleResolution: ts.ModuleResolutionKind.NodeJs, + moduleResolution: ts.ModuleResolutionKind.Node10, baseUrl: "/root", jsx: ts.JsxEmit.React, paths: { @@ -827,7 +827,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const file3: File = { name: "/root/generated/folder2/file3.ts" }; const host = createModuleResolutionHost(baselines, hasDirectoryExists, file1, file1_1, file2, file3); const options: ts.CompilerOptions = { - moduleResolution: ts.ModuleResolutionKind.NodeJs, + moduleResolution: ts.ModuleResolutionKind.Node10, rootDirs: [ "/root", "/root/generated/" @@ -890,7 +890,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const libsTypings: File = { name: "/root/src/libs/guid/dist/guid.d.ts" }; const host = createModuleResolutionHost(baselines, hasDirectoryExists, app, libsPackage, libsTypings); const options: ts.CompilerOptions = { - moduleResolution: ts.ModuleResolutionKind.NodeJs, + moduleResolution: ts.ModuleResolutionKind.Node10, baseUrl: "/root", paths: { "libs/guid": [ "src/libs/guid" ] @@ -912,7 +912,7 @@ describe("unittests:: moduleResolution:: ModuleResolutionHost.directoryExists", directoryExists: _ => false }; - const result = ts.resolveModuleName("someName", "/a/b/c/d", { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host); + const result = ts.resolveModuleName("someName", "/a/b/c/d", { moduleResolution: ts.ModuleResolutionKind.Node10 }, host); assert(!result.resolvedModule); }); }); diff --git a/src/testRunner/unittests/reuseProgramStructure.ts b/src/testRunner/unittests/reuseProgramStructure.ts index 015e63aec813e..6ce787dd72bf5 100644 --- a/src/testRunner/unittests/reuseProgramStructure.ts +++ b/src/testRunner/unittests/reuseProgramStructure.ts @@ -84,7 +84,7 @@ describe("unittests:: Reuse program structure:: General", () => { { name: "/node_modules/b/package.json", text: SourceText.New("", "", JSON.stringify({ name: "b", version: "1.2.3" })) }, ]; - const options: ts.CompilerOptions = { target, moduleResolution: ts.ModuleResolutionKind.NodeJs }; + const options: ts.CompilerOptions = { target, moduleResolution: ts.ModuleResolutionKind.Node10 }; const program1 = newProgram(files, ["/a.ts"], options); const baselines: string[] = []; baselineProgram(baselines, program1); @@ -313,7 +313,7 @@ describe("unittests:: Reuse program structure:: General", () => { const file1Ts = { name: "file1.ts", text: SourceText.New("", `import * as a from "a";`, "const myX: number = a.x;") }; const file2Ts = { name: "file2.ts", text: SourceText.New("", "", "") }; const indexDTS = { name: "node_modules/a/index.d.ts", text: SourceText.New("", "export declare let x: number;", "") }; - const options: ts.CompilerOptions = { target: ts.ScriptTarget.ES2015, traceResolution: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }; + const options: ts.CompilerOptions = { target: ts.ScriptTarget.ES2015, traceResolution: true, moduleResolution: ts.ModuleResolutionKind.Node10 }; const rootFiles = [file1Ts, file2Ts]; const filesAfterNpmInstall = [file1Ts, file2Ts, indexDTS]; const initialProgram = newProgram(rootFiles, rootFiles.map(f => f.name), options); @@ -425,7 +425,7 @@ describe("unittests:: Reuse program structure:: General", () => { const bxIndex = "/node_modules/b/node_modules/x/index.d.ts"; const bxPackage = "/node_modules/b/node_modules/x/package.json"; const root = "/a.ts"; - const compilerOptions = { target, moduleResolution: ts.ModuleResolutionKind.NodeJs }; + const compilerOptions = { target, moduleResolution: ts.ModuleResolutionKind.Node10 }; function createRedirectProgram(useGetSourceFileByPath: boolean, options?: { bText: string, bVersion: string }): ProgramWithSourceTexts { const files: NamedSourceText[] = [ diff --git a/src/testRunner/unittests/services/transpile.ts b/src/testRunner/unittests/services/transpile.ts index 4eed8f72ac042..6adf8d69a6c4a 100644 --- a/src/testRunner/unittests/services/transpile.ts +++ b/src/testRunner/unittests/services/transpile.ts @@ -286,7 +286,7 @@ var x = 0;`, { }); transpilesCorrectly("Supports setting 'moduleResolution'", "x;", { - options: { compilerOptions: { moduleResolution: ts.ModuleResolutionKind.NodeJs }, fileName: "input.js", reportDiagnostics: true } + options: { compilerOptions: { moduleResolution: ts.ModuleResolutionKind.Node10 }, fileName: "input.js", reportDiagnostics: true } }); transpilesCorrectly("Supports setting 'newLine'", "x;", { @@ -440,7 +440,7 @@ var x = 0;`, { compilerOptions: { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS, - moduleResolution: ts.ModuleResolutionKind.NodeJs, + moduleResolution: ts.ModuleResolutionKind.Node10, emitDecoratorMetadata: true, experimentalDecorators: true, isolatedModules: true, @@ -460,7 +460,7 @@ var x = 0;`, { compilerOptions: { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.System, - moduleResolution: ts.ModuleResolutionKind.NodeJs, + moduleResolution: ts.ModuleResolutionKind.Node10, emitDecoratorMetadata: true, experimentalDecorators: true, isolatedModules: true, diff --git a/src/testRunner/unittests/tsserver/externalProjects.ts b/src/testRunner/unittests/tsserver/externalProjects.ts index 5d6919dc33662..dfa9ec8b3264b 100644 --- a/src/testRunner/unittests/tsserver/externalProjects.ts +++ b/src/testRunner/unittests/tsserver/externalProjects.ts @@ -463,7 +463,7 @@ describe("unittests:: tsserver:: ExternalProjects", () => { const host = createServerHost([file1, file2, file3]); const projectService = createProjectService(host); - projectService.openExternalProject({ projectFileName: "project", options: { moduleResolution: ts.ModuleResolutionKind.NodeJs }, rootFiles: toExternalFiles([file1.path, file2.path]) }); + projectService.openExternalProject({ projectFileName: "project", options: { moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: toExternalFiles([file1.path, file2.path]) }); checkNumberOfProjects(projectService, { externalProjects: 1 }); checkProjectRootFiles(projectService.externalProjects[0], [file1.path, file2.path]); checkProjectActualFiles(projectService.externalProjects[0], [file1.path, file2.path]); diff --git a/src/testRunner/unittests/tsserver/session.ts b/src/testRunner/unittests/tsserver/session.ts index d50ed165dde2d..b4f0faf30c22c 100644 --- a/src/testRunner/unittests/tsserver/session.ts +++ b/src/testRunner/unittests/tsserver/session.ts @@ -176,7 +176,7 @@ describe("unittests:: tsserver:: Session:: General functionality", () => { target: ts.ScriptTarget.ES5, jsx: ts.JsxEmit.React, newLine: ts.NewLineKind.LineFeed, - moduleResolution: ts.ModuleResolutionKind.NodeJs, + moduleResolution: ts.ModuleResolutionKind.Node10, allowNonTsExtensions: true // injected by tsserver } as ts.CompilerOptions); }); diff --git a/src/testRunner/unittests/tsserver/typingsInstaller.ts b/src/testRunner/unittests/tsserver/typingsInstaller.ts index 0ba9c7de56e87..5071df7b4be96 100644 --- a/src/testRunner/unittests/tsserver/typingsInstaller.ts +++ b/src/testRunner/unittests/tsserver/typingsInstaller.ts @@ -420,7 +420,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const projectService = createProjectService(host, { typingsInstaller: installer }); projectService.openExternalProject({ projectFileName, - options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }, + options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: [toExternalFile(lodashJs.path), toExternalFile(file2Jsx.path), toExternalFile(file3dts.path)], typeAcquisition: { } }); @@ -464,7 +464,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const projectService = createProjectService(host, { typingsInstaller: installer }); projectService.openExternalProject({ projectFileName, - options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }, + options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: [toExternalFile(jqueryJs.path)], typeAcquisition: { enable: false } }); @@ -504,7 +504,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const projectService = createProjectService(host, { typingsInstaller: installer }); projectService.openExternalProject({ projectFileName, - options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }, + options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: [toExternalFile(jqueryJs.path)], typeAcquisition: { enable: true, disableFilenameBasedTypeAcquisition: true } }); @@ -551,7 +551,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const projectService = createProjectService(host, { typingsInstaller: installer }); projectService.openExternalProject({ projectFileName, - options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }, + options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: [toExternalFile(jqueryJs.path), toExternalFile(file2Ts.path)], typeAcquisition: {} }); @@ -627,7 +627,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const projectService = createProjectService(host, { typingsInstaller: installer }); projectService.openExternalProject({ projectFileName, - options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }, + options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: [toExternalFile(lodashJs.path), toExternalFile(commanderJs.path), toExternalFile(file3dts.path)], typeAcquisition: { enable: true, include: ["jquery", "moment"], exclude: ["lodash"] } }); @@ -709,7 +709,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const projectService = createProjectService(host, { typingsInstaller: installer }); projectService.openExternalProject({ projectFileName, - options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }, + options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: [toExternalFile(lodashJs.path), toExternalFile(commanderJs.path), toExternalFile(file3.path)], typeAcquisition: { include: ["jquery", "moment"] } }); @@ -795,7 +795,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const projectFileName1 = "/a/app/test1.csproj"; projectService.openExternalProject({ projectFileName: projectFileName1, - options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }, + options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: [toExternalFile(lodashJs.path), toExternalFile(commanderJs.path), toExternalFile(file3.path)], typeAcquisition: { include: ["jquery", "cordova"] } }); @@ -807,7 +807,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const projectFileName2 = "/a/app/test2.csproj"; projectService.openExternalProject({ projectFileName: projectFileName2, - options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.NodeJs }, + options: { allowJS: true, moduleResolution: ts.ModuleResolutionKind.Node10 }, rootFiles: [toExternalFile(file3.path)], typeAcquisition: { include: ["grunt", "gulp"] } }); diff --git a/src/tsconfig-base.json b/src/tsconfig-base.json index d0efb21a159c0..bd4f98143ca18 100644 --- a/src/tsconfig-base.json +++ b/src/tsconfig-base.json @@ -7,7 +7,7 @@ "lib": ["es2018"], "target": "es2018", "module": "CommonJS", - "moduleResolution": "node", + "moduleResolution": "node10", "declaration": true, "declarationMap": true, diff --git a/src/typingsInstallerCore/typingsInstaller.ts b/src/typingsInstallerCore/typingsInstaller.ts index 81c6ec68a107f..3300603c6ccfa 100644 --- a/src/typingsInstallerCore/typingsInstaller.ts +++ b/src/typingsInstallerCore/typingsInstaller.ts @@ -69,7 +69,7 @@ const nullLog: Log = { function typingToFileName(cachePath: string, packageName: string, installTypingHost: InstallTypingHost, log: Log): string | undefined { try { - const result = resolveModuleName(packageName, combinePaths(cachePath, "index.d.ts"), { moduleResolution: ModuleResolutionKind.NodeJs }, installTypingHost); + const result = resolveModuleName(packageName, combinePaths(cachePath, "index.d.ts"), { moduleResolution: ModuleResolutionKind.Node10 }, installTypingHost); return result.resolvedModule && result.resolvedModule.resolvedFileName; } catch (e) { diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index c314e60dcbf84..932c7a9fe79de 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -6977,7 +6977,7 @@ declare namespace ts { } enum ModuleResolutionKind { Classic = 1, - NodeJs = 2, + Node10 = 2, Node16 = 3, NodeNext = 99, Bundler = 100 diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 8f15e1cae0f9c..27c18a9544e57 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3042,7 +3042,7 @@ declare namespace ts { } enum ModuleResolutionKind { Classic = 1, - NodeJs = 2, + Node10 = 2, Node16 = 3, NodeNext = 99, Bundler = 100 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 562f23f1a7748..d4a79bbd281e8 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: 'node', 'classic', 'node16', 'nodenext', 'bundler'. +error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. diff --git a/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json index 5eaa44daaec1e..278a4b9acc500 100644 --- a/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json index 5eaa44daaec1e..278a4b9acc500 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json index 5eaa44daaec1e..278a4b9acc500 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json index 00903ad0c38a1..09409f72b56f8 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json index 07e8da2a6e437..8e62af7a4e98b 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json index ff2c5a0a7e672..668c2673716dc 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json index 3955bbd422ede..c061d6de30f84 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json index f635f645ea08b..225eaf0502755 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json index 5eaa44daaec1e..278a4b9acc500 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json index ed7f34f5e6557..4cccea8eff898 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json index cc9d87c258ddb..a4f8d9b3abbb0 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ diff --git a/tests/baselines/reference/config/showConfig/Show TSConfig with paths and more/tsconfig.json b/tests/baselines/reference/config/showConfig/Show TSConfig with paths and more/tsconfig.json index dc6c7ab7abb58..30bcbb4fdd08b 100644 --- a/tests/baselines/reference/config/showConfig/Show TSConfig with paths and more/tsconfig.json +++ b/tests/baselines/reference/config/showConfig/Show TSConfig with paths and more/tsconfig.json @@ -4,7 +4,7 @@ "outDir": "./lib", "esModuleInterop": true, "module": "commonjs", - "moduleResolution": "node", + "moduleResolution": "node10", "target": "es2017", "sourceMap": true, "baseUrl": "./", diff --git a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/moduleResolution/tsconfig.json b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/moduleResolution/tsconfig.json index 2476027cba293..066d86238d22d 100644 --- a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/moduleResolution/tsconfig.json +++ b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/moduleResolution/tsconfig.json @@ -1,5 +1,5 @@ { "compilerOptions": { - "moduleResolution": "node" + "moduleResolution": "node10" } } diff --git a/tests/baselines/reference/node10IsNode_node.symbols b/tests/baselines/reference/node10IsNode_node.symbols new file mode 100644 index 0000000000000..775cd74f8cd97 --- /dev/null +++ b/tests/baselines/reference/node10IsNode_node.symbols @@ -0,0 +1,15 @@ +=== /node_modules/fancy-lib/index.d.ts === +export declare const fancy: "feast"; +>fancy : Symbol(fancy, Decl(index.d.ts, 0, 20)) + +=== /node_modules/fancy-lib/definitely-not-index.d.ts === +export declare const fancy: "ketchup"; +>fancy : Symbol(fancy, Decl(definitely-not-index.d.ts, 0, 20)) + +=== /main.ts === +import { fancy } from "fancy-lib"; +>fancy : Symbol(fancy, Decl(main.ts, 0, 8)) + +fancy; +>fancy : Symbol(fancy, Decl(main.ts, 0, 8)) + diff --git a/tests/baselines/reference/node10IsNode_node.trace.json b/tests/baselines/reference/node10IsNode_node.trace.json new file mode 100644 index 0000000000000..fc26e432f020d --- /dev/null +++ b/tests/baselines/reference/node10IsNode_node.trace.json @@ -0,0 +1,21 @@ +[ + "======== Resolving module 'fancy-lib' from '/main.ts'. ========", + "Explicitly specified module resolution kind: 'Node10'.", + "Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration.", + "Found 'package.json' at '/node_modules/fancy-lib/package.json'.", + "File '/node_modules/fancy-lib.ts' does not exist.", + "File '/node_modules/fancy-lib.tsx' does not exist.", + "File '/node_modules/fancy-lib.d.ts' does not exist.", + "'package.json' does not have a 'typesVersions' field.", + "'package.json' does not have a 'typings' field.", + "'package.json' does not have a 'types' field.", + "'package.json' has 'main' field 'index.js' that references '/node_modules/fancy-lib/index.js'.", + "File '/node_modules/fancy-lib/index.js' does not exist.", + "Loading module as file / folder, candidate module location '/node_modules/fancy-lib/index.js', target file types: TypeScript, Declaration.", + "File name '/node_modules/fancy-lib/index.js' has a '.js' extension - stripping it.", + "File '/node_modules/fancy-lib/index.ts' does not exist.", + "File '/node_modules/fancy-lib/index.tsx' does not exist.", + "File '/node_modules/fancy-lib/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for '/node_modules/fancy-lib/index.d.ts', result '/node_modules/fancy-lib/index.d.ts'.", + "======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/index.d.ts' with Package ID 'fancy-lib/index.d.ts@1.0.0'. ========" +] \ No newline at end of file diff --git a/tests/baselines/reference/node10IsNode_node.types b/tests/baselines/reference/node10IsNode_node.types new file mode 100644 index 0000000000000..b86cded92a4a0 --- /dev/null +++ b/tests/baselines/reference/node10IsNode_node.types @@ -0,0 +1,15 @@ +=== /node_modules/fancy-lib/index.d.ts === +export declare const fancy: "feast"; +>fancy : "feast" + +=== /node_modules/fancy-lib/definitely-not-index.d.ts === +export declare const fancy: "ketchup"; +>fancy : "ketchup" + +=== /main.ts === +import { fancy } from "fancy-lib"; +>fancy : "feast" + +fancy; +>fancy : "feast" + diff --git a/tests/baselines/reference/node10IsNode_node10.symbols b/tests/baselines/reference/node10IsNode_node10.symbols new file mode 100644 index 0000000000000..775cd74f8cd97 --- /dev/null +++ b/tests/baselines/reference/node10IsNode_node10.symbols @@ -0,0 +1,15 @@ +=== /node_modules/fancy-lib/index.d.ts === +export declare const fancy: "feast"; +>fancy : Symbol(fancy, Decl(index.d.ts, 0, 20)) + +=== /node_modules/fancy-lib/definitely-not-index.d.ts === +export declare const fancy: "ketchup"; +>fancy : Symbol(fancy, Decl(definitely-not-index.d.ts, 0, 20)) + +=== /main.ts === +import { fancy } from "fancy-lib"; +>fancy : Symbol(fancy, Decl(main.ts, 0, 8)) + +fancy; +>fancy : Symbol(fancy, Decl(main.ts, 0, 8)) + diff --git a/tests/baselines/reference/node10IsNode_node10.trace.json b/tests/baselines/reference/node10IsNode_node10.trace.json new file mode 100644 index 0000000000000..fc26e432f020d --- /dev/null +++ b/tests/baselines/reference/node10IsNode_node10.trace.json @@ -0,0 +1,21 @@ +[ + "======== Resolving module 'fancy-lib' from '/main.ts'. ========", + "Explicitly specified module resolution kind: 'Node10'.", + "Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration.", + "Found 'package.json' at '/node_modules/fancy-lib/package.json'.", + "File '/node_modules/fancy-lib.ts' does not exist.", + "File '/node_modules/fancy-lib.tsx' does not exist.", + "File '/node_modules/fancy-lib.d.ts' does not exist.", + "'package.json' does not have a 'typesVersions' field.", + "'package.json' does not have a 'typings' field.", + "'package.json' does not have a 'types' field.", + "'package.json' has 'main' field 'index.js' that references '/node_modules/fancy-lib/index.js'.", + "File '/node_modules/fancy-lib/index.js' does not exist.", + "Loading module as file / folder, candidate module location '/node_modules/fancy-lib/index.js', target file types: TypeScript, Declaration.", + "File name '/node_modules/fancy-lib/index.js' has a '.js' extension - stripping it.", + "File '/node_modules/fancy-lib/index.ts' does not exist.", + "File '/node_modules/fancy-lib/index.tsx' does not exist.", + "File '/node_modules/fancy-lib/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for '/node_modules/fancy-lib/index.d.ts', result '/node_modules/fancy-lib/index.d.ts'.", + "======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/index.d.ts' with Package ID 'fancy-lib/index.d.ts@1.0.0'. ========" +] \ No newline at end of file diff --git a/tests/baselines/reference/node10IsNode_node10.types b/tests/baselines/reference/node10IsNode_node10.types new file mode 100644 index 0000000000000..b86cded92a4a0 --- /dev/null +++ b/tests/baselines/reference/node10IsNode_node10.types @@ -0,0 +1,15 @@ +=== /node_modules/fancy-lib/index.d.ts === +export declare const fancy: "feast"; +>fancy : "feast" + +=== /node_modules/fancy-lib/definitely-not-index.d.ts === +export declare const fancy: "ketchup"; +>fancy : "ketchup" + +=== /main.ts === +import { fancy } from "fancy-lib"; +>fancy : "feast" + +fancy; +>fancy : "feast" + diff --git a/tests/cases/conformance/moduleResolution/node10IsNode_node.ts b/tests/cases/conformance/moduleResolution/node10IsNode_node.ts new file mode 100644 index 0000000000000..c1dcf74e03071 --- /dev/null +++ b/tests/cases/conformance/moduleResolution/node10IsNode_node.ts @@ -0,0 +1,24 @@ +// @moduleResolution: node +// @module: commonjs +// @noEmit: true +// @traceResolution: true + +// @Filename: /node_modules/fancy-lib/package.json +{ + "name": "fancy-lib", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": "./definitely-not-index.js" + } +} + +// @Filename: /node_modules/fancy-lib/index.d.ts +export declare const fancy: "feast"; + +// @Filename: /node_modules/fancy-lib/definitely-not-index.d.ts +export declare const fancy: "ketchup"; + +// @Filename: /main.ts +import { fancy } from "fancy-lib"; +fancy; diff --git a/tests/cases/conformance/moduleResolution/node10IsNode_node10.ts b/tests/cases/conformance/moduleResolution/node10IsNode_node10.ts new file mode 100644 index 0000000000000..836bd819468f2 --- /dev/null +++ b/tests/cases/conformance/moduleResolution/node10IsNode_node10.ts @@ -0,0 +1,24 @@ +// @moduleResolution: node10 +// @module: commonjs +// @noEmit: true +// @traceResolution: true + +// @Filename: /node_modules/fancy-lib/package.json +{ + "name": "fancy-lib", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": "./definitely-not-index.js" + } +} + +// @Filename: /node_modules/fancy-lib/index.d.ts +export declare const fancy: "feast"; + +// @Filename: /node_modules/fancy-lib/definitely-not-index.d.ts +export declare const fancy: "ketchup"; + +// @Filename: /main.ts +import { fancy } from "fancy-lib"; +fancy; From 39ed2a49cea8575c9d5e5cb4f02e4a8ee909b8ba Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Wed, 14 Dec 2022 16:46:07 -0800 Subject: [PATCH 2/3] Revert dogfooding change because of LKG --- src/tsconfig-base.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsconfig-base.json b/src/tsconfig-base.json index bd4f98143ca18..d0efb21a159c0 100644 --- a/src/tsconfig-base.json +++ b/src/tsconfig-base.json @@ -7,7 +7,7 @@ "lib": ["es2018"], "target": "es2018", "module": "CommonJS", - "moduleResolution": "node10", + "moduleResolution": "node", "declaration": true, "declarationMap": true, From 2e2fae240c9c3e6055792f48e0f1e720f4d619f8 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 15 Dec 2022 09:38:30 -0800 Subject: [PATCH 3/3] Update baselines --- .../aliasesInSystemModule1.errors.txt | 4 +-- .../aliasesInSystemModule2.errors.txt | 4 +-- ...alModuleInAnotherExternalModule.errors.txt | 4 +-- .../amdDependencyComment2.errors.txt | 4 +-- .../amdDependencyCommentName2.errors.txt | 4 +-- .../amdDependencyCommentName3.errors.txt | 4 +-- .../amdDependencyCommentName4.errors.txt | 16 ++++----- ...syncAwaitIsolatedModules_es2017.errors.txt | 4 +-- .../asyncAwaitIsolatedModules_es6.errors.txt | 4 +-- ...autoAccessorDisallowedModifiers.errors.txt | 4 +-- .../badExternalModuleReference.errors.txt | 4 +-- .../cachedModuleResolution1.trace.json | 4 +-- .../cachedModuleResolution2.trace.json | 4 +-- .../cachedModuleResolution5.trace.json | 4 +-- .../cachedModuleResolution6.trace.json | 4 +-- .../cachedModuleResolution7.trace.json | 4 +-- .../cachedModuleResolution8.errors.txt | 8 ++--- .../cachedModuleResolution9.errors.txt | 8 ++--- .../commentOnImportStatement1.errors.txt | 4 +-- ...le=system,moduledetection=auto).errors.txt | 4 +-- ...e=system,moduledetection=force).errors.txt | 4 +-- ...=system,moduledetection=legacy).errors.txt | 4 +-- ...le=system,moduledetection=auto).errors.txt | 4 +-- ...e=system,moduledetection=force).errors.txt | 4 +-- ...=system,moduledetection=legacy).errors.txt | 4 +-- .../copyrightWithNewLine1.errors.txt | 4 +-- .../copyrightWithoutNewLine1.errors.txt | 4 +-- .../deduplicateImportsInSystem.errors.txt | 24 ++++++------- ...age_relativeImportWithinPackage.trace.json | 8 ++--- ...ativeImportWithinPackage_scoped.trace.json | 8 ++--- ...ithImplicitModuleResolutionNone.errors.txt | 4 +-- .../es5ModuleInternalNamedImports.errors.txt | 4 +-- ...rtNamedImportIdentifiersParsing.errors.txt | 20 +++++------ .../es6modulekindWithES5Target10.errors.txt | 4 +-- .../es6modulekindWithES5Target9.errors.txt | 20 +++++------ ...esnextmodulekindWithES5Target10.errors.txt | 4 +-- .../esnextmodulekindWithES5Target9.errors.txt | 20 +++++------ .../exportAsNamespace_nonExistent.errors.txt | 4 +-- .../importWithTrailingSlash.trace.json | 8 ++--- ...portWithTrailingSlash_noResolve.trace.json | 2 +- ...NodeModuleJsDepthDefaultsToZero.trace.json | 2 +- ...geIdWithRelativeAndAbsolutePath.trace.json | 10 +++--- .../moduleResolutionWithExtensions.trace.json | 6 ++-- ...tionWithExtensions_notSupported.trace.json | 6 ++-- ...ionWithExtensions_notSupported2.trace.json | 2 +- ...ionWithExtensions_notSupported3.trace.json | 2 +- ...lutionWithExtensions_unexpected.trace.json | 2 +- ...utionWithExtensions_unexpected2.trace.json | 2 +- ...thExtensions_withAmbientPresent.trace.json | 2 +- ...olutionWithExtensions_withPaths.trace.json | 8 ++--- ...eResolutionWithRequireAndImport.trace.json | 2 +- ...uleResolutionWithSuffixes_empty.trace.json | 2 +- ...lutionWithSuffixes_notSpecified.trace.json | 2 +- ...oduleResolutionWithSuffixes_one.trace.json | 2 +- ...ResolutionWithSuffixes_oneBlank.trace.json | 2 +- ...olutionWithSuffixes_oneNotFound.trace.json | 2 +- ...Suffixes_one_dirModuleWithIndex.trace.json | 2 +- ...WithSuffixes_one_externalModule.trace.json | 2 +- ...Suffixes_one_externalModulePath.trace.json | 2 +- ...es_one_externalModule_withPaths.trace.json | 6 ++-- ...thSuffixes_one_externalTSModule.trace.json | 2 +- ...lutionWithSuffixes_one_jsModule.trace.json | 2 +- ...tionWithSuffixes_one_jsonModule.trace.json | 2 +- ...nWithSuffixes_threeLastIsBlank1.trace.json | 2 +- ...nWithSuffixes_threeLastIsBlank2.trace.json | 2 +- ...nWithSuffixes_threeLastIsBlank3.trace.json | 2 +- ...nWithSuffixes_threeLastIsBlank4.trace.json | 2 +- .../moduleResolutionWithSymlinks.trace.json | 6 ++-- ...onWithSymlinks_notInNodeModules.trace.json | 4 +-- ...onWithSymlinks_preserveSymlinks.trace.json | 8 ++--- ...solutionWithSymlinks_withOutDir.trace.json | 6 ++-- ...on_packageJson_notAtPackageRoot.trace.json | 2 +- ...AtPackageRoot_fakeScopedPackage.trace.json | 2 +- ...ution_packageJson_scopedPackage.trace.json | 2 +- ...on_packageJson_yesAtPackageRoot.trace.json | 2 +- ...AtPackageRoot_fakeScopedPackage.trace.json | 2 +- ...ageRoot_mainFieldInSubDirectory.trace.json | 2 +- .../reference/packageJsonMain.trace.json | 6 ++-- .../packageJsonMain_isNonRecursive.trace.json | 2 +- ...pingBasedModuleResolution3_node.trace.json | 6 ++-- ...pingBasedModuleResolution4_node.trace.json | 6 ++-- ...pingBasedModuleResolution5_node.trace.json | 8 ++--- ...pingBasedModuleResolution6_node.trace.json | 4 +-- ...pingBasedModuleResolution7_node.trace.json | 10 +++--- ...pingBasedModuleResolution8_node.trace.json | 2 +- ...lution_rootImport_aliasWithRoot.trace.json | 4 +-- ...liasWithRoot_differentRootTypes.trace.json | 36 +++++++++---------- ...t_aliasWithRoot_multipleAliases.trace.json | 4 +-- ...port_aliasWithRoot_realRootFile.trace.json | 4 +-- ...tion_rootImport_noAliasWithRoot.trace.json | 4 +-- ...rt_noAliasWithRoot_realRootFile.trace.json | 4 +-- ...dModuleResolution_withExtension.trace.json | 4 +-- ...eResolution_withExtensionInName.trace.json | 4 +-- ...ithExtension_MapedToNodeModules.trace.json | 2 +- ...tion_withExtension_failedLookup.trace.json | 2 +- .../reference/pathsValidation4.trace.json | 2 +- .../reference/pathsValidation5.trace.json | 2 +- .../amd/cantFindTheModule.errors.txt | 12 +++---- .../node/cantFindTheModule.errors.txt | 12 +++---- ...MetadataCommonJSISolatedModules.errors.txt | 4 +-- ...MetadataCommonJSISolatedModules.errors.txt | 4 +-- ...ommonJSISolatedModulesNoResolve.errors.txt | 4 +-- ...ommonJSISolatedModulesNoResolve.errors.txt | 4 +-- .../emitDecoratorMetadataSystemJS.errors.txt | 4 +-- .../emitDecoratorMetadataSystemJS.errors.txt | 4 +-- ...MetadataSystemJSISolatedModules.errors.txt | 4 +-- ...MetadataSystemJSISolatedModules.errors.txt | 4 +-- ...ystemJSISolatedModulesNoResolve.errors.txt | 4 +-- ...ystemJSISolatedModulesNoResolve.errors.txt | 4 +-- .../amd/intReferencingExtAndInt.errors.txt | 4 +-- .../node/intReferencingExtAndInt.errors.txt | 4 +-- ...calModuleWithRecursiveTypecheck.errors.txt | 4 +-- ...calModuleWithRecursiveTypecheck.errors.txt | 4 +-- ...dModuleDeclarationsInsideModule.errors.txt | 8 ++--- ...dModuleDeclarationsInsideModule.errors.txt | 8 ++--- ...arationsInsideNonExportedModule.errors.txt | 8 ++--- ...arationsInsideNonExportedModule.errors.txt | 8 ++--- ...leImportStatementInParentModule.errors.txt | 8 ++--- ...leImportStatementInParentModule.errors.txt | 8 ++--- ...elativeNamesInClassicResolution.errors.txt | 4 +-- .../requireOfJsonFileWithAmd.errors.txt | 8 ++--- ...ireOfJsonFileWithModuleEmitNone.errors.txt | 4 +-- ...ResolveJsonModuleAndPathMapping.trace.json | 2 +- .../requireOfJsonFile_PathMapping.trace.json | 2 +- ...le-declarations-from-non-modified-files.js | 2 +- .../fetches-imports-after-npm-install.js | 4 +-- .../resolution-cache-follows-imports.js | 2 +- .../reference/scopedPackages.trace.json | 6 ++-- .../shorthand-property-es5-es6.errors.txt | 4 +-- .../shorthand-property-es6-amd.errors.txt | 4 +-- .../shorthand-property-es6-es6.errors.txt | 4 +-- ...rictModeWordInImportDeclaration.errors.txt | 12 +++---- .../reference/systemModule10.errors.txt | 8 ++--- .../reference/systemModule10_ES5.errors.txt | 8 ++--- .../reference/systemModule11.errors.txt | 24 ++++++------- .../reference/systemModule12.errors.txt | 4 +-- .../reference/systemModule14.errors.txt | 4 +-- .../reference/systemModule16.errors.txt | 24 ++++++------- .../reference/systemModule9.errors.txt | 24 ++++++------- ...project-correctly-with-preserveSymlinks.js | 6 ++-- ...-file-from-referenced-project-correctly.js | 6 ++-- ...for-changes-to-package-json-main-fields.js | 12 +++---- ...ther-symlinked-package-moduleCaseChange.js | 6 ++-- ...age-with-indirect-link-moduleCaseChange.js | 6 ++-- ...er-symlinked-package-with-indirect-link.js | 6 ++-- ...gh-source-and-another-symlinked-package.js | 6 ++-- ...link-target,-and-disk-are-all-different.js | 4 +-- ...for-changes-to-package-json-main-fields.js | 10 +++--- .../on-sample-project.js | 10 +++--- ...-different-folders-with-no-files-clause.js | 26 +++++++------- ...nsitive-references-in-different-folders.js | 26 +++++++------- .../on-transitive-references.js | 26 +++++++------- ...n-declarationMap-changes-for-dependency.js | 4 +-- ...roject-uses-different-module-resolution.js | 4 +-- .../tscWatch/resolutionCache/caching-works.js | 2 +- .../loads-missing-files-from-disk.js | 2 +- .../reusing-type-ref-resolution.js | 6 ++-- ...module-goes-missing-and-then-comes-back.js | 2 +- ...not-implement-hasInvalidatedResolutions.js | 8 ++--- ...st-implements-hasInvalidatedResolutions.js | 4 +-- ...ymlinks-to-folders-in-recursive-folders.js | 2 +- .../loads-missing-files-from-disk.js | 2 +- ...unnecessary-lookup-invalidation-on-save.js | 4 +-- ...an-load-typings-that-are-proper-modules.js | 2 +- ...le-name-from-files-in-different-folders.js | 16 ++++----- ...e-module-name-from-files-in-same-folder.js | 4 +-- ...ative-module-name-from-inferred-project.js | 22 ++++++------ .../not-sharing-across-references.js | 6 ++-- ...le-name-from-files-in-different-folders.js | 16 ++++----- ...e-module-name-from-files-in-same-folder.js | 4 +-- .../sharing-across-references.js | 6 ++-- ...pe(jsx=react-jsx,target=es2015).errors.txt | 4 +-- .../typeReferenceDirectives10.trace.json | 2 +- .../typeReferenceDirectives11.trace.json | 2 +- .../typeReferenceDirectives12.trace.json | 4 +-- .../typeReferenceDirectives13.trace.json | 2 +- .../typeReferenceDirectives5.trace.json | 2 +- .../typeReferenceDirectives8.trace.json | 2 +- .../typeReferenceDirectives9.trace.json | 4 +-- ...mMultipleNodeModulesDirectories.trace.json | 6 ++-- ...romNodeModulesInParentDirectory.trace.json | 2 +- .../typesVersions.ambientModules.trace.json | 4 +-- .../typesVersions.emptyTypes.trace.json | 2 +- .../typesVersions.justIndex.trace.json | 2 +- .../typesVersions.multiFile.trace.json | 4 +-- ...VersionsDeclarationEmit.ambient.trace.json | 4 +-- ...rsionsDeclarationEmit.multiFile.trace.json | 4 +-- ...it.multiFileBackReferenceToSelf.trace.json | 8 ++--- ...ultiFileBackReferenceToUnmapped.trace.json | 6 ++-- .../reference/typingsLookup4.trace.json | 8 ++--- .../umdDependencyComment2.errors.txt | 4 +-- .../umdDependencyCommentName1.errors.txt | 4 +-- .../umdDependencyCommentName2.errors.txt | 4 +-- .../undeclaredModuleError.errors.txt | 4 +-- 194 files changed, 563 insertions(+), 563 deletions(-) diff --git a/tests/baselines/reference/aliasesInSystemModule1.errors.txt b/tests/baselines/reference/aliasesInSystemModule1.errors.txt index 5b3be2a6056c2..26bb962a51caf 100644 --- a/tests/baselines/reference/aliasesInSystemModule1.errors.txt +++ b/tests/baselines/reference/aliasesInSystemModule1.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/aliasesInSystemModule1.ts(1,24): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/aliasesInSystemModule1.ts (1 errors) ==== import alias = require('foo'); ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import cls = alias.Class; export import cls2 = alias.Class; diff --git a/tests/baselines/reference/aliasesInSystemModule2.errors.txt b/tests/baselines/reference/aliasesInSystemModule2.errors.txt index f4c7842ad114a..d6066dd2e0cc0 100644 --- a/tests/baselines/reference/aliasesInSystemModule2.errors.txt +++ b/tests/baselines/reference/aliasesInSystemModule2.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/aliasesInSystemModule2.ts(1,21): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/aliasesInSystemModule2.ts (1 errors) ==== import {alias} from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import cls = alias.Class; export import cls2 = alias.Class; diff --git a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt index d1436b4af0f98..9aec5403dcdb5 100644 --- a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt +++ b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.errors.txt @@ -1,5 +1,5 @@ tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts(4,16): error TS2664: Invalid module name in augmentation, module 'ext' cannot be found. -tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts(9,22): error TS2792: Cannot find module 'ext'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts (2 errors) ==== @@ -15,5 +15,5 @@ tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts(9,22): erro // 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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'ext'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? var x = ext; \ No newline at end of file diff --git a/tests/baselines/reference/amdDependencyComment2.errors.txt b/tests/baselines/reference/amdDependencyComment2.errors.txt index 2d8d8b125ca81..bc5a84f5a4b80 100644 --- a/tests/baselines/reference/amdDependencyComment2.errors.txt +++ b/tests/baselines/reference/amdDependencyComment2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/amdDependencyComment2.ts(3,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/amdDependencyComment2.ts (1 errors) ==== @@ -6,5 +6,5 @@ tests/cases/compiler/amdDependencyComment2.ts(3,21): error TS2792: Cannot find m import m1 = require("m2") ~~~~ -!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? m1.f(); \ No newline at end of file diff --git a/tests/baselines/reference/amdDependencyCommentName2.errors.txt b/tests/baselines/reference/amdDependencyCommentName2.errors.txt index af8fbee9a1dd6..abaa2fb8943a3 100644 --- a/tests/baselines/reference/amdDependencyCommentName2.errors.txt +++ b/tests/baselines/reference/amdDependencyCommentName2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/amdDependencyCommentName2.ts(3,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/amdDependencyCommentName2.ts (1 errors) ==== @@ -6,5 +6,5 @@ tests/cases/compiler/amdDependencyCommentName2.ts(3,21): error TS2792: Cannot fi import m1 = require("m2") ~~~~ -!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? m1.f(); \ No newline at end of file diff --git a/tests/baselines/reference/amdDependencyCommentName3.errors.txt b/tests/baselines/reference/amdDependencyCommentName3.errors.txt index 612e41c21e6cc..4c1d06f75f95b 100644 --- a/tests/baselines/reference/amdDependencyCommentName3.errors.txt +++ b/tests/baselines/reference/amdDependencyCommentName3.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/amdDependencyCommentName3.ts(5,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/amdDependencyCommentName3.ts (1 errors) ==== @@ -8,5 +8,5 @@ tests/cases/compiler/amdDependencyCommentName3.ts(5,21): error TS2792: Cannot fi import m1 = require("m2") ~~~~ -!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? m1.f(); \ No newline at end of file diff --git a/tests/baselines/reference/amdDependencyCommentName4.errors.txt b/tests/baselines/reference/amdDependencyCommentName4.errors.txt index 75e1cdfc98519..1571024d0b388 100644 --- a/tests/baselines/reference/amdDependencyCommentName4.errors.txt +++ b/tests/baselines/reference/amdDependencyCommentName4.errors.txt @@ -1,7 +1,7 @@ -tests/cases/compiler/amdDependencyCommentName4.ts(8,21): error TS2792: Cannot find module 'aliasedModule1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/amdDependencyCommentName4.ts(11,26): error TS2792: Cannot find module 'aliasedModule2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/amdDependencyCommentName4.ts(14,15): error TS2792: Cannot find module 'aliasedModule3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/amdDependencyCommentName4.ts(17,21): error TS2792: Cannot find module 'aliasedModule4'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? +tests/cases/compiler/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? +tests/cases/compiler/amdDependencyCommentName4.ts(14,15): error TS2792: Cannot find module 'aliasedModule3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +tests/cases/compiler/amdDependencyCommentName4.ts(17,21): error TS2792: Cannot find module 'aliasedModule4'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== tests/cases/compiler/amdDependencyCommentName4.ts (4 errors) ==== @@ -14,22 +14,22 @@ tests/cases/compiler/amdDependencyCommentName4.ts(17,21): error TS2792: Cannot f import r1 = require("aliasedModule1"); ~~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'aliasedModule1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'aliasedModule1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? r1; import {p1, p2, p3} from "aliasedModule2"; ~~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'aliasedModule2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'aliasedModule2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? p1; import d from "aliasedModule3"; ~~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'aliasedModule3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'aliasedModule3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? d; import * as ns from "aliasedModule4"; ~~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'aliasedModule4'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'aliasedModule4'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ns; import "unaliasedModule2"; \ No newline at end of file diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es2017.errors.txt b/tests/baselines/reference/asyncAwaitIsolatedModules_es2017.errors.txt index 62bb6c1d4d51e..2485b1bda29c6 100644 --- a/tests/baselines/reference/asyncAwaitIsolatedModules_es2017.errors.txt +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es2017.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/async/es2017/asyncAwaitIsolatedModules_es2017.ts(1,27): error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/async/es2017/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? ==== tests/cases/conformance/async/es2017/asyncAwaitIsolatedModules_es2017.ts (1 errors) ==== import { MyPromise } from "missing"; ~~~~~~~~~ -!!! error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 1088f4978bd32..270aabb9d5a79 100644 --- a/tests/baselines/reference/asyncAwaitIsolatedModules_es6.errors.txt +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es6.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/async/es6/asyncAwaitIsolatedModules_es6.ts(1,27): error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/async/es6/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? ==== tests/cases/conformance/async/es6/asyncAwaitIsolatedModules_es6.ts (1 errors) ==== import { MyPromise } from "missing"; ~~~~~~~~~ -!!! error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'missing'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? declare var p: Promise; declare var mp: MyPromise; diff --git a/tests/baselines/reference/autoAccessorDisallowedModifiers.errors.txt b/tests/baselines/reference/autoAccessorDisallowedModifiers.errors.txt index d816b65516d5a..48b5659399030 100644 --- a/tests/baselines/reference/autoAccessorDisallowedModifiers.errors.txt +++ b/tests/baselines/reference/autoAccessorDisallowedModifiers.errors.txt @@ -22,7 +22,7 @@ tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowe tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts(31,1): error TS1275: 'accessor' modifier can only appear on a property declaration. tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts(32,1): error TS1275: 'accessor' modifier can only appear on a property declaration. tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts(33,1): error TS1275: 'accessor' modifier can only appear on a property declaration. -tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts(33,25): error TS2792: Cannot find module 'x'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts(33,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? tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts(34,1): error TS1275: 'accessor' modifier can only appear on a property declaration. tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts(35,1): error TS1275: 'accessor' modifier can only appear on a property declaration. tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts(36,1): error TS1275: 'accessor' modifier can only appear on a property declaration. @@ -111,7 +111,7 @@ tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorDisallowe ~~~~~~~~ !!! 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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'x'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? accessor export { V1 }; ~~~~~~~~ !!! error TS1275: 'accessor' modifier can only appear on a property declaration. diff --git a/tests/baselines/reference/badExternalModuleReference.errors.txt b/tests/baselines/reference/badExternalModuleReference.errors.txt index b1871dd0d2839..63e19311e0b08 100644 --- a/tests/baselines/reference/badExternalModuleReference.errors.txt +++ b/tests/baselines/reference/badExternalModuleReference.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/badExternalModuleReference.ts(1,21): error TS2792: Cannot find module 'garbage'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/badExternalModuleReference.ts (1 errors) ==== import a1 = require("garbage"); ~~~~~~~~~ -!!! error TS2792: Cannot find module 'garbage'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'garbage'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export declare var a: { test1: a1.connectModule; (): a1.connectExport; diff --git a/tests/baselines/reference/cachedModuleResolution1.trace.json b/tests/baselines/reference/cachedModuleResolution1.trace.json index 0789483f0751a..4d14949256e1a 100644 --- a/tests/baselines/reference/cachedModuleResolution1.trace.json +++ b/tests/baselines/reference/cachedModuleResolution1.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.", "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.", @@ -11,7 +11,7 @@ "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========" diff --git a/tests/baselines/reference/cachedModuleResolution2.trace.json b/tests/baselines/reference/cachedModuleResolution2.trace.json index 46adab8045fdb..b3c9769de89c5 100644 --- a/tests/baselines/reference/cachedModuleResolution2.trace.json +++ b/tests/baselines/reference/cachedModuleResolution2.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.", "File '/a/b/node_modules/foo.ts' does not exist.", @@ -9,7 +9,7 @@ "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.", "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.", diff --git a/tests/baselines/reference/cachedModuleResolution5.trace.json b/tests/baselines/reference/cachedModuleResolution5.trace.json index 8574fefadfe2a..e99ccf16c7dd2 100644 --- a/tests/baselines/reference/cachedModuleResolution5.trace.json +++ b/tests/baselines/reference/cachedModuleResolution5.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.", "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.", @@ -11,7 +11,7 @@ "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", "======== Resolving module 'foo' from '/a/b/lib.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Resolution for module 'foo' was found in cache from location '/a/b'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========" diff --git a/tests/baselines/reference/cachedModuleResolution6.trace.json b/tests/baselines/reference/cachedModuleResolution6.trace.json index 43c33cb0d0794..c7ff47a2e9568 100644 --- a/tests/baselines/reference/cachedModuleResolution6.trace.json +++ b/tests/baselines/reference/cachedModuleResolution6.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.", "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.", @@ -17,7 +17,7 @@ "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'foo' was not resolved. ========", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was not resolved. ========" diff --git a/tests/baselines/reference/cachedModuleResolution7.trace.json b/tests/baselines/reference/cachedModuleResolution7.trace.json index f1f5f22311aad..7c2ce94c387cb 100644 --- a/tests/baselines/reference/cachedModuleResolution7.trace.json +++ b/tests/baselines/reference/cachedModuleResolution7.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.", "Directory '/a/b/node_modules' does not exist, skipping all lookups in it.", @@ -13,7 +13,7 @@ "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'foo' was not resolved. ========", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.", "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.", diff --git a/tests/baselines/reference/cachedModuleResolution8.errors.txt b/tests/baselines/reference/cachedModuleResolution8.errors.txt index d7111d8b4b4e4..454954606fd73 100644 --- a/tests/baselines/reference/cachedModuleResolution8.errors.txt +++ b/tests/baselines/reference/cachedModuleResolution8.errors.txt @@ -1,13 +1,13 @@ -/a/b/c/d/e/app.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', 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 'node', or to add aliases to the 'paths' option? +/a/b/c/d/e/app.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +/a/b/c/lib.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== /a/b/c/d/e/app.ts (1 errors) ==== import {x} from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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 errors) ==== import {x} from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? \ No newline at end of file +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution9.errors.txt b/tests/baselines/reference/cachedModuleResolution9.errors.txt index d212a55a91479..5c56ae758db02 100644 --- a/tests/baselines/reference/cachedModuleResolution9.errors.txt +++ b/tests/baselines/reference/cachedModuleResolution9.errors.txt @@ -1,15 +1,15 @@ -/a/b/c/d/e/app.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', 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 'node', or to add aliases to the 'paths' option? +/a/b/c/d/e/app.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +/a/b/c/lib.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== /a/b/c/lib.ts (1 errors) ==== import {x} from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== /a/b/c/d/e/app.ts (1 errors) ==== import {x} from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? \ No newline at end of file diff --git a/tests/baselines/reference/commentOnImportStatement1.errors.txt b/tests/baselines/reference/commentOnImportStatement1.errors.txt index e6dd806ff6af0..c835bc087b80a 100644 --- a/tests/baselines/reference/commentOnImportStatement1.errors.txt +++ b/tests/baselines/reference/commentOnImportStatement1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/commentOnImportStatement1.ts(3,22): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/commentOnImportStatement1.ts (1 errors) ==== @@ -6,5 +6,5 @@ tests/cases/compiler/commentOnImportStatement1.ts(3,22): error TS2792: Cannot fi import foo = require('./foo'); ~~~~~~~ -!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? \ No newline at end of file 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 610a0fa29c506..9a9ed79c7b0ea 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,4 +1,4 @@ -tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== @@ -34,6 +34,6 @@ tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS279 ~~~~~~~~~~~~~~~~~~~~~~~~ ; ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? } } \ No newline at end of file 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 610a0fa29c506..9a9ed79c7b0ea 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,4 +1,4 @@ -tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== @@ -34,6 +34,6 @@ tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS279 ~~~~~~~~~~~~~~~~~~~~~~~~ ; ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? } } \ No newline at end of file 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 610a0fa29c506..9a9ed79c7b0ea 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,4 +1,4 @@ -tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== @@ -34,6 +34,6 @@ tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS279 ~~~~~~~~~~~~~~~~~~~~~~~~ ; ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? } } \ No newline at end of file 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 072fbae9425eb..05c558ad7755a 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,4 +1,4 @@ -tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS2792: Cannot find module 'react/jsx-dev-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== @@ -34,6 +34,6 @@ tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS279 ~~~~~~~~~~~~~~~~~~~~~~~~ ; ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'react/jsx-dev-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? } } \ No newline at end of file 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 072fbae9425eb..05c558ad7755a 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,4 +1,4 @@ -tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS2792: Cannot find module 'react/jsx-dev-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== @@ -34,6 +34,6 @@ tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS279 ~~~~~~~~~~~~~~~~~~~~~~~~ ; ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'react/jsx-dev-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? } } \ No newline at end of file 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 072fbae9425eb..05c558ad7755a 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,4 +1,4 @@ -tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS2792: Cannot find module 'react/jsx-dev-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx (1 errors) ==== @@ -34,6 +34,6 @@ tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx(5,16): error TS279 ~~~~~~~~~~~~~~~~~~~~~~~~ ; ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'react/jsx-dev-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? } } \ No newline at end of file diff --git a/tests/baselines/reference/copyrightWithNewLine1.errors.txt b/tests/baselines/reference/copyrightWithNewLine1.errors.txt index ede8c3c9bdd11..4942e4550d5c5 100644 --- a/tests/baselines/reference/copyrightWithNewLine1.errors.txt +++ b/tests/baselines/reference/copyrightWithNewLine1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/copyrightWithNewLine1.ts(5,24): error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/copyrightWithNewLine1.ts (1 errors) ==== @@ -8,7 +8,7 @@ tests/cases/compiler/copyrightWithNewLine1.ts(5,24): error TS2792: Cannot find m import model = require("./greeter") ~~~~~~~~~~~ -!!! error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? var el = document.getElementById('content'); var greeter = new model.Greeter(el); /** things */ diff --git a/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt b/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt index 4777bf7dea3f8..156e01d197b28 100644 --- a/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt +++ b/tests/baselines/reference/copyrightWithoutNewLine1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/copyrightWithoutNewLine1.ts(4,24): error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/copyrightWithoutNewLine1.ts (1 errors) ==== @@ -7,7 +7,7 @@ tests/cases/compiler/copyrightWithoutNewLine1.ts(4,24): error TS2792: Cannot fin ****************************/ import model = require("./greeter") ~~~~~~~~~~~ -!!! error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './greeter'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? var el = document.getElementById('content'); var greeter = new model.Greeter(el); /** things */ diff --git a/tests/baselines/reference/deduplicateImportsInSystem.errors.txt b/tests/baselines/reference/deduplicateImportsInSystem.errors.txt index b16a119650c47..8e6b93ca8e62f 100644 --- a/tests/baselines/reference/deduplicateImportsInSystem.errors.txt +++ b/tests/baselines/reference/deduplicateImportsInSystem.errors.txt @@ -1,29 +1,29 @@ -tests/cases/compiler/deduplicateImportsInSystem.ts(1,17): error TS2792: Cannot find module 'f1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/deduplicateImportsInSystem.ts(2,17): error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/deduplicateImportsInSystem.ts(3,17): error TS2792: Cannot find module 'f3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/deduplicateImportsInSystem.ts(4,17): error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/deduplicateImportsInSystem.ts(5,17): error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/deduplicateImportsInSystem.ts(6,17): error TS2792: Cannot find module 'f1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? +tests/cases/compiler/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? +tests/cases/compiler/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? +tests/cases/compiler/deduplicateImportsInSystem.ts(4,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? +tests/cases/compiler/deduplicateImportsInSystem.ts(5,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? +tests/cases/compiler/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? ==== tests/cases/compiler/deduplicateImportsInSystem.ts (6 errors) ==== import {A} from "f1"; ~~~~ -!!! error TS2792: Cannot find module 'f1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'f1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import {B} from "f2"; ~~~~ -!!! error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import {C} from "f3"; ~~~~ -!!! error TS2792: Cannot find module 'f3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'f3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import {D} from 'f2'; ~~~~ -!!! error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import {E} from "f2"; ~~~~ -!!! error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import {F} from 'f1'; ~~~~ -!!! error TS2792: Cannot find module 'f1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'f1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? console.log(A + B + C + D + E + F) \ No newline at end of file diff --git a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json index 8fb25b0feb03d..5ba761a61aece 100644 --- a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json +++ b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/use' from '/index.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/foo/package.json'.", "'package.json' does not have a 'typesVersions' field.", @@ -10,7 +10,7 @@ "Resolving real path for '/node_modules/foo/use.d.ts', result '/node_modules/foo/use.d.ts'.", "======== Module name 'foo/use' was successfully resolved to '/node_modules/foo/use.d.ts' with Package ID 'foo/use.d.ts@1.2.3'. ========", "======== Resolving module 'a' from '/index.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/a/package.json' does not exist.", "File '/node_modules/a.ts' does not exist.", @@ -22,7 +22,7 @@ "Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'.", "======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ========", "======== Resolving module './index' from '/node_modules/foo/use.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, Declaration.", "File '/node_modules/foo/index.ts' does not exist.", "File '/node_modules/foo/index.tsx' does not exist.", @@ -30,7 +30,7 @@ "File '/node_modules/foo/package.json' exists according to earlier cached lookups.", "======== Module name './index' was successfully resolved to '/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.2.3'. ========", "======== Resolving module 'foo' from '/node_modules/a/index.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/a/node_modules/foo/package.json'.", "File '/node_modules/a/node_modules/foo.ts' does not exist.", diff --git a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json index 40dafd21ed2db..aef8970bccfa8 100644 --- a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json +++ b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '@foo/bar/use' from '/index.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/@foo/bar/package.json'.", "'package.json' does not have a 'typesVersions' field.", @@ -10,7 +10,7 @@ "Resolving real path for '/node_modules/@foo/bar/use.d.ts', result '/node_modules/@foo/bar/use.d.ts'.", "======== Module name '@foo/bar/use' was successfully resolved to '/node_modules/@foo/bar/use.d.ts' with Package ID '@foo/bar/use.d.ts@1.2.3'. ========", "======== Resolving module 'a' from '/index.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/a/package.json' does not exist.", "File '/node_modules/a.ts' does not exist.", @@ -22,7 +22,7 @@ "Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'.", "======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ========", "======== Resolving module './index' from '/node_modules/@foo/bar/use.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, Declaration.", "File '/node_modules/@foo/bar/index.ts' does not exist.", "File '/node_modules/@foo/bar/index.tsx' does not exist.", @@ -30,7 +30,7 @@ "File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups.", "======== Module name './index' was successfully resolved to '/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar/index.d.ts@1.2.3'. ========", "======== Resolving module '@foo/bar' from '/node_modules/a/index.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/a/node_modules/@foo/bar/package.json'.", "File '/node_modules/a/node_modules/@foo/bar.ts' does not exist.", diff --git a/tests/baselines/reference/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt b/tests/baselines/reference/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt index 73b6e989782dd..e5840547e3ecd 100644 --- a/tests/baselines/reference/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt +++ b/tests/baselines/reference/errorForBareSpecifierWithImplicitModuleResolutionNone.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/errorForBareSpecifierWithImplicitModuleResolutionNone.ts(3,23): error TS2792: Cannot find module 'non-existent-module'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/errorForBareSpecifierWithImplicitModuleResolutionNone.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/compiler/errorForBareSpecifierWithImplicitModuleResolutionNone.ts(3, import { thing } from "non-existent-module"; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'non-existent-module'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? thing() \ No newline at end of file diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt b/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt index 8f8f6a875aa47..5529a286fffd4 100644 --- a/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt +++ b/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt @@ -9,7 +9,7 @@ tests/cases/compiler/es5ModuleInternalNamedImports.ts(29,5): error TS1194: Expor tests/cases/compiler/es5ModuleInternalNamedImports.ts(30,25): error TS1147: Import declarations in a namespace cannot reference a module. tests/cases/compiler/es5ModuleInternalNamedImports.ts(31,20): error TS1147: Import declarations in a namespace cannot reference a module. tests/cases/compiler/es5ModuleInternalNamedImports.ts(32,32): error TS1147: Import declarations in a namespace cannot reference a module. -tests/cases/compiler/es5ModuleInternalNamedImports.ts(34,16): error TS2792: Cannot find module 'M3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/es5ModuleInternalNamedImports.ts (12 errors) ==== @@ -70,5 +70,5 @@ tests/cases/compiler/es5ModuleInternalNamedImports.ts(34,16): error TS2792: Cann } import M3 from "M3"; ~~~~ -!!! error TS2792: Cannot find module 'M3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'M3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportNamedImportIdentifiersParsing.errors.txt b/tests/baselines/reference/es6ImportNamedImportIdentifiersParsing.errors.txt index 728dc6732f181..0e1e1c0e6d585 100644 --- a/tests/baselines/reference/es6ImportNamedImportIdentifiersParsing.errors.txt +++ b/tests/baselines/reference/es6ImportNamedImportIdentifiersParsing.errors.txt @@ -1,16 +1,16 @@ tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(1,10): error TS2300: Duplicate identifier 'yield'. -tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(1,23): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(2,10): error TS1003: Identifier expected. tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(2,10): error TS2300: Duplicate identifier 'default'. -tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(2,25): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(3,19): error TS1003: Identifier expected. tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(3,19): error TS2300: Duplicate identifier 'default'. -tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(3,34): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(4,21): error TS2300: Duplicate identifier 'yield'. -tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(4,34): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(5,21): error TS1003: Identifier expected. tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(5,21): error TS2300: Duplicate identifier 'default'. -tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(5,36): error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts (13 errors) ==== @@ -18,30 +18,30 @@ tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts(5,36): error TS27 ~~~~~ !!! error TS2300: Duplicate identifier 'yield'. ~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'somemodule'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 'node', or to add aliases to the 'paths' option? \ No newline at end of file +!!! 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 diff --git a/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt b/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt index 106aa39ee2fb3..35fe31e90c99d 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt +++ b/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt @@ -1,5 +1,5 @@ tests/cases/conformance/externalModules/es6/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. -tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts(1,20): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/externalModules/es6/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? tests/cases/conformance/externalModules/es6/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 @@ tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts(6,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. ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? namespace N { diff --git a/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt b/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt index 245fb41943a83..36c00925a2c72 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt +++ b/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt @@ -1,22 +1,22 @@ -tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts(1,15): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts(3,17): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts(5,20): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts(13,15): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts(15,17): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/externalModules/es6/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? +tests/cases/conformance/externalModules/es6/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? +tests/cases/conformance/externalModules/es6/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? +tests/cases/conformance/externalModules/es6/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? +tests/cases/conformance/externalModules/es6/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? ==== tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts (5 errors) ==== import d from "mod"; ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import {a} from "mod"; ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import * as M from "mod"; ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {a}; @@ -26,11 +26,11 @@ tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts(15,17 export * from "mod"; ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {b} from "mod" ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 2b5e6b0d6871d..5f58021ab8ae4 100644 --- a/tests/baselines/reference/esnextmodulekindWithES5Target10.errors.txt +++ b/tests/baselines/reference/esnextmodulekindWithES5Target10.errors.txt @@ -1,5 +1,5 @@ tests/cases/conformance/externalModules/esnext/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. -tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.ts(1,20): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/externalModules/esnext/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? tests/cases/conformance/externalModules/esnext/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 @@ tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.t ~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! 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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? namespace N { diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt b/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt index 95dbd3e01784b..2a427393bf03f 100644 --- a/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt +++ b/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt @@ -1,22 +1,22 @@ -tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts(1,15): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts(3,17): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts(5,20): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts(13,15): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts(15,17): error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/externalModules/esnext/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? +tests/cases/conformance/externalModules/esnext/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? +tests/cases/conformance/externalModules/esnext/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? +tests/cases/conformance/externalModules/esnext/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? +tests/cases/conformance/externalModules/esnext/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? ==== tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts (5 errors) ==== import d from "mod"; ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import {a} from "mod"; ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import * as M from "mod"; ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {a}; @@ -26,11 +26,11 @@ tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts export * from "mod"; ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {b} from "mod" ~~~~~ -!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mod'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export default d; \ 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 159226de0f4a8..112dec4ab5e4e 100644 --- a/tests/baselines/reference/exportAsNamespace_nonExistent.errors.txt +++ b/tests/baselines/reference/exportAsNamespace_nonExistent.errors.txt @@ -1,8 +1,8 @@ -tests/cases/conformance/es2020/modules/exportAsNamespace_nonExistent.ts(1,21): error TS2792: Cannot find module './nonexistent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/es2020/modules/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? ==== tests/cases/conformance/es2020/modules/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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './nonexistent'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? \ No newline at end of file diff --git a/tests/baselines/reference/importWithTrailingSlash.trace.json b/tests/baselines/reference/importWithTrailingSlash.trace.json index 60a4ebf202d55..9c3237a1cb727 100644 --- a/tests/baselines/reference/importWithTrailingSlash.trace.json +++ b/tests/baselines/reference/importWithTrailingSlash.trace.json @@ -1,24 +1,24 @@ [ "======== Resolving module '.' from '/a/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.", "File '/a/package.json' does not exist.", "File '/a/index.ts' exist - use it as a name resolution result.", "======== Module name '.' was successfully resolved to '/a/index.ts'. ========", "======== Resolving module './' from '/a/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.", "File '/a/package.json' does not exist according to earlier cached lookups.", "File '/a/index.ts' exist - use it as a name resolution result.", "======== Module name './' was successfully resolved to '/a/index.ts'. ========", "======== Resolving module '..' from '/a/b/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.", "File '/a/package.json' does not exist according to earlier cached lookups.", "File '/a/index.ts' exist - use it as a name resolution result.", "======== Module name '..' was successfully resolved to '/a/index.ts'. ========", "======== Resolving module '../' from '/a/b/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.", "File '/a/package.json' does not exist according to earlier cached lookups.", "File '/a/index.ts' exist - use it as a name resolution result.", diff --git a/tests/baselines/reference/importWithTrailingSlash_noResolve.trace.json b/tests/baselines/reference/importWithTrailingSlash_noResolve.trace.json index ca14c471e45a7..b11c4f9742e53 100644 --- a/tests/baselines/reference/importWithTrailingSlash_noResolve.trace.json +++ b/tests/baselines/reference/importWithTrailingSlash_noResolve.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo/' from '/a.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, Declaration.", "Directory '/foo/' does not exist, skipping all lookups in it.", "Loading module as file / folder, candidate module location '/foo/', target file types: JavaScript.", diff --git a/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json b/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json index 4b9d883482488..68b1f8c2a687d 100644 --- a/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json +++ b/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'shortid' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/shortid/package.json' does not exist.", "File '/node_modules/shortid.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json index 4352a51b61d53..e8b2a3d78f4d8 100644 --- a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json +++ b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'anotherLib' from '/project/src/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'.", "'paths' option is specified, looking for a pattern to match module name 'anotherLib'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'.", @@ -22,7 +22,7 @@ "Resolving real path for '/project/node_modules/anotherLib/index.d.ts', result '/project/node_modules/anotherLib/index.d.ts'.", "======== Module name 'anotherLib' was successfully resolved to '/project/node_modules/anotherLib/index.d.ts'. ========", "======== Resolving module '@shared/lib/app' from '/project/src/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name '@shared/lib/app'.", "'paths' option is specified, looking for a pattern to match module name '@shared/lib/app'.", "Module name '@shared/lib/app', matched pattern '@shared/*'.", @@ -33,7 +33,7 @@ "File '/shared/lib/app.d.ts' exist - use it as a name resolution result.", "======== Module name '@shared/lib/app' was successfully resolved to '/shared/lib/app.d.ts'. ========", "======== Resolving module 'troublesome-lib/lib/Compactable' from '/project/node_modules/anotherLib/index.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'.", "'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Compactable'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'.", @@ -49,7 +49,7 @@ "Resolving real path for '/project/node_modules/troublesome-lib/lib/Compactable.d.ts', result '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'.", "======== Module name 'troublesome-lib/lib/Compactable' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' with Package ID 'troublesome-lib/lib/Compactable.d.ts@1.17.1'. ========", "======== Resolving module './Option' from '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, Declaration.", "File '/project/node_modules/troublesome-lib/lib/Option.ts' does not exist.", "File '/project/node_modules/troublesome-lib/lib/Option.tsx' does not exist.", @@ -57,7 +57,7 @@ "File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups.", "======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ========", "======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'.", "'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Option'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions.trace.json index 95c1de6bcc32f..88e2ce78e428a 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions.trace.json @@ -1,17 +1,17 @@ [ "======== Resolving module './a' from '/src/b.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, Declaration.", "File '/src/a.ts' exist - use it as a name resolution result.", "======== Module name './a' was successfully resolved to '/src/a.ts'. ========", "======== Resolving module './a.js' from '/src/d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, Declaration.", "File name '/src/a.js' has a '.js' extension - stripping it.", "File '/src/a.ts' exist - use it as a name resolution result.", "======== Module name './a.js' was successfully resolved to '/src/a.ts'. ========", "======== Resolving module './jquery.js' from '/src/jquery_user_1.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, Declaration.", "File name '/src/jquery.js' has a '.js' extension - stripping it.", "File '/src/jquery.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported.trace.json index 2217a5eaacc4c..398967533f8ed 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported.trace.json @@ -1,12 +1,12 @@ [ "======== Resolving module './tsx' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, Declaration.", "File '/tsx.ts' does not exist.", "File '/tsx.tsx' exist - use it as a name resolution result.", "======== Module name './tsx' was successfully resolved to '/tsx.tsx'. ========", "======== Resolving module './jsx' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration.", "File '/jsx.ts' does not exist.", "File '/jsx.tsx' does not exist.", @@ -17,7 +17,7 @@ "File '/jsx.jsx' exist - use it as a name resolution result.", "======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========", "======== Resolving module './js' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/js', target file types: TypeScript, Declaration.", "File '/js.ts' does not exist.", "File '/js.tsx' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported2.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported2.trace.json index ed7694272fffd..68cb9a05ca8a8 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported2.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported2.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './jsx' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration.", "File '/jsx.ts' does not exist.", "File '/jsx.tsx' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported3.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported3.trace.json index ed7694272fffd..68cb9a05ca8a8 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported3.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported3.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './jsx' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration.", "File '/jsx.ts' does not exist.", "File '/jsx.tsx' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json index 76d84fab3a210..3e6f849e8eaee 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'normalize.css' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/normalize.css/package.json'.", "File '/node_modules/normalize.css.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json index a2521c7f7395f..763ca67cbcfd2 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/foo/package.json'.", "File '/node_modules/foo.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json index e038cbfbf18b8..b1980d66bb281 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'js' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'js' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/js/package.json' does not exist.", "File '/node_modules/js.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json index 6163a55512404..3c7d1bfb227fe 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/test.js' from '/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/test.js'.", "'paths' option is specified, looking for a pattern to match module name 'foo/test.js'.", "Module name 'foo/test.js', matched pattern 'foo/*'.", @@ -13,7 +13,7 @@ "File '/node_modules/foo/package.json' does not exist.", "======== Module name 'foo/test.js' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ========", "======== Resolving module 'foo/test' from '/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/test'.", "'paths' option is specified, looking for a pattern to match module name 'foo/test'.", "Module name 'foo/test', matched pattern 'foo/*'.", @@ -25,7 +25,7 @@ "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", "======== Module name 'foo/test' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ========", "======== Resolving module './relative.js' from '/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/relative.js', target file types: TypeScript, Declaration.", "File name '/relative.js' has a '.js' extension - stripping it.", "File '/relative.ts' does not exist.", @@ -33,7 +33,7 @@ "File '/relative.d.ts' exist - use it as a name resolution result.", "======== Module name './relative.js' was successfully resolved to '/relative.d.ts'. ========", "======== Resolving module './relative' from '/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/relative', target file types: TypeScript, Declaration.", "File '/relative.ts' does not exist.", "File '/relative.tsx' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithRequireAndImport.trace.json b/tests/baselines/reference/moduleResolutionWithRequireAndImport.trace.json index 45948920e644b..8ff75fbbc5305 100644 --- a/tests/baselines/reference/moduleResolutionWithRequireAndImport.trace.json +++ b/tests/baselines/reference/moduleResolutionWithRequireAndImport.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './other' from '/index.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/other', target file types: TypeScript, Declaration.", "File '/other.ts' exist - use it as a name resolution result.", "======== Module name './other' was successfully resolved to '/other.ts'. ========" diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json index 831f49cdd03e2..88b7c6c215aac 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ts' exist - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ts'. ========" diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.trace.json index 831f49cdd03e2..88b7c6c215aac 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ts' exist - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ts'. ========" diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one.trace.json index a70fad0c236e5..397dbd9220620 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ios.ts' exist - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ios.ts'. ========" diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.trace.json index 831f49cdd03e2..88b7c6c215aac 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ts' exist - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ts'. ========" diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.trace.json index 6e38fccb02f82..9eb34f14d47c9 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ios.ts' does not exist.", "File '/foo.ios.tsx' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json index 2431f6284e8f8..dc8bccadaf323 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ios.ts' does not exist.", "File '/foo.ios.tsx' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json index 0ead690c08a3d..ba12a608aa66d 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'some-library' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/some-library/package.json' does not exist.", "File '/node_modules/some-library.ios.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.trace.json index 26c207562cc3c..bd0cd57cd4c98 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'some-library/foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'some-library/foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/some-library/package.json' does not exist.", "File '/node_modules/some-library/foo.ios.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json index 2e183a6dfe6a4..d3c95ab9ee3be 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'some-library' from '/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library'.", "'paths' option is specified, looking for a pattern to match module name 'some-library'.", "Module name 'some-library', matched pattern 'some-library'.", @@ -15,7 +15,7 @@ "File '/node_modules/some-library/lib/index.ios.d.ts' exist - use it as a name resolution result.", "======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ========", "======== Resolving module 'some-library/index' from '/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library/index'.", "'paths' option is specified, looking for a pattern to match module name 'some-library/index'.", "Module name 'some-library/index', matched pattern 'some-library/*'.", @@ -27,7 +27,7 @@ "File '/node_modules/some-library/package.json' does not exist.", "======== Module name 'some-library/index' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ========", "======== Resolving module 'some-library/index.js' from '/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library/index.js'.", "'paths' option is specified, looking for a pattern to match module name 'some-library/index.js'.", "Module name 'some-library/index.js', matched pattern 'some-library/*'.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json index f45b6dd6005b9..096127c548a7f 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'some-library' from '/test.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/some-library/package.json' does not exist.", "File '/node_modules/some-library.ios.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.trace.json index f1472c7f4c459..aa6b8b5f8cbe2 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo.js' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo.js', target file types: TypeScript, Declaration.", "File name '/foo.js' has a '.js' extension - stripping it.", "File '/foo.ios.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json index 2bb786d31c5e7..7f495db34bb57 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo.json' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, Declaration.", "File '/foo.json.ios.ts' does not exist.", "File '/foo.json.ios.tsx' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json index 862e6d5e1d6f9..0ded2f4d0a877 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo-ios.ts' exist - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo-ios.ts'. ========" diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json index e5e1c49a6ed7f..6c7346228eb49 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo-ios.ts' does not exist.", "File '/foo__native.ts' exist - use it as a name resolution result.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json index a75b78d6939d4..5c630340ae20f 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo-ios.ts' does not exist.", "File '/foo__native.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json index e28284a291ff0..cd29b896e0ead 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './foo' from '/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo-ios.ts' does not exist.", "File '/foo__native.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json index 2bd12d2725d26..beea294ae3397 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './library-a' from '/src/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration.", "File '/src/library-a.ts' does not exist.", "File '/src/library-a.tsx' does not exist.", @@ -9,7 +9,7 @@ "File '/src/library-a/index.ts' exist - use it as a name resolution result.", "======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ========", "======== Resolving module './library-b' from '/src/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, Declaration.", "File '/src/library-b.ts' does not exist.", "File '/src/library-b.tsx' does not exist.", @@ -18,7 +18,7 @@ "File '/src/library-b/index.ts' exist - use it as a name resolution result.", "======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ========", "======== Resolving module 'library-a' from '/src/library-b/index.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/src/library-b/node_modules/library-a/package.json' does not exist.", "File '/src/library-b/node_modules/library-a.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.trace.json index 5db0197c68c54..e680b807d5e2f 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.trace.json @@ -1,11 +1,11 @@ [ "======== Resolving module './shared/abc' from '/src/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, Declaration.", "File '/src/shared/abc.ts' exist - use it as a name resolution result.", "======== Module name './shared/abc' was successfully resolved to '/src/shared/abc.ts'. ========", "======== Resolving module './shared2/abc' from '/src/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, Declaration.", "File '/src/shared2/abc.ts' exist - use it as a name resolution result.", "======== Module name './shared2/abc' was successfully resolved to '/src/shared2/abc.ts'. ========" diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json index f45e3ce16dc27..c650bbb4461be 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json @@ -7,7 +7,7 @@ "File '/app/node_modules/linked/index.d.ts' exist - use it as a name resolution result.", "======== Type reference directive 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts', primary: false. ========", "======== Resolving module 'real' from '/app/node_modules/linked/index.d.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/app/node_modules/linked/node_modules' does not exist, skipping all lookups in it.", "File '/app/node_modules/real/package.json' does not exist.", @@ -19,7 +19,7 @@ "File '/app/node_modules/real/index.d.ts' exist - use it as a name resolution result.", "======== Module name 'real' was successfully resolved to '/app/node_modules/real/index.d.ts'. ========", "======== Resolving module 'linked' from '/app/app.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups.", "File '/app/node_modules/linked.ts' does not exist.", @@ -30,7 +30,7 @@ "File '/app/node_modules/linked/index.d.ts' exist - use it as a name resolution result.", "======== Module name 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts'. ========", "======== Resolving module 'linked2' from '/app/app.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/app/node_modules/linked2/package.json' does not exist.", "File '/app/node_modules/linked2.ts' does not exist.", @@ -41,7 +41,7 @@ "File '/app/node_modules/linked2/index.d.ts' exist - use it as a name resolution result.", "======== Module name 'linked2' was successfully resolved to '/app/node_modules/linked2/index.d.ts'. ========", "======== Resolving module 'real' from '/app/node_modules/linked2/index.d.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/app/node_modules/linked2/node_modules' does not exist, skipping all lookups in it.", "File '/app/node_modules/real/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json index 2bd12d2725d26..beea294ae3397 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './library-a' from '/src/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration.", "File '/src/library-a.ts' does not exist.", "File '/src/library-a.tsx' does not exist.", @@ -9,7 +9,7 @@ "File '/src/library-a/index.ts' exist - use it as a name resolution result.", "======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ========", "======== Resolving module './library-b' from '/src/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, Declaration.", "File '/src/library-b.ts' does not exist.", "File '/src/library-b.tsx' does not exist.", @@ -18,7 +18,7 @@ "File '/src/library-b/index.ts' exist - use it as a name resolution result.", "======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ========", "======== Resolving module 'library-a' from '/src/library-b/index.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/src/library-b/node_modules/library-a/package.json' does not exist.", "File '/src/library-b/node_modules/library-a.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot.trace.json b/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot.trace.json index 89bc3bd6b6a60..ab1fa51e7aeb5 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/bar' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/foo/bar/package.json'.", "File '/node_modules/foo/bar.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json index 7dd7517a76e86..63d298654a2d5 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/@bar' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/foo/@bar/package.json'.", "File '/node_modules/foo/@bar.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json index cb23d576d9070..74d2a5651b57d 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '@foo/bar' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/@foo/bar/package.json'.", "File '/node_modules/@foo/bar.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json index d25bc70b08c2c..897ac679db8c3 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/bar' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/foo/bar/package.json' does not exist.", "Found 'package.json' at '/node_modules/foo/package.json'.", diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json index 76ec74cec9264..697b8fc31dff4 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/@bar' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/foo/@bar/package.json' does not exist.", "Found 'package.json' at '/node_modules/foo/package.json'.", diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json index c5e106d405c06..9530ebb813a9b 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/index.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/foo/package.json'.", "File '/node_modules/foo.ts' does not exist.", diff --git a/tests/baselines/reference/packageJsonMain.trace.json b/tests/baselines/reference/packageJsonMain.trace.json index 0b4ae83be9631..58fd3ec074a96 100644 --- a/tests/baselines/reference/packageJsonMain.trace.json +++ b/tests/baselines/reference/packageJsonMain.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/foo/package.json'.", "File '/node_modules/foo.ts' does not exist.", @@ -31,7 +31,7 @@ "Resolving real path for '/node_modules/foo/oof.js', result '/node_modules/foo/oof.js'.", "======== Module name 'foo' was successfully resolved to '/node_modules/foo/oof.js'. ========", "======== Resolving module 'bar' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/bar/package.json'.", "File '/node_modules/bar.ts' does not exist.", @@ -65,7 +65,7 @@ "Resolving real path for '/node_modules/bar/rab.js', result '/node_modules/bar/rab.js'.", "======== Module name 'bar' was successfully resolved to '/node_modules/bar/rab.js'. ========", "======== Resolving module 'baz' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/baz/package.json'.", "File '/node_modules/baz.ts' does not exist.", diff --git a/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json b/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json index ee0855453720f..566bb33e120eb 100644 --- a/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json +++ b/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/foo/package.json'.", "File '/node_modules/foo.ts' does not exist.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json index d193b5545255d..b6d071c79ef3b 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json @@ -1,18 +1,18 @@ [ "======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'.", "Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'.", "Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file types: TypeScript, Declaration.", "File 'c:/root/folder2/file2.ts' exist - use it as a name resolution result.", "======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========", "======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, Declaration.", "File 'c:/root/folder2/file3.ts' exist - use it as a name resolution result.", "======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ========", "======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'.", "Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'.", "Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json index d193b5545255d..b6d071c79ef3b 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json @@ -1,18 +1,18 @@ [ "======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'.", "Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'.", "Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file types: TypeScript, Declaration.", "File 'c:/root/folder2/file2.ts' exist - use it as a name resolution result.", "======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========", "======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, Declaration.", "File 'c:/root/folder2/file3.ts' exist - use it as a name resolution result.", "======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ========", "======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'.", "Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'.", "Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json index 3a82cb67e94f7..7916ad496032e 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'folder2/file1' from 'c:/root/folder1/file1.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file1'.", "'paths' option is specified, looking for a pattern to match module name 'folder2/file1'.", "Module name 'folder2/file1', matched pattern '*'.", @@ -9,7 +9,7 @@ "File 'c:/root/folder2/file1.ts' exist - use it as a name resolution result.", "======== Module name 'folder2/file1' was successfully resolved to 'c:/root/folder2/file1.ts'. ========", "======== Resolving module 'folder3/file2' from 'c:/root/folder1/file1.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder3/file2'.", "'paths' option is specified, looking for a pattern to match module name 'folder3/file2'.", "Module name 'folder3/file2', matched pattern '*'.", @@ -20,7 +20,7 @@ "File 'c:/root/generated/folder3/file2.ts' exist - use it as a name resolution result.", "======== Module name 'folder3/file2' was successfully resolved to 'c:/root/generated/folder3/file2.ts'. ========", "======== Resolving module 'components/file3' from 'c:/root/folder1/file1.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'components/file3'.", "'paths' option is specified, looking for a pattern to match module name 'components/file3'.", "Module name 'components/file3', matched pattern 'components/*'.", @@ -35,7 +35,7 @@ "File 'c:/root/shared/components/file3/index.d.ts' exist - use it as a name resolution result.", "======== Module name 'components/file3' was successfully resolved to 'c:/root/shared/components/file3/index.d.ts'. ========", "======== Resolving module 'file4' from 'c:/root/folder1/file1.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'.", "'paths' option is specified, looking for a pattern to match module name 'file4'.", "Module name 'file4', matched pattern '*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution6_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution6_node.trace.json index 9ae8cd832df77..245c2ddc5c91c 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution6_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution6_node.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './project/file3' from 'c:/root/src/file1.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'rootDirs' option is set, using it to resolve relative module name './project/file3'.", "Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/src/project/file3' - 'true'.", "Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file3' - 'false'.", @@ -14,7 +14,7 @@ "File 'c:/root/generated/src/project/file3.ts' exist - use it as a name resolution result.", "======== Module name './project/file3' was successfully resolved to 'c:/root/generated/src/project/file3.ts'. ========", "======== Resolving module '../file2' from 'c:/root/generated/src/project/file3.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'rootDirs' option is set, using it to resolve relative module name '../file2'.", "Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/generated/src/file2' - 'false'.", "Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file2' - 'true'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json index c479911f3a6d2..bb7457e867426 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './project/file2' from 'c:/root/src/file1.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'rootDirs' option is set, using it to resolve relative module name './project/file2'.", "Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'true'.", "Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'false'.", @@ -14,7 +14,7 @@ "File 'c:/root/generated/src/project/file2.ts' exist - use it as a name resolution result.", "======== Module name './project/file2' was successfully resolved to 'c:/root/generated/src/project/file2.ts'. ========", "======== Resolving module 'module3' from 'c:/root/src/file1.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module3'.", "'paths' option is specified, looking for a pattern to match module name 'module3'.", "Module name 'module3', matched pattern '*'.", @@ -39,7 +39,7 @@ "Resolving real path for 'c:/node_modules/module3.d.ts', result 'c:/node_modules/module3.d.ts'.", "======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3.d.ts'. ========", "======== Resolving module 'module1' from 'c:/root/generated/src/project/file2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module1'.", "'paths' option is specified, looking for a pattern to match module name 'module1'.", "Module name 'module1', matched pattern '*'.", @@ -60,7 +60,7 @@ "File 'c:/shared/module1/index.d.ts' exist - use it as a name resolution result.", "======== Module name 'module1' was successfully resolved to 'c:/shared/module1/index.d.ts'. ========", "======== Resolving module 'templates/module2' from 'c:/root/generated/src/project/file2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'templates/module2'.", "'paths' option is specified, looking for a pattern to match module name 'templates/module2'.", "Module name 'templates/module2', matched pattern 'templates/*'.", @@ -69,7 +69,7 @@ "File 'c:/root/generated/src/templates/module2.ts' exist - use it as a name resolution result.", "======== Module name 'templates/module2' was successfully resolved to 'c:/root/generated/src/templates/module2.ts'. ========", "======== Resolving module '../file3' from 'c:/root/generated/src/project/file2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'rootDirs' option is set, using it to resolve relative module name '../file3'.", "Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'false'.", "Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'true'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution8_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution8_node.trace.json index dc6c614fa645d..28377bade1b5c 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution8_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution8_node.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '@speedy/folder1/testing' from 'c:/root/index.ts'. ========", - "Explicitly specified module resolution kind: 'NodeJs'.", + "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name '@speedy/folder1/testing'.", "'paths' option is specified, looking for a pattern to match module name '@speedy/folder1/testing'.", "Module name '@speedy/folder1/testing', matched pattern '@speedy/*/testing'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json index 687fbea905136..034f8d4cf6c11 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", "'paths' option is specified, looking for a pattern to match module name '/foo'.", "Module name '/foo', matched pattern '/*'.", @@ -9,7 +9,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module '/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'.", "'paths' option is specified, looking for a pattern to match module name '/bar'.", "Module name '/bar', matched pattern '/*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json index 6ca8a0875cd02..a73e02497d292 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", "'paths' option is specified, looking for a pattern to match module name '/foo'.", "Module name '/foo', matched pattern '/*'.", @@ -9,7 +9,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module '/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'.", "'paths' option is specified, looking for a pattern to match module name '/bar'.", "Module name '/bar', matched pattern '/*'.", @@ -32,7 +32,7 @@ "File '/root/src/bar.js' exist - use it as a name resolution result.", "======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ========", "======== Resolving module 'c:/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:/foo'.", "'paths' option is specified, looking for a pattern to match module name 'c:/foo'.", "Module name 'c:/foo', matched pattern 'c:/*'.", @@ -41,7 +41,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name 'c:/foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module 'c:/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:/bar'.", "'paths' option is specified, looking for a pattern to match module name 'c:/bar'.", "Module name 'c:/bar', matched pattern 'c:/*'.", @@ -61,7 +61,7 @@ "File '/root/src/bar.js' exist - use it as a name resolution result.", "======== Module name 'c:/bar' was successfully resolved to '/root/src/bar.js'. ========", "======== Resolving module 'c:\\foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:\\foo'.", "'paths' option is specified, looking for a pattern to match module name 'c:\\foo'.", "Module name 'c:\\foo', matched pattern 'c:\\*'.", @@ -70,7 +70,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name 'c:\\foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module 'c:\\bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:\\bar'.", "'paths' option is specified, looking for a pattern to match module name 'c:\\bar'.", "Module name 'c:\\bar', matched pattern 'c:\\*'.", @@ -90,7 +90,7 @@ "File '/root/src/bar.js' exist - use it as a name resolution result.", "======== Module name 'c:\\bar' was successfully resolved to '/root/src/bar.js'. ========", "======== Resolving module '//server/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '//server/foo'.", "'paths' option is specified, looking for a pattern to match module name '//server/foo'.", "Module name '//server/foo', matched pattern '//server/*'.", @@ -99,7 +99,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name '//server/foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module '//server/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '//server/bar'.", "'paths' option is specified, looking for a pattern to match module name '//server/bar'.", "Module name '//server/bar', matched pattern '//server/*'.", @@ -119,7 +119,7 @@ "File '/root/src/bar.js' exist - use it as a name resolution result.", "======== Module name '//server/bar' was successfully resolved to '/root/src/bar.js'. ========", "======== Resolving module '\\\\server\\foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '\\\\server\\foo'.", "'paths' option is specified, looking for a pattern to match module name '\\\\server\\foo'.", "Module name '\\\\server\\foo', matched pattern '\\\\server\\*'.", @@ -128,7 +128,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name '\\\\server\\foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module '\\\\server\\bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '\\\\server\\bar'.", "'paths' option is specified, looking for a pattern to match module name '\\\\server\\bar'.", "Module name '\\\\server\\bar', matched pattern '\\\\server\\*'.", @@ -148,7 +148,7 @@ "File '/root/src/bar.js' exist - use it as a name resolution result.", "======== Module name '\\\\server\\bar' was successfully resolved to '/root/src/bar.js'. ========", "======== Resolving module 'file:///foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///foo'.", "'paths' option is specified, looking for a pattern to match module name 'file:///foo'.", "Module name 'file:///foo', matched pattern 'file:///*'.", @@ -157,7 +157,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name 'file:///foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module 'file:///bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///bar'.", "'paths' option is specified, looking for a pattern to match module name 'file:///bar'.", "Module name 'file:///bar', matched pattern 'file:///*'.", @@ -178,7 +178,7 @@ "File '/root/src/bar.js' exist - use it as a name resolution result.", "======== Module name 'file:///bar' was successfully resolved to '/root/src/bar.js'. ========", "======== Resolving module 'file://c:/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/foo'.", "'paths' option is specified, looking for a pattern to match module name 'file://c:/foo'.", "Module name 'file://c:/foo', matched pattern 'file://c:/*'.", @@ -187,7 +187,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name 'file://c:/foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module 'file://c:/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/bar'.", "'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'.", "Module name 'file://c:/bar', matched pattern 'file://c:/*'.", @@ -208,7 +208,7 @@ "File '/root/src/bar.js' exist - use it as a name resolution result.", "======== Module name 'file://c:/bar' was successfully resolved to '/root/src/bar.js'. ========", "======== Resolving module 'file://server/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/foo'.", "'paths' option is specified, looking for a pattern to match module name 'file://server/foo'.", "Module name 'file://server/foo', matched pattern 'file://server/*'.", @@ -217,7 +217,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name 'file://server/foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module 'file://server/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/bar'.", "'paths' option is specified, looking for a pattern to match module name 'file://server/bar'.", "Module name 'file://server/bar', matched pattern 'file://server/*'.", @@ -238,7 +238,7 @@ "File '/root/src/bar.js' exist - use it as a name resolution result.", "======== Module name 'file://server/bar' was successfully resolved to '/root/src/bar.js'. ========", "======== Resolving module 'http://server/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/foo'.", "'paths' option is specified, looking for a pattern to match module name 'http://server/foo'.", "Module name 'http://server/foo', matched pattern 'http://server/*'.", @@ -247,7 +247,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name 'http://server/foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module 'http://server/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/bar'.", "'paths' option is specified, looking for a pattern to match module name 'http://server/bar'.", "Module name 'http://server/bar', matched pattern 'http://server/*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json index ddba5cc95fe22..c768d32abd396 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '/import/foo' from '/root/src/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/import/foo'.", "'paths' option is specified, looking for a pattern to match module name '/import/foo'.", "Module name '/import/foo', matched pattern '/import/*'.", @@ -9,7 +9,7 @@ "File '/root/import/foo.ts' exist - use it as a name resolution result.", "======== Module name '/import/foo' was successfully resolved to '/root/import/foo.ts'. ========", "======== Resolving module '/client/bar' from '/root/src/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/client/bar'.", "'paths' option is specified, looking for a pattern to match module name '/client/bar'.", "Module name '/client/bar', matched pattern '/client/*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json index 1824f929011ad..549bb0244047a 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", "'paths' option is specified, looking for a pattern to match module name '/foo'.", "Module name '/foo', matched pattern '/*'.", @@ -10,7 +10,7 @@ "File '/foo.ts' exist - use it as a name resolution result.", "======== Module name '/foo' was successfully resolved to '/foo.ts'. ========", "======== Resolving module '/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'.", "'paths' option is specified, looking for a pattern to match module name '/bar'.", "Module name '/bar', matched pattern '/*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json index 138b6f8528492..97c043aeaf493 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", "'paths' option is specified, looking for a pattern to match module name '/foo'.", "Module name '/foo', matched pattern '*'.", @@ -9,7 +9,7 @@ "File '/root/src/foo.ts' exist - use it as a name resolution result.", "======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ========", "======== Resolving module '/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'.", "'paths' option is specified, looking for a pattern to match module name '/bar'.", "Module name '/bar', matched pattern '*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json index 3dbf81032ddab..cff4a9d525f92 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '/foo' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", "'paths' option is specified, looking for a pattern to match module name '/foo'.", "Module name '/foo', matched pattern '*'.", @@ -10,7 +10,7 @@ "File '/foo.ts' exist - use it as a name resolution result.", "======== Module name '/foo' was successfully resolved to '/foo.ts'. ========", "======== Resolving module '/bar' from '/root/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'.", "'paths' option is specified, looking for a pattern to match module name '/bar'.", "Module name '/bar', matched pattern '*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.trace.json index 39a12996d4268..6bd115cd1d1db 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'.", "'paths' option is specified, looking for a pattern to match module name 'foo'.", "Module name 'foo', matched pattern 'foo'.", @@ -8,7 +8,7 @@ "File '/foo/foo.ts' exist - use it as a name resolution result.", "======== Module name 'foo' was successfully resolved to '/foo/foo.ts'. ========", "======== Resolving module 'bar' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'bar'.", "'paths' option is specified, looking for a pattern to match module name 'bar'.", "Module name 'bar', matched pattern 'bar'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json index 771d7c8ccf8ae..e554a4084f40a 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'zone.js' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'zone.js'.", "'paths' option is specified, looking for a pattern to match module name 'zone.js'.", "Module name 'zone.js', matched pattern '*'.", @@ -19,7 +19,7 @@ "File '/foo/zone.js/index.d.ts' exist - use it as a name resolution result.", "======== Module name 'zone.js' was successfully resolved to '/foo/zone.js/index.d.ts'. ========", "======== Resolving module 'zone.tsx' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'zone.tsx'.", "'paths' option is specified, looking for a pattern to match module name 'zone.tsx'.", "Module name 'zone.tsx', matched pattern '*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json index ef53886c656c8..b84195a2d1f1a 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/bar/foobar.js' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.js'.", "'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'.", "Module name 'foo/bar/foobar.js', matched pattern '*'.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json index 85eb2837db1d4..d387db5193c52 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'.", "'paths' option is specified, looking for a pattern to match module name 'foo'.", "Module name 'foo', matched pattern 'foo'.", diff --git a/tests/baselines/reference/pathsValidation4.trace.json b/tests/baselines/reference/pathsValidation4.trace.json index 78d0638aae1bf..d37d972662c01 100644 --- a/tests/baselines/reference/pathsValidation4.trace.json +++ b/tests/baselines/reference/pathsValidation4.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'someModule' from 'tests/cases/compiler/src/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'tests/cases/compiler/src', using this value to resolve non-relative module name 'someModule'.", "'paths' option is specified, looking for a pattern to match module name 'someModule'.", "'baseUrl' option is set to 'tests/cases/compiler/src', using this value to resolve non-relative module name 'someModule'.", diff --git a/tests/baselines/reference/pathsValidation5.trace.json b/tests/baselines/reference/pathsValidation5.trace.json index e16277adccb7f..028038de7c98c 100644 --- a/tests/baselines/reference/pathsValidation5.trace.json +++ b/tests/baselines/reference/pathsValidation5.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'someModule' from 'tests/cases/compiler/src/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'paths' option is specified, looking for a pattern to match module name 'someModule'.", "Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory 'tests/cases/compiler/src/node_modules' does not exist, skipping all lookups in it.", diff --git a/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt b/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt index 27d52a2f7025d..09e738e27c13d 100644 --- a/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt +++ b/tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.errors.txt @@ -1,18 +1,18 @@ -decl.ts(1,26): error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'node', 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 'node', 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 'node', or to add aliases to the 'paths' option? +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? ==== decl.ts (3 errors) ==== import modErr = require("./foo/bar.tx"); ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? import modErr1 = require("baz"); ~~~~~ -!!! error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import modErr2 = require("./baz"); ~~~~~~~ -!!! error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? //import modErr1 = require("\bar"); diff --git a/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt b/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt index 27d52a2f7025d..09e738e27c13d 100644 --- a/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt +++ b/tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.errors.txt @@ -1,18 +1,18 @@ -decl.ts(1,26): error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'node', 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 'node', 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 'node', or to add aliases to the 'paths' option? +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? ==== decl.ts (3 errors) ==== import modErr = require("./foo/bar.tx"); ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module './foo/bar.tx'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? import modErr1 = require("baz"); ~~~~~ -!!! error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import modErr2 = require("./baz"); ~~~~~~~ -!!! error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './baz'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? //import modErr1 = require("\bar"); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt index 7742c2e1267ff..e645d251235a1 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/amd/emitDecoratorMetadataCommonJSISolatedModules.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -18,7 +18,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt index 7742c2e1267ff..e645d251235a1 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/emitDecoratorMetadataCommonJSISolatedModules.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -18,7 +18,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt index 2f61371ed10a3..4362efe8f139e 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/amd/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -19,7 +19,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt index 2f61371ed10a3..4362efe8f139e 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/emitDecoratorMetadataCommonJSISolatedModulesNoResolve.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -19,7 +19,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt index d3eb1dd52d58d..b8ae506a1ffa4 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/amd/emitDecoratorMetadataSystemJS.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -17,7 +17,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt index d3eb1dd52d58d..b8ae506a1ffa4 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/emitDecoratorMetadataSystemJS.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -17,7 +17,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt index a91e1ad3b8176..05181175f9372 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/amd/emitDecoratorMetadataSystemJSISolatedModules.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -19,7 +19,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt index a91e1ad3b8176..05181175f9372 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/emitDecoratorMetadataSystemJSISolatedModules.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -19,7 +19,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt index 0da01da5903c5..555f6f1a7ccb6 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/amd/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -20,7 +20,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt index 0da01da5903c5..555f6f1a7ccb6 100644 --- a/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt +++ b/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModulesNoResolve/node/emitDecoratorMetadataSystemJSISolatedModulesNoResolve.errors.txt @@ -1,4 +1,4 @@ -main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +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) ==== @@ -20,7 +20,7 @@ main.ts(1,21): error TS2792: Cannot find module 'angular2/core'. Did you mean to ==== main.ts (1 errors) ==== import * as ng from "angular2/core"; ~~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'angular2/core'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! 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? declare function foo(...args: any[]); diff --git a/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt index bb4fb072b4cbc..5bdeea3038458 100644 --- a/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt +++ b/tests/baselines/reference/project/intReferencingExtAndInt/amd/intReferencingExtAndInt.errors.txt @@ -1,5 +1,5 @@ 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 'node', or to add aliases to the 'paths' option? +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? ==== internal2.ts (2 errors) ==== @@ -8,7 +8,7 @@ internal2.ts(2,21): error TS2792: Cannot find module 'external2'. Did you mean t ~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var a = g.square(5); export var b = "foo"; } \ No newline at end of file diff --git a/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt b/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt index bb4fb072b4cbc..5bdeea3038458 100644 --- a/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt +++ b/tests/baselines/reference/project/intReferencingExtAndInt/node/intReferencingExtAndInt.errors.txt @@ -1,5 +1,5 @@ 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 'node', or to add aliases to the 'paths' option? +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? ==== internal2.ts (2 errors) ==== @@ -8,7 +8,7 @@ internal2.ts(2,21): error TS2792: Cannot find module 'external2'. Did you mean t ~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'external2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var a = g.square(5); export var b = "foo"; } \ No newline at end of file diff --git a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt index f33239e7f9636..f42b5a7fc941a 100644 --- a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt +++ b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/amd/nestedLocalModuleWithRecursiveTypecheck.errors.txt @@ -1,5 +1,5 @@ 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 'node', or to add aliases to the 'paths' option? +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? ==== test1.ts (2 errors) ==== @@ -9,7 +9,7 @@ test1.ts(3,23): error TS2792: Cannot find module 'test2'. Did you mean to set th ~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~ -!!! error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? //console.log(foo.$); diff --git a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt index f33239e7f9636..f42b5a7fc941a 100644 --- a/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt +++ b/tests/baselines/reference/project/nestedLocalModuleWithRecursiveTypecheck/node/nestedLocalModuleWithRecursiveTypecheck.errors.txt @@ -1,5 +1,5 @@ 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 'node', or to add aliases to the 'paths' option? +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? ==== test1.ts (2 errors) ==== @@ -9,7 +9,7 @@ test1.ts(3,23): error TS2792: Cannot find module 'test2'. Did you mean to set th ~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~ -!!! error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'test2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? //console.log(foo.$); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt index 6e9a578e4565c..f644b2a3a90d3 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt @@ -1,7 +1,7 @@ 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 'node', or to add aliases to the 'paths' option? +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 'node', or to add aliases to the 'paths' option? +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? ==== testGlo.ts (4 errors) ==== @@ -10,7 +10,7 @@ testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean ~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var c1 = new mExported.me.class1; export function f1() { return new mExported.me.class1(); @@ -33,7 +33,7 @@ testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean ~~~~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var c3 = new mNonExported.mne.class1; export function f3() { return new mNonExported.mne.class1(); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt index 6e9a578e4565c..f644b2a3a90d3 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/privacyCheckOnImportedModuleDeclarationsInsideModule.errors.txt @@ -1,7 +1,7 @@ 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 'node', or to add aliases to the 'paths' option? +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 'node', or to add aliases to the 'paths' option? +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? ==== testGlo.ts (4 errors) ==== @@ -10,7 +10,7 @@ testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean ~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var c1 = new mExported.me.class1; export function f1() { return new mExported.me.class1(); @@ -33,7 +33,7 @@ testGlo.ts(21,35): error TS2792: Cannot find module 'mNonExported'. Did you mean ~~~~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var c3 = new mNonExported.mne.class1; export function f3() { return new mNonExported.mne.class1(); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt index 37238fdae37a9..61ae9d8331704 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/amd/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt @@ -1,7 +1,7 @@ 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 'node', or to add aliases to the 'paths' option? +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 'node', or to add aliases to the 'paths' option? +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? ==== test.ts (4 errors) ==== @@ -13,7 +13,7 @@ test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to ~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var c1 = new mExported.me.class1; export function f1() { return new mExported.me.class1(); @@ -36,7 +36,7 @@ test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to ~~~~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var c3 = new mNonExported.mne.class1; export function f3() { return new mNonExported.mne.class1(); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt index 37238fdae37a9..61ae9d8331704 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule/node/privacyCheckOnImportedModuleDeclarationsInsideNonExportedModule.errors.txt @@ -1,7 +1,7 @@ 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 'node', or to add aliases to the 'paths' option? +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 'node', or to add aliases to the 'paths' option? +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? ==== test.ts (4 errors) ==== @@ -13,7 +13,7 @@ test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to ~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var c1 = new mExported.me.class1; export function f1() { return new mExported.me.class1(); @@ -36,7 +36,7 @@ test.ts(24,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to ~~~~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export var c3 = new mNonExported.mne.class1; export function f3() { return new mNonExported.mne.class1(); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt index 962bb4820fb87..a454af4a3fed9 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/amd/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt @@ -1,7 +1,7 @@ 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 'node', or to add aliases to the 'paths' option? +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 'node', or to add aliases to the 'paths' option? +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? ==== test.ts (4 errors) ==== @@ -10,7 +10,7 @@ test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to ~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? module Internal_M1 { export var c1 = new mExported.me.class1; @@ -54,7 +54,7 @@ test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to ~~~~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? module Internal_M3 { export var c3 = new mNonExported.mne.class1; export function f3() { diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt index 962bb4820fb87..a454af4a3fed9 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleImportStatementInParentModule/node/privacyCheckOnImportedModuleImportStatementInParentModule.errors.txt @@ -1,7 +1,7 @@ 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 'node', or to add aliases to the 'paths' option? +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 'node', or to add aliases to the 'paths' option? +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? ==== test.ts (4 errors) ==== @@ -10,7 +10,7 @@ test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to ~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? module Internal_M1 { export var c1 = new mExported.me.class1; @@ -54,7 +54,7 @@ test.ts(42,35): error TS2792: Cannot find module 'mNonExported'. Did you mean to ~~~~~~~~~~~~~~ !!! error TS1147: Import declarations in a namespace cannot reference a module. ~~~~~~~~~~~~~~ -!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'mNonExported'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? module Internal_M3 { export var c3 = new mNonExported.mne.class1; export function f3() { diff --git a/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt b/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt index 03a17723a489f..f73a2650d6a8e 100644 --- a/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt +++ b/tests/baselines/reference/relativeNamesInClassicResolution.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/somefolder/a.ts(1,17): error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/somefolder/a.ts (1 errors) ==== import {x} from "./b" ~~~~~ -!!! error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== tests/cases/compiler/b.ts (0 errors) ==== export let x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt b/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt index 361d1d71f0eaf..50e76caa5b9d9 100644 --- a/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithAmd.errors.txt @@ -1,12 +1,12 @@ -error TS5070: Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy. -tests/cases/compiler/file1.ts(1,21): error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. +tests/cases/compiler/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 without 'node' module resolution strategy. +!!! error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. ==== tests/cases/compiler/file1.ts (1 errors) ==== import b1 = require('./b'); ~~~~~ -!!! error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './b'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? let x = b1.a; import b2 = require('./b.json'); if (x) { diff --git a/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt b/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt index 6d1d5b7751429..bffafe140d179 100644 --- a/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt +++ b/tests/baselines/reference/requireOfJsonFileWithModuleEmitNone.errors.txt @@ -1,8 +1,8 @@ -error TS5070: Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy. +error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. tests/cases/compiler/file1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'. -!!! error TS5070: Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy. +!!! error TS5070: Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'. ==== tests/cases/compiler/file1.ts (1 errors) ==== import * as b from './b.json'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json b/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json index 0671dcbd6317b..2b68a488ba793 100644 --- a/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json +++ b/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.", "'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'.", "Module name 'foo/bar/foobar.json', matched pattern '*'.", diff --git a/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json b/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json index 57579896df342..1df65bda8b241 100644 --- a/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json +++ b/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.", "'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'.", "Module name 'foo/bar/foobar.json', matched pattern '*'.", diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js index 4b30d8f8165c2..aa9523ed48836 100644 --- a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js @@ -197,6 +197,6 @@ File '/fs.jsx' does not exist. MissingPaths:: ["lib.d.ts"] -/a/b/app.ts(2,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +/a/b/app.ts(2,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? diff --git a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js index 1c4e39c7c86ba..e73f4ab52669b 100644 --- a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js +++ b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js @@ -33,7 +33,7 @@ resolvedModules: undefined resolvedTypeReferenceDirectiveNames: undefined ======== Resolving module 'a' from 'file1.ts'. ======== -Explicitly specified module resolution kind: 'NodeJs'. +Explicitly specified module resolution kind: 'Node10'. Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. File 'node_modules/a/package.json' does not exist. File 'node_modules/a.ts' does not exist. @@ -98,7 +98,7 @@ resolvedModules: undefined resolvedTypeReferenceDirectiveNames: undefined ======== Resolving module 'a' from 'file1.ts'. ======== -Explicitly specified module resolution kind: 'NodeJs'. +Explicitly specified module resolution kind: 'Node10'. Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. File 'node_modules/a/package.json' does not exist. File 'node_modules/a.ts' does not exist. diff --git a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js index 5ccc36f9fb50f..b9a3e2a4fc7ed 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js @@ -113,6 +113,6 @@ resolvedTypeReferenceDirectiveNames: undefined MissingPaths:: ["lib.d.ts"] a.ts(2,15): error TS2306: File 'b.ts' is not a module. -a.ts(3,31): error TS2792: Cannot find module 'c'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +a.ts(3,31): error TS2792: Cannot find module 'c'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? diff --git a/tests/baselines/reference/scopedPackages.trace.json b/tests/baselines/reference/scopedPackages.trace.json index 5a3ccdd092c25..cfdcf51729413 100644 --- a/tests/baselines/reference/scopedPackages.trace.json +++ b/tests/baselines/reference/scopedPackages.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '@cow/boy' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/@cow/boy/package.json' does not exist.", "File '/node_modules/@cow/boy.ts' does not exist.", @@ -12,7 +12,7 @@ "Resolving real path for '/node_modules/@cow/boy/index.d.ts', result '/node_modules/@cow/boy/index.d.ts'.", "======== Module name '@cow/boy' was successfully resolved to '/node_modules/@cow/boy/index.d.ts'. ========", "======== Resolving module '@be/bop' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module '@be/bop' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Scoped package detected, looking in 'be__bop'", "File '/node_modules/@types/be__bop/package.json' does not exist.", @@ -21,7 +21,7 @@ "Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'.", "======== Module name '@be/bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts'. ========", "======== Resolving module '@be/bop/e/z' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module '@be/bop/e/z' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Scoped package detected, looking in 'be__bop/e/z'", "File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/shorthand-property-es5-es6.errors.txt b/tests/baselines/reference/shorthand-property-es5-es6.errors.txt index 24ed1621be35d..45ebf4b1361a1 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 @@ -tests/cases/compiler/test.ts(1,19): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/test.ts (1 errors) ==== import {foo} from './foo'; ~~~~~~~ -!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 24ed1621be35d..45ebf4b1361a1 100644 --- a/tests/baselines/reference/shorthand-property-es6-amd.errors.txt +++ b/tests/baselines/reference/shorthand-property-es6-amd.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/test.ts(1,19): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/test.ts (1 errors) ==== import {foo} from './foo'; ~~~~~~~ -!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? const baz = 42; const bar = { foo, baz }; \ No newline at end of file diff --git a/tests/baselines/reference/shorthand-property-es6-es6.errors.txt b/tests/baselines/reference/shorthand-property-es6-es6.errors.txt index 24ed1621be35d..45ebf4b1361a1 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 @@ -tests/cases/compiler/test.ts(1,19): error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/test.ts (1 errors) ==== import {foo} from './foo'; ~~~~~~~ -!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? const baz = 42; const bar = { foo, baz }; \ No newline at end of file diff --git a/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt b/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt index 1df32aa1e857f..da7b67820c7f1 100644 --- a/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt +++ b/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt @@ -1,9 +1,9 @@ tests/cases/compiler/strictModeWordInImportDeclaration.ts(2,13): error TS1214: Identifier expected. 'package' is a reserved word in strict mode. Modules are automatically in strict mode. -tests/cases/compiler/strictModeWordInImportDeclaration.ts(2,26): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? tests/cases/compiler/strictModeWordInImportDeclaration.ts(3,16): error TS1214: Identifier expected. 'private' is a reserved word in strict mode. Modules are automatically in strict mode. -tests/cases/compiler/strictModeWordInImportDeclaration.ts(3,30): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? tests/cases/compiler/strictModeWordInImportDeclaration.ts(4,8): error TS1214: Identifier expected. 'public' is a reserved word in strict mode. Modules are automatically in strict mode. -tests/cases/compiler/strictModeWordInImportDeclaration.ts(4,20): error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/strictModeWordInImportDeclaration.ts (6 errors) ==== @@ -12,14 +12,14 @@ tests/cases/compiler/strictModeWordInImportDeclaration.ts(4,20): error TS2792: C ~~~~~~~ !!! 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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module './1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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 'node', or to add aliases to the 'paths' option? \ No newline at end of file +!!! 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 diff --git a/tests/baselines/reference/systemModule10.errors.txt b/tests/baselines/reference/systemModule10.errors.txt index 12980ac7b5994..260fe717b25e5 100644 --- a/tests/baselines/reference/systemModule10.errors.txt +++ b/tests/baselines/reference/systemModule10.errors.txt @@ -1,14 +1,14 @@ -tests/cases/compiler/systemModule10.ts(1,20): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule10.ts(2,21): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? +tests/cases/compiler/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? ==== tests/cases/compiler/systemModule10.ts (2 errors) ==== import n, {x} from 'file1' ~~~~~~~ -!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import n2 = require('file2'); ~~~~~~~ -!!! error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {x} export {x as y} export {n} diff --git a/tests/baselines/reference/systemModule10_ES5.errors.txt b/tests/baselines/reference/systemModule10_ES5.errors.txt index c899f5caddfd4..831476c681a76 100644 --- a/tests/baselines/reference/systemModule10_ES5.errors.txt +++ b/tests/baselines/reference/systemModule10_ES5.errors.txt @@ -1,14 +1,14 @@ -tests/cases/compiler/systemModule10_ES5.ts(1,20): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule10_ES5.ts(2,21): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? +tests/cases/compiler/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? ==== tests/cases/compiler/systemModule10_ES5.ts (2 errors) ==== import n, {x} from 'file1' ~~~~~~~ -!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import n2 = require('file2'); ~~~~~~~ -!!! error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {x} export {x as y} export {n} diff --git a/tests/baselines/reference/systemModule11.errors.txt b/tests/baselines/reference/systemModule11.errors.txt index 0017a9b058dd1..317860dc6db23 100644 --- a/tests/baselines/reference/systemModule11.errors.txt +++ b/tests/baselines/reference/systemModule11.errors.txt @@ -1,9 +1,9 @@ -tests/cases/compiler/file1.ts(6,15): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/file2.ts(6,15): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/file3.ts(1,25): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/file3.ts(3,15): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/file4.ts(8,27): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/file5.ts(2,15): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/file1.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? +tests/cases/compiler/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? +tests/cases/compiler/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? +tests/cases/compiler/file3.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? +tests/cases/compiler/file4.ts(8,27): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/file1.ts (1 errors) ==== @@ -14,7 +14,7 @@ tests/cases/compiler/file5.ts(2,15): error TS2792: Cannot find module 'a'. Did y export function foo() {} export * from 'bar'; ~~~~~ -!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== tests/cases/compiler/file2.ts (1 errors) ==== var x; @@ -24,16 +24,16 @@ tests/cases/compiler/file5.ts(2,15): error TS2792: Cannot find module 'a'. Did y export * from 'bar'; ~~~~~ -!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== tests/cases/compiler/file3.ts (2 errors) ==== export {x, y as z} from 'a'; ~~~ -!!! error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export default function foo() {} export * from 'bar'; ~~~~~ -!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== tests/cases/compiler/file4.ts (1 errors) ==== export var x; @@ -45,10 +45,10 @@ tests/cases/compiler/file5.ts(2,15): error TS2792: Cannot find module 'a'. Did y export {s, s1 as s2} from 'a' ~~~ -!!! error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ==== tests/cases/compiler/file5.ts (1 errors) ==== function foo() {} export * from 'a'; ~~~ -!!! error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? \ No newline at end of file +!!! error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? \ No newline at end of file diff --git a/tests/baselines/reference/systemModule12.errors.txt b/tests/baselines/reference/systemModule12.errors.txt index 9d025f958d0ad..de3cbd484779e 100644 --- a/tests/baselines/reference/systemModule12.errors.txt +++ b/tests/baselines/reference/systemModule12.errors.txt @@ -1,9 +1,9 @@ -tests/cases/compiler/systemModule12.ts(2,15): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/systemModule12.ts (1 errors) ==== /// import n from 'file1' ~~~~~~~ -!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? \ No newline at end of file diff --git a/tests/baselines/reference/systemModule14.errors.txt b/tests/baselines/reference/systemModule14.errors.txt index 1688c8a1a6dae..c02b1e517c3d1 100644 --- a/tests/baselines/reference/systemModule14.errors.txt +++ b/tests/baselines/reference/systemModule14.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/systemModule14.ts(5,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/systemModule14.ts (1 errors) ==== @@ -8,7 +8,7 @@ tests/cases/compiler/systemModule14.ts(5,17): error TS2792: Cannot find module ' import {a} from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {foo} var x = 1; diff --git a/tests/baselines/reference/systemModule16.errors.txt b/tests/baselines/reference/systemModule16.errors.txt index 9dbfba0448c43..a4a720b095450 100644 --- a/tests/baselines/reference/systemModule16.errors.txt +++ b/tests/baselines/reference/systemModule16.errors.txt @@ -1,9 +1,9 @@ -tests/cases/compiler/systemModule16.ts(1,20): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule16.ts(2,20): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule16.ts(3,15): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule16.ts(4,15): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule16.ts(7,32): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule16.ts(8,32): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? +tests/cases/compiler/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? +tests/cases/compiler/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? +tests/cases/compiler/systemModule16.ts(4,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? +tests/cases/compiler/systemModule16.ts(7,32): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +tests/cases/compiler/systemModule16.ts(8,32): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? tests/cases/compiler/systemModule16.ts(10,1): error TS2695: Left side of comma operator is unused and has no side effects. tests/cases/compiler/systemModule16.ts(10,1): error TS2695: Left side of comma operator is unused and has no side effects. tests/cases/compiler/systemModule16.ts(10,1): error TS2695: Left side of comma operator is unused and has no side effects. @@ -13,24 +13,24 @@ tests/cases/compiler/systemModule16.ts(10,1): error TS2695: Left side of comma o ==== tests/cases/compiler/systemModule16.ts (10 errors) ==== import * as x from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import * as y from "bar"; ~~~~~ -!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export * from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export * from "bar" ~~~~~ -!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {x} export {y} import {a1, b1, c1 as d1} from "foo"; ~~~~~ -!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? export {a2, b2, c2 as d2} from "bar"; ~~~~~ -!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? x,y,a1,b1,d1; ~ diff --git a/tests/baselines/reference/systemModule9.errors.txt b/tests/baselines/reference/systemModule9.errors.txt index 9b2f30ec37fd5..d8578eae77650 100644 --- a/tests/baselines/reference/systemModule9.errors.txt +++ b/tests/baselines/reference/systemModule9.errors.txt @@ -1,28 +1,28 @@ -tests/cases/compiler/systemModule9.ts(1,21): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule9.ts(2,25): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule9.ts(3,15): error TS2792: Cannot find module 'file3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule9.ts(5,25): error TS2792: Cannot find module 'file5'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule9.ts(6,22): error TS2792: Cannot find module 'file6'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -tests/cases/compiler/systemModule9.ts(16,15): error TS2792: Cannot find module 'file7'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? +tests/cases/compiler/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? +tests/cases/compiler/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? +tests/cases/compiler/systemModule9.ts(5,25): error TS2792: Cannot find module 'file5'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +tests/cases/compiler/systemModule9.ts(6,22): error TS2792: Cannot find module 'file6'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/systemModule9.ts (6 errors) ==== import * as ns from 'file1'; ~~~~~~~ -!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import {a, b as c} from 'file2'; ~~~~~~~ -!!! error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import d from 'file3' ~~~~~~~ -!!! error TS2792: Cannot find module 'file3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file3'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import 'file4' import e, * as ns2 from 'file5'; ~~~~~~~ -!!! error TS2792: Cannot find module 'file5'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file5'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? import ns3 = require('file6'); ~~~~~~~ -!!! error TS2792: Cannot find module 'file6'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file6'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? ns.f(); a(); @@ -34,7 +34,7 @@ tests/cases/compiler/systemModule9.ts(16,15): error TS2792: Cannot find module ' export * from 'file7'; ~~~~~~~ -!!! error TS2792: Cannot find module 'file7'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'file7'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? var x, y = true; export {x}; diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js index bbd3f7a12b29c..9f5175ca84883 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js @@ -44,7 +44,7 @@ Output:: [12:00:41 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... ======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/myproject/packages/pkg2', using this value to resolve non-relative module name 'const'. Resolving module name 'const' relative to base url '/user/username/projects/myproject/packages/pkg2' - '/user/username/projects/myproject/packages/pkg2/const'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, Declaration. @@ -55,7 +55,7 @@ File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it a [12:00:59 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. @@ -77,7 +77,7 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exis ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== ======== Resolving module 'const' from '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/myproject/packages/pkg2', using this value to resolve non-relative module name 'const'. Resolving module name 'const' relative to base url '/user/username/projects/myproject/packages/pkg2' - '/user/username/projects/myproject/packages/pkg2/const'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, Declaration. diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js index 5227bdd4d5c4e..2cc8a2ee93574 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js @@ -44,7 +44,7 @@ Output:: [12:00:41 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... ======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/myproject/packages/pkg2', using this value to resolve non-relative module name 'const'. Resolving module name 'const' relative to base url '/user/username/projects/myproject/packages/pkg2' - '/user/username/projects/myproject/packages/pkg2/const'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, Declaration. @@ -55,7 +55,7 @@ File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it a [12:00:59 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. @@ -78,7 +78,7 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== ======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/myproject/packages/pkg2', using this value to resolve non-relative module name 'const'. Resolving module name 'const' relative to base url '/user/username/projects/myproject/packages/pkg2' - '/user/username/projects/myproject/packages/pkg2/const'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, Declaration. diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js index 00c7298201c62..1804cbb3b806e 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js @@ -53,7 +53,7 @@ Output:: [12:00:46 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file types: TypeScript, Declaration. File name '/user/username/projects/myproject/packages/pkg2/const.js' has a '.js' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it as a name resolution result. @@ -63,7 +63,7 @@ File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it a [12:01:08 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. @@ -86,7 +86,7 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.js', target file types: TypeScript, Declaration. File name '/user/username/projects/myproject/packages/pkg2/build/const.js' has a '.js' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not exist. @@ -294,7 +294,7 @@ Output:: [12:01:21 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. @@ -383,7 +383,7 @@ Output:: [12:01:28 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. @@ -406,7 +406,7 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.js', target file types: TypeScript, Declaration. File name '/user/username/projects/myproject/packages/pkg2/build/const.js' has a '.js' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not exist. diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js index 6674d1f86a311..47a89cf60488f 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js @@ -88,7 +88,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -p plugin-one --explainFiles Output:: ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/action.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'. File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist. @@ -104,7 +104,7 @@ File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/i Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== ======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration. File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json' does not exist. File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist. @@ -116,7 +116,7 @@ File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts', result '/user/username/projects/myProject/plugin-two/index.d.ts'. ======== Module name 'plugin-two' was successfully resolved to '/user/username/projects/myProject/plugin-two/index.d.ts'. ======== ======== Resolving module 'typescript-fsa' from '/user/username/projects/myProject/plugin-two/index.d.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. Found 'package.json' at '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json'. File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.ts' does not exist. diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js index d078c657247fc..bad8018892d9e 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js @@ -90,7 +90,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -p plugin-one --explainFiles Output:: ======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration. Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json'. File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist. @@ -109,7 +109,7 @@ File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.d.ts', result '/user/username/projects/myProject/plugin-two/dist/commonjs/index.d.ts'. ======== Module name 'plugin-two' was successfully resolved to '/user/username/projects/myProject/plugin-two/dist/commonjs/index.d.ts' with Package ID 'plugin-two/dist/commonjs/index.d.ts@0.1.3'. ======== ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'. File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist. @@ -125,7 +125,7 @@ File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/i Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== ======== Resolving module 'typescript-fsa' from '/user/username/projects/myProject/plugin-two/dist/commonjs/index.d.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myProject/plugin-two/dist/commonjs/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myProject/plugin-two/dist/node_modules' does not exist, skipping all lookups in it. diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js index 54b5d3c18cd35..fb9d623f44f46 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js @@ -90,7 +90,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -p plugin-one --explainFiles Output:: ======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration. Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json'. File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist. @@ -109,7 +109,7 @@ File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/dist/commonjs/index.d.ts', result '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts'. ======== Module name 'plugin-two' was successfully resolved to '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts' with Package ID 'plugin-two/dist/commonjs/index.d.ts@0.1.3'. ======== ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'. File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist. @@ -125,7 +125,7 @@ File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/i Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/plugin-two/dist/commonjs/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/plugin-two/dist/node_modules' does not exist, skipping all lookups in it. diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js index 90041bb9968ae..5672a9e68c340 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js @@ -88,7 +88,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -p plugin-one --explainFiles Output:: ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/action.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'. File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist. @@ -104,7 +104,7 @@ File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/i Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== ======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration. File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json' does not exist. File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist. @@ -116,7 +116,7 @@ File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts', result '/user/username/projects/myproject/plugin-two/index.d.ts'. ======== Module name 'plugin-two' was successfully resolved to '/user/username/projects/myproject/plugin-two/index.d.ts'. ======== ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-two/index.d.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. Found 'package.json' at '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'. File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist. 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 fd84d10c7934f..0ce5f7440b94b 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 @@ -36,7 +36,7 @@ Output:: >> Screen clear [12:00:27 AM] Starting compilation in watch mode... -b.ts:2:19 - error TS2792: Cannot find module './yX/a'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +b.ts:2:19 - error TS2792: Cannot find module './yX/a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 2 import { a } from "./yX/a";    ~~~~~~~~ @@ -152,7 +152,7 @@ Output:: >> Screen clear [12:00:33 AM] File change detected. Starting incremental compilation... -b.ts:2:19 - error TS2792: Cannot find module './yX/a'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +b.ts:2:19 - error TS2792: Cannot find module './yX/a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 2 import { a } from "./yX/a";    ~~~~~~~~ diff --git a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js index 72b11d6dd93a6..e9807a86ab990 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js @@ -42,7 +42,7 @@ Output:: [12:00:43 AM] Starting compilation in watch mode... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. @@ -63,7 +63,7 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exis Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.js', target file types: TypeScript, Declaration. File name '/user/username/projects/myproject/packages/pkg2/build/const.js' has a '.js' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not exist. @@ -151,7 +151,7 @@ Output:: [12:00:53 AM] File change detected. Starting incremental compilation... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. @@ -242,7 +242,7 @@ Output:: [12:01:02 AM] File change detected. Starting incremental compilation... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. @@ -263,7 +263,7 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exis Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.js', target file types: TypeScript, Declaration. File name '/user/username/projects/myproject/packages/pkg2/build/const.js' has a '.js' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not exist. diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js index 960670e33c6a0..968cc458fde80 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js @@ -401,23 +401,23 @@ Output:: [12:01:16 AM] Starting compilation in watch mode... ======== Resolving module '../core/index' from '/user/username/projects/sample1/tests/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file types: TypeScript, Declaration. File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. ======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== ======== Resolving module '../logic/index' from '/user/username/projects/sample1/tests/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/sample1/logic/index', target file types: TypeScript, Declaration. File '/user/username/projects/sample1/logic/index.ts' exist - use it as a name resolution result. ======== Module name '../logic/index' was successfully resolved to '/user/username/projects/sample1/logic/index.ts'. ======== ======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/tests/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file types: TypeScript, Declaration. File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. ======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== ======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1062,7 +1062,7 @@ Reusing resolution of module '../logic/index' from '/user/username/projects/samp Reusing resolution of module '../core/anotherModule' from '/user/username/projects/sample1/tests/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js index 4aec28306c420..4a8047ba3d393 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js @@ -192,7 +192,7 @@ Output:: [12:00:59 AM] Starting compilation in watch mode... ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' does not exist. File '/user/username/projects/transitiveReferences/b.tsx' does not exist. @@ -201,7 +201,7 @@ File '/user/username/projects/transitiveReferences/b/package.json' does not exis File '/user/username/projects/transitiveReferences/b/index.ts' exist - use it as a name resolution result. ======== Module name '../b' was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -213,7 +213,7 @@ File '/user/username/projects/transitiveReferences/refs/a.d.ts' exist - use it a ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -518,7 +518,7 @@ Output:: [12:01:31 AM] File change detected. Starting incremental compilation... ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' does not exist. File '/user/username/projects/transitiveReferences/b.tsx' does not exist. @@ -527,7 +527,7 @@ File '/user/username/projects/transitiveReferences/b/package.json' does not exis File '/user/username/projects/transitiveReferences/b/index.ts' exist - use it as a name resolution result. ======== Module name '../b' was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -539,7 +539,7 @@ File '/user/username/projects/transitiveReferences/nrefs/a.d.ts' exist - use it ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -647,7 +647,7 @@ Output:: [12:01:39 AM] File change detected. Starting incremental compilation... ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' does not exist. File '/user/username/projects/transitiveReferences/b.tsx' does not exist. @@ -656,7 +656,7 @@ File '/user/username/projects/transitiveReferences/b/package.json' does not exis File '/user/username/projects/transitiveReferences/b/index.ts' exist - use it as a name resolution result. ======== Module name '../b' was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -668,7 +668,7 @@ File '/user/username/projects/transitiveReferences/refs/a.d.ts' exist - use it a ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -779,7 +779,7 @@ Reusing resolution of module '../b' from '/user/username/projects/transitiveRefe Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -890,7 +890,7 @@ Reusing resolution of module '../b' from '/user/username/projects/transitiveRefe Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -986,7 +986,7 @@ Output:: Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -1097,7 +1097,7 @@ Reusing resolution of module '../b' from '/user/username/projects/transitiveRefe Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js index a752e5fc43f13..a198d2ba7e78b 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js @@ -192,7 +192,7 @@ Output:: [12:00:59 AM] Starting compilation in watch mode... ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' does not exist. File '/user/username/projects/transitiveReferences/b.tsx' does not exist. @@ -201,7 +201,7 @@ File '/user/username/projects/transitiveReferences/b/package.json' does not exis File '/user/username/projects/transitiveReferences/b/index.ts' exist - use it as a name resolution result. ======== Module name '../b' was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -213,7 +213,7 @@ File '/user/username/projects/transitiveReferences/refs/a.d.ts' exist - use it a ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -514,7 +514,7 @@ Output:: [12:01:31 AM] File change detected. Starting incremental compilation... ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' does not exist. File '/user/username/projects/transitiveReferences/b.tsx' does not exist. @@ -523,7 +523,7 @@ File '/user/username/projects/transitiveReferences/b/package.json' does not exis File '/user/username/projects/transitiveReferences/b/index.ts' exist - use it as a name resolution result. ======== Module name '../b' was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -535,7 +535,7 @@ File '/user/username/projects/transitiveReferences/nrefs/a.d.ts' exist - use it ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -641,7 +641,7 @@ Output:: [12:01:39 AM] File change detected. Starting incremental compilation... ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' does not exist. File '/user/username/projects/transitiveReferences/b.tsx' does not exist. @@ -650,7 +650,7 @@ File '/user/username/projects/transitiveReferences/b/package.json' does not exis File '/user/username/projects/transitiveReferences/b/index.ts' exist - use it as a name resolution result. ======== Module name '../b' was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -662,7 +662,7 @@ File '/user/username/projects/transitiveReferences/refs/a.d.ts' exist - use it a ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -771,7 +771,7 @@ Reusing resolution of module '../b' from '/user/username/projects/transitiveRefe Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -878,7 +878,7 @@ Reusing resolution of module '../b' from '/user/username/projects/transitiveRefe Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -970,7 +970,7 @@ Output:: Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -1079,7 +1079,7 @@ Reusing resolution of module '../b' from '/user/username/projects/transitiveRefe Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js index e6070d69981ab..e50a4b0316bc4 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js @@ -216,12 +216,12 @@ Output:: [12:00:53 AM] Starting compilation in watch mode... ======== Resolving module './b' from '/user/username/projects/transitiveReferences/c.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' exist - use it as a name resolution result. ======== Module name './b' was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -233,7 +233,7 @@ File '/user/username/projects/transitiveReferences/refs/a.d.ts' exist - use it a ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -519,12 +519,12 @@ Output:: [12:01:25 AM] File change detected. Starting incremental compilation... ======== Resolving module './b' from '/user/username/projects/transitiveReferences/c.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' exist - use it as a name resolution result. ======== Module name './b' was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -536,7 +536,7 @@ File '/user/username/projects/transitiveReferences/nrefs/a.d.ts' exist - use it ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -634,12 +634,12 @@ Output:: [12:01:33 AM] File change detected. Starting incremental compilation... ======== Resolving module './b' from '/user/username/projects/transitiveReferences/c.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' exist - use it as a name resolution result. ======== Module name './b' was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -651,7 +651,7 @@ File '/user/username/projects/transitiveReferences/refs/a.d.ts' exist - use it a ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -752,7 +752,7 @@ Reusing resolution of module './b' from '/user/username/projects/transitiveRefer Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -853,7 +853,7 @@ Reusing resolution of module './b' from '/user/username/projects/transitiveRefer Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -939,7 +939,7 @@ Output:: Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. @@ -1053,7 +1053,7 @@ Reusing resolution of module './b' from '/user/username/projects/transitiveRefer Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== ../../../../a/lib/lib.d.ts Default library for target 'es5' diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js index 1ff14a9a0fa12..e7ba58768e525 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js @@ -169,12 +169,12 @@ Output:: [12:00:50 AM] Starting compilation in watch mode... ======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file types: TypeScript, Declaration. File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. ======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== ======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file types: TypeScript, Declaration. File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. ======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js index 2f8c8818c3cd2..6d15505c58fac 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 @@ -203,12 +203,12 @@ Output:: [12:00:53 AM] Starting compilation in watch mode... ======== Resolving module './b' from '/user/username/projects/transitiveReferences/c.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. File '/user/username/projects/transitiveReferences/b.ts' exist - use it as a name resolution result. ======== Module name './b' was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. ======== ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences', using this value to resolve non-relative module name '@ref/a'. 'paths' option is specified, looking for a pattern to match module name '@ref/a'. Module name '@ref/a', matched pattern '@ref/*'. diff --git a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js index b3c4b58c2d7c5..692831d354f13 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js @@ -165,7 +165,7 @@ Output:: >> Screen clear [12:00:32 AM] File change detected. Starting incremental compilation... -a/d/f0.ts:1:17 - error TS2792: Cannot find module 'f2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +a/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"    ~~~~ 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 baa29b83d0d49..308ba08c9f160 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 @@ -21,7 +21,7 @@ Output:: >> Screen clear [12:00:11 AM] Starting compilation in watch mode... -a/foo.ts:1:17 - error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +a/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"    ~~~~~ diff --git a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js index 67b1dc3b2a1fb..c9fe65091be40 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js @@ -46,7 +46,7 @@ CreatingProgramWith:: options: {"composite":true,"traceResolution":true,"outDir":"/src/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/src/project/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /src/project/fileWithImports.ts 250 undefined Source file ======== Resolving module 'pkg0' from '/src/project/fileWithImports.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Declaration. File '/src/project/node_modules/pkg0/package.json' does not exist. File '/src/project/node_modules/pkg0.ts' does not exist. @@ -58,7 +58,7 @@ File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolu Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== ======== Resolving module 'pkg1' from '/src/project/fileWithImports.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg1' from 'node_modules' folder, target file types: TypeScript, Declaration. File '/src/project/node_modules/pkg1.ts' does not exist. File '/src/project/node_modules/pkg1.tsx' does not exist. @@ -339,7 +339,7 @@ CreatingProgramWith:: options: {"composite":true,"traceResolution":true,"outDir":"/src/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/src/project/tsconfig.json"} Reusing resolution of module 'pkg0' from '/src/project/fileWithImports.ts' of old program, it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== Resolving module 'pkg1' from '/src/project/fileWithImports.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'pkg1' from 'node_modules' folder, target file types: TypeScript, Declaration. File '/src/project/node_modules/pkg1/package.json' does not exist. File '/src/project/node_modules/pkg1.ts' does not exist. 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 fd9eae13fd184..eca0cff761f60 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 @@ -79,7 +79,7 @@ Output:: >> Screen clear [12:00:18 AM] File change detected. Starting incremental compilation... -a/foo.ts:1:17 - error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +a/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"    ~~~~~ diff --git a/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js b/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js index a683731545987..126e4fa7ea1fe 100644 --- a/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js +++ b/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js @@ -35,7 +35,7 @@ CreatingProgramWith:: options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/other.ts' does not exist. File '/user/username/projects/myproject/other.tsx' does not exist. @@ -107,7 +107,7 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/other.ts' does not exist. File '/user/username/projects/myproject/other.tsx' does not exist. @@ -166,7 +166,7 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/other.ts' does not exist. File '/user/username/projects/myproject/other.tsx' does not exist. @@ -231,7 +231,7 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/other.ts' exist - use it as a name resolution result. ======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.ts'. ======== diff --git a/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js b/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js index 55c9a32cfd870..f85ae018434a4 100644 --- a/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js +++ b/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js @@ -35,7 +35,7 @@ CreatingProgramWith:: options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/other.ts' does not exist. File '/user/username/projects/myproject/other.tsx' does not exist. @@ -198,7 +198,7 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/other.ts' exist - use it as a name resolution result. ======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.ts'. ======== diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js index 72c8d55ba8775..b93451beca370 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js @@ -41,7 +41,7 @@ CreatingProgramWith:: options: {"extendedDiagnostics":true,"traceResolution":true,"watch":true,"configFilePath":"/home/user/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /home/user/projects/myproject/src/file.ts 250 undefined Source file ======== Resolving module 'a' from '/home/user/projects/myproject/src/file.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. +Module resolution kind is not specified, using 'Node10'. Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/home/user/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. File '/home/user/projects/myproject/node_modules/a/package.json' does not exist. diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js index 17cda20f3880d..ee713d66ef644 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js @@ -37,7 +37,7 @@ Info 14 [00:00:24.000] Open files: Info 14 [00:00:25.000] FileName: /c/foo.ts ProjectRootPath: undefined Info 14 [00:00:26.000] Projects: /dev/null/inferredProject1* Info 14 [00:00:27.000] getSemanticDiagnostics:: /c/foo.ts:: 1 -Info 15 [00:00:28.000] foo.ts(1,17): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +Info 15 [00:00:28.000] foo.ts(1,17): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? Info 16 [00:00:29.000] fileExists:: [{"key":"/c/tsconfig.json","count":1},{"key":"/c/jsconfig.json","count":1},{"key":"/tsconfig.json","count":1},{"key":"/jsconfig.json","count":1},{"key":"/c/bar.ts","count":1},{"key":"/c/bar.tsx","count":1},{"key":"/c/bar.d.ts","count":1},{"key":"/bar.ts","count":1},{"key":"/bar.tsx","count":1},{"key":"/bar.d.ts","count":1},{"key":"/c/bar.js","count":1},{"key":"/c/bar.jsx","count":1},{"key":"/bar.js","count":1},{"key":"/bar.jsx","count":1},{"key":"/c/package.json","count":1},{"key":"/package.json","count":1}] Info 17 [00:00:30.000] directoryExists:: [{"key":"/c","count":3},{"key":"/","count":2},{"key":"/c/node_modules","count":2},{"key":"/node_modules","count":1},{"key":"/c/node_modules/@types","count":2},{"key":"/node_modules/@types","count":1}] diff --git a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js index 8a273dad7e749..0f78daf498ee5 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js +++ b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js @@ -49,7 +49,7 @@ Info 6 [00:00:41.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info 7 [00:00:42.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info 8 [00:00:43.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info 9 [00:00:44.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/src/file1.ts'. ======== -Info 10 [00:00:45.000] Module resolution kind is not specified, using 'NodeJs'. +Info 10 [00:00:45.000] Module resolution kind is not specified, using 'Node10'. Info 11 [00:00:46.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 12 [00:00:47.000] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist. Info 13 [00:00:48.000] File '/user/username/projects/myproject/src/node_modules/module1.ts' does not exist. @@ -59,7 +59,7 @@ Info 16 [00:00:51.000] File '/user/username/projects/myproject/src/node_module Info 17 [00:00:52.000] Resolving real path for '/user/username/projects/myproject/src/node_modules/module1/index.ts', result '/user/username/projects/myproject/src/node_modules/module1/index.ts'. Info 18 [00:00:53.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ======== Info 19 [00:00:54.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file1.ts'. ======== -Info 20 [00:00:55.000] Module resolution kind is not specified, using 'NodeJs'. +Info 20 [00:00:55.000] Module resolution kind is not specified, using 'Node10'. Info 21 [00:00:56.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 22 [00:00:57.000] File '/user/username/projects/myproject/src/node_modules/module2.ts' does not exist. Info 23 [00:00:58.000] File '/user/username/projects/myproject/src/node_modules/module2.tsx' does not exist. diff --git a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js index c4830f90813f8..6ee3cfe954807 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js +++ b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js @@ -17,7 +17,7 @@ Info 1 [00:00:20.000] Search path: /a/b Info 2 [00:00:21.000] For info: /a/b/app.js :: No config files found. Info 3 [00:00:22.000] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info 4 [00:00:23.000] ======== Resolving module 'lib' from '/a/b/app.js'. ======== -Info 5 [00:00:24.000] Module resolution kind is not specified, using 'NodeJs'. +Info 5 [00:00:24.000] Module resolution kind is not specified, using 'Node10'. Info 6 [00:00:25.000] Loading module 'lib' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 7 [00:00:26.000] Directory '/a/b/node_modules' does not exist, skipping all lookups in it. Info 8 [00:00:27.000] Directory '/a/node_modules' does not exist, skipping all lookups in it. diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js index 99bcbda193294..d2f2e6c30644d 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js @@ -64,7 +64,7 @@ Info 9 [00:00:58.000] FileWatcher:: Added:: WatchInfo: /user/username/project Info 10 [00:00:59.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info Info 11 [00:01:00.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info 12 [00:01:01.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 13 [00:01:02.000] Module resolution kind is not specified, using 'NodeJs'. +Info 13 [00:01:02.000] Module resolution kind is not specified, using 'Node10'. Info 14 [00:01:03.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 15 [00:01:04.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it. Info 16 [00:01:05.000] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist. @@ -75,7 +75,7 @@ Info 20 [00:01:09.000] File '/user/username/projects/myproject/product/node_mo Info 21 [00:01:10.000] Resolving real path for '/user/username/projects/myproject/product/node_modules/module1/index.ts', result '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info 22 [00:01:11.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ======== Info 23 [00:01:12.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 24 [00:01:13.000] Module resolution kind is not specified, using 'NodeJs'. +Info 24 [00:01:13.000] Module resolution kind is not specified, using 'Node10'. Info 25 [00:01:14.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 26 [00:01:15.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it. Info 27 [00:01:16.000] File '/user/username/projects/myproject/product/node_modules/module2.ts' does not exist. @@ -94,37 +94,37 @@ Info 39 [00:01:28.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info 40 [00:01:29.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info 41 [00:01:30.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info 42 [00:01:31.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== -Info 43 [00:01:32.000] Module resolution kind is not specified, using 'NodeJs'. +Info 43 [00:01:32.000] Module resolution kind is not specified, using 'Node10'. Info 44 [00:01:33.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 45 [00:01:34.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it. Info 46 [00:01:35.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/src'. Info 47 [00:01:36.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ======== Info 48 [00:01:37.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== -Info 49 [00:01:38.000] Module resolution kind is not specified, using 'NodeJs'. +Info 49 [00:01:38.000] Module resolution kind is not specified, using 'Node10'. Info 50 [00:01:39.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 51 [00:01:40.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it. Info 52 [00:01:41.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/src'. Info 53 [00:01:42.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== Info 54 [00:01:43.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/file4.ts'. ======== -Info 55 [00:01:44.000] Module resolution kind is not specified, using 'NodeJs'. +Info 55 [00:01:44.000] Module resolution kind is not specified, using 'Node10'. Info 56 [00:01:45.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 57 [00:01:46.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it. Info 58 [00:01:47.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product'. Info 59 [00:01:48.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ======== Info 60 [00:01:49.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/file4.ts'. ======== -Info 61 [00:01:50.000] Module resolution kind is not specified, using 'NodeJs'. +Info 61 [00:01:50.000] Module resolution kind is not specified, using 'Node10'. Info 62 [00:01:51.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 63 [00:01:52.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it. Info 64 [00:01:53.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product'. Info 65 [00:01:54.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== Info 66 [00:01:55.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== -Info 67 [00:01:56.000] Module resolution kind is not specified, using 'NodeJs'. +Info 67 [00:01:56.000] Module resolution kind is not specified, using 'Node10'. Info 68 [00:01:57.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 69 [00:01:58.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it. Info 70 [00:01:59.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/test'. Info 71 [00:02:00.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ======== Info 72 [00:02:01.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== -Info 73 [00:02:02.000] Module resolution kind is not specified, using 'NodeJs'. +Info 73 [00:02:02.000] Module resolution kind is not specified, using 'Node10'. Info 74 [00:02:03.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 75 [00:02:04.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it. Info 76 [00:02:05.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/test'. diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js index 3a9faae75e371..1b188fd195246 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js @@ -54,7 +54,7 @@ Info 7 [00:00:44.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info 8 [00:00:45.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/file2.ts 500 undefined WatchType: Closed Script info Info 9 [00:00:46.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info 10 [00:00:47.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/src/file1.ts'. ======== -Info 11 [00:00:48.000] Module resolution kind is not specified, using 'NodeJs'. +Info 11 [00:00:48.000] Module resolution kind is not specified, using 'Node10'. Info 12 [00:00:49.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 13 [00:00:50.000] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist. Info 14 [00:00:51.000] File '/user/username/projects/myproject/src/node_modules/module1.ts' does not exist. @@ -64,7 +64,7 @@ Info 17 [00:00:54.000] File '/user/username/projects/myproject/src/node_module Info 18 [00:00:55.000] Resolving real path for '/user/username/projects/myproject/src/node_modules/module1/index.ts', result '/user/username/projects/myproject/src/node_modules/module1/index.ts'. Info 19 [00:00:56.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ======== Info 20 [00:00:57.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file1.ts'. ======== -Info 21 [00:00:58.000] Module resolution kind is not specified, using 'NodeJs'. +Info 21 [00:00:58.000] Module resolution kind is not specified, using 'Node10'. Info 22 [00:00:59.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 23 [00:01:00.000] File '/user/username/projects/myproject/src/node_modules/module2.ts' does not exist. Info 24 [00:01:01.000] File '/user/username/projects/myproject/src/node_modules/module2.tsx' does not exist. diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js index 4396af14967df..3ac944c40d132 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js @@ -48,22 +48,22 @@ Info 7 [00:00:54.000] FileWatcher:: Added:: WatchInfo: /user/username/project Info 8 [00:00:55.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info 9 [00:00:56.000] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info 10 [00:00:57.000] ======== Resolving module './feature/file2' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 11 [00:00:58.000] Module resolution kind is not specified, using 'NodeJs'. +Info 11 [00:00:58.000] Module resolution kind is not specified, using 'Node10'. Info 12 [00:00:59.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/feature/file2', target file types: TypeScript, Declaration. Info 13 [00:01:00.000] File '/user/username/projects/myproject/product/src/feature/file2.ts' exist - use it as a name resolution result. Info 14 [00:01:01.000] ======== Module name './feature/file2' was successfully resolved to '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== Info 15 [00:01:02.000] ======== Resolving module '../test/file4' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 16 [00:01:03.000] Module resolution kind is not specified, using 'NodeJs'. +Info 16 [00:01:03.000] Module resolution kind is not specified, using 'Node10'. Info 17 [00:01:04.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/test/file4', target file types: TypeScript, Declaration. Info 18 [00:01:05.000] File '/user/username/projects/myproject/product/test/file4.ts' exist - use it as a name resolution result. Info 19 [00:01:06.000] ======== Module name '../test/file4' was successfully resolved to '/user/username/projects/myproject/product/test/file4.ts'. ======== Info 20 [00:01:07.000] ======== Resolving module '../test/src/file3' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 21 [00:01:08.000] Module resolution kind is not specified, using 'NodeJs'. +Info 21 [00:01:08.000] Module resolution kind is not specified, using 'Node10'. Info 22 [00:01:09.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/test/src/file3', target file types: TypeScript, Declaration. Info 23 [00:01:10.000] File '/user/username/projects/myproject/product/test/src/file3.ts' exist - use it as a name resolution result. Info 24 [00:01:11.000] ======== Module name '../test/src/file3' was successfully resolved to '/user/username/projects/myproject/product/test/src/file3.ts'. ======== Info 25 [00:01:12.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 26 [00:01:13.000] Module resolution kind is not specified, using 'NodeJs'. +Info 26 [00:01:13.000] Module resolution kind is not specified, using 'Node10'. Info 27 [00:01:14.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 28 [00:01:15.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it. Info 29 [00:01:16.000] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist. @@ -74,7 +74,7 @@ Info 33 [00:01:20.000] File '/user/username/projects/myproject/product/node_mo Info 34 [00:01:21.000] Resolving real path for '/user/username/projects/myproject/product/node_modules/module1/index.ts', result '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info 35 [00:01:22.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ======== Info 36 [00:01:23.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 37 [00:01:24.000] Module resolution kind is not specified, using 'NodeJs'. +Info 37 [00:01:24.000] Module resolution kind is not specified, using 'Node10'. Info 38 [00:01:25.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 39 [00:01:26.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it. Info 40 [00:01:27.000] File '/user/username/projects/myproject/product/node_modules/module2.ts' does not exist. @@ -90,13 +90,13 @@ Info 49 [00:01:36.000] Resolving real path for '/user/username/projects/myproj Info 50 [00:01:37.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== Info 51 [00:01:38.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info Info 52 [00:01:39.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== -Info 53 [00:01:40.000] Module resolution kind is not specified, using 'NodeJs'. +Info 53 [00:01:40.000] Module resolution kind is not specified, using 'Node10'. Info 54 [00:01:41.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 55 [00:01:42.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it. Info 56 [00:01:43.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/src'. Info 57 [00:01:44.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ======== Info 58 [00:01:45.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== -Info 59 [00:01:46.000] Module resolution kind is not specified, using 'NodeJs'. +Info 59 [00:01:46.000] Module resolution kind is not specified, using 'Node10'. Info 60 [00:01:47.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 61 [00:01:48.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it. Info 62 [00:01:49.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/src'. @@ -107,26 +107,26 @@ Info 66 [00:01:53.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info 67 [00:01:54.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info 68 [00:01:55.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info Info 69 [00:01:56.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/file4.ts'. ======== -Info 70 [00:01:57.000] Module resolution kind is not specified, using 'NodeJs'. +Info 70 [00:01:57.000] Module resolution kind is not specified, using 'Node10'. Info 71 [00:01:58.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 72 [00:01:59.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it. Info 73 [00:02:00.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product'. Info 74 [00:02:01.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ======== Info 75 [00:02:02.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/file4.ts'. ======== -Info 76 [00:02:03.000] Module resolution kind is not specified, using 'NodeJs'. +Info 76 [00:02:03.000] Module resolution kind is not specified, using 'Node10'. Info 77 [00:02:04.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 78 [00:02:05.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it. Info 79 [00:02:06.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product'. Info 80 [00:02:07.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== Info 81 [00:02:08.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info Info 82 [00:02:09.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== -Info 83 [00:02:10.000] Module resolution kind is not specified, using 'NodeJs'. +Info 83 [00:02:10.000] Module resolution kind is not specified, using 'Node10'. Info 84 [00:02:11.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 85 [00:02:12.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it. Info 86 [00:02:13.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/test'. Info 87 [00:02:14.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ======== Info 88 [00:02:15.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== -Info 89 [00:02:16.000] Module resolution kind is not specified, using 'NodeJs'. +Info 89 [00:02:16.000] Module resolution kind is not specified, using 'Node10'. Info 90 [00:02:17.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 91 [00:02:18.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it. Info 92 [00:02:19.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/test'. diff --git a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js index f3fb3ce57bcf0..fee44aff29109 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js +++ b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js @@ -84,7 +84,7 @@ Info 12 [00:00:41.000] FileWatcher:: Added:: WatchInfo: /src/projects/common/t Info 13 [00:00:42.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/common 1 undefined Config: /src/projects/common/tsconfig.json WatchType: Wild card directory Info 14 [00:00:43.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/common 1 undefined Config: /src/projects/common/tsconfig.json WatchType: Wild card directory Info 15 [00:00:44.000] ======== Resolving module 'moduleX' from '/src/projects/app/appA.ts'. ======== -Info 16 [00:00:45.000] Module resolution kind is not specified, using 'NodeJs'. +Info 16 [00:00:45.000] Module resolution kind is not specified, using 'Node10'. Info 17 [00:00:46.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 18 [00:00:47.000] Directory '/src/projects/app/node_modules' does not exist, skipping all lookups in it. Info 19 [00:00:48.000] File '/src/projects/node_modules/moduleX/package.json' does not exist. @@ -99,14 +99,14 @@ Info 27 [00:00:56.000] ======== Module name 'moduleX' was successfully resolve Info 28 [00:00:57.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info 29 [00:00:58.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info 30 [00:00:59.000] ======== Resolving module '../common/moduleB' from '/src/projects/app/appB.ts'. ======== -Info 31 [00:01:00.000] Module resolution kind is not specified, using 'NodeJs'. +Info 31 [00:01:00.000] Module resolution kind is not specified, using 'Node10'. Info 32 [00:01:01.000] Loading module as file / folder, candidate module location '/src/projects/common/moduleB', target file types: TypeScript, Declaration. Info 33 [00:01:02.000] File '/src/projects/common/moduleB.ts' exist - use it as a name resolution result. Info 34 [00:01:03.000] ======== Module name '../common/moduleB' was successfully resolved to '/src/projects/common/moduleB.ts'. ======== Info 35 [00:01:04.000] FileWatcher:: Added:: WatchInfo: /src/projects/common/moduleB.ts 500 undefined WatchType: Closed Script info Info 36 [00:01:05.000] ======== Resolving module 'moduleX' from '/src/projects/common/moduleB.ts'. ======== Info 37 [00:01:06.000] Using compiler options of project reference redirect '/src/projects/common/tsconfig.json'. -Info 38 [00:01:07.000] Module resolution kind is not specified, using 'NodeJs'. +Info 38 [00:01:07.000] Module resolution kind is not specified, using 'Node10'. Info 39 [00:01:08.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 40 [00:01:09.000] Directory '/src/projects/common/node_modules' does not exist, skipping all lookups in it. Info 41 [00:01:10.000] File '/src/projects/node_modules/moduleX/package.json' does not exist according to earlier cached lookups. diff --git a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js index 9bd0ee53dc4f0..b8bc1ff01805e 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js +++ b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js @@ -68,27 +68,27 @@ Info 11 [00:00:52.000] FileWatcher:: Added:: WatchInfo: /user/username/project Info 12 [00:00:53.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info Info 13 [00:00:54.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info 14 [00:00:55.000] ======== Resolving module './module1' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 15 [00:00:56.000] Module resolution kind is not specified, using 'NodeJs'. +Info 15 [00:00:56.000] Module resolution kind is not specified, using 'Node10'. Info 16 [00:00:57.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/module1', target file types: TypeScript, Declaration. Info 17 [00:00:58.000] File '/user/username/projects/myproject/product/src/module1.ts' exist - use it as a name resolution result. Info 18 [00:00:59.000] ======== Module name './module1' was successfully resolved to '/user/username/projects/myproject/product/src/module1.ts'. ======== Info 19 [00:01:00.000] ======== Resolving module '../module2' from '/user/username/projects/myproject/product/src/file1.ts'. ======== -Info 20 [00:01:01.000] Module resolution kind is not specified, using 'NodeJs'. +Info 20 [00:01:01.000] Module resolution kind is not specified, using 'Node10'. Info 21 [00:01:02.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/module2', target file types: TypeScript, Declaration. Info 22 [00:01:03.000] File '/user/username/projects/myproject/product/module2.ts' exist - use it as a name resolution result. Info 23 [00:01:04.000] ======== Module name '../module2' was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. ======== Info 24 [00:01:05.000] ======== Resolving module '../module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== -Info 25 [00:01:06.000] Module resolution kind is not specified, using 'NodeJs'. +Info 25 [00:01:06.000] Module resolution kind is not specified, using 'Node10'. Info 26 [00:01:07.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/module1', target file types: TypeScript, Declaration. Info 27 [00:01:08.000] File '/user/username/projects/myproject/product/src/module1.ts' exist - use it as a name resolution result. Info 28 [00:01:09.000] ======== Module name '../module1' was successfully resolved to '/user/username/projects/myproject/product/src/module1.ts'. ======== Info 29 [00:01:10.000] ======== Resolving module '../../module2' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== -Info 30 [00:01:11.000] Module resolution kind is not specified, using 'NodeJs'. +Info 30 [00:01:11.000] Module resolution kind is not specified, using 'Node10'. Info 31 [00:01:12.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/module2', target file types: TypeScript, Declaration. Info 32 [00:01:13.000] File '/user/username/projects/myproject/product/module2.ts' exist - use it as a name resolution result. Info 33 [00:01:14.000] ======== Module name '../../module2' was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. ======== Info 34 [00:01:15.000] ======== Resolving module '../src/module1}' from '/user/username/projects/myproject/product/test/file4.ts'. ======== -Info 35 [00:01:16.000] Module resolution kind is not specified, using 'NodeJs'. +Info 35 [00:01:16.000] Module resolution kind is not specified, using 'Node10'. Info 36 [00:01:17.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/module1}', target file types: TypeScript, Declaration. Info 37 [00:01:18.000] File '/user/username/projects/myproject/product/src/module1}.ts' does not exist. Info 38 [00:01:19.000] File '/user/username/projects/myproject/product/src/module1}.tsx' does not exist. @@ -102,17 +102,17 @@ Info 45 [00:01:26.000] ======== Module name '../src/module1}' was not resolved Info 46 [00:01:27.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info 47 [00:01:28.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info 48 [00:01:29.000] ======== Resolving module '../module2' from '/user/username/projects/myproject/product/test/file4.ts'. ======== -Info 49 [00:01:30.000] Module resolution kind is not specified, using 'NodeJs'. +Info 49 [00:01:30.000] Module resolution kind is not specified, using 'Node10'. Info 50 [00:01:31.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/module2', target file types: TypeScript, Declaration. Info 51 [00:01:32.000] File '/user/username/projects/myproject/product/module2.ts' exist - use it as a name resolution result. Info 52 [00:01:33.000] ======== Module name '../module2' was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. ======== Info 53 [00:01:34.000] ======== Resolving module '../../src/module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== -Info 54 [00:01:35.000] Module resolution kind is not specified, using 'NodeJs'. +Info 54 [00:01:35.000] Module resolution kind is not specified, using 'Node10'. Info 55 [00:01:36.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/module1', target file types: TypeScript, Declaration. Info 56 [00:01:37.000] File '/user/username/projects/myproject/product/src/module1.ts' exist - use it as a name resolution result. Info 57 [00:01:38.000] ======== Module name '../../src/module1' was successfully resolved to '/user/username/projects/myproject/product/src/module1.ts'. ======== Info 58 [00:01:39.000] ======== Resolving module '../../module2' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== -Info 59 [00:01:40.000] Module resolution kind is not specified, using 'NodeJs'. +Info 59 [00:01:40.000] Module resolution kind is not specified, using 'Node10'. Info 60 [00:01:41.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/module2', target file types: TypeScript, Declaration. Info 61 [00:01:42.000] File '/user/username/projects/myproject/product/module2.ts' exist - use it as a name resolution result. Info 62 [00:01:43.000] ======== Module name '../../module2' was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. ======== diff --git a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js index df29fb02aa3b7..6d67c8b82e610 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js +++ b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js @@ -58,12 +58,12 @@ Info 9 [00:00:38.000] FileWatcher:: Added:: WatchInfo: /user/username/project Info 10 [00:00:39.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/module1.ts 500 undefined WatchType: Closed Script info Info 11 [00:00:40.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info 12 [00:00:41.000] ======== Resolving module './module1' from '/user/username/projects/myproject/src/file1.ts'. ======== -Info 13 [00:00:42.000] Module resolution kind is not specified, using 'NodeJs'. +Info 13 [00:00:42.000] Module resolution kind is not specified, using 'Node10'. Info 14 [00:00:43.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/module1', target file types: TypeScript, Declaration. Info 15 [00:00:44.000] File '/user/username/projects/myproject/src/module1.ts' exist - use it as a name resolution result. Info 16 [00:00:45.000] ======== Module name './module1' was successfully resolved to '/user/username/projects/myproject/src/module1.ts'. ======== Info 17 [00:00:46.000] ======== Resolving module '../module2' from '/user/username/projects/myproject/src/file1.ts'. ======== -Info 18 [00:00:47.000] Module resolution kind is not specified, using 'NodeJs'. +Info 18 [00:00:47.000] Module resolution kind is not specified, using 'Node10'. Info 19 [00:00:48.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/module2', target file types: TypeScript, Declaration. Info 20 [00:00:49.000] File '/user/username/projects/myproject/module2.ts' exist - use it as a name resolution result. Info 21 [00:00:50.000] ======== Module name '../module2' was successfully resolved to '/user/username/projects/myproject/module2.ts'. ======== diff --git a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js index ef01a48dbbafa..27a4d01eb0b9e 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js +++ b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js @@ -83,7 +83,7 @@ Info 12 [00:00:41.000] FileWatcher:: Added:: WatchInfo: /src/projects/common/t Info 13 [00:00:42.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/common 1 undefined Config: /src/projects/common/tsconfig.json WatchType: Wild card directory Info 14 [00:00:43.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/common 1 undefined Config: /src/projects/common/tsconfig.json WatchType: Wild card directory Info 15 [00:00:44.000] ======== Resolving module 'moduleX' from '/src/projects/app/appA.ts'. ======== -Info 16 [00:00:45.000] Module resolution kind is not specified, using 'NodeJs'. +Info 16 [00:00:45.000] Module resolution kind is not specified, using 'Node10'. Info 17 [00:00:46.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 18 [00:00:47.000] Directory '/src/projects/app/node_modules' does not exist, skipping all lookups in it. Info 19 [00:00:48.000] File '/src/projects/node_modules/moduleX/package.json' does not exist. @@ -98,14 +98,14 @@ Info 27 [00:00:56.000] ======== Module name 'moduleX' was successfully resolve Info 28 [00:00:57.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info 29 [00:00:58.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info 30 [00:00:59.000] ======== Resolving module '../common/moduleB' from '/src/projects/app/appB.ts'. ======== -Info 31 [00:01:00.000] Module resolution kind is not specified, using 'NodeJs'. +Info 31 [00:01:00.000] Module resolution kind is not specified, using 'Node10'. Info 32 [00:01:01.000] Loading module as file / folder, candidate module location '/src/projects/common/moduleB', target file types: TypeScript, Declaration. Info 33 [00:01:02.000] File '/src/projects/common/moduleB.ts' exist - use it as a name resolution result. Info 34 [00:01:03.000] ======== Module name '../common/moduleB' was successfully resolved to '/src/projects/common/moduleB.ts'. ======== Info 35 [00:01:04.000] FileWatcher:: Added:: WatchInfo: /src/projects/common/moduleB.ts 500 undefined WatchType: Closed Script info Info 36 [00:01:05.000] ======== Resolving module 'moduleX' from '/src/projects/common/moduleB.ts'. ======== Info 37 [00:01:06.000] Using compiler options of project reference redirect '/src/projects/common/tsconfig.json'. -Info 38 [00:01:07.000] Module resolution kind is not specified, using 'NodeJs'. +Info 38 [00:01:07.000] Module resolution kind is not specified, using 'Node10'. Info 39 [00:01:08.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration. Info 40 [00:01:09.000] Directory '/src/projects/common/node_modules' does not exist, skipping all lookups in it. Info 41 [00:01:10.000] Resolution for module 'moduleX' was found in cache from location '/src/projects'. 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 829e229a91c63..4fa6206e80ee2 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 @@ -tests/cases/conformance/jsx/tsxSpreadChildrenInvalidType.tsx(17,12): error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/conformance/jsx/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? tests/cases/conformance/jsx/tsxSpreadChildrenInvalidType.tsx(21,9): error TS2609: JSX spread child must be an array type. @@ -21,7 +21,7 @@ tests/cases/conformance/jsx/tsxSpreadChildrenInvalidType.tsx(21,9): error TS2609 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 'node', or to add aliases to the 'paths' option? +!!! 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? } function TodoList({ todos }: TodoListProps) { return
diff --git a/tests/baselines/reference/typeReferenceDirectives10.trace.json b/tests/baselines/reference/typeReferenceDirectives10.trace.json index 7d52d66a6b411..cec0b4fcd6ea1 100644 --- a/tests/baselines/reference/typeReferenceDirectives10.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives10.trace.json @@ -6,7 +6,7 @@ "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", "======== Resolving module './ref' from '/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration.", "File '/ref.ts' does not exist.", "File '/ref.tsx' does not exist.", diff --git a/tests/baselines/reference/typeReferenceDirectives11.trace.json b/tests/baselines/reference/typeReferenceDirectives11.trace.json index 38aa6ed8a53b2..eb40eeef0db06 100644 --- a/tests/baselines/reference/typeReferenceDirectives11.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives11.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './mod1' from '/mod2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration.", "File '/mod1.ts' exist - use it as a name resolution result.", "======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========", diff --git a/tests/baselines/reference/typeReferenceDirectives12.trace.json b/tests/baselines/reference/typeReferenceDirectives12.trace.json index cd97596ba13b8..50530623c4081 100644 --- a/tests/baselines/reference/typeReferenceDirectives12.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives12.trace.json @@ -1,11 +1,11 @@ [ "======== Resolving module './main' from '/mod2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/main', target file types: TypeScript, Declaration.", "File '/main.ts' exist - use it as a name resolution result.", "======== Module name './main' was successfully resolved to '/main.ts'. ========", "======== Resolving module './mod1' from '/mod2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration.", "File '/mod1.ts' exist - use it as a name resolution result.", "======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========", diff --git a/tests/baselines/reference/typeReferenceDirectives13.trace.json b/tests/baselines/reference/typeReferenceDirectives13.trace.json index 7d52d66a6b411..cec0b4fcd6ea1 100644 --- a/tests/baselines/reference/typeReferenceDirectives13.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives13.trace.json @@ -6,7 +6,7 @@ "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", "======== Resolving module './ref' from '/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration.", "File '/ref.ts' does not exist.", "File '/ref.tsx' does not exist.", diff --git a/tests/baselines/reference/typeReferenceDirectives5.trace.json b/tests/baselines/reference/typeReferenceDirectives5.trace.json index 7d52d66a6b411..cec0b4fcd6ea1 100644 --- a/tests/baselines/reference/typeReferenceDirectives5.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives5.trace.json @@ -6,7 +6,7 @@ "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", "======== Resolving module './ref' from '/app.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration.", "File '/ref.ts' does not exist.", "File '/ref.tsx' does not exist.", diff --git a/tests/baselines/reference/typeReferenceDirectives8.trace.json b/tests/baselines/reference/typeReferenceDirectives8.trace.json index 38aa6ed8a53b2..eb40eeef0db06 100644 --- a/tests/baselines/reference/typeReferenceDirectives8.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives8.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module './mod1' from '/mod2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration.", "File '/mod1.ts' exist - use it as a name resolution result.", "======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========", diff --git a/tests/baselines/reference/typeReferenceDirectives9.trace.json b/tests/baselines/reference/typeReferenceDirectives9.trace.json index cd97596ba13b8..50530623c4081 100644 --- a/tests/baselines/reference/typeReferenceDirectives9.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives9.trace.json @@ -1,11 +1,11 @@ [ "======== Resolving module './main' from '/mod2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/main', target file types: TypeScript, Declaration.", "File '/main.ts' exist - use it as a name resolution result.", "======== Module name './main' was successfully resolved to '/main.ts'. ========", "======== Resolving module './mod1' from '/mod2.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration.", "File '/mod1.ts' exist - use it as a name resolution result.", "======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========", diff --git a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json index b4a6fcf3f916b..396bc1a48e3ef 100644 --- a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json +++ b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'xyz' from '/foo/bar/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", "File '/foo/node_modules/xyz.ts' does not exist.", @@ -19,7 +19,7 @@ "File '/node_modules/xyz.jsx' does not exist.", "======== Module name 'xyz' was not resolved. ========", "======== Resolving module 'pdq' from '/foo/bar/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'pdq' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", "File '/foo/node_modules/pdq.ts' does not exist.", @@ -38,7 +38,7 @@ "File '/node_modules/pdq.jsx' does not exist.", "======== Module name 'pdq' was not resolved. ========", "======== Resolving module 'abc' from '/foo/bar/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'abc' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", "File '/foo/node_modules/abc.ts' does not exist.", diff --git a/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json b/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json index 97cac6a86a6be..d110957a2ec09 100644 --- a/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json +++ b/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'xyz' from '/src/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "File '/node_modules/xyz.ts' does not exist.", diff --git a/tests/baselines/reference/typesVersions.ambientModules.trace.json b/tests/baselines/reference/typesVersions.ambientModules.trace.json index 5822e87dda5ad..40e17aa135ffa 100644 --- a/tests/baselines/reference/typesVersions.ambientModules.trace.json +++ b/tests/baselines/reference/typesVersions.ambientModules.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'ext' from 'tests/cases/conformance/moduleResolution/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at 'tests/cases/conformance/moduleResolution/node_modules/ext/package.json'.", "File 'tests/cases/conformance/moduleResolution/node_modules/ext.ts' does not exist.", @@ -20,7 +20,7 @@ "Resolving real path for 'tests/cases/conformance/moduleResolution/node_modules/ext/ts3.1/index.d.ts', result 'tests/cases/conformance/moduleResolution/node_modules/ext/ts3.1/index.d.ts'.", "======== Module name 'ext' was successfully resolved to 'tests/cases/conformance/moduleResolution/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ========", "======== Resolving module 'ext/other' from 'tests/cases/conformance/moduleResolution/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/moduleResolution/node_modules/ext/package.json' exists according to earlier cached lookups.", "'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'.", diff --git a/tests/baselines/reference/typesVersions.emptyTypes.trace.json b/tests/baselines/reference/typesVersions.emptyTypes.trace.json index 4dbe26804df34..3cfa221497179 100644 --- a/tests/baselines/reference/typesVersions.emptyTypes.trace.json +++ b/tests/baselines/reference/typesVersions.emptyTypes.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'a' from '/b/user.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'a'.", "Resolving module name 'a' relative to base url '/' - '/a'.", "Loading module as file / folder, candidate module location '/a', target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersions.justIndex.trace.json b/tests/baselines/reference/typesVersions.justIndex.trace.json index 20d2e2af4c391..ecb04a7aa8cfb 100644 --- a/tests/baselines/reference/typesVersions.justIndex.trace.json +++ b/tests/baselines/reference/typesVersions.justIndex.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'a' from '/b/user.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'a'.", "Resolving module name 'a' relative to base url '/' - '/a'.", "Loading module as file / folder, candidate module location '/a', target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersions.multiFile.trace.json b/tests/baselines/reference/typesVersions.multiFile.trace.json index c5bc431405bc5..0214999166942 100644 --- a/tests/baselines/reference/typesVersions.multiFile.trace.json +++ b/tests/baselines/reference/typesVersions.multiFile.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'ext' from 'tests/cases/conformance/moduleResolution/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at 'tests/cases/conformance/moduleResolution/node_modules/ext/package.json'.", "File 'tests/cases/conformance/moduleResolution/node_modules/ext.ts' does not exist.", @@ -20,7 +20,7 @@ "Resolving real path for 'tests/cases/conformance/moduleResolution/node_modules/ext/ts3.1/index.d.ts', result 'tests/cases/conformance/moduleResolution/node_modules/ext/ts3.1/index.d.ts'.", "======== Module name 'ext' was successfully resolved to 'tests/cases/conformance/moduleResolution/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ========", "======== Resolving module 'ext/other' from 'tests/cases/conformance/moduleResolution/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/moduleResolution/node_modules/ext/package.json' exists according to earlier cached lookups.", "'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'.", diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json index 4f58ad8cbb1a8..8f2d2637d253e 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'ext' from 'tests/cases/conformance/declarationEmit/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json'.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.", @@ -20,7 +20,7 @@ "Resolving real path for 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts', result 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts'.", "======== Module name 'ext' was successfully resolved to 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ========", "======== Resolving module 'ext/other' from 'tests/cases/conformance/declarationEmit/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.", "'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'.", diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json index 90fb4f4bcd635..dae91f88b6ef1 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'ext' from 'tests/cases/conformance/declarationEmit/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json'.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.", @@ -20,7 +20,7 @@ "Resolving real path for 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts', result 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts'.", "======== Module name 'ext' was successfully resolved to 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ========", "======== Resolving module 'ext/other' from 'tests/cases/conformance/declarationEmit/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.", "'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'.", diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json index 710ce7f903f49..455dbcf182ea8 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '../' from 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location 'tests/cases/conformance/declarationEmit/node_modules/ext/', target file types: TypeScript, Declaration.", "Found 'package.json' at 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json'.", "'package.json' has a 'typesVersions' field with version-specific path mappings.", @@ -16,7 +16,7 @@ "File 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts' exist - use it as a name resolution result.", "======== Module name '../' was successfully resolved to 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/s3.1/index.d.ts@1.0.0'. ========", "======== Resolving module '../other' from 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/other.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location 'tests/cases/conformance/declarationEmit/node_modules/ext/other', target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/other.ts' does not exist.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/other.tsx' does not exist.", @@ -24,7 +24,7 @@ "File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.", "======== Module name '../other' was successfully resolved to 'tests/cases/conformance/declarationEmit/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ========", "======== Resolving module 'ext' from 'tests/cases/conformance/declarationEmit/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.", @@ -43,7 +43,7 @@ "Resolving real path for 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts', result 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts'.", "======== Module name 'ext' was successfully resolved to 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ========", "======== Resolving module 'ext/other' from 'tests/cases/conformance/declarationEmit/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.", "'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'.", diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json index 4df7dc944eeb1..94c3e9ac38153 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module '../other' from 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location 'tests/cases/conformance/declarationEmit/node_modules/ext/other', target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/other.ts' does not exist.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/other.tsx' does not exist.", @@ -8,7 +8,7 @@ "Found 'package.json' at 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json'.", "======== Module name '../other' was successfully resolved to 'tests/cases/conformance/declarationEmit/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ========", "======== Resolving module 'ext' from 'tests/cases/conformance/declarationEmit/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.", @@ -28,7 +28,7 @@ "Resolving real path for 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts', result 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts'.", "======== Module name 'ext' was successfully resolved to 'tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ========", "======== Resolving module 'ext/other' from 'tests/cases/conformance/declarationEmit/main.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.", "'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'.", diff --git a/tests/baselines/reference/typingsLookup4.trace.json b/tests/baselines/reference/typingsLookup4.trace.json index 1f482d4e02062..e88316ee6a51f 100644 --- a/tests/baselines/reference/typingsLookup4.trace.json +++ b/tests/baselines/reference/typingsLookup4.trace.json @@ -1,6 +1,6 @@ [ "======== Resolving module 'jquery' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/jquery.ts' does not exist.", "File '/node_modules/jquery.tsx' does not exist.", @@ -13,7 +13,7 @@ "Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'.", "======== Module name 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts'. ========", "======== Resolving module 'kquery' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'kquery' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/kquery.ts' does not exist.", "File '/node_modules/kquery.tsx' does not exist.", @@ -30,7 +30,7 @@ "Resolving real path for '/node_modules/@types/kquery/kquery.d.ts', result '/node_modules/@types/kquery/kquery.d.ts'.", "======== Module name 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts'. ========", "======== Resolving module 'lquery' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'lquery' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/lquery.ts' does not exist.", "File '/node_modules/lquery.tsx' does not exist.", @@ -45,7 +45,7 @@ "Resolving real path for '/node_modules/@types/lquery/lquery.ts', result '/node_modules/@types/lquery/lquery.ts'.", "======== Module name 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts'. ========", "======== Resolving module 'mquery' from '/a.ts'. ========", - "Module resolution kind is not specified, using 'NodeJs'.", + "Module resolution kind is not specified, using 'Node10'.", "Loading module 'mquery' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/mquery.ts' does not exist.", "File '/node_modules/mquery.tsx' does not exist.", diff --git a/tests/baselines/reference/umdDependencyComment2.errors.txt b/tests/baselines/reference/umdDependencyComment2.errors.txt index d79d74832ec72..06b6ca03d8f0a 100644 --- a/tests/baselines/reference/umdDependencyComment2.errors.txt +++ b/tests/baselines/reference/umdDependencyComment2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/umdDependencyComment2.ts(3,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/umdDependencyComment2.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/compiler/umdDependencyComment2.ts(3,21): error TS2792: Cannot find m import m1 = require("m2") ~~~~ -!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? m1.f(); \ No newline at end of file diff --git a/tests/baselines/reference/umdDependencyCommentName1.errors.txt b/tests/baselines/reference/umdDependencyCommentName1.errors.txt index 0c88a811e5169..8df8d9863e320 100644 --- a/tests/baselines/reference/umdDependencyCommentName1.errors.txt +++ b/tests/baselines/reference/umdDependencyCommentName1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/umdDependencyCommentName1.ts(3,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/umdDependencyCommentName1.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/compiler/umdDependencyCommentName1.ts(3,21): error TS2792: Cannot fi import m1 = require("m2") ~~~~ -!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? m1.f(); \ No newline at end of file diff --git a/tests/baselines/reference/umdDependencyCommentName2.errors.txt b/tests/baselines/reference/umdDependencyCommentName2.errors.txt index 9293b25d301c1..d419fba870ec7 100644 --- a/tests/baselines/reference/umdDependencyCommentName2.errors.txt +++ b/tests/baselines/reference/umdDependencyCommentName2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/umdDependencyCommentName2.ts(5,21): error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? ==== tests/cases/compiler/umdDependencyCommentName2.ts (1 errors) ==== @@ -8,6 +8,6 @@ tests/cases/compiler/umdDependencyCommentName2.ts(5,21): error TS2792: Cannot fi import m1 = require("m2") ~~~~ -!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'm2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? m1.f(); \ No newline at end of file diff --git a/tests/baselines/reference/undeclaredModuleError.errors.txt b/tests/baselines/reference/undeclaredModuleError.errors.txt index 46145bde49d33..cbabbae38f601 100644 --- a/tests/baselines/reference/undeclaredModuleError.errors.txt +++ b/tests/baselines/reference/undeclaredModuleError.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/undeclaredModuleError.ts(1,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +tests/cases/compiler/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? tests/cases/compiler/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'. tests/cases/compiler/undeclaredModuleError.ts(11,41): error TS2304: Cannot find name 'IDoNotExist'. @@ -7,7 +7,7 @@ tests/cases/compiler/undeclaredModuleError.ts(11,41): error TS2304: Cannot find ==== tests/cases/compiler/undeclaredModuleError.ts (3 errors) ==== import fs = require('fs'); ~~~~ -!!! error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +!!! error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 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[]) {}