From 79356ed9f80084f2d54bc4931b3c0e32371fa636 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 7 Jan 2023 01:08:03 +0530 Subject: chore: adds bin.js file + tsr alias --- bin.js | 3 +++ package.json | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 bin.js 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 ", "license": "MIT", - "bin": "./dist/index.js", + "bin": { + "tsr": "./bin.js" + }, "scripts": { "build": "tsc", "postinstall": "yarn build", -- cgit v1.3.1