Commit 8d73fe8
committed
fix(publish): bypass napi prepublish, publish with pnpm --no-git-checks
napi prepublish wraps 'pnpm publish' via execSync which swallows pnpm's
real error output (only prints 'Internal Error: Command failed'), and
the wrapped pnpm cannot take --no-git-checks. Also pnpm does not look
up parent-dir .npmrc, so writing git-checks=false to napi/.npmrc was
not read when pnpm ran in the per-platform subpackage dir.
Publish manually instead: sync optionalDependencies (napi prepublish's
job) via a node snippet, then 'pnpm publish --provenance --no-git-checks'
each subpackage and the main package (--ignore-scripts skips
prepublishOnly: napi prepublish). pnpm output now propagates, so real
errors are visible. No GitHub Release is created anymore.1 parent 5f60ed9 commit 8d73fe8
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | 253 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
0 commit comments