Comparing version 0.6.4 to 0.6.5
@@ -255,12 +255,10 @@ var fs = require('fs') | ||
, that = this | ||
, packagePath | ||
, isInstallingFromRoot | ||
packages.forEach(function (packageName) { | ||
packageName = packageName.replace(/\@.*/, '') | ||
packagePath = /^[\/.]/.test(packageName) ? path.join(packageName, 'package.json') : path.join(dir, packageName, 'package.json') | ||
isInstallingFromRoot = /^\.\/?$/.test(packageName) | ||
var packageName = packageName.replace(/\@.*/, '') | ||
, packagePath = /^[\/.]/.test(packageName) ? path.join(packageName, 'package.json') : path.join(dir, packageName, 'package.json') | ||
, isInstallingFromRoot = /^\.\/?$/.test(packageName) | ||
async.waterfall([ | ||
async.apply(fs.readFile, packagePath, 'utf-8') | ||
function (cb) { fs.readFile(packagePath, 'utf-8', function (err, data) { if (err) { return ++x } cb(err, data) }) } | ||
, function (data, cb) { ENDER.file.findDependencies(data, tree, dir, isInstallingFromRoot, cb) } | ||
@@ -267,0 +265,0 @@ , function () { if (++x == packages.length) { callback(null, tree) } } |
@@ -92,3 +92,3 @@ // Ender: open module JavaScript framework | ||
uniqueActivePackageNames = uniqueActivePackageNames.concat(newPackages) | ||
uniqueActivePackageNames = ENDER.util.unique(uniqueActivePackageNames.concat(newPackages)) | ||
context = ENDER.cmd.getContext(type, uniqueActivePackageNames, options.context) | ||
@@ -95,0 +95,0 @@ |
{ | ||
"name": "ender", | ||
"description": "next level JavaScript modules", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"authors": ["Dustin Diaz <@ded>", "Jacob Thornton <@fat>"], | ||
@@ -6,0 +6,0 @@ "keywords": ["ender", "modules", "builder", "framework", "packager"], |
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
4376364
1501