Browse Source

don't resolve file path

dev/fix.absolute.path
Brett Langdon 10 years ago
parent
commit
c5a126bed9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bin/jsnice

+ 2
- 2
bin/jsnice View File

@ -23,9 +23,9 @@ var args = docopt.docopt(doc, {
help: true,
version: 'jsnice ' + require('../package.json').version,
});
var cwd = process.cwd();
filePath = path.join(cwd, args['<file>']);
// Resolve file path
var filePath = args['<file>'];
var js = fs.readFileSync(filePath);
var options = {
pretty: !args['--no-pretty'],


Loading…
Cancel
Save