diff --git a/lib/web.js b/lib/web.js index 7826c78..0237860 100644 --- a/lib/web.js +++ b/lib/web.js @@ -5,5 +5,7 @@ exports.source = function () { return fs.readFileSync(__dirname + '/traverse.js') .toString() .replace(/^module\..*/mg, '') + .replace(/^var \S+\s*=\s*require\(.*\);/mg, '') + ; }; diff --git a/package.json b/package.json index 8029d36..1d21b6b 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description" : "Traverse and transform objects by visiting every node on a recursive walk.", "author" : "James Halliday", "main" : "./lib/traverse", + "directories" : { + "lib" : "./lib" + }, "repository" : { "type" : "git", "url" : "http://github.com/substack/js-traverse.git"