Fix: Generate ESM parser to match project type

This commit is contained in:
2025-09-26 07:33:49 -07:00
parent 425367106a
commit 7c704655aa

View File

@@ -7,11 +7,12 @@
"hi2js": "./cli.js" "hi2js": "./cli.js"
}, },
"scripts": { "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" "test": "node test_runner.js"
}, },
"dependencies": { "dependencies": {
"moo": "^0.5.2" "moo": "^0.5.2",
"nearley": "^2.20.1"
}, },
"devDependencies": { "devDependencies": {
"nearley": "^2.20.1" "nearley": "^2.20.1"