Comparing version 0.4.2 to 0.4.3
@@ -224,13 +224,12 @@ var fs = require('fs') | ||
FILE.constructBridge(packagePath, packageJSON.ender, function (content) { | ||
if (!j) { | ||
if ((options.sans && !j) || (!options.sans && name == 'ender-js')) { | ||
// this is some straight up ¬33† b®u†å¬î†¥ | ||
source = source.toString().replace(/\/\*[\s\S]+?\*\//g, ''); | ||
source = FILE.processComment(context) + source; | ||
} else { | ||
if (!options.noop) { | ||
if (!packageJSON.ender) { | ||
source = commonJSBridge.head + source + commonJSBridge.foot; | ||
} else if (packageJSON.ender != 'noop'){ | ||
source += content; | ||
} | ||
} | ||
if (name !== 'ender-js' && !options.noop) { | ||
if (!packageJSON.ender) { | ||
source = commonJSBridge.head + source + commonJSBridge.foot; | ||
} else if (packageJSON.ender != 'noop'){ | ||
source += content; | ||
} | ||
@@ -237,0 +236,0 @@ } |
@@ -155,2 +155,3 @@ var colors = require('colors') | ||
, build: function (packages, options, callback) { | ||
var total = !options.sans ? 2 : 1 | ||
if (!packages.length) { | ||
@@ -172,3 +173,3 @@ return console.log('error: ender build requires packages.'.yellow); | ||
var built = 0, isComplete = function () { | ||
if (++built === 2) callback && callback(); | ||
if (++built === total) callback && callback(); | ||
}; | ||
@@ -175,0 +176,0 @@ ENDER.file.output(source, options.output, isComplete); |
{ | ||
"name": "ender", | ||
"description": "next level JavaScript modules", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"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
4367339