@yarnpkg/plugin-link
Advanced tools
Comparing version 3.0.0-rc.48 to 3.0.0-rc.49
@@ -23,3 +23,2 @@ "use strict"; | ||
async fetch(locator, opts) { | ||
var _a; | ||
const { parentLocator, path } = core_1.structUtils.parseFileStyleRange(locator.reference, { protocol: constants_1.LINK_PROTOCOL }); | ||
@@ -40,3 +39,3 @@ // If the link target is an absolute path we can directly access it via its | ||
const sourceFs = effectiveParentFetch.packageFs; | ||
const sourcePath = fslib_1.ppath.resolve((_a = effectiveParentFetch.localPath) !== null && _a !== void 0 ? _a : effectiveParentFetch.packageFs.getRealPath(), effectiveParentFetch.prefixPath, path); | ||
const sourcePath = fslib_1.ppath.resolve(effectiveParentFetch.localPath ?? effectiveParentFetch.packageFs.getRealPath(), effectiveParentFetch.prefixPath, path); | ||
if (parentFetch.localPath) { | ||
@@ -43,0 +42,0 @@ return { packageFs: new fslib_1.CwdFS(sourcePath, { baseFs: sourceFs }), releaseFs: effectiveParentFetch.releaseFs, prefixPath: fslib_1.PortablePath.dot, discardFromLookup: true, localPath: sourcePath }; |
@@ -23,3 +23,2 @@ "use strict"; | ||
async fetch(locator, opts) { | ||
var _a; | ||
const { parentLocator, path } = core_1.structUtils.parseFileStyleRange(locator.reference, { protocol: constants_1.PORTAL_PROTOCOL }); | ||
@@ -40,3 +39,3 @@ // If the portal target is an absolute path we can directly access it via its | ||
const sourceFs = effectiveParentFetch.packageFs; | ||
const sourcePath = fslib_1.ppath.resolve((_a = effectiveParentFetch.localPath) !== null && _a !== void 0 ? _a : effectiveParentFetch.packageFs.getRealPath(), effectiveParentFetch.prefixPath, path); | ||
const sourcePath = fslib_1.ppath.resolve(effectiveParentFetch.localPath ?? effectiveParentFetch.packageFs.getRealPath(), effectiveParentFetch.prefixPath, path); | ||
if (parentFetch.localPath) { | ||
@@ -43,0 +42,0 @@ return { packageFs: new fslib_1.CwdFS(sourcePath, { baseFs: sourceFs }), releaseFs: effectiveParentFetch.releaseFs, prefixPath: fslib_1.PortablePath.dot, localPath: sourcePath }; |
{ | ||
"name": "@yarnpkg/plugin-link", | ||
"version": "3.0.0-rc.48", | ||
"version": "3.0.0-rc.49", | ||
"license": "BSD-2-Clause", | ||
@@ -11,10 +11,10 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@yarnpkg/fslib": "^3.0.0-rc.48", | ||
"@yarnpkg/fslib": "^3.0.0-rc.49", | ||
"tslib": "^2.4.0" | ||
}, | ||
"peerDependencies": { | ||
"@yarnpkg/core": "^4.0.0-rc.48" | ||
"@yarnpkg/core": "^4.0.0-rc.49" | ||
}, | ||
"devDependencies": { | ||
"@yarnpkg/core": "^4.0.0-rc.48" | ||
"@yarnpkg/core": "^4.0.0-rc.49" | ||
}, | ||
@@ -21,0 +21,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17588
338
Updated@yarnpkg/fslib@^3.0.0-rc.49