1
0
mirror of synced 2025-11-08 12:57:47 +00:00

fix(CLI): link the correct bin from package.json

This commit is contained in:
Jason Dreyzehner
2018-03-12 00:11:37 -04:00
parent b65ab1bbd3
commit 1990e125bd
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -10,10 +10,10 @@ export async function checkArgs(): Promise<
const cli = meow(
`
Usage
$ typescript-starter
$ npx typescript-starter
Non-Interactive Usage
$ typescript-starter <project-name> [options]
$ npx typescript-starter <project-name> [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: {