Commit dd2df87
fix(npm): export package.json for oxlint and oxfmt (#20784)
## related issue
voidzero-dev/vite-plus#1162 (review)
## What's changing?
Add `./package.json` to the `exports` field in both
`npm/oxlint/package.json` and `npm/oxfmt/package.json` so that external
tools (e.g. vite-plus) can resolve `package.json` via Node.js package
exports.
For oxfmt, an `exports` field was newly added with the `.` entry to
preserve the existing main entry point, since Node.js restricts access
to only explicitly exported paths when `exports` is present.
Co-authored-by: Cameron <cameron.clark@hey.com>1 parent 0f12bcd commit dd2df87
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments