symlink-dir
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -10,2 +10,3 @@ "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); | ||
@@ -40,2 +41,6 @@ // Always use "junctions" on Windows. Even though support for "symbolic links" was added in Vista+, users by default | ||
catch (err) { | ||
if (err.code === 'ENOENT') { | ||
await mkdir(path.dirname(dest), { recursive: true }); | ||
return await forceSymlink(src, dest); | ||
} | ||
if (err.code !== 'EEXIST' && err.code !== 'EISDIR') | ||
@@ -42,0 +47,0 @@ throw err; |
{ | ||
"name": "symlink-dir", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Cross-platform directory symlinking", | ||
@@ -52,3 +52,4 @@ "main": "dist/index.js", | ||
"ts-node": "^8.9.0", | ||
"typescript": "^3.8.3" | ||
"typescript": "^3.8.3", | ||
"write-json-file": "^4.3.0" | ||
}, | ||
@@ -55,0 +56,0 @@ "dependencies": { |
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
7337
82
10