From 7043a844f0e13dfc7348c3cc38d9f31ce9dd90ba Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Wed, 5 Oct 2016 12:37:45 +0200 Subject: [PATCH] fix cli --- assets/cliNpmts | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 assets/cliNpmts diff --git a/assets/cliNpmts b/assets/cliNpmts new file mode 100644 index 0000000..99c7383 --- /dev/null +++ b/assets/cliNpmts @@ -0,0 +1,2 @@ +#!/usr/bin/env node +var index = require("../dist/index.js"); \ No newline at end of file diff --git a/package.json b/package.json index fe75dc0..b93871c 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "description": "Write npm modules with TypeScript without hassle. TypeScript ready. Fully ES6.", "main": "dist/index.js", "bin": { - "npmts": "dist/cli.js" + "npmts": "assets/cliNpmts.js" }, "scripts": { "test": "(npm run compile && npm run prepareTest && npm run setupCheck && npm run check && npm run checkVersion && npm run checkNoTest && npm run checkNoDocs)", "testShort": "(npm run compile && npm run check)", "prepareTest": "(rm -rf test/)", - "compile": "(rm -r dist/ && tsc && cp assets/cli.js dist/ )", + "compile": "(rm -r dist/ && tsc)", "setupCheck": "(git clone https://gitlab.com/sandboxzone/sandbox-npmts.git test/)", "typedoc": "(typedoc --out ./pages/api --target ES6 ./ts/)", "npmpage": "(npmpage)",