Merge branch 'master' into map5
This commit is contained in:
commit
346a86582b
86 changed files with 1097 additions and 1099 deletions
|
@ -17278,7 +17278,7 @@ namespace ts {
|
|||
}
|
||||
|
||||
if (node.kind === SyntaxKind.BindingElement) {
|
||||
if (node.parent.kind === SyntaxKind.ObjectBindingPattern && languageVersion < ScriptTarget.ESNext) {
|
||||
if (node.parent.kind === SyntaxKind.ObjectBindingPattern && languageVersion < ScriptTarget.ESNext && !isInAmbientContext(node)) {
|
||||
checkExternalEmitHelpers(node, ExternalEmitHelpers.Rest);
|
||||
}
|
||||
// check computed properties inside property names of binding elements
|
||||
|
|
|
@ -2757,7 +2757,7 @@
|
|||
"category": "Message",
|
||||
"code": 6094
|
||||
},
|
||||
"Loading module as file / folder, candidate module location '{0}'.": {
|
||||
"Loading module as file / folder, candidate module location '{0}', target file type '{1}'.": {
|
||||
"category": "Message",
|
||||
"code": 6095
|
||||
},
|
||||
|
@ -2769,7 +2769,7 @@
|
|||
"category": "Message",
|
||||
"code": 6097
|
||||
},
|
||||
"Loading module '{0}' from 'node_modules' folder.": {
|
||||
"Loading module '{0}' from 'node_modules' folder, target file type '{1}'.": {
|
||||
"category": "Message",
|
||||
"code": 6098
|
||||
},
|
||||
|
@ -2965,10 +2965,14 @@
|
|||
"category": "Message",
|
||||
"code": 6146
|
||||
},
|
||||
"Resolution for module '{0}' was found in cache": {
|
||||
"Resolution for module '{0}' was found in cache.": {
|
||||
"category": "Message",
|
||||
"code": 6147
|
||||
},
|
||||
"Directory '{0}' does not exist, skipping all lookups in it.": {
|
||||
"category": "Message",
|
||||
"code": 6148
|
||||
},
|
||||
"Variable '{0}' implicitly has an '{1}' type.": {
|
||||
"category": "Error",
|
||||
"code": 7005
|
||||
|
|
|
@ -670,8 +670,6 @@ namespace ts {
|
|||
// Transformation nodes
|
||||
case SyntaxKind.PartiallyEmittedExpression:
|
||||
return emitPartiallyEmittedExpression(<PartiallyEmittedExpression>node);
|
||||
case SyntaxKind.RawExpression:
|
||||
return writeLines((<RawExpression>node).text);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1530,19 +1530,6 @@ namespace ts {
|
|||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a node that emits a string of raw text in an expression position. Raw text is never
|
||||
* transformed, should be ES3 compliant, and should have the same precedence as
|
||||
* PrimaryExpression.
|
||||
*
|
||||
* @param text The raw text of the node.
|
||||
*/
|
||||
export function createRawExpression(text: string) {
|
||||
const node = <RawExpression>createNode(SyntaxKind.RawExpression);
|
||||
node.text = text;
|
||||
return node;
|
||||
}
|
||||
|
||||
// Compound nodes
|
||||
|
||||
export function createComma(left: Expression, right: Expression) {
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace ts {
|
|||
* Kinds of file that we are currently looking for.
|
||||
* Typically there is one pass with Extensions.TypeScript, then a second pass with Extensions.JavaScript.
|
||||
*/
|
||||
const enum Extensions {
|
||||
enum Extensions {
|
||||
TypeScript, /** '.ts', '.tsx', or '.d.ts' */
|
||||
JavaScript, /** '.js' or '.jsx' */
|
||||
DtsOnly /** Only '.d.ts' */
|
||||
|
@ -217,9 +217,13 @@ namespace ts {
|
|||
return forEach(typeRoots, typeRoot => {
|
||||
const candidate = combinePaths(typeRoot, typeReferenceDirectiveName);
|
||||
const candidateDirectory = getDirectoryPath(candidate);
|
||||
const directoryExists = directoryProbablyExists(candidateDirectory, host);
|
||||
if (!directoryExists && traceEnabled) {
|
||||
trace(host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, candidateDirectory);
|
||||
}
|
||||
return resolvedTypeScriptOnly(
|
||||
loadNodeModuleFromDirectory(Extensions.DtsOnly, candidate, failedLookupLocations,
|
||||
!directoryProbablyExists(candidateDirectory, host), moduleResolutionState));
|
||||
!directoryExists, moduleResolutionState));
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
@ -701,7 +705,7 @@ namespace ts {
|
|||
|
||||
if (moduleHasNonRelativeName(moduleName)) {
|
||||
if (traceEnabled) {
|
||||
trace(host, Diagnostics.Loading_module_0_from_node_modules_folder, moduleName);
|
||||
trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1, moduleName, Extensions[extensions]);
|
||||
}
|
||||
const resolved = loadModuleFromNodeModules(extensions, moduleName, containingDirectory, failedLookupLocations, state, cache);
|
||||
// For node_modules lookups, get the real path so that multiple accesses to an `npm link`-ed module do not create duplicate files.
|
||||
|
@ -729,11 +733,33 @@ namespace ts {
|
|||
|
||||
function nodeLoadModuleByRelativeName(extensions: Extensions, candidate: string, failedLookupLocations: Push<string>, onlyRecordFailures: boolean, state: ModuleResolutionState): Resolved | undefined {
|
||||
if (state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0, candidate);
|
||||
trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1, candidate, Extensions[extensions]);
|
||||
}
|
||||
|
||||
const resolvedFromFile = !pathEndsWithDirectorySeparator(candidate) && loadModuleFromFile(extensions, candidate, failedLookupLocations, onlyRecordFailures, state);
|
||||
return resolvedFromFile || loadNodeModuleFromDirectory(extensions, candidate, failedLookupLocations, onlyRecordFailures, state);
|
||||
if (!pathEndsWithDirectorySeparator(candidate)) {
|
||||
if (!onlyRecordFailures) {
|
||||
const parentOfCandidate = getDirectoryPath(candidate);
|
||||
if (!directoryProbablyExists(parentOfCandidate, state.host)) {
|
||||
if (state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, parentOfCandidate);
|
||||
}
|
||||
onlyRecordFailures = true;
|
||||
}
|
||||
}
|
||||
const resolvedFromFile = loadModuleFromFile(extensions, candidate, failedLookupLocations, onlyRecordFailures, state);
|
||||
if (resolvedFromFile) {
|
||||
return resolvedFromFile;
|
||||
}
|
||||
}
|
||||
if (!onlyRecordFailures) {
|
||||
const candidateExists = directoryProbablyExists(candidate, state.host);
|
||||
if (!candidateExists) {
|
||||
if (state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, candidate);
|
||||
}
|
||||
onlyRecordFailures = true;
|
||||
}
|
||||
}
|
||||
return loadNodeModuleFromDirectory(extensions, candidate, failedLookupLocations, onlyRecordFailures, state);
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
|
@ -792,19 +818,21 @@ namespace ts {
|
|||
|
||||
/** Return the file if it exists. */
|
||||
function tryFile(fileName: string, failedLookupLocations: Push<string>, onlyRecordFailures: boolean, state: ModuleResolutionState): string | undefined {
|
||||
if (!onlyRecordFailures && state.host.fileExists(fileName)) {
|
||||
if (state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.File_0_exist_use_it_as_a_name_resolution_result, fileName);
|
||||
if (!onlyRecordFailures) {
|
||||
if (state.host.fileExists(fileName)) {
|
||||
if (state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.File_0_exist_use_it_as_a_name_resolution_result, fileName);
|
||||
}
|
||||
return fileName;
|
||||
}
|
||||
return fileName;
|
||||
}
|
||||
else {
|
||||
if (state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.File_0_does_not_exist, fileName);
|
||||
else {
|
||||
if (state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.File_0_does_not_exist, fileName);
|
||||
}
|
||||
}
|
||||
failedLookupLocations.push(fileName);
|
||||
return undefined;
|
||||
}
|
||||
failedLookupLocations.push(fileName);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function loadNodeModuleFromDirectory(extensions: Extensions, candidate: string, failedLookupLocations: Push<string>, onlyRecordFailures: boolean, state: ModuleResolutionState): Resolved | undefined {
|
||||
|
@ -841,7 +869,7 @@ namespace ts {
|
|||
}
|
||||
}
|
||||
else {
|
||||
if (state.traceEnabled) {
|
||||
if (directoryExists && state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.File_0_does_not_exist, packageJsonPath);
|
||||
}
|
||||
// record package json as one of failed lookup locations - in the future if this file will appear it will invalidate resolution results
|
||||
|
@ -873,9 +901,7 @@ namespace ts {
|
|||
return combinePaths(directory, "package.json");
|
||||
}
|
||||
|
||||
function loadModuleFromNodeModulesFolder(extensions: Extensions, moduleName: string, directory: string, failedLookupLocations: Push<string>, state: ModuleResolutionState): Resolved | undefined {
|
||||
const nodeModulesFolder = combinePaths(directory, "node_modules");
|
||||
const nodeModulesFolderExists = directoryProbablyExists(nodeModulesFolder, state.host);
|
||||
function loadModuleFromNodeModulesFolder(extensions: Extensions, moduleName: string, nodeModulesFolder: string, nodeModulesFolderExists: boolean, failedLookupLocations: Push<string>, state: ModuleResolutionState): Resolved | undefined {
|
||||
const candidate = normalizePath(combinePaths(nodeModulesFolder, moduleName));
|
||||
|
||||
return loadModuleFromFile(extensions, candidate, failedLookupLocations, !nodeModulesFolderExists, state) ||
|
||||
|
@ -905,12 +931,26 @@ namespace ts {
|
|||
|
||||
/** Load a module from a single node_modules directory, but not from any ancestors' node_modules directories. */
|
||||
function loadModuleFromNodeModulesOneLevel(extensions: Extensions, moduleName: string, directory: string, failedLookupLocations: Push<string>, state: ModuleResolutionState, typesOnly = false): Resolved | undefined {
|
||||
const packageResult = typesOnly ? undefined : loadModuleFromNodeModulesFolder(extensions, moduleName, directory, failedLookupLocations, state);
|
||||
const nodeModulesFolder = combinePaths(directory, "node_modules");
|
||||
const nodeModulesFolderExists = directoryProbablyExists(nodeModulesFolder, state.host);
|
||||
if (!nodeModulesFolderExists && state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
|
||||
}
|
||||
|
||||
const packageResult = typesOnly ? undefined : loadModuleFromNodeModulesFolder(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, failedLookupLocations, state);
|
||||
if (packageResult) {
|
||||
return packageResult;
|
||||
}
|
||||
if (extensions !== Extensions.JavaScript) {
|
||||
return loadModuleFromNodeModulesFolder(Extensions.DtsOnly, combinePaths("@types", moduleName), directory, failedLookupLocations, state);
|
||||
const nodeModulesAtTypes = combinePaths(nodeModulesFolder, "@types");
|
||||
let nodeModulesAtTypesExists = nodeModulesFolderExists;
|
||||
if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes, state.host)) {
|
||||
if (state.traceEnabled) {
|
||||
trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesAtTypes);
|
||||
}
|
||||
nodeModulesAtTypesExists = false;
|
||||
}
|
||||
return loadModuleFromNodeModulesFolder(Extensions.DtsOnly, moduleName, nodeModulesAtTypes, nodeModulesAtTypesExists, failedLookupLocations, state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -104,28 +104,7 @@ namespace ts {
|
|||
function transformAMDModule(node: SourceFile) {
|
||||
const define = createIdentifier("define");
|
||||
const moduleName = tryGetModuleNameFromFile(node, host, compilerOptions);
|
||||
return transformAsynchronousModule(node, define, moduleName, /*includeNonAmdDependencies*/ true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms a SourceFile into a UMD module.
|
||||
*
|
||||
* @param node The SourceFile node.
|
||||
*/
|
||||
function transformUMDModule(node: SourceFile) {
|
||||
const define = createRawExpression(umdHelper);
|
||||
return transformAsynchronousModule(node, define, /*moduleName*/ undefined, /*includeNonAmdDependencies*/ false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms a SourceFile into an AMD or UMD module.
|
||||
*
|
||||
* @param node The SourceFile node.
|
||||
* @param define The expression used to define the module.
|
||||
* @param moduleName An expression for the module name, if available.
|
||||
* @param includeNonAmdDependencies A value indicating whether to incldue any non-AMD dependencies.
|
||||
*/
|
||||
function transformAsynchronousModule(node: SourceFile, define: Expression, moduleName: Expression, includeNonAmdDependencies: boolean) {
|
||||
// An AMD define function has the following shape:
|
||||
//
|
||||
// define(id?, dependencies?, factory);
|
||||
|
@ -147,7 +126,7 @@ namespace ts {
|
|||
//
|
||||
// we need to add modules without alias names to the end of the dependencies list
|
||||
|
||||
const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies(node, includeNonAmdDependencies);
|
||||
const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies(node, /*includeNonAmdDependencies*/ true);
|
||||
|
||||
// Create an updated SourceFile:
|
||||
//
|
||||
|
@ -196,6 +175,137 @@ namespace ts {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms a SourceFile into a UMD module.
|
||||
*
|
||||
* @param node The SourceFile node.
|
||||
*/
|
||||
function transformUMDModule(node: SourceFile) {
|
||||
const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies(node, /*includeNonAmdDependencies*/ false);
|
||||
const umdHeader = createFunctionExpression(
|
||||
/*modifiers*/ undefined,
|
||||
/*asteriskToken*/ undefined,
|
||||
/*name*/ undefined,
|
||||
/*typeParameters*/ undefined,
|
||||
[createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "factory")],
|
||||
/*type*/ undefined,
|
||||
createBlock(
|
||||
[
|
||||
createIf(
|
||||
createLogicalAnd(
|
||||
createTypeCheck(createIdentifier("module"), "object"),
|
||||
createTypeCheck(createPropertyAccess(createIdentifier("module"), "exports"), "object")
|
||||
),
|
||||
createBlock([
|
||||
createVariableStatement(
|
||||
/*modifiers*/ undefined,
|
||||
[
|
||||
createVariableDeclaration(
|
||||
"v",
|
||||
/*type*/ undefined,
|
||||
createCall(
|
||||
createIdentifier("factory"),
|
||||
/*typeArguments*/ undefined,
|
||||
[
|
||||
createIdentifier("require"),
|
||||
createIdentifier("exports")
|
||||
]
|
||||
)
|
||||
)
|
||||
]
|
||||
),
|
||||
setEmitFlags(
|
||||
createIf(
|
||||
createStrictInequality(
|
||||
createIdentifier("v"),
|
||||
createIdentifier("undefined")
|
||||
),
|
||||
createStatement(
|
||||
createAssignment(
|
||||
createPropertyAccess(createIdentifier("module"), "exports"),
|
||||
createIdentifier("v")
|
||||
)
|
||||
)
|
||||
),
|
||||
EmitFlags.SingleLine
|
||||
)
|
||||
]),
|
||||
createIf(
|
||||
createLogicalAnd(
|
||||
createTypeCheck(createIdentifier("define"), "function"),
|
||||
createPropertyAccess(createIdentifier("define"), "amd")
|
||||
),
|
||||
createBlock([
|
||||
createStatement(
|
||||
createCall(
|
||||
createIdentifier("define"),
|
||||
/*typeArguments*/ undefined,
|
||||
[
|
||||
createArrayLiteral([
|
||||
createLiteral("require"),
|
||||
createLiteral("exports"),
|
||||
...aliasedModuleNames,
|
||||
...unaliasedModuleNames
|
||||
]),
|
||||
createIdentifier("factory")
|
||||
]
|
||||
)
|
||||
)
|
||||
])
|
||||
)
|
||||
)
|
||||
],
|
||||
/*location*/ undefined,
|
||||
/*multiLine*/ true
|
||||
)
|
||||
);
|
||||
|
||||
// Create an updated SourceFile:
|
||||
//
|
||||
// (function (factory) {
|
||||
// if (typeof module === "object" && typeof module.exports === "object") {
|
||||
// var v = factory(require, exports);
|
||||
// if (v !== undefined) module.exports = v;
|
||||
// }
|
||||
// else if (typeof define === 'function' && define.amd) {
|
||||
// define(["require", "exports"], factory);
|
||||
// }
|
||||
// })(function ...)
|
||||
|
||||
return updateSourceFileNode(
|
||||
node,
|
||||
createNodeArray(
|
||||
[
|
||||
createStatement(
|
||||
createCall(
|
||||
umdHeader,
|
||||
/*typeArguments*/ undefined,
|
||||
[
|
||||
// Add the module body function argument:
|
||||
//
|
||||
// function (require, exports) ...
|
||||
createFunctionExpression(
|
||||
/*modifiers*/ undefined,
|
||||
/*asteriskToken*/ undefined,
|
||||
/*name*/ undefined,
|
||||
/*typeParameters*/ undefined,
|
||||
[
|
||||
createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "require"),
|
||||
createParameter(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "exports"),
|
||||
...importAliasNames
|
||||
],
|
||||
/*type*/ undefined,
|
||||
transformAsynchronousModuleBody(node)
|
||||
)
|
||||
]
|
||||
)
|
||||
)
|
||||
],
|
||||
/*location*/ node.statements
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Collect the additional asynchronous dependencies for the module.
|
||||
*
|
||||
|
@ -1335,15 +1445,4 @@ namespace ts {
|
|||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}`
|
||||
};
|
||||
|
||||
// emit output for the UMD helper function.
|
||||
const umdHelper = `
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
}
|
||||
})`;
|
||||
}
|
||||
|
|
|
@ -396,7 +396,6 @@
|
|||
PartiallyEmittedExpression,
|
||||
MergeDeclarationMarker,
|
||||
EndOfDeclarationMarker,
|
||||
RawExpression,
|
||||
|
||||
// Enum value count
|
||||
Count,
|
||||
|
@ -1547,16 +1546,6 @@
|
|||
kind: SyntaxKind.EndOfDeclarationMarker;
|
||||
}
|
||||
|
||||
/**
|
||||
* Emits a string of raw text in an expression position. Raw text is never transformed, should
|
||||
* be ES3 compliant, and should have the same precedence as PrimaryExpression.
|
||||
*/
|
||||
/* @internal */
|
||||
export interface RawExpression extends PrimaryExpression {
|
||||
kind: SyntaxKind.RawExpression;
|
||||
text: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks the beginning of a merged transformed declaration.
|
||||
*/
|
||||
|
|
|
@ -2141,7 +2141,6 @@ namespace ts {
|
|||
case SyntaxKind.TemplateExpression:
|
||||
case SyntaxKind.ParenthesizedExpression:
|
||||
case SyntaxKind.OmittedExpression:
|
||||
case SyntaxKind.RawExpression:
|
||||
return 19;
|
||||
|
||||
case SyntaxKind.TaggedTemplateExpression:
|
||||
|
@ -2359,13 +2358,11 @@ namespace ts {
|
|||
* Note that this doesn't actually wrap the input in double quotes.
|
||||
*/
|
||||
export function escapeString(s: string): string {
|
||||
s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, getReplacement) : s;
|
||||
return s.replace(escapedCharsRegExp, getReplacement);
|
||||
}
|
||||
|
||||
return s;
|
||||
|
||||
function getReplacement(c: string) {
|
||||
return escapedCharsMap.get(c) || get16BitUnicodeEscapeSequence(c.charCodeAt(0));
|
||||
}
|
||||
function getReplacement(c: string) {
|
||||
return escapedCharsMap.get(c) || get16BitUnicodeEscapeSequence(c.charCodeAt(0));
|
||||
}
|
||||
|
||||
export function isIntrinsicJsxName(name: string) {
|
||||
|
@ -3885,8 +3882,7 @@ namespace ts {
|
|||
|| kind === SyntaxKind.ThisKeyword
|
||||
|| kind === SyntaxKind.TrueKeyword
|
||||
|| kind === SyntaxKind.SuperKeyword
|
||||
|| kind === SyntaxKind.NonNullExpression
|
||||
|| kind === SyntaxKind.RawExpression;
|
||||
|| kind === SyntaxKind.NonNullExpression;
|
||||
}
|
||||
|
||||
export function isLeftHandSideExpression(node: Node): node is LeftHandSideExpression {
|
||||
|
@ -3916,7 +3912,6 @@ namespace ts {
|
|||
|| kind === SyntaxKind.SpreadElement
|
||||
|| kind === SyntaxKind.AsExpression
|
||||
|| kind === SyntaxKind.OmittedExpression
|
||||
|| kind === SyntaxKind.RawExpression
|
||||
|| isUnaryExpressionKind(kind);
|
||||
}
|
||||
|
||||
|
|
|
@ -1330,7 +1330,7 @@ namespace ts {
|
|||
function aggregateTransformFlagsForSubtree(node: Node): TransformFlags {
|
||||
// We do not transform ambient declarations or types, so there is no need to
|
||||
// recursively aggregate transform flags.
|
||||
if (hasModifier(node, ModifierFlags.Ambient) || isTypeNode(node)) {
|
||||
if (hasModifier(node, ModifierFlags.Ambient) || (isTypeNode(node) && node.kind !== SyntaxKind.ExpressionWithTypeArguments)) {
|
||||
return TransformFlags.None;
|
||||
}
|
||||
|
||||
|
|
|
@ -2065,58 +2065,17 @@ namespace ts.projectSystem {
|
|||
assert.deepEqual(resolutionTrace, [
|
||||
"======== Resolving module 'lib' from '/a/b/app.js'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'lib' from 'node_modules' folder.",
|
||||
"File '/a/b/node_modules/lib.ts' does not exist.",
|
||||
"File '/a/b/node_modules/lib.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/lib.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/lib/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/lib/index.ts' does not exist.",
|
||||
"File '/a/b/node_modules/lib/index.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/lib/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/lib.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/lib/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/@types/lib/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/lib.ts' does not exist.",
|
||||
"File '/a/node_modules/lib.tsx' does not exist.",
|
||||
"File '/a/node_modules/lib.d.ts' does not exist.",
|
||||
"File '/a/node_modules/lib/package.json' does not exist.",
|
||||
"File '/a/node_modules/lib/index.ts' does not exist.",
|
||||
"File '/a/node_modules/lib/index.tsx' does not exist.",
|
||||
"File '/a/node_modules/lib/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/lib.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/lib/package.json' does not exist.",
|
||||
"File '/a/node_modules/@types/lib/index.d.ts' does not exist.",
|
||||
"File '/node_modules/lib.ts' does not exist.",
|
||||
"File '/node_modules/lib.tsx' does not exist.",
|
||||
"File '/node_modules/lib.d.ts' does not exist.",
|
||||
"File '/node_modules/lib/package.json' does not exist.",
|
||||
"File '/node_modules/lib/index.ts' does not exist.",
|
||||
"File '/node_modules/lib/index.tsx' does not exist.",
|
||||
"File '/node_modules/lib/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/lib.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/lib/package.json' does not exist.",
|
||||
"File '/node_modules/@types/lib/index.d.ts' does not exist.",
|
||||
"Loading module 'lib' from 'node_modules' folder.",
|
||||
"File '/a/b/node_modules/lib.js' does not exist.",
|
||||
"File '/a/b/node_modules/lib.jsx' does not exist.",
|
||||
"File '/a/b/node_modules/lib/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/lib/index.js' does not exist.",
|
||||
"File '/a/b/node_modules/lib/index.jsx' does not exist.",
|
||||
"File '/a/node_modules/lib.js' does not exist.",
|
||||
"File '/a/node_modules/lib.jsx' does not exist.",
|
||||
"File '/a/node_modules/lib/package.json' does not exist.",
|
||||
"File '/a/node_modules/lib/index.js' does not exist.",
|
||||
"File '/a/node_modules/lib/index.jsx' does not exist.",
|
||||
"File '/node_modules/lib.js' does not exist.",
|
||||
"File '/node_modules/lib.jsx' does not exist.",
|
||||
"File '/node_modules/lib/package.json' does not exist.",
|
||||
"File '/node_modules/lib/index.js' does not exist.",
|
||||
"File '/node_modules/lib/index.jsx' does not exist.",
|
||||
"Loading module 'lib' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"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 'lib' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"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 'lib' was not resolved. ========",
|
||||
`Auto discovery for typings is enabled in project '${proj.getProjectName()}'. Running extra resolution pass for module 'lib' using cache location '/a/cache'.`,
|
||||
"File '/a/cache/node_modules/lib.d.ts' does not exist.",
|
||||
"File '/a/cache/node_modules/lib/package.json' does not exist.",
|
||||
"File '/a/cache/node_modules/lib/index.d.ts' does not exist.",
|
||||
"File '/a/cache/node_modules/@types/lib.d.ts' does not exist.",
|
||||
"File '/a/cache/node_modules/@types/lib/package.json' does not exist.",
|
||||
"File '/a/cache/node_modules/@types/lib/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
|
|
@ -7,14 +7,15 @@ export default class {}
|
|||
export default function() {}
|
||||
|
||||
//// [a.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
class default_1 {
|
||||
}
|
||||
|
@ -22,14 +23,15 @@ export default function() {}
|
|||
exports.default = default_1;
|
||||
});
|
||||
//// [b.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
function default_1() { }
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
|
|
@ -13,18 +13,10 @@
|
|||
"File '/tslib.ts' does not exist.",
|
||||
"File '/tslib.tsx' does not exist.",
|
||||
"File '/tslib.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/tslib.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/tslib/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/tslib/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/tslib.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/tslib/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/@types/tslib/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/tslib.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/tslib/package.json' does not exist.",
|
||||
"File '/a/node_modules/@types/tslib/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/tslib.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/tslib/package.json' does not exist.",
|
||||
"File '/node_modules/@types/tslib/index.d.ts' does not exist.",
|
||||
"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.",
|
||||
"File '/a/b/c/tslib.js' does not exist.",
|
||||
"File '/a/b/c/tslib.jsx' does not exist.",
|
||||
"File '/a/b/tslib.js' does not exist.",
|
||||
|
@ -35,9 +27,9 @@
|
|||
"File '/tslib.jsx' does not exist.",
|
||||
"======== Module name 'tslib' was not resolved. ========",
|
||||
"======== Resolving module 'tslib' from '/a/b/c/lib1.ts'. ========",
|
||||
"Resolution for module 'tslib' was found in cache",
|
||||
"Resolution for module 'tslib' was found in cache.",
|
||||
"======== Module name 'tslib' was not resolved. ========",
|
||||
"======== Resolving module 'tslib' from '/a/b/c/lib2.ts'. ========",
|
||||
"Resolution for module 'tslib' was found in cache",
|
||||
"Resolution for module 'tslib' was found in cache.",
|
||||
"======== Module name 'tslib' was not resolved. ========"
|
||||
]
|
|
@ -1,37 +1,10 @@
|
|||
[
|
||||
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"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.",
|
||||
"File '/a/b/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -39,8 +12,8 @@
|
|||
"======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
|
||||
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"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'. ========"
|
||||
]
|
|
@ -1,17 +1,8 @@
|
|||
[
|
||||
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/a/b/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -19,28 +10,10 @@
|
|||
"======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
|
||||
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"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.",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"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'. ========"
|
||||
]
|
|
@ -16,6 +16,6 @@
|
|||
"======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ========",
|
||||
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'Classic'.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ========"
|
||||
]
|
|
@ -16,6 +16,6 @@
|
|||
"File '/a/b/c/d/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/foo.d.ts' does not exist.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ========"
|
||||
]
|
|
@ -1,37 +1,10 @@
|
|||
[
|
||||
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"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.",
|
||||
"File '/a/b/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -39,8 +12,8 @@
|
|||
"======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
|
||||
"======== Resolving module 'foo' from '/a/b/lib.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"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'. ========"
|
||||
]
|
|
@ -1,102 +1,24 @@
|
|||
[
|
||||
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"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.",
|
||||
"File '/node_modules/foo/package.json' does not exist.",
|
||||
"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.",
|
||||
"File '/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.js' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.jsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.js' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.jsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.js' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.jsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.js' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.jsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.js' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.jsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.js' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.jsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo.js' does not exist.",
|
||||
"File '/a/b/node_modules/foo.jsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.js' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.jsx' does not exist.",
|
||||
"File '/a/node_modules/foo.js' does not exist.",
|
||||
"File '/a/node_modules/foo.jsx' does not exist.",
|
||||
"File '/a/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/node_modules/foo/index.js' does not exist.",
|
||||
"File '/a/node_modules/foo/index.jsx' does not exist.",
|
||||
"File '/node_modules/foo.js' does not exist.",
|
||||
"File '/node_modules/foo.jsx' does not exist.",
|
||||
"File '/node_modules/foo/package.json' does not exist.",
|
||||
"File '/node_modules/foo/index.js' does not exist.",
|
||||
"File '/node_modules/foo/index.jsx' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/node_modules' does not exist, skipping all lookups in it.",
|
||||
"======== Module name 'foo' was not resolved. ========",
|
||||
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"======== Module name 'foo' was not resolved. ========"
|
||||
]
|
|
@ -1,92 +1,22 @@
|
|||
[
|
||||
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"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.",
|
||||
"File '/node_modules/foo/package.json' does not exist.",
|
||||
"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.",
|
||||
"File '/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/node_modules/foo.js' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo.jsx' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.js' does not exist.",
|
||||
"File '/a/b/c/node_modules/foo/index.jsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo.js' does not exist.",
|
||||
"File '/a/b/node_modules/foo.jsx' does not exist.",
|
||||
"File '/a/b/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.js' does not exist.",
|
||||
"File '/a/b/node_modules/foo/index.jsx' does not exist.",
|
||||
"File '/a/node_modules/foo.js' does not exist.",
|
||||
"File '/a/node_modules/foo.jsx' does not exist.",
|
||||
"File '/a/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/node_modules/foo/index.js' does not exist.",
|
||||
"File '/a/node_modules/foo/index.jsx' does not exist.",
|
||||
"File '/node_modules/foo.js' does not exist.",
|
||||
"File '/node_modules/foo.jsx' does not exist.",
|
||||
"File '/node_modules/foo/package.json' does not exist.",
|
||||
"File '/node_modules/foo/index.js' does not exist.",
|
||||
"File '/node_modules/foo/index.jsx' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"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 type 'JavaScript'.",
|
||||
"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: 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.tsx' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"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.",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"======== Module name 'foo' was not resolved. ========"
|
||||
]
|
|
@ -19,24 +19,12 @@
|
|||
"File '/foo.ts' does not exist.",
|
||||
"File '/foo.tsx' does not exist.",
|
||||
"File '/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/e/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/d/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/a/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/a/b/c/d/e/foo.js' does not exist.",
|
||||
"File '/a/b/c/d/e/foo.jsx' does not exist.",
|
||||
"File '/a/b/c/d/foo.js' does not exist.",
|
||||
|
@ -52,6 +40,6 @@
|
|||
"======== Module name 'foo' was not resolved. ========",
|
||||
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'Classic'.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"======== Module name 'foo' was not resolved. ========"
|
||||
]
|
|
@ -13,18 +13,10 @@
|
|||
"File '/foo.ts' does not exist.",
|
||||
"File '/foo.tsx' does not exist.",
|
||||
"File '/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/c/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/a/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/a/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"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.",
|
||||
"File '/a/b/c/foo.js' does not exist.",
|
||||
"File '/a/b/c/foo.jsx' does not exist.",
|
||||
"File '/a/b/foo.js' does not exist.",
|
||||
|
@ -42,6 +34,6 @@
|
|||
"File '/a/b/c/d/foo.ts' does not exist.",
|
||||
"File '/a/b/c/d/foo.tsx' does not exist.",
|
||||
"File '/a/b/c/d/foo.d.ts' does not exist.",
|
||||
"Resolution for module 'foo' was found in cache",
|
||||
"Resolution for module 'foo' was found in cache.",
|
||||
"======== Module name 'foo' was not resolved. ========"
|
||||
]
|
|
@ -20,14 +20,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var decorator;
|
||||
let Foo = class Foo {
|
||||
|
@ -45,14 +46,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var decorator;
|
||||
let default_1 = class {
|
||||
|
|
|
@ -13,14 +13,15 @@ import x from './a';
|
|||
|
||||
|
||||
//// [a.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
const x = new Promise((resolve, reject) => { resolve({}); });
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
@ -35,14 +36,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./a"], factory);
|
||||
}
|
||||
})(["require", "exports", "./a"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
const a_1 = require("./a");
|
||||
(function () {
|
||||
|
|
|
@ -8,14 +8,15 @@ export default function foo() {}
|
|||
|
||||
|
||||
//// [a.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
class Foo {
|
||||
}
|
||||
|
@ -23,14 +24,15 @@ export default function foo() {}
|
|||
exports.default = Foo;
|
||||
});
|
||||
//// [b.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
function foo() { }
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
|
|
@ -6,14 +6,15 @@ export let { toString } = 1;
|
|||
|
||||
|
||||
//// [destructuringInVariableDeclarations5.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
exports.toString = (1).toString;
|
||||
{
|
||||
|
|
|
@ -7,14 +7,15 @@ export {};
|
|||
|
||||
|
||||
//// [destructuringInVariableDeclarations6.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
let { toString } = 1;
|
||||
{
|
||||
|
|
|
@ -15,14 +15,15 @@ export class A
|
|||
|
||||
|
||||
//// [es5-umd2.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var A = (function () {
|
||||
function A() {
|
||||
|
|
|
@ -15,14 +15,15 @@ export default class A
|
|||
|
||||
|
||||
//// [es5-umd3.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var A = (function () {
|
||||
function A() {
|
||||
|
|
|
@ -17,14 +17,15 @@ export = A;
|
|||
|
||||
|
||||
//// [es5-umd4.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var A = (function () {
|
||||
function A() {
|
||||
|
|
|
@ -14,14 +14,15 @@ export class A
|
|||
}
|
||||
|
||||
//// [es6-umd2.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
class A {
|
||||
constructor() {
|
||||
|
|
|
@ -2,14 +2,15 @@
|
|||
export = { ["hi"]: "there" };
|
||||
|
||||
//// [exportEqualsUmd.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var _a;
|
||||
return _a = {}, _a["hi"] = "there", _a;
|
||||
|
|
|
@ -35,14 +35,15 @@ export let h1: D = new D;
|
|||
|
||||
|
||||
//// [exportNonInitializedVariablesUMD.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var ;
|
||||
let;
|
||||
|
|
59
tests/baselines/reference/importHelpersInAmbientContext.js
Normal file
59
tests/baselines/reference/importHelpersInAmbientContext.js
Normal file
|
@ -0,0 +1,59 @@
|
|||
//// [tests/cases/compiler/importHelpersInAmbientContext.ts] ////
|
||||
|
||||
//// [a.d.ts]
|
||||
|
||||
export { };
|
||||
|
||||
// Extends
|
||||
declare class C { }
|
||||
declare class D extends C { }
|
||||
|
||||
// Destructuring
|
||||
interface I {
|
||||
({descendants, read}?: {
|
||||
descendants?: boolean;
|
||||
read?: any;
|
||||
}): any;
|
||||
}
|
||||
|
||||
|
||||
// Object Rest
|
||||
interface Foo {
|
||||
a: number; b: string;
|
||||
}
|
||||
export var { a, ...x } : Foo;
|
||||
|
||||
//// [b.ts]
|
||||
export {};
|
||||
declare namespace N {
|
||||
// Extends
|
||||
class C { }
|
||||
class D extends C { }
|
||||
|
||||
// Destructuring
|
||||
interface I {
|
||||
({descendants, read}?: {
|
||||
descendants?: boolean;
|
||||
read?: any;
|
||||
}): any;
|
||||
}
|
||||
|
||||
|
||||
// Object Rest
|
||||
interface Foo {
|
||||
a: number; b: string;
|
||||
}
|
||||
export var { a, ...x } : Foo;
|
||||
}
|
||||
|
||||
//// [tslib.d.ts]
|
||||
export declare function __extends(d: Function, b: Function): void;
|
||||
export declare function __assign(t: any, ...sources: any[]): any;
|
||||
export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
|
||||
export declare function __param(paramIndex: number, decorator: Function): Function;
|
||||
export declare function __metadata(metadataKey: any, metadataValue: any): Function;
|
||||
export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
|
||||
|
||||
|
||||
//// [b.js]
|
||||
"use strict";
|
131
tests/baselines/reference/importHelpersInAmbientContext.symbols
Normal file
131
tests/baselines/reference/importHelpersInAmbientContext.symbols
Normal file
|
@ -0,0 +1,131 @@
|
|||
=== tests/cases/compiler/a.d.ts ===
|
||||
|
||||
export { };
|
||||
|
||||
// Extends
|
||||
declare class C { }
|
||||
>C : Symbol(C, Decl(a.d.ts, 1, 11))
|
||||
|
||||
declare class D extends C { }
|
||||
>D : Symbol(D, Decl(a.d.ts, 4, 19))
|
||||
>C : Symbol(C, Decl(a.d.ts, 1, 11))
|
||||
|
||||
// Destructuring
|
||||
interface I {
|
||||
>I : Symbol(I, Decl(a.d.ts, 5, 29))
|
||||
|
||||
({descendants, read}?: {
|
||||
>descendants : Symbol(descendants, Decl(a.d.ts, 9, 6))
|
||||
>read : Symbol(read, Decl(a.d.ts, 9, 18))
|
||||
|
||||
descendants?: boolean;
|
||||
>descendants : Symbol(descendants, Decl(a.d.ts, 9, 28))
|
||||
|
||||
read?: any;
|
||||
>read : Symbol(read, Decl(a.d.ts, 10, 30))
|
||||
|
||||
}): any;
|
||||
}
|
||||
|
||||
|
||||
// Object Rest
|
||||
interface Foo {
|
||||
>Foo : Symbol(Foo, Decl(a.d.ts, 13, 1))
|
||||
|
||||
a: number; b: string;
|
||||
>a : Symbol(Foo.a, Decl(a.d.ts, 17, 15))
|
||||
>b : Symbol(Foo.b, Decl(a.d.ts, 18, 14))
|
||||
}
|
||||
export var { a, ...x } : Foo;
|
||||
>a : Symbol(a, Decl(a.d.ts, 20, 12))
|
||||
>x : Symbol(x, Decl(a.d.ts, 20, 15))
|
||||
>Foo : Symbol(Foo, Decl(a.d.ts, 13, 1))
|
||||
|
||||
=== tests/cases/compiler/b.ts ===
|
||||
export {};
|
||||
declare namespace N {
|
||||
>N : Symbol(N, Decl(b.ts, 0, 10))
|
||||
|
||||
// Extends
|
||||
class C { }
|
||||
>C : Symbol(C, Decl(b.ts, 1, 21))
|
||||
|
||||
class D extends C { }
|
||||
>D : Symbol(D, Decl(b.ts, 3, 12))
|
||||
>C : Symbol(C, Decl(b.ts, 1, 21))
|
||||
|
||||
// Destructuring
|
||||
interface I {
|
||||
>I : Symbol(I, Decl(b.ts, 4, 22))
|
||||
|
||||
({descendants, read}?: {
|
||||
>descendants : Symbol(descendants, Decl(b.ts, 8, 4))
|
||||
>read : Symbol(read, Decl(b.ts, 8, 16))
|
||||
|
||||
descendants?: boolean;
|
||||
>descendants : Symbol(descendants, Decl(b.ts, 8, 26))
|
||||
|
||||
read?: any;
|
||||
>read : Symbol(read, Decl(b.ts, 9, 25))
|
||||
|
||||
}): any;
|
||||
}
|
||||
|
||||
|
||||
// Object Rest
|
||||
interface Foo {
|
||||
>Foo : Symbol(Foo, Decl(b.ts, 12, 2))
|
||||
|
||||
a: number; b: string;
|
||||
>a : Symbol(Foo.a, Decl(b.ts, 16, 16))
|
||||
>b : Symbol(Foo.b, Decl(b.ts, 17, 12))
|
||||
}
|
||||
export var { a, ...x } : Foo;
|
||||
>a : Symbol(a, Decl(b.ts, 19, 13))
|
||||
>x : Symbol(x, Decl(b.ts, 19, 16))
|
||||
>Foo : Symbol(Foo, Decl(b.ts, 12, 2))
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/tslib.d.ts ===
|
||||
export declare function __extends(d: Function, b: Function): void;
|
||||
>__extends : Symbol(__extends, Decl(tslib.d.ts, --, --))
|
||||
>d : Symbol(d, Decl(tslib.d.ts, --, --))
|
||||
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
>b : Symbol(b, Decl(tslib.d.ts, --, --))
|
||||
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
||||
export declare function __assign(t: any, ...sources: any[]): any;
|
||||
>__assign : Symbol(__assign, Decl(tslib.d.ts, --, --))
|
||||
>t : Symbol(t, Decl(tslib.d.ts, --, --))
|
||||
>sources : Symbol(sources, Decl(tslib.d.ts, --, --))
|
||||
|
||||
export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
|
||||
>__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --))
|
||||
>decorators : Symbol(decorators, Decl(tslib.d.ts, --, --))
|
||||
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
>target : Symbol(target, Decl(tslib.d.ts, --, --))
|
||||
>key : Symbol(key, Decl(tslib.d.ts, --, --))
|
||||
>desc : Symbol(desc, Decl(tslib.d.ts, --, --))
|
||||
|
||||
export declare function __param(paramIndex: number, decorator: Function): Function;
|
||||
>__param : Symbol(__param, Decl(tslib.d.ts, --, --))
|
||||
>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --))
|
||||
>decorator : Symbol(decorator, Decl(tslib.d.ts, --, --))
|
||||
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
||||
export declare function __metadata(metadataKey: any, metadataValue: any): Function;
|
||||
>__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --))
|
||||
>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --))
|
||||
>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --))
|
||||
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
||||
export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
|
||||
>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --))
|
||||
>thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --))
|
||||
>_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --))
|
||||
>P : Symbol(P, Decl(tslib.d.ts, --, --))
|
||||
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
>generator : Symbol(generator, Decl(tslib.d.ts, --, --))
|
||||
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
131
tests/baselines/reference/importHelpersInAmbientContext.types
Normal file
131
tests/baselines/reference/importHelpersInAmbientContext.types
Normal file
|
@ -0,0 +1,131 @@
|
|||
=== tests/cases/compiler/a.d.ts ===
|
||||
|
||||
export { };
|
||||
|
||||
// Extends
|
||||
declare class C { }
|
||||
>C : C
|
||||
|
||||
declare class D extends C { }
|
||||
>D : D
|
||||
>C : C
|
||||
|
||||
// Destructuring
|
||||
interface I {
|
||||
>I : I
|
||||
|
||||
({descendants, read}?: {
|
||||
>descendants : boolean
|
||||
>read : any
|
||||
|
||||
descendants?: boolean;
|
||||
>descendants : boolean
|
||||
|
||||
read?: any;
|
||||
>read : any
|
||||
|
||||
}): any;
|
||||
}
|
||||
|
||||
|
||||
// Object Rest
|
||||
interface Foo {
|
||||
>Foo : Foo
|
||||
|
||||
a: number; b: string;
|
||||
>a : number
|
||||
>b : string
|
||||
}
|
||||
export var { a, ...x } : Foo;
|
||||
>a : number
|
||||
>x : { b: string; }
|
||||
>Foo : Foo
|
||||
|
||||
=== tests/cases/compiler/b.ts ===
|
||||
export {};
|
||||
declare namespace N {
|
||||
>N : typeof N
|
||||
|
||||
// Extends
|
||||
class C { }
|
||||
>C : C
|
||||
|
||||
class D extends C { }
|
||||
>D : D
|
||||
>C : C
|
||||
|
||||
// Destructuring
|
||||
interface I {
|
||||
>I : I
|
||||
|
||||
({descendants, read}?: {
|
||||
>descendants : boolean
|
||||
>read : any
|
||||
|
||||
descendants?: boolean;
|
||||
>descendants : boolean
|
||||
|
||||
read?: any;
|
||||
>read : any
|
||||
|
||||
}): any;
|
||||
}
|
||||
|
||||
|
||||
// Object Rest
|
||||
interface Foo {
|
||||
>Foo : Foo
|
||||
|
||||
a: number; b: string;
|
||||
>a : number
|
||||
>b : string
|
||||
}
|
||||
export var { a, ...x } : Foo;
|
||||
>a : number
|
||||
>x : { b: string; }
|
||||
>Foo : Foo
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/tslib.d.ts ===
|
||||
export declare function __extends(d: Function, b: Function): void;
|
||||
>__extends : (d: Function, b: Function) => void
|
||||
>d : Function
|
||||
>Function : Function
|
||||
>b : Function
|
||||
>Function : Function
|
||||
|
||||
export declare function __assign(t: any, ...sources: any[]): any;
|
||||
>__assign : (t: any, ...sources: any[]) => any
|
||||
>t : any
|
||||
>sources : any[]
|
||||
|
||||
export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
|
||||
>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any
|
||||
>decorators : Function[]
|
||||
>Function : Function
|
||||
>target : any
|
||||
>key : string | symbol
|
||||
>desc : any
|
||||
|
||||
export declare function __param(paramIndex: number, decorator: Function): Function;
|
||||
>__param : (paramIndex: number, decorator: Function) => Function
|
||||
>paramIndex : number
|
||||
>decorator : Function
|
||||
>Function : Function
|
||||
>Function : Function
|
||||
|
||||
export declare function __metadata(metadataKey: any, metadataValue: any): Function;
|
||||
>__metadata : (metadataKey: any, metadataValue: any) => Function
|
||||
>metadataKey : any
|
||||
>metadataValue : any
|
||||
>Function : Function
|
||||
|
||||
export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
|
||||
>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any
|
||||
>thisArg : any
|
||||
>_arguments : any
|
||||
>P : Function
|
||||
>Function : Function
|
||||
>generator : Function
|
||||
>Function : Function
|
||||
|
|
@ -1,23 +1,23 @@
|
|||
[
|
||||
"======== Resolving module '.' from '/a/test.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/a'.",
|
||||
"Loading module as file / folder, candidate module location '/a', target file type 'TypeScript'.",
|
||||
"File '/a.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name '.' was successfully resolved to '/a.ts'. ========",
|
||||
"======== Resolving module './' from '/a/test.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/a/'.",
|
||||
"Loading module as file / folder, candidate module location '/a/', target file type 'TypeScript'.",
|
||||
"File '/a/package.json' does not exist.",
|
||||
"File '/a/index.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './' was successfully resolved to '/a/index.ts'. ========",
|
||||
"======== Resolving module '..' from '/a/b/test.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/a'.",
|
||||
"Loading module as file / folder, candidate module location '/a', target file type 'TypeScript'.",
|
||||
"File '/a.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name '..' was successfully resolved to '/a.ts'. ========",
|
||||
"======== Resolving module '../' from '/a/b/test.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/a/'.",
|
||||
"Loading module as file / folder, candidate module location '/a/', target file type 'TypeScript'.",
|
||||
"File '/a/package.json' does not exist.",
|
||||
"File '/a/index.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name '../' was successfully resolved to '/a/index.ts'. ========"
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
[
|
||||
"======== Resolving module './foo/' from '/a.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/foo/'.",
|
||||
"File '/foo/package.json' does not exist.",
|
||||
"File '/foo/index.ts' does not exist.",
|
||||
"File '/foo/index.tsx' does not exist.",
|
||||
"File '/foo/index.d.ts' does not exist.",
|
||||
"Loading module as file / folder, candidate module location '/foo/'.",
|
||||
"File '/foo/package.json' does not exist.",
|
||||
"File '/foo/index.js' does not exist.",
|
||||
"File '/foo/index.jsx' does not exist.",
|
||||
"Loading module as file / folder, candidate module location '/foo/', target file type 'TypeScript'.",
|
||||
"Directory '/foo/' does not exist, skipping all lookups in it.",
|
||||
"Loading module as file / folder, candidate module location '/foo/', target file type 'JavaScript'.",
|
||||
"Directory '/foo/' does not exist, skipping all lookups in it.",
|
||||
"======== Module name './foo/' was not resolved. ========"
|
||||
]
|
|
@ -5,14 +5,15 @@ run(1);
|
|||
|
||||
|
||||
//// [isolatedModulesPlainFile-UMD.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
run(1);
|
||||
});
|
||||
|
|
35
tests/baselines/reference/jsxInExtendsClause.js
Normal file
35
tests/baselines/reference/jsxInExtendsClause.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
//// [jsxInExtendsClause.tsx]
|
||||
// https://github.com/Microsoft/TypeScript/issues/13157
|
||||
declare namespace React {
|
||||
interface ComponentClass<P> { new (): Component<P, {}>; }
|
||||
class Component<A, B> {}
|
||||
}
|
||||
declare function createComponentClass<P>(factory: () => React.ComponentClass<P>): React.ComponentClass<P>;
|
||||
class Foo extends createComponentClass(() => class extends React.Component<{}, {}> {
|
||||
render() {
|
||||
return <span>Hello, world!</span>;
|
||||
}
|
||||
}) {}
|
||||
|
||||
//// [jsxInExtendsClause.js]
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Foo = (function (_super) {
|
||||
__extends(Foo, _super);
|
||||
function Foo() {
|
||||
return _super.apply(this, arguments) || this;
|
||||
}
|
||||
return Foo;
|
||||
}(createComponentClass(function () { return (function (_super) {
|
||||
__extends(class_1, _super);
|
||||
function class_1() {
|
||||
return _super.apply(this, arguments) || this;
|
||||
}
|
||||
class_1.prototype.render = function () {
|
||||
return React.createElement("span", null, "Hello, world!");
|
||||
};
|
||||
return class_1;
|
||||
}(React.Component)); })));
|
42
tests/baselines/reference/jsxInExtendsClause.symbols
Normal file
42
tests/baselines/reference/jsxInExtendsClause.symbols
Normal file
|
@ -0,0 +1,42 @@
|
|||
=== tests/cases/compiler/jsxInExtendsClause.tsx ===
|
||||
// https://github.com/Microsoft/TypeScript/issues/13157
|
||||
declare namespace React {
|
||||
>React : Symbol(React, Decl(jsxInExtendsClause.tsx, 0, 0))
|
||||
|
||||
interface ComponentClass<P> { new (): Component<P, {}>; }
|
||||
>ComponentClass : Symbol(ComponentClass, Decl(jsxInExtendsClause.tsx, 1, 25))
|
||||
>P : Symbol(P, Decl(jsxInExtendsClause.tsx, 2, 27))
|
||||
>Component : Symbol(Component, Decl(jsxInExtendsClause.tsx, 2, 59))
|
||||
>P : Symbol(P, Decl(jsxInExtendsClause.tsx, 2, 27))
|
||||
|
||||
class Component<A, B> {}
|
||||
>Component : Symbol(Component, Decl(jsxInExtendsClause.tsx, 2, 59))
|
||||
>A : Symbol(A, Decl(jsxInExtendsClause.tsx, 3, 18))
|
||||
>B : Symbol(B, Decl(jsxInExtendsClause.tsx, 3, 20))
|
||||
}
|
||||
declare function createComponentClass<P>(factory: () => React.ComponentClass<P>): React.ComponentClass<P>;
|
||||
>createComponentClass : Symbol(createComponentClass, Decl(jsxInExtendsClause.tsx, 4, 1))
|
||||
>P : Symbol(P, Decl(jsxInExtendsClause.tsx, 5, 38))
|
||||
>factory : Symbol(factory, Decl(jsxInExtendsClause.tsx, 5, 41))
|
||||
>React : Symbol(React, Decl(jsxInExtendsClause.tsx, 0, 0))
|
||||
>ComponentClass : Symbol(React.ComponentClass, Decl(jsxInExtendsClause.tsx, 1, 25))
|
||||
>P : Symbol(P, Decl(jsxInExtendsClause.tsx, 5, 38))
|
||||
>React : Symbol(React, Decl(jsxInExtendsClause.tsx, 0, 0))
|
||||
>ComponentClass : Symbol(React.ComponentClass, Decl(jsxInExtendsClause.tsx, 1, 25))
|
||||
>P : Symbol(P, Decl(jsxInExtendsClause.tsx, 5, 38))
|
||||
|
||||
class Foo extends createComponentClass(() => class extends React.Component<{}, {}> {
|
||||
>Foo : Symbol(Foo, Decl(jsxInExtendsClause.tsx, 5, 106))
|
||||
>createComponentClass : Symbol(createComponentClass, Decl(jsxInExtendsClause.tsx, 4, 1))
|
||||
>React.Component : Symbol(React.Component, Decl(jsxInExtendsClause.tsx, 2, 59))
|
||||
>React : Symbol(React, Decl(jsxInExtendsClause.tsx, 0, 0))
|
||||
>Component : Symbol(React.Component, Decl(jsxInExtendsClause.tsx, 2, 59))
|
||||
|
||||
render() {
|
||||
>render : Symbol((Anonymous class).render, Decl(jsxInExtendsClause.tsx, 6, 84))
|
||||
|
||||
return <span>Hello, world!</span>;
|
||||
>span : Symbol(unknown)
|
||||
>span : Symbol(unknown)
|
||||
}
|
||||
}) {}
|
46
tests/baselines/reference/jsxInExtendsClause.types
Normal file
46
tests/baselines/reference/jsxInExtendsClause.types
Normal file
|
@ -0,0 +1,46 @@
|
|||
=== tests/cases/compiler/jsxInExtendsClause.tsx ===
|
||||
// https://github.com/Microsoft/TypeScript/issues/13157
|
||||
declare namespace React {
|
||||
>React : typeof React
|
||||
|
||||
interface ComponentClass<P> { new (): Component<P, {}>; }
|
||||
>ComponentClass : ComponentClass<P>
|
||||
>P : P
|
||||
>Component : Component<A, B>
|
||||
>P : P
|
||||
|
||||
class Component<A, B> {}
|
||||
>Component : Component<A, B>
|
||||
>A : A
|
||||
>B : B
|
||||
}
|
||||
declare function createComponentClass<P>(factory: () => React.ComponentClass<P>): React.ComponentClass<P>;
|
||||
>createComponentClass : <P>(factory: () => React.ComponentClass<P>) => React.ComponentClass<P>
|
||||
>P : P
|
||||
>factory : () => React.ComponentClass<P>
|
||||
>React : any
|
||||
>ComponentClass : React.ComponentClass<P>
|
||||
>P : P
|
||||
>React : any
|
||||
>ComponentClass : React.ComponentClass<P>
|
||||
>P : P
|
||||
|
||||
class Foo extends createComponentClass(() => class extends React.Component<{}, {}> {
|
||||
>Foo : Foo
|
||||
>createComponentClass(() => class extends React.Component<{}, {}> { render() { return <span>Hello, world!</span>; }}) : React.Component<{}, {}>
|
||||
>createComponentClass : <P>(factory: () => React.ComponentClass<P>) => React.ComponentClass<P>
|
||||
>() => class extends React.Component<{}, {}> { render() { return <span>Hello, world!</span>; }} : () => typeof (Anonymous class)
|
||||
>class extends React.Component<{}, {}> { render() { return <span>Hello, world!</span>; }} : typeof (Anonymous class)
|
||||
>React.Component : React.Component<{}, {}>
|
||||
>React : typeof React
|
||||
>Component : typeof React.Component
|
||||
|
||||
render() {
|
||||
>render : () => any
|
||||
|
||||
return <span>Hello, world!</span>;
|
||||
><span>Hello, world!</span> : any
|
||||
>span : any
|
||||
>span : any
|
||||
}
|
||||
}) {}
|
|
@ -2,12 +2,7 @@
|
|||
"======== Resolving type reference directive 'jquery', containing file '/a/b/consumer.ts', root directory not set. ========",
|
||||
"Root directory cannot be determined, skipping primary search paths.",
|
||||
"Looking up in 'node_modules' folder, initial location '/a/b'",
|
||||
"File '/a/b/node_modules/jquery.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/jquery/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/jquery/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/jquery.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/jquery/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/@types/jquery/index.d.ts' does not exist.",
|
||||
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/a/node_modules/jquery.d.ts' does not exist.",
|
||||
"Found 'package.json' at '/a/node_modules/jquery/package.json'.",
|
||||
"'package.json' has 'typings' field 'jquery.d.ts' that references '/a/node_modules/jquery/jquery.d.ts'.",
|
||||
|
|
|
@ -2,12 +2,7 @@
|
|||
"======== Resolving type reference directive 'jquery', containing file '/a/b/consumer.ts', root directory not set. ========",
|
||||
"Root directory cannot be determined, skipping primary search paths.",
|
||||
"Looking up in 'node_modules' folder, initial location '/a/b'",
|
||||
"File '/a/b/node_modules/jquery.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/jquery/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/jquery/index.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/jquery.d.ts' does not exist.",
|
||||
"File '/a/b/node_modules/@types/jquery/package.json' does not exist.",
|
||||
"File '/a/b/node_modules/@types/jquery/index.d.ts' does not exist.",
|
||||
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/a/node_modules/jquery.d.ts' does not exist.",
|
||||
"Found 'package.json' at '/a/node_modules/jquery/package.json'.",
|
||||
"'package.json' has 'types' field 'dist/jquery.d.ts' that references '/a/node_modules/jquery/dist/jquery.d.ts'.",
|
||||
|
|
|
@ -1,15 +1,8 @@
|
|||
[
|
||||
"======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/src'. ========",
|
||||
"Resolving with primary search path '/src'",
|
||||
"File '/src/foo/package.json' does not exist.",
|
||||
"File '/src/foo/index.d.ts' does not exist.",
|
||||
"Looking up in 'node_modules' folder, initial location '/src'",
|
||||
"File '/src/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/src/node_modules/foo/package.json' does not exist.",
|
||||
"File '/src/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/src/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/node_modules/foo/package.json' does not exist.",
|
||||
"File '/node_modules/foo/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -17,15 +10,8 @@
|
|||
"======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ========",
|
||||
"======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/src'. ========",
|
||||
"Resolving with primary search path '/src'",
|
||||
"File '/src/bar/package.json' does not exist.",
|
||||
"File '/src/bar/index.d.ts' does not exist.",
|
||||
"Looking up in 'node_modules' folder, initial location '/src'",
|
||||
"File '/src/node_modules/bar.d.ts' does not exist.",
|
||||
"File '/src/node_modules/bar/package.json' does not exist.",
|
||||
"File '/src/node_modules/bar/index.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/bar.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/bar/package.json' does not exist.",
|
||||
"File '/src/node_modules/@types/bar/index.d.ts' does not exist.",
|
||||
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/node_modules/bar.d.ts' does not exist.",
|
||||
"File '/node_modules/bar/package.json' does not exist.",
|
||||
"File '/node_modules/bar/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -33,8 +19,6 @@
|
|||
"======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ========",
|
||||
"======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/src'. ========",
|
||||
"Resolving with primary search path '/src'",
|
||||
"File '/src/alpha/package.json' does not exist.",
|
||||
"File '/src/alpha/index.d.ts' does not exist.",
|
||||
"Looking up in 'node_modules' folder, initial location '/node_modules/foo'",
|
||||
"File '/node_modules/foo/node_modules/alpha.d.ts' does not exist.",
|
||||
"File '/node_modules/foo/node_modules/alpha/package.json' does not exist.",
|
||||
|
@ -43,8 +27,6 @@
|
|||
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ========",
|
||||
"======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/src'. ========",
|
||||
"Resolving with primary search path '/src'",
|
||||
"File '/src/alpha/package.json' does not exist.",
|
||||
"File '/src/alpha/index.d.ts' does not exist.",
|
||||
"Looking up in 'node_modules' folder, initial location '/node_modules/bar'",
|
||||
"File '/node_modules/bar/node_modules/alpha.d.ts' does not exist.",
|
||||
"File '/node_modules/bar/node_modules/alpha/package.json' does not exist.",
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
[
|
||||
"======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory 'types'. ========",
|
||||
"Resolving with primary search path 'types'",
|
||||
"File 'types/foo/package.json' does not exist.",
|
||||
"File 'types/foo/index.d.ts' does not exist.",
|
||||
"Directory 'types' does not exist, skipping all lookups in it.",
|
||||
"Looking up in 'node_modules' folder, initial location '/src'",
|
||||
"File '/src/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/src/node_modules/foo/package.json' does not exist.",
|
||||
"File '/src/node_modules/foo/index.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/src/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/node_modules/foo.d.ts' does not exist.",
|
||||
"File '/node_modules/foo/package.json' does not exist.",
|
||||
"File '/node_modules/foo/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -17,15 +11,9 @@
|
|||
"======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ========",
|
||||
"======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory 'types'. ========",
|
||||
"Resolving with primary search path 'types'",
|
||||
"File 'types/bar/package.json' does not exist.",
|
||||
"File 'types/bar/index.d.ts' does not exist.",
|
||||
"Directory 'types' does not exist, skipping all lookups in it.",
|
||||
"Looking up in 'node_modules' folder, initial location '/src'",
|
||||
"File '/src/node_modules/bar.d.ts' does not exist.",
|
||||
"File '/src/node_modules/bar/package.json' does not exist.",
|
||||
"File '/src/node_modules/bar/index.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/bar.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/bar/package.json' does not exist.",
|
||||
"File '/src/node_modules/@types/bar/index.d.ts' does not exist.",
|
||||
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/node_modules/bar.d.ts' does not exist.",
|
||||
"File '/node_modules/bar/package.json' does not exist.",
|
||||
"File '/node_modules/bar/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -33,8 +21,7 @@
|
|||
"======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ========",
|
||||
"======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory 'types'. ========",
|
||||
"Resolving with primary search path 'types'",
|
||||
"File 'types/alpha/package.json' does not exist.",
|
||||
"File 'types/alpha/index.d.ts' does not exist.",
|
||||
"Directory 'types' does not exist, skipping all lookups in it.",
|
||||
"Looking up in 'node_modules' folder, initial location '/node_modules/foo'",
|
||||
"File '/node_modules/foo/node_modules/alpha.d.ts' does not exist.",
|
||||
"File '/node_modules/foo/node_modules/alpha/package.json' does not exist.",
|
||||
|
@ -43,8 +30,7 @@
|
|||
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ========",
|
||||
"======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory 'types'. ========",
|
||||
"Resolving with primary search path 'types'",
|
||||
"File 'types/alpha/package.json' does not exist.",
|
||||
"File 'types/alpha/index.d.ts' does not exist.",
|
||||
"Directory 'types' does not exist, skipping all lookups in it.",
|
||||
"Looking up in 'node_modules' folder, initial location '/node_modules/bar'",
|
||||
"File '/node_modules/bar/node_modules/alpha.d.ts' does not exist.",
|
||||
"File '/node_modules/bar/node_modules/alpha/package.json' does not exist.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module 'shortid' from '/index.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module 'shortid' from 'node_modules' folder.",
|
||||
"Loading module 'shortid' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"File '/node_modules/shortid.ts' does not exist.",
|
||||
"File '/node_modules/shortid.tsx' does not exist.",
|
||||
"File '/node_modules/shortid.d.ts' does not exist.",
|
||||
|
@ -9,10 +9,8 @@
|
|||
"File '/node_modules/shortid/index.ts' does not exist.",
|
||||
"File '/node_modules/shortid/index.tsx' does not exist.",
|
||||
"File '/node_modules/shortid/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/shortid.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/shortid/package.json' does not exist.",
|
||||
"File '/node_modules/@types/shortid/index.d.ts' does not exist.",
|
||||
"Loading module 'shortid' from 'node_modules' folder.",
|
||||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'shortid' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"File '/node_modules/shortid.js' does not exist.",
|
||||
"File '/node_modules/shortid.jsx' does not exist.",
|
||||
"File '/node_modules/shortid/package.json' does not exist.",
|
||||
|
|
|
@ -4,14 +4,15 @@
|
|||
export class Foo {}
|
||||
|
||||
//// [modulePrologueUmd.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var Foo = (function () {
|
||||
function Foo() {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[
|
||||
"======== Resolving module './a' from '/src/b.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/a'.",
|
||||
"Loading module as file / folder, candidate module location '/src/a', target file type 'TypeScript'.",
|
||||
"File '/src/a.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './a' was successfully resolved to '/src/a.ts'. ========",
|
||||
"======== Resolving module './a.js' from '/src/d.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/a.js'.",
|
||||
"Loading module as file / folder, candidate module location '/src/a.js', target file type 'TypeScript'.",
|
||||
"File '/src/a.js.ts' does not exist.",
|
||||
"File '/src/a.js.tsx' does not exist.",
|
||||
"File '/src/a.js.d.ts' does not exist.",
|
||||
|
@ -15,7 +15,7 @@
|
|||
"======== Module name './a.js' was successfully resolved to '/src/a.ts'. ========",
|
||||
"======== Resolving module './jquery.js' from '/src/jquery_user_1.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/jquery.js'.",
|
||||
"Loading module as file / folder, candidate module location '/src/jquery.js', target file type 'TypeScript'.",
|
||||
"File '/src/jquery.js.ts' does not exist.",
|
||||
"File '/src/jquery.js.tsx' does not exist.",
|
||||
"File '/src/jquery.js.d.ts' does not exist.",
|
||||
|
|
|
@ -1,35 +1,29 @@
|
|||
[
|
||||
"======== Resolving module './tsx' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/tsx'.",
|
||||
"Loading module as file / folder, candidate module location '/tsx', target file type 'TypeScript'.",
|
||||
"File '/tsx.ts' does not exist.",
|
||||
"File '/tsx.tsx' exist - use it as a name resolution result.",
|
||||
"======== Module name './tsx' was successfully resolved to '/tsx.tsx'. ========",
|
||||
"======== Resolving module './jsx' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/jsx'.",
|
||||
"Loading module as file / folder, candidate module location '/jsx', target file type 'TypeScript'.",
|
||||
"File '/jsx.ts' does not exist.",
|
||||
"File '/jsx.tsx' does not exist.",
|
||||
"File '/jsx.d.ts' does not exist.",
|
||||
"File '/jsx/package.json' does not exist.",
|
||||
"File '/jsx/index.ts' does not exist.",
|
||||
"File '/jsx/index.tsx' does not exist.",
|
||||
"File '/jsx/index.d.ts' does not exist.",
|
||||
"Loading module as file / folder, candidate module location '/jsx'.",
|
||||
"Directory '/jsx' does not exist, skipping all lookups in it.",
|
||||
"Loading module as file / folder, candidate module location '/jsx', target file type 'JavaScript'.",
|
||||
"File '/jsx.js' does not exist.",
|
||||
"File '/jsx.jsx' exist - use it as a name resolution result.",
|
||||
"======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========",
|
||||
"======== Resolving module './js' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/js'.",
|
||||
"Loading module as file / folder, candidate module location '/js', target file type 'TypeScript'.",
|
||||
"File '/js.ts' does not exist.",
|
||||
"File '/js.tsx' does not exist.",
|
||||
"File '/js.d.ts' does not exist.",
|
||||
"File '/js/package.json' does not exist.",
|
||||
"File '/js/index.ts' does not exist.",
|
||||
"File '/js/index.tsx' does not exist.",
|
||||
"File '/js/index.d.ts' does not exist.",
|
||||
"Loading module as file / folder, candidate module location '/js'.",
|
||||
"Directory '/js' does not exist, skipping all lookups in it.",
|
||||
"Loading module as file / folder, candidate module location '/js', target file type 'JavaScript'.",
|
||||
"File '/js.js' exist - use it as a name resolution result.",
|
||||
"======== Module name './js' was successfully resolved to '/js.js'. ========"
|
||||
]
|
|
@ -1,15 +1,12 @@
|
|||
[
|
||||
"======== Resolving module './jsx' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/jsx'.",
|
||||
"Loading module as file / folder, candidate module location '/jsx', target file type 'TypeScript'.",
|
||||
"File '/jsx.ts' does not exist.",
|
||||
"File '/jsx.tsx' does not exist.",
|
||||
"File '/jsx.d.ts' does not exist.",
|
||||
"File '/jsx/package.json' does not exist.",
|
||||
"File '/jsx/index.ts' does not exist.",
|
||||
"File '/jsx/index.tsx' does not exist.",
|
||||
"File '/jsx/index.d.ts' does not exist.",
|
||||
"Loading module as file / folder, candidate module location '/jsx'.",
|
||||
"Directory '/jsx' does not exist, skipping all lookups in it.",
|
||||
"Loading module as file / folder, candidate module location '/jsx', target file type 'JavaScript'.",
|
||||
"File '/jsx.js' does not exist.",
|
||||
"File '/jsx.jsx' exist - use it as a name resolution result.",
|
||||
"======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========"
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
[
|
||||
"======== Resolving module './jsx' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/jsx'.",
|
||||
"Loading module as file / folder, candidate module location '/jsx', target file type 'TypeScript'.",
|
||||
"File '/jsx.ts' does not exist.",
|
||||
"File '/jsx.tsx' does not exist.",
|
||||
"File '/jsx.d.ts' does not exist.",
|
||||
"File '/jsx/package.json' does not exist.",
|
||||
"File '/jsx/index.ts' does not exist.",
|
||||
"File '/jsx/index.tsx' does not exist.",
|
||||
"File '/jsx/index.d.ts' does not exist.",
|
||||
"Loading module as file / folder, candidate module location '/jsx'.",
|
||||
"Directory '/jsx' does not exist, skipping all lookups in it.",
|
||||
"Loading module as file / folder, candidate module location '/jsx', target file type 'JavaScript'.",
|
||||
"File '/jsx.js' does not exist.",
|
||||
"File '/jsx.jsx' exist - use it as a name resolution result.",
|
||||
"======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module './b' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/b'.",
|
||||
"Loading module as file / folder, candidate module location '/b', target file type 'TypeScript'.",
|
||||
"File '/b.ts' does not exist.",
|
||||
"File '/b.tsx' does not exist.",
|
||||
"File '/b.d.ts' does not exist.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module 'normalize.css' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'normalize.css' from 'node_modules' folder.",
|
||||
"Loading module 'normalize.css' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"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.",
|
||||
|
@ -10,10 +10,8 @@
|
|||
"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.",
|
||||
"File '/node_modules/@types/normalize.css.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/normalize.css/package.json' does not exist.",
|
||||
"File '/node_modules/@types/normalize.css/index.d.ts' does not exist.",
|
||||
"Loading module 'normalize.css' from 'node_modules' folder.",
|
||||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'normalize.css' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"File '/node_modules/normalize.css.js' does not exist.",
|
||||
"File '/node_modules/normalize.css.jsx' does not exist.",
|
||||
"Found 'package.json' at '/node_modules/normalize.css/package.json'.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module 'foo' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"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.",
|
||||
|
@ -15,10 +15,8 @@
|
|||
"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.",
|
||||
"File '/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"File '/node_modules/foo.js' does not exist.",
|
||||
"File '/node_modules/foo.jsx' does not exist.",
|
||||
"Found 'package.json' at '/node_modules/foo/package.json'.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module 'js' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'js' from 'node_modules' folder.",
|
||||
"Loading module 'js' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"File '/node_modules/js.ts' does not exist.",
|
||||
"File '/node_modules/js.tsx' does not exist.",
|
||||
"File '/node_modules/js.d.ts' does not exist.",
|
||||
|
@ -9,10 +9,8 @@
|
|||
"File '/node_modules/js/index.ts' does not exist.",
|
||||
"File '/node_modules/js/index.tsx' does not exist.",
|
||||
"File '/node_modules/js/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/js.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/js/package.json' does not exist.",
|
||||
"File '/node_modules/@types/js/index.d.ts' does not exist.",
|
||||
"Loading module 'js' from 'node_modules' folder.",
|
||||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'js' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"File '/node_modules/js.js' does not exist.",
|
||||
"File '/node_modules/js.jsx' does not exist.",
|
||||
"File '/node_modules/js/package.json' does not exist.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module './library-a' from '/src/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/library-a'.",
|
||||
"Loading module as file / folder, candidate module location '/src/library-a', target file type 'TypeScript'.",
|
||||
"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.",
|
||||
|
@ -10,7 +10,7 @@
|
|||
"======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ========",
|
||||
"======== Resolving module './library-b' from '/src/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/library-b'.",
|
||||
"Loading module as file / folder, candidate module location '/src/library-b', target file type 'TypeScript'.",
|
||||
"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.",
|
||||
|
@ -19,7 +19,7 @@
|
|||
"======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ========",
|
||||
"======== Resolving module 'library-a' from '/src/library-b/index.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'library-a' from 'node_modules' folder.",
|
||||
"Loading module 'library-a' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"File '/src/library-b/node_modules/library-a.ts' does not exist.",
|
||||
"File '/src/library-b/node_modules/library-a.tsx' does not exist.",
|
||||
"File '/src/library-b/node_modules/library-a.d.ts' does not exist.",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[
|
||||
"======== Resolving module './shared/abc' from '/src/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/shared/abc'.",
|
||||
"Loading module as file / folder, candidate module location '/src/shared/abc', target file type 'TypeScript'.",
|
||||
"File '/src/shared/abc.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './shared/abc' was successfully resolved to '/src/shared/abc.ts'. ========",
|
||||
"======== Resolving module './shared2/abc' from '/src/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/shared2/abc'.",
|
||||
"Loading module as file / folder, candidate module location '/src/shared2/abc', target file type 'TypeScript'.",
|
||||
"File '/src/shared2/abc.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './shared2/abc' was successfully resolved to '/src/shared2/abc.ts'. ========"
|
||||
]
|
|
@ -3,8 +3,6 @@
|
|||
"Root directory cannot be determined, skipping primary search paths.",
|
||||
"Looking up in 'node_modules' folder, initial location '/'",
|
||||
"File '/node_modules/library-a.d.ts' does not exist.",
|
||||
"File '/node_modules/library-a/package.json' does not exist.",
|
||||
"File '/node_modules/library-a/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/library-a.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/library-a/package.json' does not exist.",
|
||||
"File '/node_modules/@types/library-a/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -14,8 +12,6 @@
|
|||
"Root directory cannot be determined, skipping primary search paths.",
|
||||
"Looking up in 'node_modules' folder, initial location '/'",
|
||||
"File '/node_modules/library-b.d.ts' does not exist.",
|
||||
"File '/node_modules/library-b/package.json' does not exist.",
|
||||
"File '/node_modules/library-b/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/library-b.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/library-b/package.json' does not exist.",
|
||||
"File '/node_modules/@types/library-b/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -25,8 +21,6 @@
|
|||
"Root directory cannot be determined, skipping primary search paths.",
|
||||
"Looking up in 'node_modules' folder, initial location '/node_modules/@types/library-b'",
|
||||
"File '/node_modules/@types/library-b/node_modules/library-a.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/library-b/node_modules/library-a/package.json' does not exist.",
|
||||
"File '/node_modules/@types/library-b/node_modules/library-a/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/library-b/node_modules/@types/library-a.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/library-b/node_modules/@types/library-a/package.json' does not exist.",
|
||||
"File '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module './library-a' from '/src/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/library-a'.",
|
||||
"Loading module as file / folder, candidate module location '/src/library-a', target file type 'TypeScript'.",
|
||||
"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.",
|
||||
|
@ -10,7 +10,7 @@
|
|||
"======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ========",
|
||||
"======== Resolving module './library-b' from '/src/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/src/library-b'.",
|
||||
"Loading module as file / folder, candidate module location '/src/library-b', target file type 'TypeScript'.",
|
||||
"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.",
|
||||
|
@ -19,7 +19,7 @@
|
|||
"======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ========",
|
||||
"======== Resolving module 'library-a' from '/src/library-b/index.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'library-a' from 'node_modules' folder.",
|
||||
"Loading module 'library-a' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"File '/src/library-b/node_modules/library-a.ts' does not exist.",
|
||||
"File '/src/library-b/node_modules/library-a.tsx' does not exist.",
|
||||
"File '/src/library-b/node_modules/library-a.d.ts' does not exist.",
|
||||
|
|
|
@ -3,13 +3,14 @@
|
|||
export var x = 0;
|
||||
|
||||
//// [noImplicitUseStrict_umd.js]
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
exports.x = 0;
|
||||
});
|
||||
|
|
|
@ -3,47 +3,26 @@
|
|||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'",
|
||||
"Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file type 'TypeScript'.",
|
||||
"File 'c:/root/folder2/file2.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========",
|
||||
"======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file type 'TypeScript'.",
|
||||
"File 'c:/root/folder2/file3.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ========",
|
||||
"======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'",
|
||||
"Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/file4'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/file4', target file type 'TypeScript'.",
|
||||
"File 'c:/root/file4.ts' does not exist.",
|
||||
"File 'c:/root/file4.tsx' does not exist.",
|
||||
"File 'c:/root/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/file4/package.json' does not exist.",
|
||||
"File 'c:/root/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/file4/index.d.ts' does not exist.",
|
||||
"Loading module 'file4' from 'node_modules' folder.",
|
||||
"File 'c:/root/folder2/node_modules/file4.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4.tsx' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4/package.json' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/@types/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/@types/file4/package.json' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/@types/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.tsx' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/package.json' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4/package.json' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4/index.d.ts' does not exist.",
|
||||
"Directory 'c:/root/file4' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'file4' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File 'c:/node_modules/file4.ts' does not exist.",
|
||||
"File 'c:/node_modules/file4.tsx' does not exist.",
|
||||
"File 'c:/node_modules/file4.d.ts' does not exist.",
|
||||
|
|
|
@ -3,47 +3,26 @@
|
|||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'",
|
||||
"Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file type 'TypeScript'.",
|
||||
"File 'c:/root/folder2/file2.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========",
|
||||
"======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file type 'TypeScript'.",
|
||||
"File 'c:/root/folder2/file3.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ========",
|
||||
"======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'NodeJs'.",
|
||||
"'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'",
|
||||
"Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/file4'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/file4', target file type 'TypeScript'.",
|
||||
"File 'c:/root/file4.ts' does not exist.",
|
||||
"File 'c:/root/file4.tsx' does not exist.",
|
||||
"File 'c:/root/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/file4/package.json' does not exist.",
|
||||
"File 'c:/root/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/file4/index.d.ts' does not exist.",
|
||||
"Loading module 'file4' from 'node_modules' folder.",
|
||||
"File 'c:/root/folder2/node_modules/file4.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4.tsx' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4/package.json' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/@types/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/@types/file4/package.json' does not exist.",
|
||||
"File 'c:/root/folder2/node_modules/@types/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.tsx' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/package.json' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4/package.json' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4/index.d.ts' does not exist.",
|
||||
"Directory 'c:/root/file4' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'file4' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File 'c:/node_modules/file4.ts' does not exist.",
|
||||
"File 'c:/node_modules/file4.tsx' does not exist.",
|
||||
"File 'c:/node_modules/file4.d.ts' does not exist.",
|
||||
|
|
|
@ -13,9 +13,6 @@
|
|||
"'paths' option is specified, looking for a pattern to match module name 'folder3/file2'.",
|
||||
"Module name 'folder3/file2', matched pattern '*'.",
|
||||
"Trying substitution '*', candidate module location: 'folder3/file2'.",
|
||||
"File 'c:/root/folder3/file2.ts' does not exist.",
|
||||
"File 'c:/root/folder3/file2.tsx' does not exist.",
|
||||
"File 'c:/root/folder3/file2.d.ts' does not exist.",
|
||||
"Trying substitution 'generated/*', candidate module location: 'generated/folder3/file2'.",
|
||||
"File 'c:/root/generated/folder3/file2.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name 'folder3/file2' was successfully resolved to 'c:/root/generated/folder3/file2.ts'. ========",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"'paths' option is specified, looking for a pattern to match module name 'folder2/file1'.",
|
||||
"Module name 'folder2/file1', matched pattern '*'.",
|
||||
"Trying substitution '*', candidate module location: 'folder2/file1'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file1'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder2/file1', target file type 'TypeScript'.",
|
||||
"File 'c:/root/folder2/file1.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name 'folder2/file1' was successfully resolved to 'c:/root/folder2/file1.ts'. ========",
|
||||
"======== Resolving module 'folder3/file2' from 'c:/root/folder1/file1.ts'. ========",
|
||||
|
@ -14,16 +14,9 @@
|
|||
"'paths' option is specified, looking for a pattern to match module name 'folder3/file2'.",
|
||||
"Module name 'folder3/file2', matched pattern '*'.",
|
||||
"Trying substitution '*', candidate module location: 'folder3/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder3/file2'.",
|
||||
"File 'c:/root/folder3/file2.ts' does not exist.",
|
||||
"File 'c:/root/folder3/file2.tsx' does not exist.",
|
||||
"File 'c:/root/folder3/file2.d.ts' does not exist.",
|
||||
"File 'c:/root/folder3/file2/package.json' does not exist.",
|
||||
"File 'c:/root/folder3/file2/index.ts' does not exist.",
|
||||
"File 'c:/root/folder3/file2/index.tsx' does not exist.",
|
||||
"File 'c:/root/folder3/file2/index.d.ts' does not exist.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/folder3/file2', target file type 'TypeScript'.",
|
||||
"Trying substitution 'generated/*', candidate module location: 'generated/folder3/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/folder3/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/folder3/file2', target file type 'TypeScript'.",
|
||||
"File 'c:/root/generated/folder3/file2.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name 'folder3/file2' was successfully resolved to 'c:/root/generated/folder3/file2.ts'. ========",
|
||||
"======== Resolving module 'components/file3' from 'c:/root/folder1/file1.ts'. ========",
|
||||
|
@ -32,7 +25,7 @@
|
|||
"'paths' option is specified, looking for a pattern to match module name 'components/file3'.",
|
||||
"Module name 'components/file3', matched pattern 'components/*'.",
|
||||
"Trying substitution 'shared/components/*', candidate module location: 'shared/components/file3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/shared/components/file3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/shared/components/file3', target file type 'TypeScript'.",
|
||||
"File 'c:/root/shared/components/file3.ts' does not exist.",
|
||||
"File 'c:/root/shared/components/file3.tsx' does not exist.",
|
||||
"File 'c:/root/shared/components/file3.d.ts' does not exist.",
|
||||
|
@ -47,44 +40,20 @@
|
|||
"'paths' option is specified, looking for a pattern to match module name 'file4'.",
|
||||
"Module name 'file4', matched pattern '*'.",
|
||||
"Trying substitution '*', candidate module location: 'file4'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/file4'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/file4', target file type 'TypeScript'.",
|
||||
"File 'c:/root/file4.ts' does not exist.",
|
||||
"File 'c:/root/file4.tsx' does not exist.",
|
||||
"File 'c:/root/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/file4/package.json' does not exist.",
|
||||
"File 'c:/root/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/file4/index.d.ts' does not exist.",
|
||||
"Directory 'c:/root/file4' does not exist, skipping all lookups in it.",
|
||||
"Trying substitution 'generated/*', candidate module location: 'generated/file4'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/file4'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/file4', target file type 'TypeScript'.",
|
||||
"File 'c:/root/generated/file4.ts' does not exist.",
|
||||
"File 'c:/root/generated/file4.tsx' does not exist.",
|
||||
"File 'c:/root/generated/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/generated/file4/package.json' does not exist.",
|
||||
"File 'c:/root/generated/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/generated/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/generated/file4/index.d.ts' does not exist.",
|
||||
"Loading module 'file4' from 'node_modules' folder.",
|
||||
"File 'c:/root/folder1/node_modules/file4.ts' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/file4.tsx' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/file4/package.json' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/@types/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/@types/file4/package.json' does not exist.",
|
||||
"File 'c:/root/folder1/node_modules/@types/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.tsx' does not exist.",
|
||||
"File 'c:/root/node_modules/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/package.json' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.tsx' does not exist.",
|
||||
"File 'c:/root/node_modules/file4/index.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4/package.json' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/file4/index.d.ts' does not exist.",
|
||||
"Directory 'c:/root/generated/file4' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'file4' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File 'c:/node_modules/file4.ts' exist - use it as a name resolution result.",
|
||||
"Resolving real path for 'c:/node_modules/file4.ts', result 'c:/node_modules/file4.ts'",
|
||||
"======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4.ts'. ========"
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
"Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file3' - 'false'.",
|
||||
"Longest matching prefix for 'c:/root/src/project/file3' is 'c:/root/src/'",
|
||||
"Loading 'project/file3' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file3'",
|
||||
"File 'c:/root/src/project/file3.ts' does not exist.",
|
||||
"File 'c:/root/src/project/file3.tsx' does not exist.",
|
||||
"File 'c:/root/src/project/file3.d.ts' does not exist.",
|
||||
"Trying other entries in 'rootDirs'",
|
||||
"Loading 'project/file3' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file3'",
|
||||
"File 'c:/root/generated/src/project/file3.ts' exist - use it as a name resolution result.",
|
||||
|
|
|
@ -6,17 +6,11 @@
|
|||
"Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file3' - 'false'.",
|
||||
"Longest matching prefix for 'c:/root/src/project/file3' is 'c:/root/src/'",
|
||||
"Loading 'project/file3' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file3'",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/src/project/file3'.",
|
||||
"File 'c:/root/src/project/file3.ts' does not exist.",
|
||||
"File 'c:/root/src/project/file3.tsx' does not exist.",
|
||||
"File 'c:/root/src/project/file3.d.ts' does not exist.",
|
||||
"File 'c:/root/src/project/file3/package.json' does not exist.",
|
||||
"File 'c:/root/src/project/file3/index.ts' does not exist.",
|
||||
"File 'c:/root/src/project/file3/index.tsx' does not exist.",
|
||||
"File 'c:/root/src/project/file3/index.d.ts' does not exist.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/src/project/file3', target file type 'TypeScript'.",
|
||||
"Directory 'c:/root/src/project' does not exist, skipping all lookups in it.",
|
||||
"Trying other entries in 'rootDirs'",
|
||||
"Loading 'project/file3' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file3'",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file3', target file type 'TypeScript'.",
|
||||
"File 'c:/root/generated/src/project/file3.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './project/file3' was successfully resolved to 'c:/root/generated/src/project/file3.ts'. ========",
|
||||
"======== Resolving module '../file2' from 'c:/root/generated/src/project/file3.ts'. ========",
|
||||
|
@ -26,17 +20,14 @@
|
|||
"Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file2' - 'true'.",
|
||||
"Longest matching prefix for 'c:/root/generated/src/file2' is 'c:/root/generated/src/'",
|
||||
"Loading 'file2' from the root dir 'c:/root/generated/src/', candidate location 'c:/root/generated/src/file2'",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/file2', target file type 'TypeScript'.",
|
||||
"File 'c:/root/generated/src/file2.ts' does not exist.",
|
||||
"File 'c:/root/generated/src/file2.tsx' does not exist.",
|
||||
"File 'c:/root/generated/src/file2.d.ts' does not exist.",
|
||||
"File 'c:/root/generated/src/file2/package.json' does not exist.",
|
||||
"File 'c:/root/generated/src/file2/index.ts' does not exist.",
|
||||
"File 'c:/root/generated/src/file2/index.tsx' does not exist.",
|
||||
"File 'c:/root/generated/src/file2/index.d.ts' does not exist.",
|
||||
"Directory 'c:/root/generated/src/file2' does not exist, skipping all lookups in it.",
|
||||
"Trying other entries in 'rootDirs'",
|
||||
"Loading 'file2' from the root dir 'c:/root/src', candidate location 'c:/root/src/file2'",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/src/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/src/file2', target file type 'TypeScript'.",
|
||||
"File 'c:/root/src/file2.ts' does not exist.",
|
||||
"File 'c:/root/src/file2.tsx' does not exist.",
|
||||
"File 'c:/root/src/file2.d.ts' does not exist.",
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
"Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'false'.",
|
||||
"Longest matching prefix for 'c:/root/src/project/file2' is 'c:/root/src/'",
|
||||
"Loading 'project/file2' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file2'",
|
||||
"File 'c:/root/src/project/file2.ts' does not exist.",
|
||||
"File 'c:/root/src/project/file2.tsx' does not exist.",
|
||||
"File 'c:/root/src/project/file2.d.ts' does not exist.",
|
||||
"Trying other entries in 'rootDirs'",
|
||||
"Loading 'project/file2' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file2'",
|
||||
"File 'c:/root/generated/src/project/file2.ts' exist - use it as a name resolution result.",
|
||||
|
|
|
@ -6,17 +6,11 @@
|
|||
"Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'false'.",
|
||||
"Longest matching prefix for 'c:/root/src/project/file2' is 'c:/root/src/'",
|
||||
"Loading 'project/file2' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file2'",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/src/project/file2'.",
|
||||
"File 'c:/root/src/project/file2.ts' does not exist.",
|
||||
"File 'c:/root/src/project/file2.tsx' does not exist.",
|
||||
"File 'c:/root/src/project/file2.d.ts' does not exist.",
|
||||
"File 'c:/root/src/project/file2/package.json' does not exist.",
|
||||
"File 'c:/root/src/project/file2/index.ts' does not exist.",
|
||||
"File 'c:/root/src/project/file2/index.tsx' does not exist.",
|
||||
"File 'c:/root/src/project/file2/index.d.ts' does not exist.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/src/project/file2', target file type 'TypeScript'.",
|
||||
"Directory 'c:/root/src/project' does not exist, skipping all lookups in it.",
|
||||
"Trying other entries in 'rootDirs'",
|
||||
"Loading 'project/file2' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file2'",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file2', target file type 'TypeScript'.",
|
||||
"File 'c:/root/generated/src/project/file2.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './project/file2' was successfully resolved to 'c:/root/generated/src/project/file2.ts'. ========",
|
||||
"======== Resolving module 'module3' from 'c:/root/src/file1.ts'. ========",
|
||||
|
@ -25,44 +19,20 @@
|
|||
"'paths' option is specified, looking for a pattern to match module name 'module3'.",
|
||||
"Module name 'module3', matched pattern '*'.",
|
||||
"Trying substitution '*', candidate module location: 'module3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/module3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/module3', target file type 'TypeScript'.",
|
||||
"File 'c:/root/module3.ts' does not exist.",
|
||||
"File 'c:/root/module3.tsx' does not exist.",
|
||||
"File 'c:/root/module3.d.ts' does not exist.",
|
||||
"File 'c:/root/module3/package.json' does not exist.",
|
||||
"File 'c:/root/module3/index.ts' does not exist.",
|
||||
"File 'c:/root/module3/index.tsx' does not exist.",
|
||||
"File 'c:/root/module3/index.d.ts' does not exist.",
|
||||
"Directory 'c:/root/module3' does not exist, skipping all lookups in it.",
|
||||
"Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/shared/module3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/shared/module3', target file type 'TypeScript'.",
|
||||
"File 'c:/shared/module3.ts' does not exist.",
|
||||
"File 'c:/shared/module3.tsx' does not exist.",
|
||||
"File 'c:/shared/module3.d.ts' does not exist.",
|
||||
"File 'c:/shared/module3/package.json' does not exist.",
|
||||
"File 'c:/shared/module3/index.ts' does not exist.",
|
||||
"File 'c:/shared/module3/index.tsx' does not exist.",
|
||||
"File 'c:/shared/module3/index.d.ts' does not exist.",
|
||||
"Loading module 'module3' from 'node_modules' folder.",
|
||||
"File 'c:/root/src/node_modules/module3.ts' does not exist.",
|
||||
"File 'c:/root/src/node_modules/module3.tsx' does not exist.",
|
||||
"File 'c:/root/src/node_modules/module3.d.ts' does not exist.",
|
||||
"File 'c:/root/src/node_modules/module3/package.json' does not exist.",
|
||||
"File 'c:/root/src/node_modules/module3/index.ts' does not exist.",
|
||||
"File 'c:/root/src/node_modules/module3/index.tsx' does not exist.",
|
||||
"File 'c:/root/src/node_modules/module3/index.d.ts' does not exist.",
|
||||
"File 'c:/root/src/node_modules/@types/module3.d.ts' does not exist.",
|
||||
"File 'c:/root/src/node_modules/@types/module3/package.json' does not exist.",
|
||||
"File 'c:/root/src/node_modules/@types/module3/index.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/module3.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/module3.tsx' does not exist.",
|
||||
"File 'c:/root/node_modules/module3.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/module3/package.json' does not exist.",
|
||||
"File 'c:/root/node_modules/module3/index.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/module3/index.tsx' does not exist.",
|
||||
"File 'c:/root/node_modules/module3/index.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/module3.d.ts' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/module3/package.json' does not exist.",
|
||||
"File 'c:/root/node_modules/@types/module3/index.d.ts' does not exist.",
|
||||
"Directory 'c:/shared/module3' does not exist, skipping all lookups in it.",
|
||||
"Loading module 'module3' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File 'c:/node_modules/module3.ts' does not exist.",
|
||||
"File 'c:/node_modules/module3.tsx' does not exist.",
|
||||
"File 'c:/node_modules/module3.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -74,16 +44,13 @@
|
|||
"'paths' option is specified, looking for a pattern to match module name 'module1'.",
|
||||
"Module name 'module1', matched pattern '*'.",
|
||||
"Trying substitution '*', candidate module location: 'module1'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/module1'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/module1', target file type 'TypeScript'.",
|
||||
"File 'c:/root/module1.ts' does not exist.",
|
||||
"File 'c:/root/module1.tsx' does not exist.",
|
||||
"File 'c:/root/module1.d.ts' does not exist.",
|
||||
"File 'c:/root/module1/package.json' does not exist.",
|
||||
"File 'c:/root/module1/index.ts' does not exist.",
|
||||
"File 'c:/root/module1/index.tsx' does not exist.",
|
||||
"File 'c:/root/module1/index.d.ts' does not exist.",
|
||||
"Directory 'c:/root/module1' does not exist, skipping all lookups in it.",
|
||||
"Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module1'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/shared/module1'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/shared/module1', target file type 'TypeScript'.",
|
||||
"File 'c:/shared/module1.ts' does not exist.",
|
||||
"File 'c:/shared/module1.tsx' does not exist.",
|
||||
"File 'c:/shared/module1.d.ts' does not exist.",
|
||||
|
@ -98,7 +65,7 @@
|
|||
"'paths' option is specified, looking for a pattern to match module name 'templates/module2'.",
|
||||
"Module name 'templates/module2', matched pattern 'templates/*'.",
|
||||
"Trying substitution 'generated/src/templates/*', candidate module location: 'generated/src/templates/module2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/templates/module2'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/templates/module2', target file type 'TypeScript'.",
|
||||
"File 'c:/root/generated/src/templates/module2.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name 'templates/module2' was successfully resolved to 'c:/root/generated/src/templates/module2.ts'. ========",
|
||||
"======== Resolving module '../file3' from 'c:/root/generated/src/project/file2.ts'. ========",
|
||||
|
@ -108,17 +75,14 @@
|
|||
"Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'true'.",
|
||||
"Longest matching prefix for 'c:/root/generated/src/file3' is 'c:/root/generated/src/'",
|
||||
"Loading 'file3' from the root dir 'c:/root/generated/src/', candidate location 'c:/root/generated/src/file3'",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/file3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/generated/src/file3', target file type 'TypeScript'.",
|
||||
"File 'c:/root/generated/src/file3.ts' does not exist.",
|
||||
"File 'c:/root/generated/src/file3.tsx' does not exist.",
|
||||
"File 'c:/root/generated/src/file3.d.ts' does not exist.",
|
||||
"File 'c:/root/generated/src/file3/package.json' does not exist.",
|
||||
"File 'c:/root/generated/src/file3/index.ts' does not exist.",
|
||||
"File 'c:/root/generated/src/file3/index.tsx' does not exist.",
|
||||
"File 'c:/root/generated/src/file3/index.d.ts' does not exist.",
|
||||
"Directory 'c:/root/generated/src/file3' does not exist, skipping all lookups in it.",
|
||||
"Trying other entries in 'rootDirs'",
|
||||
"Loading 'file3' from the root dir 'c:/root/src', candidate location 'c:/root/src/file3'",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/src/file3'.",
|
||||
"Loading module as file / folder, candidate module location 'c:/root/src/file3', target file type 'TypeScript'.",
|
||||
"File 'c:/root/src/file3.ts' does not exist.",
|
||||
"File 'c:/root/src/file3.tsx' does not exist.",
|
||||
"File 'c:/root/src/file3.d.ts' does not exist.",
|
||||
|
|
|
@ -6,27 +6,14 @@
|
|||
"Module name 'foo', matched pattern 'foo'.",
|
||||
"Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'.",
|
||||
"File '/foo/foo.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"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.",
|
||||
"File '/node_modules/foo/package.json' does not exist.",
|
||||
"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.",
|
||||
"File '/node_modules/@types/foo.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/foo/package.json' does not exist.",
|
||||
"File '/node_modules/@types/foo/index.d.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory '/node_modules' does not exist, skipping all lookups in it.",
|
||||
"'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'",
|
||||
"'paths' option is specified, looking for a pattern to match module name 'foo'.",
|
||||
"Module name 'foo', matched pattern 'foo'.",
|
||||
"Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'.",
|
||||
"File '/foo/foo.ts' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder.",
|
||||
"File '/node_modules/foo.js' does not exist.",
|
||||
"File '/node_modules/foo.jsx' does not exist.",
|
||||
"File '/node_modules/foo/package.json' does not exist.",
|
||||
"File '/node_modules/foo/index.js' does not exist.",
|
||||
"File '/node_modules/foo/index.jsx' does not exist.",
|
||||
"Loading module 'foo' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"Directory '/node_modules' does not exist, skipping all lookups in it.",
|
||||
"======== Module name 'foo' was not resolved. ========"
|
||||
]
|
|
@ -1,11 +1,12 @@
|
|||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "SomeOtherName"], factory);
|
||||
}
|
||||
})(["require", "exports", "SomeOtherName"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var SomeName_1 = require("SomeOtherName");
|
||||
use(SomeName_1.foo);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========",
|
||||
"======== Resolving module './ref' from '/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/ref'.",
|
||||
"Loading module as file / folder, candidate module location '/ref', target file type 'TypeScript'.",
|
||||
"File '/ref.ts' does not exist.",
|
||||
"File '/ref.tsx' does not exist.",
|
||||
"File '/ref.d.ts' exist - use it as a name resolution result.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module './mod1' from '/mod2.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/mod1'.",
|
||||
"Loading module as file / folder, candidate module location '/mod1', target file type 'TypeScript'.",
|
||||
"File '/mod1.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========",
|
||||
"======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[
|
||||
"======== Resolving module './main' from '/mod2.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/main'.",
|
||||
"Loading module as file / folder, candidate module location '/main', target file type 'TypeScript'.",
|
||||
"File '/main.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './main' was successfully resolved to '/main.ts'. ========",
|
||||
"======== Resolving module './mod1' from '/mod2.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/mod1'.",
|
||||
"Loading module as file / folder, candidate module location '/mod1', target file type 'TypeScript'.",
|
||||
"File '/mod1.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========",
|
||||
"======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ========",
|
||||
|
@ -16,7 +16,7 @@
|
|||
"Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'",
|
||||
"======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========",
|
||||
"======== Resolving module './main' from '/mod1.ts'. ========",
|
||||
"Resolution for module './main' was found in cache",
|
||||
"Resolution for module './main' was found in cache.",
|
||||
"======== Module name './main' was successfully resolved to '/main.ts'. ========",
|
||||
"======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========",
|
||||
"Resolving with primary search path '/types'",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========",
|
||||
"======== Resolving module './ref' from '/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/ref'.",
|
||||
"Loading module as file / folder, candidate module location '/ref', target file type 'TypeScript'.",
|
||||
"File '/ref.ts' does not exist.",
|
||||
"File '/ref.tsx' does not exist.",
|
||||
"File '/ref.d.ts' exist - use it as a name resolution result.",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========",
|
||||
"======== Resolving module './ref' from '/app.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/ref'.",
|
||||
"Loading module as file / folder, candidate module location '/ref', target file type 'TypeScript'.",
|
||||
"File '/ref.ts' does not exist.",
|
||||
"File '/ref.tsx' does not exist.",
|
||||
"File '/ref.d.ts' exist - use it as a name resolution result.",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
"======== Resolving module './mod1' from '/mod2.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/mod1'.",
|
||||
"Loading module as file / folder, candidate module location '/mod1', target file type 'TypeScript'.",
|
||||
"File '/mod1.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========",
|
||||
"======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[
|
||||
"======== Resolving module './main' from '/mod2.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/main'.",
|
||||
"Loading module as file / folder, candidate module location '/main', target file type 'TypeScript'.",
|
||||
"File '/main.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './main' was successfully resolved to '/main.ts'. ========",
|
||||
"======== Resolving module './mod1' from '/mod2.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module as file / folder, candidate module location '/mod1'.",
|
||||
"Loading module as file / folder, candidate module location '/mod1', target file type 'TypeScript'.",
|
||||
"File '/mod1.ts' exist - use it as a name resolution result.",
|
||||
"======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========",
|
||||
"======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ========",
|
||||
|
@ -16,7 +16,7 @@
|
|||
"Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'",
|
||||
"======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========",
|
||||
"======== Resolving module './main' from '/mod1.ts'. ========",
|
||||
"Resolution for module './main' was found in cache",
|
||||
"Resolution for module './main' was found in cache.",
|
||||
"======== Module name './main' was successfully resolved to '/main.ts'. ========",
|
||||
"======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========",
|
||||
"Resolving with primary search path '/types'",
|
||||
|
|
|
@ -1,153 +1,60 @@
|
|||
[
|
||||
"======== Resolving module 'xyz' from '/foo/bar/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'xyz' from 'node_modules' folder.",
|
||||
"File '/foo/bar/node_modules/xyz.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz.tsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz/index.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz/index.tsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz/index.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/xyz.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/xyz/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/xyz/index.d.ts' does not exist.",
|
||||
"Loading module 'xyz' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/foo/node_modules/xyz.ts' does not exist.",
|
||||
"File '/foo/node_modules/xyz.tsx' does not exist.",
|
||||
"File '/foo/node_modules/xyz.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/foo/node_modules/xyz/index.ts' does not exist.",
|
||||
"File '/foo/node_modules/xyz/index.tsx' does not exist.",
|
||||
"File '/foo/node_modules/xyz/index.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/@types/xyz.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/@types/xyz/package.json' does not exist.",
|
||||
"File '/foo/node_modules/@types/xyz/index.d.ts' does not exist.",
|
||||
"File '/node_modules/xyz.ts' does not exist.",
|
||||
"File '/node_modules/xyz.tsx' does not exist.",
|
||||
"File '/node_modules/xyz.d.ts' does not exist.",
|
||||
"File '/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/node_modules/xyz/index.ts' does not exist.",
|
||||
"File '/node_modules/xyz/index.tsx' does not exist.",
|
||||
"File '/node_modules/xyz/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/xyz.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/xyz/package.json' does not exist.",
|
||||
"File '/node_modules/@types/xyz/index.d.ts' does not exist.",
|
||||
"Loading module 'xyz' from 'node_modules' folder.",
|
||||
"File '/foo/bar/node_modules/xyz.js' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz.jsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz/index.js' does not exist.",
|
||||
"File '/foo/bar/node_modules/xyz/index.jsx' does not exist.",
|
||||
"Loading module 'xyz' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/foo/node_modules/xyz.js' does not exist.",
|
||||
"File '/foo/node_modules/xyz.jsx' does not exist.",
|
||||
"File '/foo/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/foo/node_modules/xyz/index.js' does not exist.",
|
||||
"File '/foo/node_modules/xyz/index.jsx' does not exist.",
|
||||
"File '/node_modules/xyz.js' does not exist.",
|
||||
"File '/node_modules/xyz.jsx' does not exist.",
|
||||
"File '/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/node_modules/xyz/index.js' does not exist.",
|
||||
"File '/node_modules/xyz/index.jsx' does not exist.",
|
||||
"======== Module name 'xyz' was not resolved. ========",
|
||||
"======== Resolving module 'pdq' from '/foo/bar/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'pdq' from 'node_modules' folder.",
|
||||
"File '/foo/bar/node_modules/pdq.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq.tsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq/index.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq/index.tsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq/index.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/pdq.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/pdq/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/pdq/index.d.ts' does not exist.",
|
||||
"Loading module 'pdq' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/foo/node_modules/pdq.ts' does not exist.",
|
||||
"File '/foo/node_modules/pdq.tsx' does not exist.",
|
||||
"File '/foo/node_modules/pdq.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/pdq/package.json' does not exist.",
|
||||
"File '/foo/node_modules/pdq/index.ts' does not exist.",
|
||||
"File '/foo/node_modules/pdq/index.tsx' does not exist.",
|
||||
"File '/foo/node_modules/pdq/index.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/@types/pdq.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/@types/pdq/package.json' does not exist.",
|
||||
"File '/foo/node_modules/@types/pdq/index.d.ts' does not exist.",
|
||||
"File '/node_modules/pdq.ts' does not exist.",
|
||||
"File '/node_modules/pdq.tsx' does not exist.",
|
||||
"File '/node_modules/pdq.d.ts' does not exist.",
|
||||
"File '/node_modules/pdq/package.json' does not exist.",
|
||||
"File '/node_modules/pdq/index.ts' does not exist.",
|
||||
"File '/node_modules/pdq/index.tsx' does not exist.",
|
||||
"File '/node_modules/pdq/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/pdq.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/pdq/package.json' does not exist.",
|
||||
"File '/node_modules/@types/pdq/index.d.ts' does not exist.",
|
||||
"Loading module 'pdq' from 'node_modules' folder.",
|
||||
"File '/foo/bar/node_modules/pdq.js' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq.jsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq/index.js' does not exist.",
|
||||
"File '/foo/bar/node_modules/pdq/index.jsx' does not exist.",
|
||||
"Loading module 'pdq' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/foo/node_modules/pdq.js' does not exist.",
|
||||
"File '/foo/node_modules/pdq.jsx' does not exist.",
|
||||
"File '/foo/node_modules/pdq/package.json' does not exist.",
|
||||
"File '/foo/node_modules/pdq/index.js' does not exist.",
|
||||
"File '/foo/node_modules/pdq/index.jsx' does not exist.",
|
||||
"File '/node_modules/pdq.js' does not exist.",
|
||||
"File '/node_modules/pdq.jsx' does not exist.",
|
||||
"File '/node_modules/pdq/package.json' does not exist.",
|
||||
"File '/node_modules/pdq/index.js' does not exist.",
|
||||
"File '/node_modules/pdq/index.jsx' does not exist.",
|
||||
"======== Module name 'pdq' was not resolved. ========",
|
||||
"======== Resolving module 'abc' from '/foo/bar/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'abc' from 'node_modules' folder.",
|
||||
"File '/foo/bar/node_modules/abc.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc.tsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc/index.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc/index.tsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc/index.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/abc.d.ts' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/abc/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/@types/abc/index.d.ts' does not exist.",
|
||||
"Loading module 'abc' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/foo/node_modules/abc.ts' does not exist.",
|
||||
"File '/foo/node_modules/abc.tsx' does not exist.",
|
||||
"File '/foo/node_modules/abc.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/abc/package.json' does not exist.",
|
||||
"File '/foo/node_modules/abc/index.ts' does not exist.",
|
||||
"File '/foo/node_modules/abc/index.tsx' does not exist.",
|
||||
"File '/foo/node_modules/abc/index.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/@types/abc.d.ts' does not exist.",
|
||||
"File '/foo/node_modules/@types/abc/package.json' does not exist.",
|
||||
"File '/foo/node_modules/@types/abc/index.d.ts' does not exist.",
|
||||
"File '/node_modules/abc.ts' does not exist.",
|
||||
"File '/node_modules/abc.tsx' does not exist.",
|
||||
"File '/node_modules/abc.d.ts' does not exist.",
|
||||
"File '/node_modules/abc/package.json' does not exist.",
|
||||
"File '/node_modules/abc/index.ts' does not exist.",
|
||||
"File '/node_modules/abc/index.tsx' does not exist.",
|
||||
"File '/node_modules/abc/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/abc.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/abc/package.json' does not exist.",
|
||||
"File '/node_modules/@types/abc/index.d.ts' does not exist.",
|
||||
"Loading module 'abc' from 'node_modules' folder.",
|
||||
"File '/foo/bar/node_modules/abc.js' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc.jsx' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc/package.json' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc/index.js' does not exist.",
|
||||
"File '/foo/bar/node_modules/abc/index.jsx' does not exist.",
|
||||
"Loading module 'abc' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/foo/node_modules/abc.js' does not exist.",
|
||||
"File '/foo/node_modules/abc.jsx' does not exist.",
|
||||
"File '/foo/node_modules/abc/package.json' does not exist.",
|
||||
"File '/foo/node_modules/abc/index.js' does not exist.",
|
||||
"File '/foo/node_modules/abc/index.jsx' does not exist.",
|
||||
"File '/node_modules/abc.js' does not exist.",
|
||||
"File '/node_modules/abc.jsx' does not exist.",
|
||||
"File '/node_modules/abc/package.json' does not exist.",
|
||||
"File '/node_modules/abc/index.js' does not exist.",
|
||||
"File '/node_modules/abc/index.jsx' does not exist.",
|
||||
"======== Module name 'abc' was not resolved. ========",
|
||||
"======== Resolving type reference directive 'grumpy', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/node_modules/@types,/node_modules/@types'. ========",
|
||||
"Resolving with primary search path '/foo/node_modules/@types, /node_modules/@types'",
|
||||
|
@ -163,8 +70,6 @@
|
|||
"======== Type reference directive 'sneezy' was successfully resolved to '/foo/node_modules/@types/sneezy/index.d.ts', primary: true. ========",
|
||||
"======== Resolving type reference directive 'dopey', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/node_modules/@types,/node_modules/@types'. ========",
|
||||
"Resolving with primary search path '/foo/node_modules/@types, /node_modules/@types'",
|
||||
"File '/foo/node_modules/@types/dopey/package.json' does not exist.",
|
||||
"File '/foo/node_modules/@types/dopey/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/dopey/package.json' does not exist.",
|
||||
"File '/node_modules/@types/dopey/index.d.ts' exist - use it as a name resolution result.",
|
||||
"Resolving real path for '/node_modules/@types/dopey/index.d.ts', result '/node_modules/@types/dopey/index.d.ts'",
|
||||
|
|
|
@ -1,38 +1,16 @@
|
|||
[
|
||||
"======== Resolving module 'xyz' from '/src/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'xyz' from 'node_modules' folder.",
|
||||
"File '/src/node_modules/xyz.ts' does not exist.",
|
||||
"File '/src/node_modules/xyz.tsx' does not exist.",
|
||||
"File '/src/node_modules/xyz.d.ts' does not exist.",
|
||||
"File '/src/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/src/node_modules/xyz/index.ts' does not exist.",
|
||||
"File '/src/node_modules/xyz/index.tsx' does not exist.",
|
||||
"File '/src/node_modules/xyz/index.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/xyz.d.ts' does not exist.",
|
||||
"File '/src/node_modules/@types/xyz/package.json' does not exist.",
|
||||
"File '/src/node_modules/@types/xyz/index.d.ts' does not exist.",
|
||||
"Loading module 'xyz' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/node_modules/xyz.ts' does not exist.",
|
||||
"File '/node_modules/xyz.tsx' does not exist.",
|
||||
"File '/node_modules/xyz.d.ts' does not exist.",
|
||||
"File '/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/node_modules/xyz/index.ts' does not exist.",
|
||||
"File '/node_modules/xyz/index.tsx' does not exist.",
|
||||
"File '/node_modules/xyz/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/xyz.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/xyz/package.json' does not exist.",
|
||||
"File '/node_modules/@types/xyz/index.d.ts' does not exist.",
|
||||
"Loading module 'xyz' from 'node_modules' folder.",
|
||||
"File '/src/node_modules/xyz.js' does not exist.",
|
||||
"File '/src/node_modules/xyz.jsx' does not exist.",
|
||||
"File '/src/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/src/node_modules/xyz/index.js' does not exist.",
|
||||
"File '/src/node_modules/xyz/index.jsx' does not exist.",
|
||||
"Loading module 'xyz' from 'node_modules' folder, target file type 'JavaScript'.",
|
||||
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/node_modules/xyz.js' does not exist.",
|
||||
"File '/node_modules/xyz.jsx' does not exist.",
|
||||
"File '/node_modules/xyz/package.json' does not exist.",
|
||||
"File '/node_modules/xyz/index.js' does not exist.",
|
||||
"File '/node_modules/xyz/index.jsx' does not exist.",
|
||||
"======== Module name 'xyz' was not resolved. ========",
|
||||
"======== Resolving type reference directive 'foo', containing file '/src/__inferred type names__.ts', root directory '/node_modules/@types'. ========",
|
||||
"Resolving with primary search path '/node_modules/@types'",
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
[
|
||||
"======== Resolving module 'jquery' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'jquery' from 'node_modules' folder.",
|
||||
"Loading module 'jquery' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"File '/node_modules/jquery.ts' does not exist.",
|
||||
"File '/node_modules/jquery.tsx' does not exist.",
|
||||
"File '/node_modules/jquery.d.ts' does not exist.",
|
||||
"File '/node_modules/jquery/package.json' does not exist.",
|
||||
"File '/node_modules/jquery/index.ts' does not exist.",
|
||||
"File '/node_modules/jquery/index.tsx' does not exist.",
|
||||
"File '/node_modules/jquery/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/jquery.d.ts' does not exist.",
|
||||
"Found 'package.json' at '/node_modules/@types/jquery/package.json'.",
|
||||
"'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'.",
|
||||
|
@ -17,14 +13,10 @@
|
|||
"======== Module name 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts'. ========",
|
||||
"======== Resolving module 'kquery' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'kquery' from 'node_modules' folder.",
|
||||
"Loading module 'kquery' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"File '/node_modules/kquery.ts' does not exist.",
|
||||
"File '/node_modules/kquery.tsx' does not exist.",
|
||||
"File '/node_modules/kquery.d.ts' does not exist.",
|
||||
"File '/node_modules/kquery/package.json' does not exist.",
|
||||
"File '/node_modules/kquery/index.ts' does not exist.",
|
||||
"File '/node_modules/kquery/index.tsx' does not exist.",
|
||||
"File '/node_modules/kquery/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/kquery.d.ts' does not exist.",
|
||||
"Found 'package.json' at '/node_modules/@types/kquery/package.json'.",
|
||||
"'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'.",
|
||||
|
@ -36,14 +28,10 @@
|
|||
"======== Module name 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts'. ========",
|
||||
"======== Resolving module 'lquery' from '/a.ts'. ========",
|
||||
"Module resolution kind is not specified, using 'NodeJs'.",
|
||||
"Loading module 'lquery' from 'node_modules' folder.",
|
||||
"Loading module 'lquery' from 'node_modules' folder, target file type 'TypeScript'.",
|
||||
"File '/node_modules/lquery.ts' does not exist.",
|
||||
"File '/node_modules/lquery.tsx' does not exist.",
|
||||
"File '/node_modules/lquery.d.ts' does not exist.",
|
||||
"File '/node_modules/lquery/package.json' does not exist.",
|
||||
"File '/node_modules/lquery/index.ts' does not exist.",
|
||||
"File '/node_modules/lquery/index.tsx' does not exist.",
|
||||
"File '/node_modules/lquery/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/lquery.d.ts' does not exist.",
|
||||
"Found 'package.json' at '/node_modules/@types/lquery/package.json'.",
|
||||
"'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'.",
|
||||
|
|
|
@ -10,9 +10,7 @@
|
|||
"File '/b.ts' does not exist.",
|
||||
"File '/b.tsx' does not exist.",
|
||||
"File '/b.d.ts' does not exist.",
|
||||
"File '/x/y/node_modules/@types/b.d.ts' does not exist.",
|
||||
"File '/x/y/node_modules/@types/b/package.json' does not exist.",
|
||||
"File '/x/y/node_modules/@types/b/index.d.ts' does not exist.",
|
||||
"Directory '/x/y/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/x/node_modules/@types/b.d.ts' does not exist.",
|
||||
"File '/x/node_modules/@types/b/package.json' does not exist.",
|
||||
"File '/x/node_modules/@types/b/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
@ -34,15 +32,9 @@
|
|||
"File '/a.ts' does not exist.",
|
||||
"File '/a.tsx' does not exist.",
|
||||
"File '/a.d.ts' does not exist.",
|
||||
"File '/x/node_modules/@types/b/node_modules/@types/a.d.ts' does not exist.",
|
||||
"File '/x/node_modules/@types/b/node_modules/@types/a/package.json' does not exist.",
|
||||
"File '/x/node_modules/@types/b/node_modules/@types/a/index.d.ts' does not exist.",
|
||||
"File '/x/node_modules/@types/node_modules/@types/a.d.ts' does not exist.",
|
||||
"File '/x/node_modules/@types/node_modules/@types/a/package.json' does not exist.",
|
||||
"File '/x/node_modules/@types/node_modules/@types/a/index.d.ts' does not exist.",
|
||||
"Directory '/x/node_modules/@types/b/node_modules' does not exist, skipping all lookups in it.",
|
||||
"Directory '/x/node_modules/@types/node_modules' does not exist, skipping all lookups in it.",
|
||||
"File '/x/node_modules/@types/a.d.ts' does not exist.",
|
||||
"File '/x/node_modules/@types/a/package.json' does not exist.",
|
||||
"File '/x/node_modules/@types/a/index.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/a.d.ts' does not exist.",
|
||||
"File '/node_modules/@types/a/package.json' does not exist.",
|
||||
"File '/node_modules/@types/a/index.d.ts' exist - use it as a name resolution result.",
|
||||
|
|
|
@ -7,14 +7,15 @@ m1.f();
|
|||
|
||||
//// [umdDependencyComment2.js]
|
||||
///<amd-dependency path='bar'/>
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "bar", "m2"], factory);
|
||||
}
|
||||
})(["require", "exports", "bar", "m2"], function (require, exports) {
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
var m1 = require("m2");
|
||||
m1.f();
|
||||
|
|
|
@ -7,14 +7,15 @@ m1.f();
|
|||
|
||||
//// [umdDependencyCommentName1.js]
|
||||
///<amd-dependency path='bar' name='b'/>
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "bar", "m2"], factory);
|
||||
}
|
||||
})(["require", "exports", "bar", "m2"], function (require, exports, b) {
|
||||
})(function (require, exports, b) {
|
||||
"use strict";
|
||||
var m1 = require("m2");
|
||||
m1.f();
|
||||
|
|
|
@ -11,14 +11,15 @@ m1.f();
|
|||
///<amd-dependency path='bar' name='b'/>
|
||||
///<amd-dependency path='foo'/>
|
||||
///<amd-dependency path='goo' name='c'/>
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(dependencies, factory);
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "bar", "goo", "foo", "m2"], factory);
|
||||
}
|
||||
})(["require", "exports", "bar", "goo", "foo", "m2"], function (require, exports, b, c) {
|
||||
})(function (require, exports, b, c) {
|
||||
"use strict";
|
||||
var m1 = require("m2");
|
||||
m1.f();
|
||||
|
|
55
tests/cases/compiler/importHelpersInAmbientContext.ts
Normal file
55
tests/cases/compiler/importHelpersInAmbientContext.ts
Normal file
|
@ -0,0 +1,55 @@
|
|||
// @importHelpers: true
|
||||
// @target: es5
|
||||
|
||||
// @filename: a.d.ts
|
||||
export { };
|
||||
|
||||
// Extends
|
||||
declare class C { }
|
||||
declare class D extends C { }
|
||||
|
||||
// Destructuring
|
||||
interface I {
|
||||
({descendants, read}?: {
|
||||
descendants?: boolean;
|
||||
read?: any;
|
||||
}): any;
|
||||
}
|
||||
|
||||
|
||||
// Object Rest
|
||||
interface Foo {
|
||||
a: number; b: string;
|
||||
}
|
||||
export var { a, ...x } : Foo;
|
||||
|
||||
// @filename: b.ts
|
||||
export {};
|
||||
declare namespace N {
|
||||
// Extends
|
||||
class C { }
|
||||
class D extends C { }
|
||||
|
||||
// Destructuring
|
||||
interface I {
|
||||
({descendants, read}?: {
|
||||
descendants?: boolean;
|
||||
read?: any;
|
||||
}): any;
|
||||
}
|
||||
|
||||
|
||||
// Object Rest
|
||||
interface Foo {
|
||||
a: number; b: string;
|
||||
}
|
||||
export var { a, ...x } : Foo;
|
||||
}
|
||||
|
||||
// @filename: tslib.d.ts
|
||||
export declare function __extends(d: Function, b: Function): void;
|
||||
export declare function __assign(t: any, ...sources: any[]): any;
|
||||
export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
|
||||
export declare function __param(paramIndex: number, decorator: Function): Function;
|
||||
export declare function __metadata(metadataKey: any, metadataValue: any): Function;
|
||||
export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
|
12
tests/cases/compiler/jsxInExtendsClause.tsx
Normal file
12
tests/cases/compiler/jsxInExtendsClause.tsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
// @jsx: react
|
||||
// https://github.com/Microsoft/TypeScript/issues/13157
|
||||
declare namespace React {
|
||||
interface ComponentClass<P> { new (): Component<P, {}>; }
|
||||
class Component<A, B> {}
|
||||
}
|
||||
declare function createComponentClass<P>(factory: () => React.ComponentClass<P>): React.ComponentClass<P>;
|
||||
class Foo extends createComponentClass(() => class extends React.Component<{}, {}> {
|
||||
render() {
|
||||
return <span>Hello, world!</span>;
|
||||
}
|
||||
}) {}
|
Loading…
Reference in a new issue