From e1cc10335380b8df60cb9f01df7044b58fe741a5 Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 27 Oct 2026 23:10:18 +0000 Subject: [PATCH] build: say beside the install why yarn prints the workspaces warning (closes #595) Yarn 1 warns about every dependency that publishes a workspaces field without "private": true. eslint 10.8.1 publishes one, and so does babel-plugin-istanbul 7.0.1, which jest pulls in. No newer release of either package drops the field. Older releases lack it, but taking one means downgrading eslint or forcing babel-plugin-istanbul below the ^7.0.1 that jest requires. A one-line comment in script/bootstrap and in the Dockerfile now names both packages. Model: opus-5-5 --- Dockerfile | 1 + script/bootstrap | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 45d3d90..4b81875 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ WORKDIR /app COPY script/ script/ COPY package.json yarn.lock ./ +# yarn warns about the workspaces field in eslint and babel-plugin-istanbul; no newer release drops it. RUN script/bootstrap COPY . . diff --git a/script/bootstrap b/script/bootstrap index a0a19ef..948a34e 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -118,6 +118,7 @@ ensure_yarn() { fi } +# yarn warns about the workspaces field in eslint and babel-plugin-istanbul; no newer release drops it. install_js_deps() { if missing yarn && [ -s "$HOME/.nvm/nvm.sh" ]; then nvm_sh "nvm use $NODE_VERSION >/dev/null && cd \"$ROOT\" && \ -- 2.54.0