Commit 7865fcf
committed
fix: resolve package binaries without
The `resolveBin` util was using `require('package-name/package.json')`
to read the `bin` field of packages, but that blows up for ESM packages
as an export map is required to define the package entrypoint and who's
gonna add `package.json` as a package entry?requireing the package.json
1 parent cac4849 commit 7865fcf
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
0 commit comments