grafana / lezer-logql

LogQL lezer grammar
Apache License 2.0
3 stars 4 forks source link

Fix: exports must declare types for node16+ #60

Closed jackw closed 5 months ago

jackw commented 8 months ago

Packages that declare themselves as ES modules ("type": "module" in package.json) that also include an exports property must declare a types property otherwise Typescript cannot find the types when typescripts "moduleResolution": "bundler" is set. Checking against are the types wrong asserts that types cannot be found for anything above node10. An example of the error can be seen below:

image