From 318e0b2e4069b578c729228455328a1ca88f640d Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 25 Jun 2026 09:17:09 -0400 Subject: [PATCH] fix(cli): use npm-canonical bin path so the uipro command survives publish (#392) The bin mapping was "./dist/index.js". On publish, npm normalizes bin values and the leading ./ triggers a warning -- on the npm version in the release runner it reports `bin[uipro] script name dist/index.js was invalid and removed`, i.e. the published package ships with no `uipro` command, so `npx uipro-cli init` would not work even once publishing succeeds (see #353). Change the value to the canonical `dist/index.js` (exactly what `npm pkg fix` produces). src/index.ts already has the `#!/usr/bin/env node` shebang, which bun build preserves, so the bin is executable. Verified: `npm publish --dry-run` no longer emits the bin warning, and dist/index.js is included in the tarball; typecheck passes. Addresses the package-metadata half of #353. Actually landing on npm still requires a release run with a token that has publish rights for uipro-cli. --- cli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/package.json b/cli/package.json index 89c7586..9613e50 100755 --- a/cli/package.json +++ b/cli/package.json @@ -4,7 +4,7 @@ "description": "CLI to install UI/UX Pro Max skill for AI coding assistants", "type": "module", "bin": { - "uipro": "./dist/index.js" + "uipro": "dist/index.js" }, "files": [ "dist",