From 02c66359d9ffe7a45f1ffe14a0b89a5edf57b8a2 Mon Sep 17 00:00:00 2001 From: Lucas Oskorep Date: Mon, 7 Sep 2026 15:28:22 -0400 Subject: [PATCH] build: switch from fnm to mise for node and pnpm management --- .mise.toml | 3 +++ .node-version | 1 - README.md | 18 ++++++++---------- justfile | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 .mise.toml delete mode 100644 .node-version diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..e80352b --- /dev/null +++ b/.mise.toml @@ -0,0 +1,3 @@ +[tools] +node = "26" +pnpm = "12.3.4" diff --git a/.node-version b/.node-version deleted file mode 100644 index 6f4247a..0000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -26 diff --git a/README.md b/README.md index 6501127..e26a517 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,13 @@ Aerospike isn't on the GNOME extension store yet, so install it from source. This builds the extension locally and drops it into your user's extension dir. Requires [just](https://github.com/casey/just) as the command runner, plus the same build toolchain used for development (see [Development](#development)): -`fnm` for a Node runtime (the build runs on Node via pnpm) and `glib2` for -`glib-compile-schemas`. +[mise](https://mise.jdx.dev/) for managing tool versions (`node` and `pnpm`), +and `glib2` for `glib-compile-schemas`. Arch Linux: ```bash -sudo pacman -S git just fnm glib2 # fnm needs its shell hook on PATH: https://github.com/Schniz/fnm#shell-setup +sudo pacman -S git just mise glib2 # mise needs its shell hook: https://mise.jdx.dev/getting-started.html#shells ``` Clone and install: @@ -48,8 +48,7 @@ Clone and install: ```bash git clone https://github.com/lucasoskorep/aerospike-gnome cd aerospike-gnome -fnm install -fnm use +mise install just install ``` @@ -66,20 +65,19 @@ Re-login or restart the shell (`Alt+F2` → `r` on X11) to pick it up. Building and debugging locally needs a few extra tools: - `just` — the command runner -- `fnm` — fast node version manager (the build runs on Node via pnpm) +- `mise` — runtime & tool manager (pins `node` and `pnpm` in `.mise.toml`) - `glib2` — provides `glib-compile-schemas` for compiling the settings schema Arch Linux: ```bash -sudo pacman -S just fnm glib2 +sudo pacman -S just mise glib2 ``` -Set up the Node runtime with fnm (the pinned version lives in `.node-version`): +Install the pinned tools with mise (defined in `.mise.toml`): ```bash -fnm install -fnm use +mise install ``` Then: diff --git a/justfile b/justfile index ed4ddeb..7c95504 100644 --- a/justfile +++ b/justfile @@ -4,7 +4,7 @@ DOMAIN:="lucaso.io" FULL_NAME:=NAME + "@" + DOMAIN packages: - npx --yes corepack pnpm install + pnpm install build: packages && build-schemas rm -rf dist/*