@pnpm/pkg-manager.direct-dep-linker
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -48,3 +48,3 @@ "use strict"; | ||
const deps = (await (0, read_modules_dir_1.readModulesDir)(modulesDir)) ?? []; | ||
return Promise.all(deps.map((alias) => (0, resolve_link_target_1.default)(path_1.default.join(modulesDir, alias)))); | ||
return Promise.all(deps.map((alias) => resolveLinkTargetOrFile(path_1.default.join(modulesDir, alias)))); | ||
} | ||
@@ -64,6 +64,16 @@ async function deletePkgsPresentInRoot(modulesDir, pkgsLinkedToRoot) { | ||
linkedTo, | ||
linkedFrom: await (0, resolve_link_target_1.default)(linkedTo), | ||
linkedFrom: await resolveLinkTargetOrFile(linkedTo), | ||
}; | ||
})); | ||
} | ||
async function resolveLinkTargetOrFile(filePath) { | ||
try { | ||
return await (0, resolve_link_target_1.default)(filePath); | ||
} | ||
catch (err) { // eslint-disable-line @typescript-eslint/no-explicit-any | ||
if (err.code !== 'EINVAL' && err.code !== 'UNKNOWN') | ||
throw err; | ||
return filePath; | ||
} | ||
} | ||
async function linkDirectDepsOfProject(project) { | ||
@@ -70,0 +80,0 @@ await Promise.all(project.dependencies.map(async (dep) => { |
{ | ||
"name": "@pnpm/pkg-manager.direct-dep-linker", | ||
"description": "Fast installation using only pnpm-lock.yaml", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"bugs": { | ||
@@ -19,3 +19,3 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"@types/ramda": "0.28.15", | ||
"@pnpm/pkg-manager.direct-dep-linker": "1.0.0" | ||
"@pnpm/pkg-manager.direct-dep-linker": "1.0.1" | ||
}, | ||
@@ -22,0 +22,0 @@ "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/direct-dep-linker#readme", |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
12603
143
1