Skip to content

Commit

Permalink
#19 fixed CLI (#20)
Browse files Browse the repository at this point in the history
* #19 fixed CLI
* Updated dependencies
  • Loading branch information
szikszail committed Jan 4, 2018
1 parent 4a3f4ff commit 82069cd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixed

- CLI commands are not working ([#19](http://github.com/judit-nahaj/gherkin-precompiler/issues/19))

## 1.1.0 - 2017-12-04

### Added
Expand Down
4 changes: 1 addition & 3 deletions bin/precompile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /user/bin/env node

#!/usr/bin/env node
const cli = require('../lib/cli');

cli.run();
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class CLI {
const outputAST = API.process.apply(API, [ast].concat(this.compilers));
ensureDirSync(dirname(source.output));
API.save(source.output, outputAST, this.config.formatOptions);
this.config.verbose && console.log(`Processed file written our ${source.output}`);
this.config.verbose && console.log(`Processed file written out ${source.output}`);
});
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"vinyl": "^2.1.0"
},
"dependencies": {
"fs-extra": "^4.0.2",
"fs-extra": "^5.0.0",
"gherkin": "^5.0.1",
"gherkin-assembler": "^1.0.0",
"glob": "^7.1.2",
Expand Down

0 comments on commit 82069cd

Please sign in to comment.