From e5da8393d1165f22c968c0168a78b06c57b2cc0e Mon Sep 17 00:00:00 2001 From: Priyansh Date: Sat, 6 Mar 2021 20:26:13 +0530 Subject: Added files in bin directory and added scripts to run --- bin/index.js | 3 +++ index.js | 3 --- package.json | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 bin/index.js delete mode 100644 index.js diff --git a/bin/index.js b/bin/index.js new file mode 100644 index 0000000..c2e55ef --- /dev/null +++ b/bin/index.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +console.log( "Hello!" ); \ No newline at end of file diff --git a/index.js b/index.js deleted file mode 100644 index c2e55ef..0000000 --- a/index.js +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node - -console.log( "Hello!" ); \ No newline at end of file diff --git a/package.json b/package.json index 70ec4a8..0fe3445 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "calculator", "version": "0.1.0", "description": "A Command Line Scientific Calculator", - "main": "index.js", + "main": "bin/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, @@ -22,5 +22,8 @@ "bugs": { "url": "https://github.com/luciferreeves/calculator/issues" }, - "homepage": "https://github.com/luciferreeves/calculator#readme" + "homepage": "https://github.com/luciferreeves/calculator#readme", + "bin": { + "calculator": "./bin/index.js" + } } -- cgit v1.2.3