Skip to content

Commit 771ce36

Browse files
author
jonatansalas
committed
Fixed all the issues around cli and npm
Working version!
1 parent a6c203a commit 771ce36

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "create-typescript-api",
3-
"version": "1.0.0",
3+
"version": "1.0.4",
44
"description": "A simple CLI to create a Typescript basic project to develop APIs",
55
"main": "bin/index.js",
6+
"bin": {
7+
"create-typescript-api": "./bin/index.js"
8+
},
69
"scripts": {
710
"clean": "rimraf ./bin",
811
"compile": "babel ./src -d ./bin",

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import {h, mount} from 'ink';
24

35
import Cli from './cli';

0 commit comments

Comments
 (0)