diff --git a/contribute/developer-guide.md b/contribute/developer-guide.md index 6084df4ce66..0ef86bb6be2 100644 --- a/contribute/developer-guide.md +++ b/contribute/developer-guide.md @@ -21,13 +21,6 @@ brew install go brew install node@22 ``` -In the repository enable and install yarn via corepack - -``` -corepack enable -corepack install -``` - ### Windows If you are running Grafana on Windows 10, we recommend installing the Windows Subsystem for Linux (WSL). For installation instructions, refer to our [Grafana setup guide for Windows environment](https://grafana.com/blog/2021/03/03/how-to-set-up-a-grafana-development-environment-on-a-windows-pc-using-wsl/). @@ -43,6 +36,15 @@ For alternative ways of cloning the Grafana repository, refer to [GitHub's docum > **Caution:** Do not use `go get` to download Grafana. Recent versions of Go have added behavior which isn't compatible with the way the Grafana repository is structured. +### Set up yarn + +In the repository enable and install yarn via corepack + +``` +corepack enable +corepack install +``` + ### Configure precommit hooks We use pre-commit hooks (via [lefthook](https://github.com/evilmartians/lefthook)) to lint, fix, and format code as you commit your changes. Previously, the Grafana repository automatically installed these hook when you ran `yarn install`, but they are now opt-in for all contributors.