Skip to content

Commit

Permalink
setup cli config
Browse files Browse the repository at this point in the history
  • Loading branch information
godcrampy committed Apr 24, 2020
1 parent 4ce5d8b commit dfbb40a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/app.js → dist/cli.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node
"use strict";
console.log("Works!");
console.log("Works Good!");
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "git-stalker",
"version": "1.0.0",
"description": "Stalk github users without leaving the terminal",
"main": "index.js",
"main": "./dist/cli.js",
"bin": {
"stalk": "./dist/cli.js"
},
"author": {
"name": "Sahil Bondre",
"email": "[email protected]",
Expand All @@ -11,7 +14,7 @@
"scripts": {
"watch": "tsc -w",
"build": "tsc",
"start": "yarn build && node dist/app.js",
"start": "yarn build && node dist/cli.js",
"lint": "eslint '**/*.ts' --fix && prettier --write '**/*.ts'"
},
"husky": {
Expand Down Expand Up @@ -44,4 +47,4 @@
"dependencies": {
"typescript": "^3.8.3"
}
}
}
3 changes: 0 additions & 3 deletions src/app.ts

This file was deleted.

3 changes: 3 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

console.log("Works Good!");

0 comments on commit dfbb40a

Please sign in to comment.