Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 4d65f5d

Browse files
authored
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.
1 parent bcad9b7 commit 4d65f5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sudo": false,
33
"language": "node_js",
4-
"node_js": ["5"],
4+
"node_js": ["6"],
55
"before_install": [
66
"travis_retry pip install -r test-infra/requirements.txt --user",
77
"rvm install 2.2",

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
var Deferred = require('bluebird');
66
var chalk = require('chalk');
7-
var program = require('commander');
7+
var commander = require('commander');
88
var readFile = Deferred.promisify(require('fs').readFile);
99
var glob = Deferred.promisify(require('glob'));
1010
var bootlint = require('./bootlint');
1111

1212
module.exports = function () {
13-
program
13+
var program = (new commander.Command('bootlint'))
1414
.version(require('../package.json').version)
1515
.description('Lint the HTML of Bootstrap projects')
1616
.usage('[options] [files...]')

0 commit comments

Comments
 (0)