Skip to content

Commit

Permalink
0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
weepy committed Mar 15, 2011
1 parent 434b98c commit f42eec3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions History.md
@@ -1,3 +1,8 @@
0.0.4
=====

* directories are not source files

0.0.3 / 2010-11-03
==================

Expand Down
9 changes: 5 additions & 4 deletions lib/brequire.js
Expand Up @@ -47,13 +47,13 @@ compile.prototype._files = function() {
files = files.concat(x)
}


var ret = []
for(var i=0; i<files.length;i++) {
// if(files[i][files[i].length-1] != "/") files[i] += "/"
files[i] = files[i].replace(this.root + "/", "")
if(!fs.statSync(files[i]).isFile()) continue
ret.push(files[i].replace(this.root + "/", ""))
}

return files
return ret
}

function join() {
Expand Down Expand Up @@ -100,6 +100,7 @@ compile.prototype.write = function(path) {

for(var i =0; i< files.length; i++) {
var module = join(this._module_base, files[i]) //.replace(/\.js$/,"") // leave off the ending .js
// console.log(join(this.root, files[i]))
var txt = fs.readFileSync(join(this.root, files[i])).toString()

if(files[i].match(/\.k$/)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "brequire",
"version": "0.0.3",
"version": "0.0.4",
"description": "Use CommonJS (require, exports) functionality in the browser",
"author": "weepy",
"licenses": [{
Expand Down

0 comments on commit f42eec3

Please sign in to comment.