Instead of using a snapshot of the output of yarn create @grafana/plugin with some small tweaks when adding the frontend component with grafana-app-sdk project component add, invoke the yarn command directly, then tweak the output as needed. This keeps us from falling behind the current plugin bootstrapping. As yarn is required to build the frontend already, we have the component add check if yarn is installed, and error if not, requesting that the user must have yarn installed to add the frontend component.
Instead of using a snapshot of the output of
yarn create @grafana/plugin
with some small tweaks when adding thefrontend
component withgrafana-app-sdk project component add
, invoke theyarn
command directly, then tweak the output as needed. This keeps us from falling behind the current plugin bootstrapping. As yarn is required to build the frontend already, we have the component add check if yarn is installed, and error if not, requesting that the user must have yarn installed to add the frontend component.Resolves https://github.com/grafana/grafana-app-sdk/issues/473