Deprecate --moduleResolution node10 (#62338)

This commit is contained in:
Andrew Branch authored and GitHub committed 2025-08-27 13:51:20 -07:00
1 parent 3eb7b6a179
commit 7956c00166
747 files changed
+14506 -7372

No files matched your search

+2 -1
View File
@@ -338,6 +338,7 @@ import {
getMembersOfDeclaration,
getModifiers,
getModuleInstanceState,
getModuleSpecifierOfBareOrAccessedRequire,
getNameFromImportAttribute,
getNameFromIndexInfo,
getNameOfDeclaration,
@@ -4713,7 +4714,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
? location
: (isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : undefined)?.name ||
(isLiteralImportTypeNode(location) ? location : undefined)?.argument.literal ||
(isVariableDeclaration(location) && location.initializer && isRequireCall(location.initializer, /*requireStringLiteralLikeArgument*/ true) ? location.initializer.arguments[0] : undefined) ||
isVariableDeclarationInitializedToBareOrAccessedRequire(location) && getModuleSpecifierOfBareOrAccessedRequire(location) ||
findAncestor(location, isImportCall)?.arguments[0] ||
findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))?.moduleSpecifier ||
findAncestor(location, isExternalModuleImportEqualsDeclaration)?.moduleReference.expression;
+7 -4
View File
@@ -4436,10 +4436,7 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro
function getIgnoreDeprecationsVersion(): Version {
const ignoreDeprecations = options.ignoreDeprecations;
if (ignoreDeprecations) {
// While we could do Version.tryParse here to support any version,
// for now, only allow "5.0". We aren't planning on deprecating anything
// until 6.0.
if (ignoreDeprecations === "5.0") {
if (ignoreDeprecations === "5.0" || ignoreDeprecations === "6.0") {
return new Version(ignoreDeprecations);
}
reportInvalidIgnoreDeprecations();
@@ -4527,6 +4524,12 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro
createDeprecatedDiagnostic("preserveValueImports", /*value*/ undefined, "verbatimModuleSyntax");
}
});
checkDeprecations("6.0", "7.0", createDiagnostic, createDeprecatedDiagnostic => {
if (options.moduleResolution === ModuleResolutionKind.Node10) {
createDeprecatedDiagnostic("moduleResolution", "node10");
}
});
}
function verifyDeprecatedProjectReference(ref: ProjectReference, parentFile: JsonSourceFile | undefined, index: number) {
+3
View File
@@ -7330,6 +7330,9 @@ export enum ModuleResolutionKind {
* Use the new name or consider switching to a modern module resolution target.
*/
NodeJs = 2,
/**
* @deprecated
*/
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.
+15 -3
View File
@@ -3824,6 +3824,20 @@ export function isBindingElementOfBareOrAccessedRequire(node: Node): node is Bin
return isBindingElement(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent);
}
/** @internal */
export function getModuleSpecifierOfBareOrAccessedRequire(node: VariableDeclarationInitializedTo<RequireOrImportCall | AccessExpression>): StringLiteralLike | undefined {
if (isVariableDeclarationInitializedToRequire(node)) {
return node.initializer.arguments[0];
}
if (isVariableDeclarationInitializedToBareOrAccessedRequire(node)) {
const leftmost = getLeftmostAccessExpression(node.initializer);
if (isRequireCall(leftmost, /*requireStringLiteralLikeArgument*/ true)) {
return leftmost.arguments[0];
}
}
return undefined;
}
function isVariableDeclarationInitializedWithRequireHelper(node: Node, allowAccessedRequire: boolean) {
return isVariableDeclaration(node) &&
!!node.initializer &&
@@ -8992,9 +9006,6 @@ const _computedOptions = createComputedCompilerOptions({
let moduleResolution = compilerOptions.moduleResolution;
if (moduleResolution === undefined) {
switch (_computedOptions.module.computeValue(compilerOptions)) {
case ModuleKind.CommonJS:
moduleResolution = ModuleResolutionKind.Node10;
break;
case ModuleKind.Node16:
case ModuleKind.Node18:
case ModuleKind.Node20:
@@ -9003,6 +9014,7 @@ const _computedOptions = createComputedCompilerOptions({
case ModuleKind.NodeNext:
moduleResolution = ModuleResolutionKind.NodeNext;
break;
case ModuleKind.CommonJS:
case ModuleKind.Preserve:
moduleResolution = ModuleResolutionKind.Bundler;
break;
+1
View File
@@ -3269,6 +3269,7 @@ export const enum ModuleResolutionKind {
Node = "node",
/** @deprecated Renamed to `Node10` */
NodeJs = "node",
/** @deprecated */
Node10 = "node10",
Node16 = "node16",
NodeNext = "nodenext",
+4 -4
View File
@@ -4185,10 +4185,6 @@ function getCompletionData(
return charactersFuzzyMatchInString(symbolName, lowerCaseTokenText);
},
(info, symbolName, isFromAmbientModule, exportMapKey) => {
if (detailsEntryId && !some(info, i => detailsEntryId.source === stripQuotes(i.moduleSymbol.name))) {
return;
}
// Do a relatively cheap check to bail early if all re-exports are non-importable
// due to file location or package.json dependency filtering. For non-node16+
// module resolution modes, getting past this point guarantees that we'll be
@@ -4217,6 +4213,10 @@ function getCompletionData(
({ exportInfo = info[0], moduleSpecifier } = result);
}
if (detailsEntryId && (detailsEntryId.source !== moduleSpecifier && !some(info, i => detailsEntryId.source === stripQuotes(i.moduleSymbol.name)))) {
return;
}
const isDefaultExport = exportInfo.exportKind === ExportKind.Default;
const symbol = isDefaultExport && getLocalSymbolForExportDefault(Debug.checkDefined(exportInfo.symbol)) || Debug.checkDefined(exportInfo.symbol);
+7 -4
View File
@@ -1067,8 +1067,9 @@ function getCompletionEntriesForNonRelativeModules(
if (tryFileExists(host, packageFile)) {
const packageJson = readJson(packageFile, host);
const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : "");
exportsOrImportsLookup((packageJson as MapLike<unknown>).exports, fragmentSubpath, packageDirectory, /*isExports*/ true, /*isImports*/ false);
return;
if (exportsOrImportsLookup((packageJson as MapLike<unknown>).exports, fragmentSubpath, packageDirectory, /*isExports*/ true, /*isImports*/ false)) {
return;
}
}
return nodeModulesDirectoryOrImportsLookup(ancestor);
};
@@ -1079,9 +1080,10 @@ function getCompletionEntriesForNonRelativeModules(
return arrayFrom(result.values());
function exportsOrImportsLookup(lookupTable: unknown, fragment: string, baseDirectory: string, isExports: boolean, isImports: boolean) {
/** Returns true if the search should stop */
function exportsOrImportsLookup(lookupTable: unknown, fragment: string, baseDirectory: string, isExports: boolean, isImports: boolean): boolean {
if (typeof lookupTable !== "object" || lookupTable === null) { // eslint-disable-line no-restricted-syntax
return; // null lookupTable or entrypoint only
return lookupTable !== undefined; // null lookupTable or entrypoint only
}
const keys = getOwnKeys(lookupTable as MapLike<unknown>);
const conditions = getConditions(compilerOptions, mode);
@@ -1105,6 +1107,7 @@ function getCompletionEntriesForNonRelativeModules(
},
comparePatternKeys,
);
return true;
}
}
@@ -288,7 +288,7 @@ describe("unittests:: tscWatch:: watchEnvironment:: tsc-watch with different pol
sys: () => {
const configFile: File = {
path: `/user/username/projects/myproject/tsconfig.json`,
content: "{}",
content: `{ "compilerOptions": { "moduleResolution": "node10" } }`,
};
const file1: File = {
path: `/user/username/projects/myproject/src/file1.ts`,
@@ -188,6 +188,11 @@ describe("unittests:: tsserver:: autoImportProvider::", () => {
// Create auto import provider project, ensure still !session.getProjectService().pendingEnsureProjectForOpenFiles
host.writeFile(packageJson.path, packageJson.content);
// package.json was watched in --moduleResolution bundler
assert.isTrue(session.getProjectService().pendingEnsureProjectForOpenFiles);
host.runQueuedTimeoutCallbacks();
assert.isFalse(session.getProjectService().pendingEnsureProjectForOpenFiles);
session.host.baselineHost("Before getPackageJsonAutoImportProvider");
hostProject.getPackageJsonAutoImportProvider();
assert.isFalse(session.getProjectService().pendingEnsureProjectForOpenFiles);
@@ -49,7 +49,7 @@ const indexFile: File = {
const tsconfigFile: File = {
path: "/home/src/project/project/tsconfig.json",
content: `{ "compilerOptions": { "module": "commonjs" } }`,
content: `{ "compilerOptions": { "module": "commonjs", "moduleResolution": "node10" } }`,
};
const packageJsonFile: File = {
@@ -45,7 +45,7 @@ describe("unittests:: tsserver:: getEditsForFileRename::", () => {
getDefaultLibFileName: options => ts.getDefaultLibFileName(options),
readFile: path => host.readFile(path),
fileExists: path => host.fileExists(path),
resolveModuleNames: (moduleNames, containingFile) => moduleNames.map(name => ts.resolveModuleName(name, containingFile, options, lsHost, moduleResolutionCache).resolvedModule),
resolveModuleNames: (moduleNames, containingFile) => moduleNames.map(name => ts.resolveModuleName(name, containingFile, options, lsHost, moduleResolutionCache, /*redirectedReference*/ undefined, ts.ModuleKind.CommonJS).resolvedModule),
getResolvedModuleWithFailedLookupLocationsFromCache: (moduleName, containingFile, mode) => moduleResolutionCache.getFromDirectoryCache(moduleName, mode, ts.getDirectoryPath(containingFile), /*redirectedReference*/ undefined),
};
const service = ts.createLanguageService(lsHost);
@@ -2472,7 +2472,7 @@ describe("unittests:: tsserver:: typingsInstaller:: recomputing resolutions of u
ts.server.updateProjectIfDirty(project);
const program = project.getLanguageService().getProgram()!;
const sourceFile = program.getSourceFileByPath(appPath)!;
const foooResolution = program.getResolvedModule(sourceFile, "fooo", /*mode*/ undefined)!.resolvedModule!;
const foooResolution = program.getResolvedModule(sourceFile, "fooo", ts.ModuleKind.CommonJS)!.resolvedModule!;
project.writeLog(`Resolution from : ${sourceFile.fileName} for "fooo" goes to: ${jsonToReadableText(foooResolution)}`);
return foooResolution;
}
@@ -1,32 +0,0 @@
/c.ts(1,16): error TS2307: Cannot find module './thisfiledoesnotexist.ts' or its corresponding type declarations.
==== /ts.ts (0 errors) ====
export {};
==== /tsx.tsx (0 errors) ====
export {};
==== /dts.d.ts (0 errors) ====
export {};
==== /b.ts (0 errors) ====
import {} from "./ts.js";
import {} from "./ts.ts";
import type {} from "./ts.d.ts";
import {} from "./tsx.js";
import {} from "./tsx.jsx";
import {} from "./tsx.ts";
import {} from "./tsx.tsx";
import type {} from "./tsx.d.ts";
import {} from "./dts.js";
import {} from "./dts.ts";
import type {} from "./dts.d.ts";
==== /c.ts (1 errors) ====
import {} from "./thisfiledoesnotexist.ts";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2307: Cannot find module './thisfiledoesnotexist.ts' or its corresponding type declarations.
+4
View File
@@ -2530,6 +2530,7 @@ declare namespace ts {
Node = "node",
/** @deprecated Renamed to `Node10` */
NodeJs = "node",
/** @deprecated */
Node10 = "node10",
Node16 = "node16",
NodeNext = "nodenext",
@@ -6958,6 +6959,9 @@ declare namespace ts {
* Use the new name or consider switching to a modern module resolution target.
*/
NodeJs = 2,
/**
* @deprecated
*/
Node10 = 2,
Node16 = 3,
NodeNext = 99,
@@ -4,8 +4,15 @@
"File '/a/package.json' does not exist.",
"File '/package.json' does not exist.",
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/d/e/package.json' does not exist.",
"File '/a/b/c/d/package.json' does not exist.",
"File '/a/b/c/package.json' does not exist.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
@@ -16,8 +23,13 @@
"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: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/package.json' does not exist according to earlier cached lookups.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"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'. ========",
@@ -4,8 +4,13 @@
"File '/a/package.json' does not exist.",
"File '/package.json' does not exist.",
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/package.json' does not exist.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
"File '/a/b/node_modules/foo.ts' does not exist.",
@@ -14,8 +19,15 @@
"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: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/d/e/package.json' does not exist.",
"File '/a/b/c/d/package.json' does not exist.",
"File '/a/b/c/package.json' does not exist according to earlier cached lookups.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
@@ -4,8 +4,15 @@
"File '/a/package.json' does not exist.",
"File '/package.json' does not exist.",
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/d/e/package.json' does not exist.",
"File '/a/b/c/d/package.json' does not exist.",
"File '/a/b/c/package.json' does not exist.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
@@ -16,8 +23,12 @@
"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: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"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'. ========",
@@ -1,7 +1,14 @@
[
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/d/e/package.json' does not exist.",
"File '/a/b/c/d/package.json' does not exist.",
"File '/a/b/c/package.json' does not exist.",
"File '/a/b/package.json' does not exist.",
"File '/a/package.json' does not exist.",
"File '/package.json' does not exist.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
@@ -9,8 +16,7 @@
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/node_modules' does not exist, skipping all lookups in it.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
@@ -19,8 +25,13 @@
"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: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/package.json' does not exist according to earlier cached lookups.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Resolution for module 'foo' was found in cache from location '/a/b/c'.",
"======== Module name 'foo' was not resolved. ========",
@@ -1,22 +1,33 @@
[
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/package.json' does not exist.",
"File '/a/b/package.json' does not exist.",
"File '/a/package.json' does not exist.",
"File '/package.json' does not exist.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/node_modules' does not exist, skipping all lookups in it.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/node_modules' does not exist, skipping all lookups in it.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name 'foo' was not resolved. ========",
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/c/d/e/package.json' does not exist.",
"File '/a/b/c/d/package.json' does not exist.",
"File '/a/b/c/package.json' does not exist according to earlier cached lookups.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
@@ -0,0 +1,18 @@
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
==== A:/bar.ts (0 errors) ====
import {z} from "./foo";
export var x = z + z;
==== A:/foo.ts (0 errors) ====
import {pi} from "B:/baz";
export var i = Math.sqrt(-1);
export var z = pi * pi;
==== B:/baz.ts (0 errors) ====
import {x} from "A:/bar";
import {i} from "A:/foo";
export var pi = Math.PI;
export var y = x * i;
@@ -293,7 +293,7 @@
"name": "1"
},
"item": {
"flags": 1,
"flags": 9,
"isGlobalCompletion": true,
"isMemberCompletion": false,
"isNewIdentifierLocation": false,
@@ -3947,6 +3947,7 @@
"data": {
"exportName": "as",
"exportMapKey": "2 * as ",
"moduleSpecifier": "./a",
"fileName": "/a.ts"
},
"displayParts": [
@@ -4199,7 +4200,7 @@
"name": "2"
},
"item": {
"flags": 1,
"flags": 9,
"isGlobalCompletion": true,
"isMemberCompletion": false,
"isNewIdentifierLocation": false,
@@ -7853,6 +7854,7 @@
"data": {
"exportName": "as",
"exportMapKey": "2 * as ",
"moduleSpecifier": "./a",
"fileName": "/a.ts"
},
"displayParts": [
@@ -293,7 +293,7 @@
"name": "1"
},
"item": {
"flags": 1,
"flags": 9,
"isGlobalCompletion": true,
"isMemberCompletion": false,
"isNewIdentifierLocation": false,
@@ -3947,6 +3947,7 @@
"data": {
"exportName": "satisfies",
"exportMapKey": "9 * satisfies ",
"moduleSpecifier": "./a",
"fileName": "/a.ts"
},
"displayParts": [
@@ -4199,7 +4200,7 @@
"name": "2"
},
"item": {
"flags": 1,
"flags": 9,
"isGlobalCompletion": true,
"isMemberCompletion": false,
"isNewIdentifierLocation": false,
@@ -7853,6 +7854,7 @@
"data": {
"exportName": "satisfies",
"exportMapKey": "9 * satisfies ",
"moduleSpecifier": "./a",
"fileName": "/a.ts"
},
"displayParts": [
@@ -4,7 +4,6 @@
"target": "es5",
"module": "commonjs",
"strict": true,
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
@@ -26,7 +26,8 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
"resolvePackageJsonExports": false,
"resolvePackageJsonImports": false
},
"include": [
"./src/**/*"
@@ -5,10 +5,6 @@
"moduleResolution": "nodenext",
"moduleDetection": "force",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolvePackageJsonExports": true,
"resolvePackageJsonImports": true,
"resolveJsonModule": true,
"useDefineForClassFields": true
}
}
@@ -1,6 +1,10 @@
{
"compilerOptions": {
"module": "none",
"moduleResolution": "classic"
"moduleResolution": "classic",
"allowSyntheticDefaultImports": false,
"resolvePackageJsonExports": false,
"resolvePackageJsonImports": false,
"resolveJsonModule": false
}
}
@@ -1,5 +1,9 @@
{
"compilerOptions": {
"moduleResolution": "node10"
"moduleResolution": "node10",
"allowSyntheticDefaultImports": false,
"resolvePackageJsonExports": false,
"resolvePackageJsonImports": false,
"resolveJsonModule": false
}
}
@@ -1,7 +1,9 @@
[
"======== Resolving module 'foo/use' from '/index.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
"'package.json' does not have a 'typesVersions' field.",
@@ -12,8 +14,10 @@
"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 'Node10'.",
"Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/a/package.json' does not exist.",
"File '/node_modules/a.ts' does not exist.",
@@ -26,8 +30,9 @@
"======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ========",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"======== Resolving module './index' from '/node_modules/foo/use.d.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/node_modules/foo/index.ts' does not exist.",
"File '/node_modules/foo/index.tsx' does not exist.",
"File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
@@ -36,10 +41,14 @@
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"File '/node_modules/a/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/package.json' does not exist.",
"File '/package.json' does not exist.",
"File '/package.json' does not exist according to earlier cached lookups.",
"======== Resolving module 'foo' from '/node_modules/a/index.d.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/node_modules/a/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/a/node_modules/foo/package.json'.",
"File '/node_modules/a/node_modules/foo.ts' does not exist.",
@@ -1,7 +1,9 @@
[
"======== Resolving module '@foo/bar/use' from '/index.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/@foo/bar/package.json'.",
"'package.json' does not have a 'typesVersions' field.",
@@ -12,8 +14,10 @@
"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 'Node10'.",
"Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/a/package.json' does not exist.",
"File '/node_modules/a.ts' does not exist.",
@@ -26,8 +30,9 @@
"======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ========",
"File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups.",
"======== Resolving module './index' from '/node_modules/@foo/bar/use.d.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/node_modules/@foo/bar/index.ts' does not exist.",
"File '/node_modules/@foo/bar/index.tsx' does not exist.",
"File '/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result.",
@@ -36,10 +41,14 @@
"File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups.",
"File '/node_modules/a/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/package.json' does not exist.",
"File '/package.json' does not exist.",
"File '/package.json' does not exist according to earlier cached lookups.",
"======== Resolving module '@foo/bar' from '/node_modules/a/index.d.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/node_modules/a/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/a/node_modules/@foo/bar/package.json'.",
"File '/node_modules/a/node_modules/@foo/bar.ts' does not exist.",
@@ -1,16 +1,6 @@
main.ts(15,1): error TS2693: 'z1' only refers to a type, but is being used as a value here.
main.ts(21,4): error TS2339: Property 'a' does not exist on type '() => any'.
main.ts(23,4): error TS2339: Property 'a' does not exist on type 'typeof Foo'.
main.ts(27,8): error TS1259: Module '"interface"' can only be default-imported using the 'esModuleInterop' flag
main.ts(28,8): error TS1259: Module '"variable"' can only be default-imported using the 'esModuleInterop' flag
main.ts(29,8): error TS1259: Module '"interface-variable"' can only be default-imported using the 'esModuleInterop' flag
main.ts(30,8): error TS1259: Module '"module"' can only be default-imported using the 'esModuleInterop' flag
main.ts(31,8): error TS1259: Module '"interface-module"' can only be default-imported using the 'esModuleInterop' flag
main.ts(32,8): error TS1259: Module '"variable-module"' can only be default-imported using the 'esModuleInterop' flag
main.ts(33,8): error TS1259: Module '"function"' can only be default-imported using the 'esModuleInterop' flag
main.ts(34,8): error TS1259: Module '"function-module"' can only be default-imported using the 'esModuleInterop' flag
main.ts(35,8): error TS1259: Module '"class"' can only be default-imported using the 'esModuleInterop' flag
main.ts(36,8): error TS1259: Module '"class-module"' can only be default-imported using the 'esModuleInterop' flag
main.ts(39,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
main.ts(45,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
main.ts(47,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
@@ -41,7 +31,7 @@ main.ts(105,15): error TS2498: Module '"class"' uses 'export =' and cannot be us
main.ts(106,15): error TS2498: Module '"class-module"' uses 'export =' and cannot be used with 'export *'.
==== main.ts (41 errors) ====
==== main.ts (31 errors) ====
/// <reference path="modules.d.ts"/>
// import-equals
@@ -75,45 +65,15 @@ main.ts(106,15): error TS2498: Module '"class-module"' uses 'export =' and canno
// default import
import x1 from "interface";
~~
!!! error TS1259: Module '"interface"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:6:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x2 from "variable";
~~
!!! error TS1259: Module '"variable"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:14:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x3 from "interface-variable";
~~
!!! error TS1259: Module '"interface-variable"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:26:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x4 from "module";
~~
!!! error TS1259: Module '"module"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:34:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x5 from "interface-module";
~~
!!! error TS1259: Module '"interface-module"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:46:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x6 from "variable-module";
~~
!!! error TS1259: Module '"variable-module"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:60:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x7 from "function";
~~
!!! error TS1259: Module '"function"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:65:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x8 from "function-module";
~~
!!! error TS1259: Module '"function-module"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:74:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x9 from "class";
~~
!!! error TS1259: Module '"class"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:82:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
import x0 from "class-module";
~~
!!! error TS1259: Module '"class-module"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 modules.d.ts:94:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
// namespace import
import * as y1 from "interface";
@@ -130,40 +130,40 @@ import x1 from "interface";
> : ^^^
import x2 from "variable";
>x2 : any
> : ^^^
>x2 : { a: number; b: number; }
> : ^^^^^ ^^^^^ ^^^
import x3 from "interface-variable";
>x3 : any
> : ^^^
>x3 : { a: number; b: number; }
> : ^^^^^ ^^^^^ ^^^
import x4 from "module";
>x4 : any
> : ^^^
>x4 : typeof z4
> : ^^^^^^^^^
import x5 from "interface-module";
>x5 : any
> : ^^^
>x5 : typeof z5
> : ^^^^^^^^^
import x6 from "variable-module";
>x6 : any
> : ^^^
>x6 : { a: number; b: number; }
> : ^^^^^ ^^^^^ ^^^
import x7 from "function";
>x7 : any
> : ^^^
>x7 : () => any
> : ^^^^^^^^^
import x8 from "function-module";
>x8 : any
> : ^^^
>x8 : typeof z8
> : ^^^^^^^^^
import x9 from "class";
>x9 : any
> : ^^^
>x9 : typeof z9
> : ^^^^^^^^^
import x0 from "class-module";
>x0 : any
> : ^^^
>x0 : typeof z0
> : ^^^^^^^^^
// namespace import
import * as y1 from "interface";
@@ -1,12 +0,0 @@
es6ImportDefaultBindingInEs5_1.ts(1,8): error TS1259: Module '"es6ImportDefaultBindingInEs5_0"' can only be default-imported using the 'esModuleInterop' flag
==== es6ImportDefaultBindingInEs5_0.ts (0 errors) ====
var a = 10;
export = a;
==== es6ImportDefaultBindingInEs5_1.ts (1 errors) ====
import defaultBinding from "./es6ImportDefaultBindingInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1259: Module '"es6ImportDefaultBindingInEs5_0"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 es6ImportDefaultBindingInEs5_0.ts:2:1: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
@@ -13,6 +13,6 @@ export = a;
=== es6ImportDefaultBindingInEs5_1.ts ===
import defaultBinding from "./es6ImportDefaultBindingInEs5_0";
>defaultBinding : any
> : ^^^
>defaultBinding : number
> : ^^^^^^
@@ -0,0 +1,17 @@
imp.ts(2,5): error TS2339: Property 'toExponential' does not exist on type '{ greeting: string; default: number; }'.
==== exp.ts (0 errors) ====
var x = {
"greeting": "hello, world",
"default": 42
};
export = x
==== imp.ts (1 errors) ====
import foo from "./exp";
foo.toExponential(2);
~~~~~~~~~~~~~
!!! error TS2339: Property 'toExponential' does not exist on type '{ greeting: string; default: number; }'.
@@ -20,7 +20,5 @@ import foo from "./exp";
>foo : Symbol(foo, Decl(imp.ts, 0, 6))
foo.toExponential(2);
>foo.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --))
>foo : Symbol(foo, Decl(imp.ts, 0, 6))
>toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --))
@@ -27,18 +27,18 @@ export = x
=== imp.ts ===
import foo from "./exp";
>foo : number
> : ^^^^^^
>foo : { greeting: string; default: number; }
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
foo.toExponential(2);
>foo.toExponential(2) : string
> : ^^^^^^
>foo.toExponential : (fractionDigits?: number) => string
> : ^ ^^^ ^^^^^
>foo : number
> : ^^^^^^
>toExponential : (fractionDigits?: number) => string
> : ^ ^^^ ^^^^^
>foo.toExponential(2) : any
> : ^^^
>foo.toExponential : any
> : ^^^
>foo : { greeting: string; default: number; }
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>toExponential : any
> : ^^^
>2 : 2
> : ^
@@ -1,25 +0,0 @@
//// [tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts] ////
=== /project/a.js ===
export default "a.js";
=== /project/a.js.js ===
export default "a.js.js";
=== /project/dir/index.ts ===
export default "dir/index.ts";
=== /project/dir.js ===
export default "dir.js";
=== /project/b.ts ===
import a from "./a.js";
>a : Symbol(a, Decl(b.ts, 0, 6))
import dir from "./dir";
>dir : Symbol(dir, Decl(b.ts, 1, 6))
@@ -1,27 +0,0 @@
//// [tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts] ////
=== /project/a.js ===
export default "a.js";
=== /project/a.js.js ===
export default "a.js.js";
=== /project/dir/index.ts ===
export default "dir/index.ts";
=== /project/dir.js ===
export default "dir.js";
=== /project/b.ts ===
import a from "./a.js";
>a : "a.js"
> : ^^^^^^
import dir from "./dir";
>dir : "dir/index.ts"
> : ^^^^^^^^^^^^^^
@@ -10,12 +10,12 @@ export = async function() {
> : ^^^^^^^^^^^^^^^^^^^
const something = await import("./something");
>something : 42
> : ^^
>await import("./something") : 42
> : ^^
>import("./something") : Promise<42>
> : ^^^^^^^^^^^
>something : { default: 42; }
> : ^^^^^^^^^^^^^^^^
>await import("./something") : { default: 42; }
> : ^^^^^^^^^^^^^^^^
>import("./something") : Promise<{ default: 42; }>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^
>"./something" : "./something"
> : ^^^^^^^^^^^^^
@@ -1,25 +1,29 @@
[
"======== Resolving module '.' from '/a/test.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/a/package.json' does not exist.",
"File '/a/index.ts' exists - use it as a name resolution result.",
"======== Module name '.' was successfully resolved to '/a/index.ts'. ========",
"======== Resolving module './' from '/a/test.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/a/index.ts' exists - use it as a name resolution result.",
"======== Module name './' was successfully resolved to '/a/index.ts'. ========",
"======== Resolving module '..' from '/a/b/test.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/a/index.ts' exists - use it as a name resolution result.",
"======== Module name '..' was successfully resolved to '/a/index.ts'. ========",
"======== Resolving module '../' from '/a/b/test.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/a/index.ts' exists - use it as a name resolution result.",
"======== Module name '../' was successfully resolved to '/a/index.ts'. ========",
@@ -1,9 +1,8 @@
[
"======== Resolving module './foo/' from '/a.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, Declaration.",
"Directory '/foo/' does not exist, skipping all lookups in it.",
"Loading module as file / folder, candidate module location '/foo/', target file types: JavaScript.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, JavaScript, Declaration, JSON.",
"Directory '/foo/' does not exist, skipping all lookups in it.",
"======== Module name './foo/' was not resolved. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
@@ -1,13 +0,0 @@
/b.js(1,8): error TS1259: Module '"/a"' can only be default-imported using the 'esModuleInterop' flag
==== /a.js (0 errors) ====
const alias = {};
module.exports = alias;
==== /b.js (1 errors) ====
import a from "./a";
~
!!! error TS1259: Module '"/a"' can only be default-imported using the 'esModuleInterop' flag
!!! related TS2594 /a.js:2:1: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
@@ -21,6 +21,6 @@ module.exports = alias;
=== /b.js ===
import a from "./a";
>a : any
> : ^^^
>a : {}
> : ^^
@@ -0,0 +1,35 @@
index.ts(1,14): error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/private'. This is likely not portable. A type annotation is necessary.
==== index.ts (1 errors) ====
export const a = async () => (await import("inner")).x();
~
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/private'. This is likely not portable. A type annotation is necessary.
==== node_modules/inner/index.d.ts (0 errors) ====
export { x } from "./other.js";
==== node_modules/inner/other.d.ts (0 errors) ====
import { Thing } from "./private.js"
export const x: () => Thing;
==== node_modules/inner/private.d.ts (0 errors) ====
export interface Thing {} // not exported in export map, inaccessible under new module modes
==== package.json (0 errors) ====
{
"name": "package",
"private": true,
"type": "module",
"exports": "./index.js"
}
==== node_modules/inner/package.json (0 errors) ====
{
"name": "inner",
"private": true,
"type": "module",
"exports": {
".": {
"default": "./index.js"
},
"./other": {
"default": "./other.js"
}
}
}
@@ -78,7 +78,3 @@ var a = function () { return __awaiter(void 0, void 0, void 0, function () { ret
}
}); }); };
exports.a = a;
//// [index.d.ts]
export declare const a: () => Promise<import("inner/private").Thing>;
@@ -10,12 +10,12 @@ export const a = async () => (await import("inner")).x();
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>(await import("inner")).x : () => import("node_modules/inner/private").Thing
> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^
>(await import("inner")) : typeof import("node_modules/inner/index")
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>await import("inner") : typeof import("node_modules/inner/index")
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>import("inner") : Promise<typeof import("node_modules/inner/index")>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>(await import("inner")) : { default: typeof import("node_modules/inner/index"); x: () => import("node_modules/inner/private").Thing; }
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^
>await import("inner") : { default: typeof import("node_modules/inner/index"); x: () => import("node_modules/inner/private").Thing; }
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^
>import("inner") : Promise<{ default: typeof import("node_modules/inner/index"); x: () => import("node_modules/inner/private").Thing; }>
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^
>"inner" : "inner"
> : ^^^^^^^
>x : () => import("node_modules/inner/private").Thing
@@ -1,7 +1,9 @@
[
"======== Resolving module 'shortid' from '/index.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/shortid/package.json' does not exist.",
"File '/node_modules/shortid.ts' does not exist.",
@@ -11,8 +13,7 @@
"File '/node_modules/shortid/index.tsx' does not exist.",
"File '/node_modules/shortid/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'shortid' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"File '/node_modules/shortid/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/shortid.js' does not exist.",
"File '/node_modules/shortid.jsx' does not exist.",
@@ -65,8 +65,8 @@
> : ^^^^^^^^^^
import bar from "ambient";
>bar : any
> : ^^^
>bar : typeof Foo
> : ^^^^^^^^^^
import { baz } from "ambient";
>baz : any
@@ -21,12 +21,18 @@ Resolution:: {
"/a/b/foo.ts",
"/a/b/foo.tsx",
"/a/b/foo.d.ts",
"/a/b/foo.js",
"/a/b/foo.jsx",
"/c/d.ts",
"/c/d.tsx",
"/c/d.d.ts",
"/c/d.js",
"/c/d.jsx",
"/c/d/index.ts",
"/c/d/index.tsx",
"/c/d/index.d.ts",
"/c/d/index.js",
"/c/d/index.jsx",
"/a/b/foo/index.ts",
"/a/b/foo/index.tsx"
],
@@ -58,12 +64,18 @@ Resolution:: {
"/a/b/foo.ts",
"/a/b/foo.tsx",
"/a/b/foo.d.ts",
"/a/b/foo.js",
"/a/b/foo.jsx",
"/c/d.ts",
"/c/d.tsx",
"/c/d.d.ts",
"/c/d.js",
"/c/d.jsx",
"/c/d/index.ts",
"/c/d/index.tsx",
"/c/d/index.d.ts",
"/c/d/index.js",
"/c/d/index.jsx",
"/a/b/foo/index.ts",
"/a/b/foo/index.tsx"
],
@@ -20,7 +20,9 @@ Resolution:: {
"failedLookupLocations": [
"/a/b/c/bar.ts",
"/a/b/c/bar.tsx",
"/a/b/c/bar.d.ts"
"/a/b/c/bar.d.ts",
"/a/b/c/bar.js",
"/a/b/c/bar.jsx"
],
"affectingLocations": [
"/a/b/c/bar/package.json"
@@ -49,7 +51,9 @@ Resolution:: {
"failedLookupLocations": [
"/a/b/c/bar.ts",
"/a/b/c/bar.tsx",
"/a/b/c/bar.d.ts"
"/a/b/c/bar.d.ts",
"/a/b/c/bar.js",
"/a/b/c/bar.jsx"
],
"affectingLocations": [
"/a/b/c/bar/package.json"
@@ -78,7 +82,9 @@ Resolution:: {
"failedLookupLocations": [
"/a/bar.ts",
"/a/bar.tsx",
"/a/bar.d.ts"
"/a/bar.d.ts",
"/a/bar.js",
"/a/bar.jsx"
],
"affectingLocations": [
"/a/bar/package.json"
@@ -107,7 +113,9 @@ Resolution:: {
"failedLookupLocations": [
"/a/bar.ts",
"/a/bar.tsx",
"/a/bar.d.ts"
"/a/bar.d.ts",
"/a/bar.js",
"/a/bar.jsx"
],
"affectingLocations": [
"/a/bar/package.json"
@@ -136,7 +144,9 @@ Resolution:: {
"failedLookupLocations": [
"/bar.ts",
"/bar.tsx",
"/bar.d.ts"
"/bar.d.ts",
"/bar.js",
"/bar.jsx"
],
"affectingLocations": [
"/bar/package.json"
@@ -165,7 +175,9 @@ Resolution:: {
"failedLookupLocations": [
"/bar.ts",
"/bar.tsx",
"/bar.d.ts"
"/bar.d.ts",
"/bar.js",
"/bar.jsx"
],
"affectingLocations": [
"/bar/package.json"
@@ -194,7 +206,9 @@ Resolution:: {
"failedLookupLocations": [
"c:/bar.ts",
"c:/bar.tsx",
"c:/bar.d.ts"
"c:/bar.d.ts",
"c:/bar.js",
"c:/bar.jsx"
],
"affectingLocations": [
"c:/bar/package.json"
@@ -223,7 +237,9 @@ Resolution:: {
"failedLookupLocations": [
"c:/bar.ts",
"c:/bar.tsx",
"c:/bar.d.ts"
"c:/bar.d.ts",
"c:/bar.js",
"c:/bar.jsx"
],
"affectingLocations": [
"c:/bar/package.json"
@@ -1,9 +1,13 @@
[
"======== Resolving module 'phaser' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"File '/typings/phaser.d.ts' does not exist.",
"Found 'package.json' at '/typings/phaser/package.json'.",
"'package.json' does not have a 'typesVersions' field.",
@@ -1,9 +1,13 @@
[
"======== Resolving module 'phaser' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"File '/typings/phaser.d.ts' does not exist.",
"Found 'package.json' at '/typings/phaser/package.json'.",
"'package.json' does not have a 'typesVersions' field.",
@@ -1,33 +1,42 @@
[
"======== Resolving module '@scoped/typescache' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@scoped/typescache' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module '@scoped/typescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'scoped__typescache'",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"File '/a/types/@scoped/typescache.d.ts' does not exist.",
"File '/a/types/@scoped/typescache/package.json' does not exist.",
"File '/a/types/@scoped/typescache/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/a/types/@scoped/typescache/index.d.ts', result '/a/types/@scoped/typescache/index.d.ts'.",
"======== Module name '@scoped/typescache' was successfully resolved to '/a/types/@scoped/typescache/index.d.ts'. ========",
"======== Resolving module '@mangled/typescache' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@mangled/typescache' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module '@mangled/typescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'mangled__typescache'",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'mangled__typescache'",
"File '/a/node_modules/@types/mangled__typescache.d.ts' does not exist.",
"Loading module '@mangled/typescache' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@mangled/typescache' was not resolved. ========",
"======== Resolving module '@scoped/nodemodulescache' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@scoped/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module '@scoped/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'scoped__nodemodulescache'",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"File '/a/types/@scoped/nodemodulescache.d.ts' does not exist.",
"File '/a/node_modules/@scoped/nodemodulescache.d.ts' does not exist.",
"File '/a/node_modules/@scoped/nodemodulescache/package.json' does not exist.",
@@ -35,37 +44,43 @@
"Resolving real path for '/a/node_modules/@scoped/nodemodulescache/index.d.ts', result '/a/node_modules/@scoped/nodemodulescache/index.d.ts'.",
"======== Module name '@scoped/nodemodulescache' was successfully resolved to '/a/node_modules/@scoped/nodemodulescache/index.d.ts'. ========",
"======== Resolving module '@mangled/nodemodulescache' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'mangled__nodemodulescache'",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'mangled__nodemodulescache'",
"File '/a/node_modules/@types/mangled__nodemodulescache.d.ts' does not exist.",
"Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@mangled/nodemodulescache' was not resolved. ========",
"======== Resolving module '@scoped/attypescache' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'scoped__attypescache'",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"File '/a/types/@scoped/attypescache.d.ts' does not exist.",
"File '/a/node_modules/@scoped/attypescache.d.ts' does not exist.",
"Scoped package detected, looking in 'scoped__attypescache'",
"File '/a/node_modules/@types/scoped__attypescache.d.ts' does not exist.",
"Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@scoped/attypescache' was not resolved. ========",
"======== Resolving module '@mangled/attypescache' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@mangled/attypescache' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module '@mangled/attypescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'mangled__attypescache'",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'mangled__attypescache'",
"File '/a/node_modules/@types/mangled__attypescache.d.ts' does not exist.",
"File '/a/node_modules/@types/mangled__attypescache/package.json' does not exist.",
@@ -76,7 +91,7 @@
"File '/a/node_modules/@scoped/package.json' does not exist.",
"File '/a/node_modules/package.json' does not exist.",
"File '/a/package.json' does not exist.",
"File '/package.json' does not exist.",
"File '/package.json' does not exist according to earlier cached lookups.",
"File '/a/node_modules/@types/mangled__attypescache/package.json' does not exist according to earlier cached lookups.",
"File '/a/node_modules/@types/package.json' does not exist.",
"File '/a/node_modules/package.json' does not exist according to earlier cached lookups.",
@@ -1,16 +1,22 @@
[
"======== Resolving module 'anotherLib' from '/project/src/app.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"'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'.",
"Resolving module name 'anotherLib' relative to base url '/project' - '/project/anotherLib'.",
"Loading module as file / folder, candidate module location '/project/anotherLib', target file types: TypeScript, Declaration.",
"Loading module as file / folder, candidate module location '/project/anotherLib', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/project/anotherLib.ts' does not exist.",
"File '/project/anotherLib.tsx' does not exist.",
"File '/project/anotherLib.d.ts' does not exist.",
"File '/project/anotherLib.js' does not exist.",
"File '/project/anotherLib.jsx' does not exist.",
"Directory '/project/anotherLib' does not exist, skipping all lookups in it.",
"Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/project/src/package.json' does not exist.",
"File '/project/package.json' does not exist.",
"File '/package.json' does not exist.",
"Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/project/src/node_modules' does not exist, skipping all lookups in it.",
"File '/project/node_modules/anotherLib/package.json' does not exist.",
@@ -23,28 +29,34 @@
"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 'Node10'.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"'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/*'.",
"Trying substitution '../shared/*', candidate module location: '../shared/lib/app'.",
"Loading module as file / folder, candidate module location '/shared/lib/app', target file types: TypeScript, Declaration.",
"Loading module as file / folder, candidate module location '/shared/lib/app', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/shared/lib/app.ts' does not exist.",
"File '/shared/lib/app.tsx' does not exist.",
"File '/shared/lib/app.d.ts' exists - use it as a name resolution result.",
"======== Module name '@shared/lib/app' was successfully resolved to '/shared/lib/app.d.ts'. ========",
"File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups.",
"File '/project/node_modules/package.json' does not exist.",
"File '/project/package.json' does not exist.",
"File '/package.json' does not exist.",
"File '/project/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"======== Resolving module 'troublesome-lib/lib/Compactable' from '/project/node_modules/anotherLib/index.d.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"'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'.",
"Resolving module name 'troublesome-lib/lib/Compactable' relative to base url '/project' - '/project/troublesome-lib/lib/Compactable'.",
"Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Compactable', target file types: TypeScript, Declaration.",
"Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Compactable', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups.",
"File '/project/node_modules/package.json' does not exist according to earlier cached lookups.",
"File '/project/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/project/node_modules/anotherLib/node_modules' does not exist, skipping all lookups in it.",
"Found 'package.json' at '/project/node_modules/troublesome-lib/package.json'.",
@@ -58,8 +70,9 @@
"File '/project/node_modules/troublesome-lib/lib/package.json' does not exist.",
"File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups.",
"======== Resolving module './Option' from '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/project/node_modules/troublesome-lib/lib/Option.ts' does not exist.",
"File '/project/node_modules/troublesome-lib/lib/Option.tsx' does not exist.",
"File '/project/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result.",
@@ -68,13 +81,17 @@
"File '/project/node_modules/troublesome-lib/lib/package.json' does not exist according to earlier cached lookups.",
"File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups.",
"======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"'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'.",
"Resolving module name 'troublesome-lib/lib/Option' relative to base url '/project' - '/project/troublesome-lib/lib/Option'.",
"Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Option', target file types: TypeScript, Declaration.",
"Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Option', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/shared/lib/package.json' does not exist.",
"File '/shared/package.json' does not exist.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Directory '/shared/lib/node_modules' does not exist, skipping all lookups in it.",
"Found 'package.json' at '/shared/node_modules/troublesome-lib/package.json'.",
@@ -1,18 +1,21 @@
[
"======== Resolving module './a' from '/src/b.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/src/a.ts' exists - 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 'Node10'.",
"Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File name '/src/a.js' has a '.js' extension - stripping it.",
"File '/src/a.ts' exists - use it as a name resolution result.",
"======== Module name './a.js' was successfully resolved to '/src/a.ts'. ========",
"======== Resolving module './jquery.js' from '/src/jquery_user_1.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File name '/src/jquery.js' has a '.js' extension - stripping it.",
"File '/src/jquery.ts' does not exist.",
"File '/src/jquery.tsx' does not exist.",
@@ -1,29 +1,28 @@
[
"======== Resolving module './tsx' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/tsx.ts' does not exist.",
"File '/tsx.tsx' exists - 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 'Node10'.",
"Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/jsx.ts' does not exist.",
"File '/jsx.tsx' does not exist.",
"File '/jsx.d.ts' does not exist.",
"Directory '/jsx' does not exist, skipping all lookups in it.",
"Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript.",
"File '/jsx.js' does not exist.",
"File '/jsx.jsx' exists - use it as a name resolution result.",
"======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========",
"======== Resolving module './js' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/js', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/js', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/js.ts' does not exist.",
"File '/js.tsx' does not exist.",
"File '/js.d.ts' does not exist.",
"Directory '/js' does not exist, skipping all lookups in it.",
"Loading module as file / folder, candidate module location '/js', target file types: JavaScript.",
"File '/js.js' exists - use it as a name resolution result.",
"======== Module name './js' was successfully resolved to '/js.js'. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
@@ -1,12 +1,11 @@
[
"======== Resolving module './jsx' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/jsx.ts' does not exist.",
"File '/jsx.tsx' does not exist.",
"File '/jsx.d.ts' does not exist.",
"Directory '/jsx' does not exist, skipping all lookups in it.",
"Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript.",
"File '/jsx.js' does not exist.",
"File '/jsx.jsx' exists - use it as a name resolution result.",
"======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========",
@@ -1,12 +1,11 @@
[
"======== Resolving module './jsx' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/jsx.ts' does not exist.",
"File '/jsx.tsx' does not exist.",
"File '/jsx.d.ts' does not exist.",
"Directory '/jsx' does not exist, skipping all lookups in it.",
"Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript.",
"File '/jsx.js' does not exist.",
"File '/jsx.jsx' exists - use it as a name resolution result.",
"======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========",
@@ -1,7 +1,9 @@
[
"======== Resolving module 'normalize.css' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/normalize.css/package.json'.",
"File name '/node_modules/normalize.css' has a '.css' extension - stripping it.",
@@ -27,47 +29,20 @@
"File '/node_modules/normalize.css/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it.",
"Loading module 'normalize.css' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups.",
"File name '/node_modules/normalize.css' has a '.css' extension - stripping it.",
"File '/node_modules/normalize.css.js' does not exist.",
"File '/node_modules/normalize.css.jsx' does not exist.",
"'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'.",
"File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it.",
"Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript.",
"Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript, JSON.",
"File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it.",
"File '/node_modules/normalize.css/normalize.css.js' does not exist.",
"File '/node_modules/normalize.css/normalize.css.jsx' does not exist.",
"Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it.",
"File '/node_modules/normalize.css/index.js' does not exist.",
"File '/node_modules/normalize.css/index.jsx' does not exist.",
"Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update.",
"Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups.",
"File name '/node_modules/normalize.css' has a '.css' extension - stripping it.",
"File '/node_modules/normalize.d.css.ts' does not exist.",
"File '/node_modules/normalize.css.ts' does not exist.",
"File '/node_modules/normalize.css.tsx' does not exist.",
"File '/node_modules/normalize.css.d.ts' does not exist.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
"'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'.",
"File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it.",
"File '/node_modules/normalize.css/normalize.d.css.ts' does not exist.",
"Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: TypeScript, Declaration.",
"File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it.",
"File '/node_modules/normalize.css/normalize.d.css.ts' does not exist.",
"File '/node_modules/normalize.css/normalize.css.ts' does not exist.",
"File '/node_modules/normalize.css/normalize.css.tsx' does not exist.",
"File '/node_modules/normalize.css/normalize.css.d.ts' does not exist.",
"Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it.",
"File '/node_modules/normalize.css/index.ts' does not exist.",
"File '/node_modules/normalize.css/index.tsx' does not exist.",
"File '/node_modules/normalize.css/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it.",
"======== Module name 'normalize.css' was not resolved. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
@@ -1,7 +1,9 @@
[
"======== Resolving module 'foo' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
"File '/node_modules/foo.ts' does not exist.",
@@ -27,40 +29,13 @@
"File '/node_modules/foo/index.tsx' does not exist.",
"File '/node_modules/foo/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"File '/node_modules/foo.js' does not exist.",
"File '/node_modules/foo.jsx' does not exist.",
"'package.json' does not have a 'main' field.",
"File '/node_modules/foo/index.js' does not exist.",
"File '/node_modules/foo/index.jsx' does not exist.",
"Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"File '/node_modules/foo.ts' does not exist.",
"File '/node_modules/foo.tsx' does not exist.",
"File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'foo.js' that references '/node_modules/foo/foo.js'.",
"File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it.",
"File '/node_modules/foo/foo.ts' does not exist.",
"File '/node_modules/foo/foo.tsx' does not exist.",
"File '/node_modules/foo/foo.d.ts' does not exist.",
"Loading module as file / folder, candidate module location '/node_modules/foo/foo.js', target file types: TypeScript, Declaration.",
"File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it.",
"File '/node_modules/foo/foo.ts' does not exist.",
"File '/node_modules/foo/foo.tsx' does not exist.",
"File '/node_modules/foo/foo.d.ts' does not exist.",
"File '/node_modules/foo/foo.js.ts' does not exist.",
"File '/node_modules/foo/foo.js.tsx' does not exist.",
"File '/node_modules/foo/foo.js.d.ts' does not exist.",
"Directory '/node_modules/foo/foo.js' does not exist, skipping all lookups in it.",
"File '/node_modules/foo/index.ts' does not exist.",
"File '/node_modules/foo/index.tsx' does not exist.",
"File '/node_modules/foo/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"======== Module name 'foo' was not resolved. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
@@ -1,7 +1,9 @@
[
"======== Resolving module 'js' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'js' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/js/package.json' does not exist.",
"File '/node_modules/js.ts' does not exist.",
@@ -11,8 +13,7 @@
"File '/node_modules/js/index.tsx' does not exist.",
"File '/node_modules/js/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'js' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"File '/node_modules/js/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/js.js' does not exist.",
"File '/node_modules/js.jsx' does not exist.",
@@ -0,0 +1,46 @@
/tsconfig.json(7,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"outDir": "lib",
"target": "ES6",
"module": "ES6",
"baseUrl": "/",
"moduleResolution": "Node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"noImplicitAny": true,
"traceResolution": true,
"paths": {
"foo/*": ["node_modules/foo/lib/*"]
}
}
}
==== /relative.d.ts (0 errors) ====
export declare function relative(): void;
==== /test.ts (0 errors) ====
import { test } from "foo/test.js";
import { test as test2 } from "foo/test";
import { relative } from "./relative.js";
import { relative as relative2 } from "./relative";
==== /node_modules/foo/lib/test.js (0 errors) ====
export function test() {
console.log("test");
}
==== /node_modules/foo/lib/test.d.ts (0 errors) ====
export declare function test(): void;
==== /relative.js (0 errors) ====
export function relative() {
console.log("test");
}
@@ -1,7 +1,8 @@
[
"======== Resolving module './other' from '/index.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/other', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/other', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/other.ts' exists - use it as a name resolution result.",
"======== Module name './other' was successfully resolved to '/other.ts'. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
@@ -0,0 +1,18 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": []
}
}
==== /index.ts (0 errors) ====
import { base } from "./foo";
==== /foo.ts (0 errors) ====
export function base() {}
@@ -0,0 +1,17 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
}
}
==== /index.ts (0 errors) ====
import { base } from "./foo";
==== /foo.ts (0 errors) ====
export function base() {}
@@ -0,0 +1,21 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
}
==== /index.ts (0 errors) ====
import { ios } from "./foo";
==== /foo.ios.ts (0 errors) ====
export function ios() {}
==== /foo.ts (0 errors) ====
export function base() {}
@@ -0,0 +1,19 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [""]
}
}
==== /index.ts (0 errors) ====
import { base } from "./foo";
==== /foo.ts (0 errors) ====
export function base() {}
@@ -1,10 +1,13 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
/index.ts(1,21): error TS2307: Cannot find module './foo' or its corresponding type declarations.
==== /tsconfig.json (0 errors) ====
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
@@ -0,0 +1,20 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
}
==== /index.ts (0 errors) ====
import { ios } from "./foo";
==== /foo/index.ios.ts (0 errors) ====
export function ios() {}
==== /foo/index.ts (0 errors) ====
export function base() {}
@@ -0,0 +1,35 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"outDir": "bin",
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
}
==== /index.ts (0 errors) ====
import { ios } from "some-library";
==== /node_modules/some-library/index.ios.js (0 errors) ====
"use strict";
exports.__esModule = true;
function ios() {}
exports.ios = ios;
==== /node_modules/some-library/index.ios.d.ts (0 errors) ====
export declare function ios(): void;
==== /node_modules/some-library/index.js (0 errors) ====
"use strict";
exports.__esModule = true;
function base() {}
exports.base = base;
==== /node_modules/some-library/index.d.ts (0 errors) ====
export declare function base(): void;
@@ -0,0 +1,35 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"outDir": "bin",
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
}
==== /index.ts (0 errors) ====
import { iosfoo } from "some-library/foo";
==== /node_modules/some-library/foo.ios.js (0 errors) ====
"use strict";
exports.__esModule = true;
function iosfoo() {}
exports.iosfoo = iosfoo;
==== /node_modules/some-library/foo.ios.d.ts (0 errors) ====
export declare function iosfoo(): void;
==== /node_modules/some-library/foo.js (0 errors) ====
"use strict";
exports.__esModule = true;
function basefoo() {}
exports.basefoo = basefoo;
==== /node_modules/some-library/foo.d.ts (0 errors) ====
export declare function basefoo(): void;
@@ -0,0 +1,42 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"outDir": "bin",
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"],
"baseUrl": "/",
"paths": {
"some-library": ["node_modules/some-library/lib"],
"some-library/*": ["node_modules/some-library/lib/*"]
}
}
}
==== /test.ts (0 errors) ====
import { ios } from "some-library";
import { ios as ios2 } from "some-library/index";
import { ios as ios3 } from "some-library/index.js";
==== /node_modules/some-library/lib/index.ios.js (0 errors) ====
"use strict";
exports.__esModule = true;
function ios() {}
exports.ios = ios;
==== /node_modules/some-library/lib/index.ios.d.ts (0 errors) ====
export declare function ios(): void;
==== /node_modules/some-library/lib/index.js (0 errors) ====
"use strict";
exports.__esModule = true;
function base() {}
exports.base = base;
==== /node_modules/some-library/lib/index.d.ts (0 errors) ====
export declare function base(): void;
@@ -0,0 +1,22 @@
/tsconfig.json(4,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"outDir": "bin",
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
}
==== /test.ts (0 errors) ====
import { ios } from "some-library";
==== /node_modules/some-library/index.ios.ts (0 errors) ====
export function ios() {}
==== /node_modules/some-library/index.ts (0 errors) ====
export function base() {}
@@ -0,0 +1,30 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"outDir": "bin",
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
}
==== /index.ts (0 errors) ====
import { ios } from "./foo.js";
==== /foo.ios.js (0 errors) ====
"use strict";
exports.__esModule = true;
function ios() {}
exports.ios = ios;
==== /foo.js (0 errors) ====
"use strict";
exports.__esModule = true;
function base() {}
exports.base = base;
@@ -0,0 +1,29 @@
/tsconfig.json(6,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"esModuleInterop": true,
"resolveJsonModule": true,
"outDir": "bin",
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
}
==== /index.ts (0 errors) ====
import foo from "./foo.json";
console.log(foo.ios);
==== /foo.ios.json (0 errors) ====
{
"ios": "platform ios"
}
==== /foo.json (0 errors) ====
{
"base": "platform base"
}
@@ -0,0 +1,23 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": ["-ios", "__native", ""]
}
}
==== /index.ts (0 errors) ====
import { ios } from "./foo";
==== /foo-ios.ts (0 errors) ====
export function ios() {}
==== /foo__native.ts (0 errors) ====
export function native() {}
==== /foo.ts (0 errors) ====
export function base() {}
@@ -0,0 +1,21 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": ["-ios", "__native", ""]
}
}
==== /index.ts (0 errors) ====
import { native } from "./foo";
==== /foo__native.ts (0 errors) ====
export function native() {}
==== /foo.ts (0 errors) ====
export function base() {}
@@ -0,0 +1,19 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": ["-ios", "__native", ""]
}
}
==== /index.ts (0 errors) ====
import { base } from "./foo";
==== /foo.ts (0 errors) ====
export function base() {}
@@ -1,10 +1,13 @@
/tsconfig.json(3,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
/index.ts(1,22): error TS2307: Cannot find module './foo' or its corresponding type declarations.
==== /tsconfig.json (0 errors) ====
==== /tsconfig.json (1 errors) ====
{
"compilerOptions": {
"moduleResolution": "node",
~~~~~~
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
"traceResolution": true,
"moduleSuffixes": ["-ios", "__native", ""]
}
@@ -1,25 +1,35 @@
[
"======== Resolving module './library-a' from '/src/app.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/src/library-a.ts' does not exist.",
"File '/src/library-a.tsx' does not exist.",
"File '/src/library-a.d.ts' does not exist.",
"File '/src/library-a.js' does not exist.",
"File '/src/library-a.jsx' does not exist.",
"File '/src/library-a/package.json' does not exist.",
"File '/src/library-a/index.ts' exists - 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 'Node10'.",
"Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/src/library-b.ts' does not exist.",
"File '/src/library-b.tsx' does not exist.",
"File '/src/library-b.d.ts' does not exist.",
"File '/src/library-b.js' does not exist.",
"File '/src/library-b.jsx' does not exist.",
"File '/src/library-b/package.json' does not exist.",
"File '/src/library-b/index.ts' exists - use it as a name resolution result.",
"======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ========",
"======== Resolving module 'library-a' from '/src/library-b/index.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/src/library-b/package.json' does not exist according to earlier cached lookups.",
"File '/src/package.json' does not exist.",
"File '/package.json' does not exist.",
"Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: 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.",
@@ -1,12 +1,14 @@
[
"======== Resolving module './shared/abc' from '/src/app.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/src/shared/abc.ts' exists - 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 'Node10'.",
"Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/src/shared2/abc.ts' exists - use it as a name resolution result.",
"======== Module name './shared2/abc' was successfully resolved to '/src/shared2/abc.ts'. ========",
"======== Resolving module '@typescript/lib-es5' from '/src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
@@ -14,8 +14,13 @@
"File '/app/package.json' does not exist.",
"File '/package.json' does not exist.",
"======== Resolving module 'real' from '/app/node_modules/linked/index.d.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups.",
"File '/app/node_modules/package.json' does not exist according to earlier cached lookups.",
"File '/app/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'real' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: 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.",
@@ -31,8 +36,11 @@
"File '/app/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"======== Resolving module 'linked' from '/app/app.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/app/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: 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.",
@@ -43,8 +51,11 @@
"File '/app/node_modules/linked/index.d.ts' exists - 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: 'Node10'.",
"Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/app/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/app/node_modules/linked2/package.json' does not exist.",
"File '/app/node_modules/linked2.ts' does not exist.",
@@ -59,8 +70,13 @@
"File '/app/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"======== Resolving module 'real' from '/app/node_modules/linked2/index.d.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/app/node_modules/linked2/package.json' does not exist according to earlier cached lookups.",
"File '/app/node_modules/package.json' does not exist according to earlier cached lookups.",
"File '/app/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'real' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: 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.",
@@ -1,25 +1,35 @@
[
"======== Resolving module './library-a' from '/src/app.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/src/library-a.ts' does not exist.",
"File '/src/library-a.tsx' does not exist.",
"File '/src/library-a.d.ts' does not exist.",
"File '/src/library-a.js' does not exist.",
"File '/src/library-a.jsx' does not exist.",
"File '/src/library-a/package.json' does not exist.",
"File '/src/library-a/index.ts' exists - 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 'Node10'.",
"Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/src/library-b.ts' does not exist.",
"File '/src/library-b.tsx' does not exist.",
"File '/src/library-b.d.ts' does not exist.",
"File '/src/library-b.js' does not exist.",
"File '/src/library-b.jsx' does not exist.",
"File '/src/library-b/package.json' does not exist.",
"File '/src/library-b/index.ts' exists - use it as a name resolution result.",
"======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ========",
"======== Resolving module 'library-a' from '/src/library-b/index.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/src/library-b/package.json' does not exist according to earlier cached lookups.",
"File '/src/package.json' does not exist.",
"File '/package.json' does not exist.",
"Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: 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.",
@@ -1,9 +1,12 @@
[
"======== Resolving module 'foo/bar' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/bar/package.json'.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
"File '/node_modules/foo/bar.ts' does not exist.",
"File '/node_modules/foo/bar.tsx' does not exist.",
"File '/node_modules/foo/bar.d.ts' does not exist.",
@@ -1,9 +1,12 @@
[
"======== Resolving module 'foo/@bar' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/@bar/package.json'.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
"File '/node_modules/foo/@bar.ts' does not exist.",
"File '/node_modules/foo/@bar.tsx' does not exist.",
"File '/node_modules/foo/@bar.d.ts' does not exist.",
@@ -1,7 +1,9 @@
[
"======== Resolving module '@foo/bar' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/@foo/bar/package.json'.",
"File '/node_modules/@foo/bar.ts' does not exist.",
@@ -1,7 +1,9 @@
[
"======== Resolving module 'foo/bar' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/foo/bar/package.json' does not exist.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
@@ -13,26 +15,13 @@
"File '/node_modules/foo/bar/index.tsx' does not exist.",
"File '/node_modules/foo/bar/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo/bar' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"File '/node_modules/foo/bar/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"File '/node_modules/foo/bar.js' does not exist.",
"File '/node_modules/foo/bar.jsx' does not exist.",
"File '/node_modules/foo/bar/index.js' exists - use it as a name resolution result.",
"'package.json' does not have a 'peerDependencies' field.",
"Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update.",
"Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/foo/bar/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"File '/node_modules/foo/bar.ts' does not exist.",
"File '/node_modules/foo/bar.tsx' does not exist.",
"File '/node_modules/foo/bar.d.ts' does not exist.",
"File '/node_modules/foo/bar/index.ts' does not exist.",
"File '/node_modules/foo/bar/index.tsx' does not exist.",
"File '/node_modules/foo/bar/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Resolving real path for '/node_modules/foo/bar/index.js', result '/node_modules/foo/bar/index.js'.",
"======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/index.js' with Package ID 'foo/bar/index.js@1.2.3'. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
@@ -1,7 +1,9 @@
[
"======== Resolving module 'foo/@bar' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/foo/@bar/package.json' does not exist.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
@@ -13,26 +15,13 @@
"File '/node_modules/foo/@bar/index.tsx' does not exist.",
"File '/node_modules/foo/@bar/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo/@bar' from 'node_modules' folder, target file types: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.",
"File '/node_modules/foo/@bar/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"File '/node_modules/foo/@bar.js' does not exist.",
"File '/node_modules/foo/@bar.jsx' does not exist.",
"File '/node_modules/foo/@bar/index.js' exists - use it as a name resolution result.",
"'package.json' does not have a 'peerDependencies' field.",
"Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update.",
"Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/foo/@bar/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"File '/node_modules/foo/@bar.ts' does not exist.",
"File '/node_modules/foo/@bar.tsx' does not exist.",
"File '/node_modules/foo/@bar.d.ts' does not exist.",
"File '/node_modules/foo/@bar/index.ts' does not exist.",
"File '/node_modules/foo/@bar/index.tsx' does not exist.",
"File '/node_modules/foo/@bar/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Resolving real path for '/node_modules/foo/@bar/index.js', result '/node_modules/foo/@bar/index.js'.",
"======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/index.js' with Package ID 'foo/@bar/index.js@1.2.3'. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
@@ -2,8 +2,10 @@
"File '/node_modules/foo/src/package.json' does not exist.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
"======== Resolving module 'foo' from '/index.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Module resolution kind is not specified, using 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"File '/node_modules/foo.ts' does not exist.",
@@ -1,8 +1,42 @@
//// [tests/cases/compiler/module_augmentUninstantiatedModule2.ts] ////
//// [module_augmentUninstantiatedModule2.ts]
declare var ng: ng.IAngularStatic; declare module ng { export interface IModule { name: string; } export interface IAngularStatic { module: (s: string) => IModule; } } export = ng;
//// [app.ts]
import ng = require("angular");
import "./moduleAugmentation";
var x: number = ng.getNumber();
//// [module_augmentUninstantiatedModule2.js]
//// [moduleAugmentation.ts]
import * as ng from "angular"
declare module "angular" {
export interface IAngularStatic {
getNumber: () => number;
}
}
//// [index.d.ts]
declare var ng: ng.IAngularStatic;
declare module ng {
export interface IModule {
name: string;
}
export interface IAngularStatic {
module: (s: string) => IModule;
}
}
export = ng;
//// [moduleAugmentation.js]
"use strict";
module.exports = ng;
Object.defineProperty(exports, "__esModule", { value: true });
//// [app.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ng = require("angular");
require("./moduleAugmentation");
var x = ng.getNumber();
@@ -1,32 +1,59 @@
//// [tests/cases/compiler/module_augmentUninstantiatedModule2.ts] ////
=== module_augmentUninstantiatedModule2.ts ===
=== app.ts ===
import ng = require("angular");
>ng : Symbol(ng, Decl(app.ts, 0, 0))
import "./moduleAugmentation";
var x: number = ng.getNumber();
>x : Symbol(x, Decl(app.ts, 3, 3))
>ng.getNumber : Symbol(ng.IAngularStatic.getNumber, Decl(moduleAugmentation.ts, 2, 37))
>ng : Symbol(ng, Decl(app.ts, 0, 0))
>getNumber : Symbol(ng.IAngularStatic.getNumber, Decl(moduleAugmentation.ts, 2, 37))
=== moduleAugmentation.ts ===
import * as ng from "angular"
>ng : Symbol(ng, Decl(moduleAugmentation.ts, 0, 6))
declare module "angular" {
>"angular" : Symbol(ng, Decl(index.d.ts, 0, 11), Decl(index.d.ts, 0, 34), Decl(moduleAugmentation.ts, 0, 29))
export interface IAngularStatic {
>IAngularStatic : Symbol(IAngularStatic, Decl(index.d.ts, 5, 4), Decl(moduleAugmentation.ts, 1, 26))
getNumber: () => number;
>getNumber : Symbol(IAngularStatic.getNumber, Decl(moduleAugmentation.ts, 2, 37))
}
}
=== node_modules/angular/index.d.ts ===
declare var ng: ng.IAngularStatic;
>ng : Symbol(ng, Decl(module_augmentUninstantiatedModule2.ts, 0, 11), Decl(module_augmentUninstantiatedModule2.ts, 0, 34))
>ng : Symbol(ng, Decl(module_augmentUninstantiatedModule2.ts, 0, 11), Decl(module_augmentUninstantiatedModule2.ts, 0, 34))
>IAngularStatic : Symbol(ng.IAngularStatic, Decl(module_augmentUninstantiatedModule2.ts, 5, 4))
>ng : Symbol(ng, Decl(index.d.ts, 0, 11), Decl(index.d.ts, 0, 34), Decl(moduleAugmentation.ts, 0, 29))
>ng : Symbol(ng, Decl(index.d.ts, 0, 11), Decl(index.d.ts, 0, 34), Decl(moduleAugmentation.ts, 0, 29))
>IAngularStatic : Symbol(ng.IAngularStatic, Decl(index.d.ts, 5, 4), Decl(moduleAugmentation.ts, 1, 26))
declare module ng {
>ng : Symbol(ng, Decl(module_augmentUninstantiatedModule2.ts, 0, 11), Decl(module_augmentUninstantiatedModule2.ts, 0, 34))
>ng : Symbol(ng, Decl(index.d.ts, 0, 11), Decl(index.d.ts, 0, 34), Decl(moduleAugmentation.ts, 0, 29))
export interface IModule {
>IModule : Symbol(IModule, Decl(module_augmentUninstantiatedModule2.ts, 2, 19))
>IModule : Symbol(IModule, Decl(index.d.ts, 2, 19))
name: string;
>name : Symbol(IModule.name, Decl(module_augmentUninstantiatedModule2.ts, 3, 29))
>name : Symbol(IModule.name, Decl(index.d.ts, 3, 29))
}
export interface IAngularStatic {
>IAngularStatic : Symbol(IAngularStatic, Decl(module_augmentUninstantiatedModule2.ts, 5, 4))
>IAngularStatic : Symbol(IAngularStatic, Decl(index.d.ts, 5, 4), Decl(moduleAugmentation.ts, 1, 26))
module: (s: string) => IModule;
>module : Symbol(IAngularStatic.module, Decl(module_augmentUninstantiatedModule2.ts, 7, 36))
>s : Symbol(s, Decl(module_augmentUninstantiatedModule2.ts, 8, 16))
>IModule : Symbol(IModule, Decl(module_augmentUninstantiatedModule2.ts, 2, 19))
>module : Symbol(IAngularStatic.module, Decl(index.d.ts, 7, 36))
>s : Symbol(s, Decl(index.d.ts, 8, 16))
>IModule : Symbol(IModule, Decl(index.d.ts, 2, 19))
}
}
export = ng;
>ng : Symbol(ng, Decl(module_augmentUninstantiatedModule2.ts, 0, 11), Decl(module_augmentUninstantiatedModule2.ts, 0, 34))
>ng : Symbol(ng, Decl(index.d.ts, 0, 11), Decl(index.d.ts, 0, 34), Decl(moduleAugmentation.ts, 0, 29))
@@ -1,9 +1,44 @@
//// [tests/cases/compiler/module_augmentUninstantiatedModule2.ts] ////
=== module_augmentUninstantiatedModule2.ts ===
declare var ng: ng.IAngularStatic;
=== app.ts ===
import ng = require("angular");
>ng : ng.IAngularStatic
> : ^^^^^^^^^^^^^^^^^
import "./moduleAugmentation";
var x: number = ng.getNumber();
>x : number
> : ^^^^^^
>ng.getNumber() : number
> : ^^^^^^
>ng.getNumber : () => number
> : ^^^^^^
>ng : ng.IAngularStatic
> : ^^^^^^^^^^^^^^^^^
>getNumber : () => number
> : ^^^^^^
=== moduleAugmentation.ts ===
import * as ng from "angular"
>ng : ng.IAngularStatic
> : ^^^^^^^^^^^^^^^^^
declare module "angular" {
>"angular" : IAngularStatic
> : ^^^^^^^^^^^^^^
export interface IAngularStatic {
getNumber: () => number;
>getNumber : () => number
> : ^^^^^^
}
}
=== node_modules/angular/index.d.ts ===
declare var ng: ng.IAngularStatic;
>ng : import("node_modules/angular/index.d.ts").IAngularStatic
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>ng : any
> : ^^^
@@ -24,7 +59,7 @@ declare module ng {
}
export = ng;
>ng : ng.IAngularStatic
> : ^^^^^^^^^^^^^^^^^
>ng : import("node_modules/angular/index.d.ts").IAngularStatic
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -0,0 +1,12 @@
error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
!!! error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
==== /a.ts (0 errors) ====
import { C } from "projB";
==== /node_modules/projB/index.ts (0 errors) ====
export class C {}
@@ -1,7 +1,9 @@
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
/index.ts(1,21): error TS2307: Cannot find module 'pkg' or its corresponding type declarations.
There are types at '/node_modules/pkg/definitely-not-index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
@@ -1,3 +1,4 @@
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
error TS6504: File '/node_modules/pkg/untyped.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
@@ -5,6 +6,7 @@ error TS6504: File '/node_modules/pkg/untyped.js' is a JavaScript file. Did you
There are types at '/node_modules/pkg/definitely-not-index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS6504: File '/node_modules/pkg/untyped.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
!!! error TS6504: The file is in the program because:
!!! error TS6504: Root file specified for compilation
@@ -0,0 +1,24 @@
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
!!! error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== /node_modules/fancy-lib/package.json (0 errors) ====
{
"name": "fancy-lib",
"version": "1.0.0",
"main": "index.js",
"exports": {
".": "./definitely-not-index.js"
}
}
==== /node_modules/fancy-lib/index.d.ts (0 errors) ====
export declare const fancy: "feast";
==== /node_modules/fancy-lib/definitely-not-index.d.ts (0 errors) ====
export declare const fancy: "ketchup";
==== /main.ts (0 errors) ====
import { fancy } from "fancy-lib";
fancy;
@@ -2,24 +2,20 @@
"Found 'package.json' at '/node_modules/fancy-lib/package.json'.",
"File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups.",
"======== 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.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/package.json' does not exist.",
"Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
"File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups.",
"File '/node_modules/fancy-lib.ts' does not exist.",
"File '/node_modules/fancy-lib.tsx' does not exist.",
"File '/node_modules/fancy-lib.d.ts' does not exist.",
"'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 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' exists - use it as a name resolution result.",
"Using 'exports' subpath '.' with target './definitely-not-index.js'.",
"File name '/node_modules/fancy-lib/definitely-not-index.js' has a '.js' extension - stripping it.",
"File '/node_modules/fancy-lib/definitely-not-index.ts' does not exist.",
"File '/node_modules/fancy-lib/definitely-not-index.tsx' does not exist.",
"File '/node_modules/fancy-lib/definitely-not-index.d.ts' exists - use it as a name resolution result.",
"'package.json' does not have a 'peerDependencies' field.",
"Resolving real path for '/node_modules/fancy-lib/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'. ========",
"Resolving real path for '/node_modules/fancy-lib/definitely-not-index.d.ts', result '/node_modules/fancy-lib/definitely-not-index.d.ts'.",
"======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/definitely-not-index.d.ts' with Package ID 'fancy-lib/definitely-not-index.d.ts@1.0.0'. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -12,10 +12,10 @@ export declare const fancy: "ketchup";
=== /main.ts ===
import { fancy } from "fancy-lib";
>fancy : "feast"
> : ^^^^^^^
>fancy : "ketchup"
> : ^^^^^^^^^
fancy;
>fancy : "feast"
> : ^^^^^^^
>fancy : "ketchup"
> : ^^^^^^^^^
@@ -7,9 +7,12 @@
"File '/package.json' does not exist.",
"Module 'ph' was resolved as locally declared ambient module in file '/a/b/node_modules/@types/node/ph.d.ts'.",
"======== Resolving module 'node:ph' from '/a/b/main.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, Declaration.",
"Skipping module 'node:ph' that looks like an absolute URI, target file types: JavaScript.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"File '/a/b/package.json' does not exist according to earlier cached lookups.",
"File '/a/package.json' does not exist according to earlier cached lookups.",
"File '/package.json' does not exist according to earlier cached lookups.",
"Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, JavaScript, Declaration, JSON.",
"======== Module name 'node:ph' was not resolved. ========",
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
@@ -1,13 +1,16 @@
[
"======== Resolving module 'fake:thing' from '/a/b/main.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Explicitly specified module resolution kind: 'Bundler'.",
"Resolving in CJS mode with conditions 'require', 'types'.",
"'paths' option is specified, looking for a pattern to match module name 'fake:thing'.",
"Module name 'fake:thing', matched pattern 'fake:thing'.",
"Trying substitution './node_modules/fake/thing', candidate module location: './node_modules/fake/thing'.",
"Loading module as file / folder, candidate module location '/a/b/node_modules/fake/thing', target file types: TypeScript, Declaration.",
"Loading module as file / folder, candidate module location '/a/b/node_modules/fake/thing', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File '/a/b/node_modules/fake/thing.ts' does not exist.",
"File '/a/b/node_modules/fake/thing.tsx' does not exist.",
"File '/a/b/node_modules/fake/thing.d.ts' does not exist.",
"File '/a/b/node_modules/fake/thing.js' does not exist.",
"File '/a/b/node_modules/fake/thing.jsx' does not exist.",
"File '/a/b/node_modules/fake/thing/package.json' does not exist.",
"File '/a/b/node_modules/fake/thing/index.ts' does not exist.",
"File '/a/b/node_modules/fake/thing/index.tsx' does not exist.",
Loaded 100 of 747 files, more files were not shown because too many files have changed in this diff. Show more