symlink-dir
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -10,3 +10,2 @@ "use strict"; | ||
const unlink = util_1.promisify(fs.unlink); | ||
const mkdir = util_1.promisify(fs.mkdir); | ||
const IS_WINDOWS = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE); | ||
@@ -23,3 +22,3 @@ // Always use "junctions" on Windows. Even though support for "symbolic links" was added in Vista+, users by default | ||
} | ||
async function symlinkDir(src, dest) { | ||
function symlinkDir(src, dest) { | ||
dest = betterPathResolve(dest); | ||
@@ -30,12 +29,3 @@ src = betterPathResolve(src); | ||
src = resolveSrc(src, dest); | ||
try { | ||
return await forceSymlink(src, dest); | ||
} | ||
catch (err) { | ||
if (err.code === 'ENOENT') { | ||
await mkdir(path.dirname(dest), { recursive: true }); | ||
return await forceSymlink(src, dest); | ||
} | ||
throw err; | ||
} | ||
return forceSymlink(src, dest); | ||
} | ||
@@ -42,0 +32,0 @@ /** |
{ | ||
"name": "symlink-dir", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Cross-platform directory symlinking", | ||
@@ -57,3 +57,3 @@ "main": "dist/index.js", | ||
"graceful-fs": "^4.1.11", | ||
"rename-overwrite": "^2.0.2" | ||
"rename-overwrite": "^3.0.0" | ||
}, | ||
@@ -60,0 +60,0 @@ "mos": { |
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
7101
77
+ Addedrename-overwrite@3.1.2(transitive)
- Removedrename-overwrite@2.0.2(transitive)
Updatedrename-overwrite@^3.0.0