From d9f517cf46d69a5dec4ecc3c41800d935f681668 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Fri, 25 Nov 2016 14:15:44 +0100 Subject: [PATCH] fix cli usage --- dist/cli.js | 2 ++ npmextra.json | 3 ++- package.json | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 dist/cli.js diff --git a/dist/cli.js b/dist/cli.js new file mode 100644 index 0000000..99c7383 --- /dev/null +++ b/dist/cli.js @@ -0,0 +1,2 @@ +#!/usr/bin/env node +var index = require("../dist/index.js"); \ No newline at end of file diff --git a/npmextra.json b/npmextra.json index b8c0274..4412bdf 100644 --- a/npmextra.json +++ b/npmextra.json @@ -1,7 +1,8 @@ { "npmts":{ "mode":"default", - "coverageTreshold": "70" + "coverageTreshold": "70", + "cli": true }, "npmdocker":{ "baseImage":"hosttoday/ht-docker-node:npmts" diff --git a/package.json b/package.json index 6caba08..1dda5ab 100644 --- a/package.json +++ b/package.json @@ -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",