-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add export without export package.json so that zenstack CLI wouldn't check the version of it #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add export without export package.json so that zenstack CLI wouldn't check the version of it #23
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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": { | ||||||||||||||||||||||||||
|
|
@@ -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" | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
| "scripts": { | ||||||||||||||||||||||||||
| "clean": "rimraf dist", | ||||||||||||||||||||||||||
|
Comment on lines
+15
to
20
|
||||||||||||||||||||||||||
| "zenstack-proxy": "./bin/cli.js", | |
| "zenstack-studio": "./bin/cli.js", | |
| "zen-studio": "./bin/cli.js" | |
| }, | |
| "scripts": { | |
| "clean": "rimraf dist", | |
| "zenstack-proxy": "./bin/cli.js" | |
| }, | |
| "scripts": { | |
| "clean": "rimraf dist", | |
| "scripts": { | |
| "clean": "rimraf dist", |
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding an exports map without exporting ./package.json will make require('@zenstackhq/proxy/package.json') (and similar tooling) fail with ERR_PACKAGE_PATH_NOT_EXPORTED. If this is intentional, it’s a breaking change worth calling out (and potentially warrants more than a patch bump); if not intentional, add an explicit "./package.json" export or provide another supported way for consumers/tools to read the version.
| } | |
| }, | |
| "./package.json": "./package.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding new
binaliases (zenstack-studio,zen-studio) will install additional executables. Right now the CLI code hard-codes the program name/description tozenstack-proxy, so running these new binaries will show incorrect help/output and may confuse users. Consider either (a) making the CLI name dynamic based on the invoked command, or (b) pointing these aliases at wrappers that set the intended command name/behavior.