Commit 0c47fe8
fix(audience): address PR review findings for npm publishability
- Declare esbuild-plugin-replace and esbuild-plugins-node-modules-polyfill
as explicit devDependencies (were phantom deps via root hoisting)
- Remove @uniswap/swap-router-contracts from noExternal (copy-paste
artifact from root tsup config — audience has no uniswap dependency)
- Add *.prepack-backup to .gitignore (prevents accidental commit if
pnpm pack fails between prepack and postpack)
- Clean up leftover per-file .d.ts after rollup bundles them into
dist/types/index.d.ts (reduces tarball size)
- Use import attribute `with` instead of deprecated `assert` syntax
(Node 22+ deprecation)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0f7c5a9 commit 0c47fe8
3 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments