From 7c704655aa431e2a1bfa4ee25df4a1d06e1aa6ce Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 26 Sep 2025 07:33:49 -0700 Subject: [PATCH] Fix: Generate ESM parser to match project type --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 03e09f6..276708b 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,12 @@ "hi2js": "./cli.js" }, "scripts": { - "build-parser": "npx nearleyc grammar.ne -o grammar.js", + "build-parser": "npx nearleyc grammar.ne -o grammar.js --esm", "test": "node test_runner.js" }, "dependencies": { - "moo": "^0.5.2" + "moo": "^0.5.2", + "nearley": "^2.20.1" }, "devDependencies": { "nearley": "^2.20.1"