Commit 92be8f7
fix(ci): unblock npm publish under allow-directory=root
The Publish step has been failing with EALLOWDIRECTORY ("Fetching non-root
packages of type directory have been disabled") since the first release after
the dependency-safety .npmrc landed. nx-release-publish runs npm publish from
each package's dist dir, so the spec is a directory; libnpmpack passes _isRoot
to pacote.manifest() but not to the subsequent pacote.tarball() call, so pacote
treats our own package as a non-root directory fetch and refuses it. Reproduces
on npm 11.16 through 12.0.1.
Override allow-directory for the Publish step only, so installs keep the full
policy. Nothing in that step resolves dependencies, so the relaxation has no
reachable effect beyond letting npm read the dist dir it already resolved; the
published tarball is unchanged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent aab49a9 commit 92be8f7
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
| |||
0 commit comments