diff options
author | Chris Rebert <github@chrisrebert.com> | 2016-07-24 01:53:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-24 01:53:37 +0300 |
commit | 4d65f5ddb1a6b25467315651afd0c61ce1525571 (patch) | |
tree | ff7c4bf7abc01feb7d27d298b4092039a3a385e1 /src | |
parent | bcad9b7cc4595d1e97b983e5752b6102e4d621d7 (diff) |
Travis CI: Upgrade to Node.js v6 (#386)
Also adjust Commander initialization to explicitly name our command,
which prevents a crash within commander within our CLI unit tests under Node.js 6.
Diffstat (limited to 'src')
-rw-r--r-- | src/cli.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,13 +4,13 @@ var Deferred = require('bluebird'); var chalk = require('chalk'); -var program = require('commander'); +var commander = require('commander'); var readFile = Deferred.promisify(require('fs').readFile); var glob = Deferred.promisify(require('glob')); var bootlint = require('./bootlint'); module.exports = function () { - program + var program = (new commander.Command('bootlint')) .version(require('../package.json').version) .description('Lint the HTML of Bootstrap projects') .usage('[options] [files...]') |