Skip to content

Commit 341791e

Browse files
authored
fix(parser): invalid main entrypoint in package.json (#13767)
In #13432 the filename was changed but `main` remained as is. I'm now seeing following error in Vitest: ``` ⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯ Error: Failed to resolve entry for package "oxc-parser". The package may have incorrect main/module/exports specified in its package.json. 1 | import { parse as BabelParser } from "@babel/parser"; 2 | import { parse as AcornParser } from "acorn"; 3 | import { parseSync as OxcParser } from "oxc-parser"; | ^ 4 | import { parseAst as ViteParser } from "vite"; 5 | import { expectTypeOf, test } from "vitest"; ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ ``` https://github.com/AriPerkkio/ast-v8-to-istanbul/actions/runs/17722503037/job/50357275013?pr=86 See errors from https://publint.dev/oxc-parser@0.88.0. Signed-off-by: Ari Perkkiö <ari.perkkio@gmail.com>
1 parent b6eba27 commit 341791e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

napi/parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "oxc-parser",
33
"version": "0.88.0",
44
"type": "commonjs",
5-
"main": "index.js",
5+
"main": "index.mjs",
66
"browser": "wasm.mjs",
77
"scripts": {
88
"build-dev": "napi build --esm --platform --js bindings.mjs",

0 commit comments

Comments
 (0)