lezer-parser/lezer

[generator] dist/rollup-plugin-lezer.cjs is missing in v1.4.1

hubgit opened this issue · 2 comments

hubgit commented

We're experiencing an issue with the latest version of @lezer/generator (1.4.1, published earlier today), as the file dist/rollup-plugin-lezer.cjs is no longer present in the published package.

hubgit commented

The import @lezer/generator/rollup is mapped to ./dist/rollup-plugin-lezer.cjs:

https://github.com/lezer-parser/generator/blob/445a6d8641b1fea147c9d2274565d434dbacb66f/package.json#L20-L23

A recent commit changed the build process, and rollup-plugin-lezer.cjs (which was previously listed as an output in rollup.config.js) is not included in the new build.js:

lezer-parser/generator@e5076e0#diff-7d111b05fe05c50beb729d1e99a36010fbda8c89b57a1a26ac3e7b0778a0ed53R12-R13

This is a breaking issue for @codemirror/buildhelper, which currently installs v1.4.1 of @lezer/generator on a fresh install.

Thanks for spotting that. Attached patch should help.