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

View File

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