Skip to content

Commit

Permalink
directories.lib, I forgot. Also scrub requires for later
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Aug 1, 2010
1 parent 0043cd6 commit 2a1f530
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ exports.source = function () {
return fs.readFileSync(__dirname + '/traverse.js')
.toString()
.replace(/^module\..*/mg, '')
.replace(/^var \S+\s*=\s*require\(.*\);/mg, '')
;
};

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2a1f530

Please sign in to comment.