aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-07 01:08:03 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-07 01:08:03 +0530
commit79356ed9f80084f2d54bc4931b3c0e32371fa636 (patch)
treedf275c05e3cc8cca552e9511fe7e1ce8ea8e127b
parent1d132d5610cbba975eb5ac582cfbb951e33e6b9d (diff)
downloadts-types-lang-79356ed9f80084f2d54bc4931b3c0e32371fa636.tar.gz
ts-types-lang-79356ed9f80084f2d54bc4931b3c0e32371fa636.zip
chore: adds bin.js file + tsr alias
-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",