Files
zeekayandHanzo Dev d7ec4757da fix(publish): refuse to publish under npm — workspace:* must be rewritten
@luxfi/[email protected] is broken on npm right now: its published manifest
carries `"@luxfi/threshold": "workspace:*"`, a specifier that only resolves
inside this monorepo. Every external consumer fails at install.

Cause: `workspace:*` is rewritten to a real version by `pnpm publish` and
NOT by `npm publish`. This package had no publish script, so it was
published by hand with npm and shipped the specifier verbatim. The source
still declares it, so the next hand-publish breaks again the same way.

The defect is invisible in CI and inside the monorepo — pnpm resolves
workspace:* fine locally, and only an external consumer ever sees it. So
the check belongs at publish time and has to fail closed: prepublishOnly
now refuses unless the publishing client is pnpm, including when the user
agent is absent.

Verified: refuses under npm, refuses with no user agent, passes under pnpm.

Not done here: republishing 1.0.7. That is outward-facing and affects
anyone already pinned, so it needs an owner.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-27 23:41:14 -07:00
..
2025-08-03 15:52:32 -05:00
2026-05-22 15:01:18 +02:00
2026-05-22 15:01:18 +02:00
2026-05-22 15:01:18 +02:00