Commit 3d7a35e
committed
fix(release): use pnpm pack to normalise workspace:* deps before npm publish
npm publish <dir> does not transform pnpm workspace:* protocol references to
real semver. This caused @cfxdevkit/core to be published with
"@cfxdevkit/contracts": "workspace:*" in its dependencies, which breaks
any bundler (Sandpack, Vite, webpack) that tries to resolve the package.
Fix: use pnpm pack -C <dir> to produce a tarball (pnpm normalises workspace:*
to the concrete version at pack time), then npm publish the tarball so the
OIDC token exchange still works.1 parent 63757e7 commit 3d7a35e
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
0 commit comments