add-component-symlinks
Advanced tools
Comparing version 1.0.2 to 1.0.3
1.0.3 / 2014-02-24 | ||
================== | ||
* index: fix Windows | ||
1.0.2 / 2014-02-19 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -86,3 +86,11 @@ | ||
console.log('adding symlink %j -> %j', src, component.name); | ||
yield fs.symlink(src, dst, resume()); | ||
var type; | ||
if (/win/.test(process.platform)) { | ||
// on Windows, we must absolutize the arguments, otherwise node | ||
// will attempt to do it for us and actually get it wrong... | ||
type = 'junction'; | ||
src = path.resolve(nodeModulesDir, src); | ||
dst = path.resolve(nodeModulesDir, dst); | ||
} | ||
yield fs.symlink(src, dst, type, resume()); | ||
@@ -89,0 +97,0 @@ }); |
28
index.js
@@ -407,3 +407,3 @@ | ||
var processDir = suspend.async(wrapGenerator.mark(function(dirname) { | ||
var stat, componentPath, component, data, nodeModulesDir, src, dst; | ||
var stat, componentPath, component, data, nodeModulesDir, src, dst, type; | ||
@@ -425,3 +425,3 @@ return wrapGenerator(function($ctx1) { | ||
$ctx1.catch("end"); | ||
$ctx1.next = 59; | ||
$ctx1.next = 60; | ||
break; | ||
@@ -435,3 +435,3 @@ case 8: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 59; | ||
$ctx1.next = 60; | ||
break; | ||
@@ -445,3 +445,3 @@ case 12: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 59; | ||
$ctx1.next = 60; | ||
break; | ||
@@ -475,3 +475,3 @@ case 16: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 59; | ||
$ctx1.next = 60; | ||
break; | ||
@@ -490,3 +490,3 @@ case 32: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 59; | ||
$ctx1.next = 60; | ||
break; | ||
@@ -513,3 +513,3 @@ case 40: | ||
$ctx1.catch("end"); | ||
$ctx1.next = 59; | ||
$ctx1.next = 60; | ||
break; | ||
@@ -527,5 +527,13 @@ case 54: | ||
$ctx1.next = 59; | ||
return fs.symlink(src, dst, resume()); | ||
case 59: | ||
if (/win/.test(process.platform)) { | ||
// on Windows, we must absolutize the arguments, otherwise node | ||
// will attempt to do it for us and actually get it wrong... | ||
type = 'junction'; | ||
src = path.resolve(nodeModulesDir, src); | ||
dst = path.resolve(nodeModulesDir, dst); | ||
} | ||
$ctx1.next = 60; | ||
return fs.symlink(src, dst, type, resume()); | ||
case 60: | ||
case "end": | ||
@@ -532,0 +540,0 @@ return $ctx1.stop(); |
{ | ||
"name": "add-component-symlinks", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Adds symlinks to the node_modules dir to fix component require() calls", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
20338
531