-
fix(cli): use npm-canonical bin path so the uipro command survives publish (#392)
发布于
2026-06-25 13:17:09 +00:00 | 89 次提交 在此版本后已推送到 mainThe 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 reportsbin[uipro] script name dist/index.js was invalid and removed, i.e. the published package ships with nouipro
command, sonpx uipro-cli initwould not work even once publishing
succeeds (see #353).Change the value to the canonical
dist/index.js(exactly what
npm pkg fixproduces). src/index.ts already has the
#!/usr/bin/env nodeshebang, which bun build preserves, so the bin is
executable.Verified:
npm publish --dry-runno 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.下载附件