From db0b38bd7b163e7ff78867f43390d08130f1c433 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 22 Sep 2018 15:18:21 +0200 Subject: [PATCH] fix(cli): update cli files to be in line with gitzone cli template --- cli.js | 3 +++ cli.ts.js | 4 ++++ package.json | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 cli.js create mode 100644 cli.ts.js diff --git a/cli.js b/cli.js new file mode 100644 index 0000000..9ebd5d2 --- /dev/null +++ b/cli.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node +process.env.CLI_CALL = 'true'; +require('./dist/index'); diff --git a/cli.ts.js b/cli.ts.js new file mode 100644 index 0000000..eafbbe1 --- /dev/null +++ b/cli.ts.js @@ -0,0 +1,4 @@ +#!/usr/bin/env node +process.env.CLI_CALL = 'true'; +require('@gitzone/tsrun'); +require('./ts/index'); diff --git a/package.json b/package.json index 5721c70..13c1e3f 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,12 @@ "main": "dist/index.js", "typings": "dist/index.d.ts", "bin": { - "npmci": "dist/cli.js" + "npmci": "cli.js" }, "scripts": { "test": "(rm -f config.json) && tstest test/", "build": "(rm -f config.json) && tsbuild && (npm run testVersion)", - "testVersion": "(cd test/assets/ && node ../../dist/cli.js -v)" + "testVersion": "(cd test/assets/ && node ../../cli.js -v)" }, "repository": { "type": "git",