Minor update.
This commit is contained in:
parent
4742cd4a03
commit
5564e4daa2
@ -1,7 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
//====================================================================
|
|
||||||
|
|
||||||
require('exec-promise')(require('..'));
|
|
10
packages/xo-cli/src/cli.js → packages/xo-cli/index.js
Normal file → Executable file
10
packages/xo-cli/src/cli.js → packages/xo-cli/index.js
Normal file → Executable file
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
//====================================================================
|
//====================================================================
|
||||||
@ -122,7 +124,7 @@ var help = wrap((function (pkg) {
|
|||||||
|
|
||||||
return pkg[key];
|
return pkg[key];
|
||||||
});
|
});
|
||||||
})(require('../package')));
|
})(require('./package')));
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
@ -308,3 +310,9 @@ function call(args) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.call = call;
|
exports.call = call;
|
||||||
|
|
||||||
|
//====================================================================
|
||||||
|
|
||||||
|
if (!module.parent) {
|
||||||
|
require('exec-promise')(exports);
|
||||||
|
}
|
@ -13,11 +13,12 @@
|
|||||||
"bugs": "https://github.com/vatesfr/xo-cli/issues",
|
"bugs": "https://github.com/vatesfr/xo-cli/issues",
|
||||||
"author": "Julien Fontanet <julien.fontanet@vates.fr>",
|
"author": "Julien Fontanet <julien.fontanet@vates.fr>",
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"main": "./src/cli.js",
|
"bin": {
|
||||||
"directories": {
|
"xo-cli": "index.js"
|
||||||
"bin": "./bin",
|
|
||||||
"man": "./man"
|
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"*.js"
|
||||||
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/vatesfr/xo-cli"
|
"url": "https://github.com/vatesfr/xo-cli"
|
||||||
@ -42,12 +43,5 @@
|
|||||||
"sent": "^1.1.0",
|
"sent": "^1.1.0",
|
||||||
"xdg": "^0.1.1",
|
"xdg": "^0.1.1",
|
||||||
"xo-lib": "^0.2.0"
|
"xo-lib": "^0.2.0"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"chai": "^1.9.1",
|
|
||||||
"mocha": "^1.21.3"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"test": "mocha cli.spec.js"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user