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 } }) }