Update binary option to use the cli if installed globally #253

Merged
Vylpes merged 1 commit from feature/183-global-install-cli into develop 2024-12-02 17:56:07 +00:00
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,9 @@
"author": "Vylpes", "author": "Vylpes",
"exports": "./dist/index.js", "exports": "./dist/index.js",
"typings": "./dist/index.d.ts", "typings": "./dist/index.d.ts",
"bin": "./dist/cli.js", "bin": {
"random-bunny": "./dist/cli.js"
},
"main": "./dist/index.js", "main": "./dist/index.js",
"keywords": [ "keywords": [
"rabbit", "rabbit",

View file

@ -1,3 +1,4 @@
#!/usr/bin/env node
import { Command, Option } from "commander"; import { Command, Option } from "commander";
import randomBunny from "./index"; import randomBunny from "./index";
import ICliOptions from "./contracts/ICliOptions"; import ICliOptions from "./contracts/ICliOptions";