Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/proxy",
"version": "0.2.4",
"version": "0.2.5",
"description": "A CLI tool to run an Express server that proxies CRUD requests to a ZenStack backend",
"main": "index.js",
"publishConfig": {
Expand All @@ -12,7 +12,9 @@
"url": "https://github.com/zenstackhq/proxy"
},
"bin": {
"zenstack-proxy": "./bin/cli.js"
"zenstack-proxy": "./bin/cli.js",
"zenstack-studio": "./bin/cli.js",
"zen-studio": "./bin/cli.js"
Comment on lines +15 to +17
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new bin aliases ("zenstack-studio" / "zen-studio") both point to the same CLI entrypoint, but the CLI currently hard-codes its displayed command name to "zenstack-proxy". When users run zenstack-studio --help they'll still see zenstack-proxy in usage/help output, which is confusing. Consider either adding small wrapper bin scripts per command name, or updating the CLI to derive program.name() from process.argv[1] so each alias displays correctly.

Suggested change
"zenstack-proxy": "./bin/cli.js",
"zenstack-studio": "./bin/cli.js",
"zen-studio": "./bin/cli.js"
"zenstack-proxy": "./bin/cli.js"

Copilot uses AI. Check for mistakes.
},
"scripts": {
"clean": "rimraf dist",
Expand Down Expand Up @@ -44,5 +46,11 @@
"copyfiles": "^2.4.1",
"rimraf": "^4.0.0",
"typescript": "^5.0.0"
},
"exports": {
".": {
"import": "./index.js",
"require": "./index.js"
}
}
}