From 40738958cf22983b39f6890f92ff9912db7bdeb6 Mon Sep 17 00:00:00 2001 From: Denys Sedchenko <9203548+x1unix@users.noreply.github.com> Date: Sun, 26 Jan 2025 13:00:05 -0500 Subject: [PATCH] chore: add corepack setup to HACKING.md --- HACKING.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/HACKING.md b/HACKING.md index ce4395cc..b84eacd8 100644 --- a/HACKING.md +++ b/HACKING.md @@ -82,14 +82,19 @@ Please ensure that you have installed: Run following commands to configure a just cloned project: -| Command | Purpose | -|-------------------|----------------------------------------------------------| -| `make preinstall` | Installs NPM packages for a web app. | -| `make wasm` | Builds WebAssembly binaries used by the web app. | -| `make go-index` | Generates Go packages index for autocomplete in web app. | +| Command | Purpose | +|-------------------|-------------------------------------------------------------------------------------------------------------| +| `corepack enable` | Enables [Corepack](https://nodejs.org/api/corepack.html) to use package manager version from `package.json` | +| `make preinstall` | Installs NPM packages for a web app. | +| `make wasm` | Builds WebAssembly binaries used by the web app. | +| `make go-index` | Generates Go packages index for autocomplete in web app. | ### Running Project +> [!IMPORTANT] +> If you see `command not found: yarn` error, please ensure that Corepack is enabled. +> See **First-time setup** section. + Front-end web app and Go API server are executed using separate make commands: | Command | Purpose |