aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin.js3
-rw-r--r--package.json4
2 files changed, 6 insertions, 1 deletions
diff --git a/bin.js b/bin.js
new file mode 100755
index 0000000..2f4cfed
--- /dev/null
+++ b/bin.js
@@ -0,0 +1,3 @@
+#!/usr/bin/env node
+
+require('./dist/index.js')
diff --git a/package.json b/package.json
index 447cd75..b5c6613 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,9 @@
"repository": "https://github.com/phenax/ts-types-runtime-environment",
"author": "Akshay Nair <phenax5@gmail.com>",
"license": "MIT",
- "bin": "./dist/index.js",
+ "bin": {
+ "tsr": "./bin.js"
+ },
"scripts": {
"build": "tsc",
"postinstall": "yarn build",