Commit 7fca09b
authored
fix: restore index.js deleted by napi artifacts during publish (#355)
napi artifacts treats index.js as a stale managed root entry (listed in
snappy.wasi.cjs metadata) because package.json main points to the
hand-written main.js, so the published tarball silently missed index.js
and require('snappy') failed with MODULE_NOT_FOUND. Restore it from git
after moving artifacts, and fail the publish if any declared file is
missing instead of letting npm pack skip it silently.1 parent 2559ee3 commit 7fca09b
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
429 | 434 | | |
430 | 435 | | |
431 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
432 | 448 | | |
433 | 449 | | |
434 | 450 | | |
| |||
0 commit comments