grafana / lezer-logql

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

Fix husky error when installing lezer-logql as dependency #40

Closed gwdawson closed 1 year ago

gwdawson commented 1 year ago

we only want to merge this after #39 so that fix is also included in the build

currently if you try to install @grafana/lezer-logql@0.1.7 you will receive an error. this is caused by using "postinstall" instead of "prepare". One word of caution, use the "postinstall" hook only if you're not publishing your project on npm, else your users will get errors when trying to install your module. https://github.com/typicode/husky/issues/227#issuecomment-361779926