use bin instead index

This commit is contained in:
SrGooglo 2025-04-09 15:45:02 +00:00
parent 9cdf4ef3a7
commit 92d41f4083
3 changed files with 6 additions and 3 deletions

4
packages/cli/bin/cli.js Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env node
process.env.NODE_ENV = "production"
import "../src/index.js"

View File

@ -1,7 +1,7 @@
{ {
"name": "@ragestudio/comty-cli", "name": "@ragestudio/comty-cli",
"description": "Command line interface for Comty Services", "description": "Command line interface for Comty Services",
"version": "0.1.2", "version": "0.2.1",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
@ -9,7 +9,7 @@
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
"bin": { "bin": {
"comty-cli": "./src/index.js" "comty-cli": "./bin/cli.js"
}, },
"scripts": { "scripts": {
"start": "node ./src/index.js" "start": "node ./src/index.js"

View File

@ -1,4 +1,3 @@
#!/usr/bin/env node
import fs from "node:fs" import fs from "node:fs"
import path from "node:path" import path from "node:path"
import { Command } from "commander" import { Command } from "commander"