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",