From 9080b05b7236ac8ef0f9ee50ff205e8b1098914b Mon Sep 17 00:00:00 2001 From: Craig Condon Date: Sun, 10 Aug 2014 23:32:01 -0700 Subject: [PATCH] include all node.js builtins --- lib/bundle.js | 5 +++-- package.json | 21 +++++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/bundle.js b/lib/bundle.js index ef2e807..4ef05dd 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -3,7 +3,8 @@ through = require("through"), async = require("async"), path = require("path"), fs = require("fs"), -uglify = require("uglify-js"); +uglify = require("uglify-js"), +builtins = require("builtins"); function bundle (input, complete) { @@ -60,7 +61,7 @@ function bundle (input, complete) { }, filter: function (id) { - return !~["http"].indexOf(id); + return !~builtins.indexOf(id); } }); md.pipe(through(function (chunk) { diff --git a/package.json b/package.json index 9fa551c..aea18c4 100644 --- a/package.json +++ b/package.json @@ -2,26 +2,27 @@ "author": "Craig Condon ", "name": "nexe", "description": "Roll node.s applications into a single executable", - "version": "0.3.1", + "version": "0.3.2", "repository": { "type": "git", "url": "git://github.com/crcn/nexe.git" }, "main": "./lib/index.js", "dependencies": { - "outcome": "0.0.18", - "sprintf": "~0.1.3", - "step": "0.0.x", - "optimist": "~0.3.7", - "request": "~2.12.0", - "ncp": "~0.2.7", - "mkdirp": "~0.3.5", "async": "~0.2.10", + "builtins": "0.0.5", "colors": "~0.6.2", "glob": "~3.2.9", - "progress": "~1.1.3", - "tar.gz": "0.1.1", + "mkdirp": "~0.3.5", "module-deps": "^3.5.4", + "ncp": "~0.2.7", + "optimist": "~0.3.7", + "outcome": "0.0.18", + "progress": "~1.1.3", + "request": "~2.12.0", + "sprintf": "~0.1.3", + "step": "0.0.x", + "tar.gz": "0.1.1", "through": "^2.3.4", "uglify-js": "^2.4.15" },