Repository navigation
Fix prepareRelease JSON.parse of pnpm banners and bump 0.1.1 - #8
Conversation
prepareRelease parsed npm pack --json stdout after prepack ran `pnpm run build`, so pnpm's `> package build` banner made JSON.parse throw. Isolate npm like pegma-dev/mail, skip non-JSON prefixes, run prepack through tsc, and bump public packages to 0.1.1 in lockstep. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit dc15a35. Configure here.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dc15a35478
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
queryRegistryIntegrity feeds parseNpmJson the npm 11 output of `npm view dist.integrity --json`, a quoted string. Recognize strings, numbers, and true/false/null as well as objects and arrays so publish confirmation and idempotent retries do not throw. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>

Why
publish.ymlprepare for v0.1.0 (run 31915311913) failed becauseprepareReleasedidJSON.parseonnpm pack --jsonstdout afterprepackranpnpm run build. pnpm prints a human banner:and parse threw
SyntaxError: Unexpected token '>'.The setup-node
${NODE_AUTH_TOKEN}.npmrcwarning is unrelated. This change does not addNODE_AUTH_TOKENor any npm token.v0.1.0 is left untouched: no tag, release, unpublish, or move.
What changed
pegma-dev/mailscripts/release-packages.mjs: isolated public-registry npm (real npm CLI, empty user/global npmrc, no token env), build and pack through that npm, not pnpm.parseNpmJsonskips non-JSON prefixes so a pnpm script banner cannot be parsed as pack metadata, and accepts scalar JSON ("sha512-...", numbers,true/false/null) sonpm view dist.integrity --jsonworks after publish and on retries.prepackis nowtsc -p tsconfig.json(mail's pattern), so pack no longer shells out to pnpm.@pegma/flags-contracts,flags-core,flags-static,flags-azure-appconfig,flags-aws-appconfig,flags-cloudflare-flagship,flags-flagd, andflags-launchdarkly, plus lockfile pins.npm view dist.integrity --jsonstdout ("sha512-abc").Gate
pnpm run format:check,pnpm run check, andpnpm testpassed (201 tests).