From c84449839392de7241454c162a2a22a7890d7c12 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Wed, 22 Oct 2025 00:45:16 +0200 Subject: [PATCH] perf: speedup pnpm installations --- src/compile/install-dependencies.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compile/install-dependencies.js b/src/compile/install-dependencies.js index 704c798..553f715 100644 --- a/src/compile/install-dependencies.js +++ b/src/compile/install-dependencies.js @@ -8,12 +8,12 @@ const install = (() => { execSync('which pnpm', { stdio: ['pipe', 'pipe', 'ignore'] }) .toString() .trim() - return 'pnpm install --no-lockfile --silent' + return 'pnpm install --no-lockfile --prefer-offline --ignore-workspace-root-check --ignore-scripts --engine-strict=false' } catch { return 'npm install --no-package-lock --silent' } })() module.exports = async ({ dependencies, cwd }) => { - return $(`${install} ${dependencies.join(' ')}`, { cwd }) + return $(`${install} ${dependencies.join(' ')}`, { cwd, env: { ...process.env, CI: true } }) }