@pnpm/fs.hard-link-dir
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -10,2 +10,6 @@ "use strict"; | ||
async function hardLinkDir(src, destDirs) { | ||
if (destDirs.length === 0) | ||
return; | ||
// Don't try to hard link the source directory to itself | ||
destDirs = destDirs.filter((destDir) => path_1.default.relative(destDir, src) !== ''); | ||
const files = await fs_1.promises.readdir(src); | ||
@@ -12,0 +16,0 @@ await Promise.all(files.map(async (file) => { |
{ | ||
"name": "@pnpm/fs.hard-link-dir", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Hard link all files from a directory to several target directories.", | ||
@@ -28,4 +28,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/fs.hard-link-dir": "1.0.0", | ||
"@pnpm/prepare": "0.0.59" | ||
"@pnpm/fs.hard-link-dir": "1.0.1", | ||
"@pnpm/prepare": "0.0.62" | ||
}, | ||
@@ -32,0 +32,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
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
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
6357
52