Commit fab663e
Fix CLI auth crash: pin @noble/curves v2 in CLI, add e2e tests to CI
The CLI's core-dist imports @noble/curves/secp256k1.js (with .js extension),
which requires v2's exports map. viem was pulling in v1.2.0 transitively into
cli/node_modules, which only exports ./secp256k1 (no .js) — causing
ERR_PACKAGE_PATH_NOT_EXPORTED on every authenticated command.
- Add @noble/curves and @noble/hashes ^2.0.1 as direct CLI dependencies
- Add e2e tests to npm test and CI workflow so this class of bug is caught
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 83f9571 commit fab663e
4 files changed
Lines changed: 57 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments