Skip to content

Commit

Permalink
fix(bin): no cli anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Jan 30, 2016
1 parent e05ef37 commit 65a9f4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
var conventionalChangelogCore = require('conventional-changelog-core');

function conventionalChangelog(options, context, gitRawCommitsOpts, parserOpts, writerOpts) {
var loadPreset;

options.warn = options.warn || function() {};

if (options.preset) {
try {
options.config = require('conventional-changelog-' + options.preset.toLowerCase());
loadPreset = true;
} catch (err) {
loadPreset = false;
options.warn('Preset: "' + options.preset + '" does not exist');
}
}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,5 @@
"coverage": "istanbul cover _mocha -- -R spec --timeout 30000 && rm -rf ./coverage",
"lint": "jshint test *.js --exclude node_modules && jscs test *.js",
"test": "npm run-script lint && mocha --timeout 30000"
},
"bin": "cli.js"
}
}

0 comments on commit 65a9f4b

Please sign in to comment.