Commit 9b8d301
fix(release): correct npm metadata and gate publishing on engine assets
npm rewrote four `bin` paths and `repository.url` on every publish and
reported the bin entries as "invalid and removed". The entries in fact
survived - 0.19.0 and 0.19.1 both carry all of theirs on the registry -
but the warning was indistinguishable from a real failure and cost a
publish that was aborted on the assumption it had broken something.
Store the forms npm normalizes to, so a clean publish is silent and any
future warning means something.
package-npm.sh treated a package.json/server.json version mismatch as a
warning, printed into the middle of npm pack output where it scrolls
past. The two files are published to two different registries under one
version, and republishing that version cannot correct a disagreement
between them, so this now aborts instead.
The package ships no engine: every install fetches one from the release
tagged with the engine's version. Publishing ahead of those assets makes
a package that installs cleanly and then has nothing to run, so the
assets are probed before packing rather than trusted.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017rVbt7rENTwXkdHt3Bpgb51 parent 284c8e5 commit 9b8d301
2 files changed
Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
65 | 81 | | |
| 82 | + | |
66 | 83 | | |
67 | 84 | | |
68 | 85 | | |
| |||
0 commit comments