add-component-symlinks
Advanced tools
Comparing version 1.0.1 to 1.0.2
1.0.2 / 2014-02-19 | ||
================== | ||
* index: skip symlink if dir already exists (#1, @coreh) | ||
* README++ | ||
1.0.1 / 2014-02-10 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -77,3 +77,6 @@ | ||
} catch (e) { | ||
// ignore ENOENT, everything can be re-thrown | ||
if ('EPERM' == e.code) { | ||
console.error('skipping symlink for %s because of existing directory with name: %s', src, component.name); | ||
return; | ||
} | ||
if ('ENOENT' != e.code) throw e; | ||
@@ -80,0 +83,0 @@ } |
31
index.js
@@ -424,3 +424,3 @@ | ||
$ctx1.catch("end"); | ||
$ctx1.next = 53; | ||
$ctx1.next = 59; | ||
break; | ||
@@ -434,3 +434,3 @@ case 8: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 53; | ||
$ctx1.next = 59; | ||
break; | ||
@@ -444,3 +444,3 @@ case 12: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 53; | ||
$ctx1.next = 59; | ||
break; | ||
@@ -474,3 +474,3 @@ case 16: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 53; | ||
$ctx1.next = 59; | ||
break; | ||
@@ -489,3 +489,3 @@ case 32: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 53; | ||
$ctx1.next = 59; | ||
break; | ||
@@ -498,3 +498,3 @@ case 40: | ||
case 44: | ||
$ctx1.next = 50; | ||
$ctx1.next = 56; | ||
break; | ||
@@ -505,4 +505,15 @@ case 46: | ||
if (!('EPERM' == $ctx1.t2.code)) { | ||
$ctx1.next = 54; | ||
break; | ||
} | ||
console.error('skipping symlink for %s because of existing directory with name: %s', src, component.name); | ||
$ctx1.catch(46); | ||
$ctx1.catch("end"); | ||
$ctx1.next = 59; | ||
break; | ||
case 54: | ||
if (!('ENOENT' != $ctx1.t2.code)) { | ||
$ctx1.next = 50; | ||
$ctx1.next = 56; | ||
break; | ||
@@ -512,9 +523,9 @@ } | ||
throw $ctx1.t2; | ||
case 50: | ||
case 56: | ||
// finally, we can add a symlink for this component | ||
console.log('adding symlink %j -> %j', src, component.name); | ||
$ctx1.next = 53; | ||
$ctx1.next = 59; | ||
return fs.symlink(src, dst, resume()); | ||
case 53: | ||
case 59: | ||
case "end": | ||
@@ -521,0 +532,0 @@ return $ctx1.stop(); |
{ | ||
"name": "add-component-symlinks", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Adds symlinks to the node_modules dir to fix component require() calls", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ add-component-symlinks | ||
Install the `gnode` executable via npm: | ||
Install the `add-component-symlinks` executable via npm: | ||
@@ -16,0 +16,0 @@ ``` bash |
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
19640
516