fix cli usage

This commit is contained in:
Philipp Kunz 2016-11-25 14:15:44 +01:00
parent 1e976372fa
commit d9f517cf46
3 changed files with 6 additions and 3 deletions

2
dist/cli.js vendored Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env node
var index = require("../dist/index.js");

View File

@ -1,7 +1,8 @@
{
"npmts":{
"mode":"default",
"coverageTreshold": "70"
"coverageTreshold": "70",
"cli": true
},
"npmdocker":{
"baseImage":"hosttoday/ht-docker-node:npmts"

View File

@ -5,11 +5,11 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"bin": {
"npmci": "dist/index.js"
"npmci": "dist/cli.js"
},
"scripts": {
"test": "(npmts) && (npm run testVersion)",
"testVersion": "(cd test/assets/ && node ../../dist/index.js -v)"
"testVersion": "(cd test/assets/ && node ../../dist/cli.js -v)"
},
"repository": {
"type": "git",