From d96a33f6db2f64d9adca768811e7be3421232f47 Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 5 Nov 2026 13:53:02 +0000 Subject: [PATCH] Add prettier (closes #1) Install prettier globally beside wrangler and wrangler's peers, and check it in the smoke test. prettier ships no distro package for Ubuntu, so npm global is the standard install. Model: deepseek-v4-pro --- README.md | 1 + bin/test | 1 + build.sh | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b729601..f9cd87f 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Image: `git.eeqj.de/sneak/baseimage`, built for `linux/amd64` and | corepack | `npm install -g corepack` | nvm LTS global bin | | yarn, pnpm | corepack, cache pre-populated | `/usr/local/corepack` | | wrangler | `npm install -g wrangler` | nvm LTS global bin | +| prettier | `npm install -g prettier` | nvm LTS global bin | | Python (distro) | apt `python3`, `pip`, `venv` | `/usr/bin/python3` | | pyenv | git tag | `/usr/local/pyenv` | | Python (latest) | `pyenv install` | `/usr/local/pyenv/versions/*` | diff --git a/bin/test b/bin/test index a00d8c7..193b750 100755 --- a/bin/test +++ b/bin/test @@ -20,6 +20,7 @@ docker run --rm "$img" bash -ec ' go version; node --version; python3 --version; hugo version | head -1 COREPACK_ENABLE_NETWORK=0 yarn --version COREPACK_ENABLE_NETWORK=0 pnpm --version + prettier --version ' echo "== $img: runit service lifecycle" diff --git a/build.sh b/build.sh index 3825f33..989f16c 100755 --- a/build.sh +++ b/build.sh @@ -61,7 +61,7 @@ nvm install --lts nvm alias default "lts/*" nvm use default set -ux -npm install -g npm@latest corepack wrangler +npm install -g npm@latest corepack wrangler prettier corepack enable # Pre-populate the corepack cache so projects that pin a package manager # do not download at run time. The last yarn installed becomes the default. @@ -102,6 +102,7 @@ npm --version COREPACK_ENABLE_NETWORK=0 yarn --version COREPACK_ENABLE_NETWORK=0 pnpm --version wrangler --version +prettier --version python3 --version pip --version virtualenv --version