ts-pnp
Advanced tools
Comparing version 1.1.6 to 1.2.0
function resolveModuleName(request, issuer, compilerOptions, moduleResolutionHost, parentResolver) { | ||
const pnp = require(`pnpapi`); | ||
const topLevelLocation = pnp.getPackageInformation(pnp.topLevel).packageLocation; | ||
const [, prefix = ``, packageName = ``, rest] = request.match(/^(!(?:.*!)+)?((?!\.{0,2}\/)(?:@[^\/]+\/)?[^\/]+)?(.*)/); | ||
@@ -16,3 +14,3 @@ | ||
try { | ||
unqualified = pnp.resolveToUnqualified(typesPackagePath, `${topLevelLocation}/`, {considerBuiltins: false}); | ||
unqualified = pnp.resolveToUnqualified(typesPackagePath, issuer, {considerBuiltins: false}); | ||
} catch (error) {} | ||
@@ -19,0 +17,0 @@ |
{ | ||
"name": "ts-pnp", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"description": "plug'n'play resolver for TypeScript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
8004
83