Permalink
Browse files

Fix bug in jsbuild's --directory option. Paths were relative and --di…

…rectory gets absoluted, so removing it wasn't working. We now print paths as absolute by default and render as relative if --directory is set.
  • Loading branch information...
1 parent b8bbe28 commit a23ebecac08a6adafcf0ddc7e02e28a6b7db750e @jcoglan committed Mar 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/jsbuild
View
@@ -161,7 +161,7 @@ excludedFiles.forEach(function(exclude) {
})
if (params.output === 'paths') {
- var formatPath = function(s) { return s.replace(dir, '') }
+ var formatPath = function(s) { return path.resolve(s).replace(dir, '') }
console.log(files.map(formatPath).join('\n'))
process.exit()
}

0 comments on commit a23ebec

Please sign in to comment.