diff --git a/package.json b/package.json index 4a2da45..9f65850 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "author": "Vylpes", "exports": "./dist/index.js", "typings": "./dist/index.d.ts", - "bin": "./dist/cli.js", + "bin": { + "random-bunny": "./dist/cli.js" + }, "main": "./dist/index.js", "keywords": [ "rabbit", diff --git a/src/cli.ts b/src/cli.ts index 496c5e9..9ad67b2 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,3 +1,4 @@ +#!/usr/bin/env node import { Command, Option } from "commander"; import randomBunny from "./index"; import ICliOptions from "./contracts/ICliOptions";