Repository navigation
Commit 417f0bc
fix: refresh platform binary optionalDependencies on every release
The committed @aictrl/cli optionalDependencies hard-pinned
@aictrl/cli-linux-x64 to 0.2.0, so 0.3.0 and 0.3.1 both shipped pointing
at the old native binary — upgrades silently kept running the 0.2.0
build. Only @aictrl/cli-linux-x64 was even listed; other platforms
(linux-arm64, darwin, windows, musl/baseline variants) were built but
neither published nor referenced.
The publish workflow now (1) loops over every platform binary the build
produced under packages/cli/dist/@aictrl/ and publishes each, and
(2) regenerates @aictrl/cli's optionalDependencies from those manifests
at publish time, preserving genuine runtime optionals (@parcel/watcher,
bun-pty) that the compiled binary still resolves at install time.
Removed the stale @aictrl/cli-linux-x64 entry from the committed
package.json so source-of-truth no longer lies about what ships.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent ed9e952 commit 417f0bc
2 files changed
Lines changed: 44 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
52 | 61 | | |
53 | | - | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | | - | |
57 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
58 | 71 | | |
| 72 | + | |
| 73 | + | |
59 | 74 | | |
60 | 75 | | |
61 | 76 | | |
| |||
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
67 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
68 | 105 | | |
69 | 106 | | |
70 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
0 commit comments