From 1990e125bdb3636d45bb8c2ff2a1ff579c6067a2 Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Mon, 12 Mar 2018 00:11:37 -0400 Subject: [PATCH] fix(CLI): link the correct bin from package.json --- package.json | 2 +- src/cli/args.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 878a52d..b5dcd56 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "2.0.0", "description": "A typescript starter for building javascript libraries and projects", "bin": { - "typescript-starter": "./build/main/cli/cli.js" + "typescript-starter": "./bin/typescript-starter" }, "main": "build/main/index.js", "typings": "build/main/index.d.ts", diff --git a/src/cli/args.ts b/src/cli/args.ts index b488ed6..496290d 100644 --- a/src/cli/args.ts +++ b/src/cli/args.ts @@ -10,10 +10,10 @@ export async function checkArgs(): Promise< const cli = meow( ` Usage - $ typescript-starter + $ npx typescript-starter Non-Interactive Usage - $ typescript-starter [options] + $ npx typescript-starter [options] Options --description, -d package.json description @@ -26,7 +26,7 @@ export async function checkArgs(): Promise< --no-vscode Don't include VS Code debugging config Non-Interactive Example - $ typescript-starter my-library -d 'do something, better' + $ npx typescript-starter my-library -d 'do something, better' `, { flags: {