diff --git a/dist/app.js b/dist/cli.js old mode 100644 new mode 100755 similarity index 54% rename from dist/app.js rename to dist/cli.js index 21377be..67c1808 --- a/dist/app.js +++ b/dist/cli.js @@ -1,3 +1,3 @@ #!/usr/bin/env node "use strict"; -console.log("Works!"); +console.log("Works Good!"); diff --git a/package.json b/package.json index 6dacb80..eac0d4e 100644 --- a/package.json +++ b/package.json @@ -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": "sahilbondre@gmail.com", @@ -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": { @@ -44,4 +47,4 @@ "dependencies": { "typescript": "^3.8.3" } -} \ No newline at end of file +} diff --git a/src/app.ts b/src/app.ts deleted file mode 100644 index 2fe7b5a..0000000 --- a/src/app.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node - -console.log("Works!"); diff --git a/src/cli.ts b/src/cli.ts new file mode 100644 index 0000000..6ba50d1 --- /dev/null +++ b/src/cli.ts @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +console.log("Works Good!");