What this PR does / why we need it:
This PR will remove the dependency on tsquery package since it doesn't seem to work properly for both TS4 and TS5. I replaced it with our own implementation to find the correct identifiers that seems to work for both TS4 and TS5.
It would be nice to be able to write some integration tests that check this for different versions of typescript. Opened an issue for doing this.
I have tested the canary version with a plugin using TS4 and it does work 🎉
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
📦 Published PR as canary version: Canary Versions
:sparkles: Test out this PR locally via:
```bash
npm install @grafana/plugin-meta-extractor@0.0.2-canary.902.bd718a3.0
# or
yarn add @grafana/plugin-meta-extractor@0.0.2-canary.902.bd718a3.0
```
Hello! 👋 This repository uses Auto for releasing packages using PR labels.
✨ This PR can be merged and will trigger a new patch release.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.
What this PR does / why we need it: This PR will remove the dependency on
tsquery
package since it doesn't seem to work properly for both TS4 and TS5. I replaced it with our own implementation to find the correct identifiers that seems to work for both TS4 and TS5.It would be nice to be able to write some integration tests that check this for different versions of typescript. Opened an issue for doing this.
I have tested the canary version with a plugin using TS4 and it does work 🎉
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
📦 Published PR as canary version:
Canary Versions
:sparkles: Test out this PR locally via: ```bash npm install @grafana/plugin-meta-extractor@0.0.2-canary.902.bd718a3.0 # or yarn add @grafana/plugin-meta-extractor@0.0.2-canary.902.bd718a3.0 ```