|
| 1 | +# ============================================================================= |
| 2 | +# PNPM Configuration |
| 3 | +# ============================================================================= |
| 4 | +# This configuration file defines pnpm settings for optimal performance, |
| 5 | +# security, and development experience. |
| 6 | +# |
| 7 | +# For more information: https://pnpm.io/npmrc |
| 8 | +# ============================================================================= |
| 9 | + |
| 10 | +# Node.js version management |
| 11 | +# Use the Node.js version specified in package.json engines field |
| 12 | +# use-node-version=20.0.0 |
| 13 | + |
| 14 | +# Strict peer dependencies |
| 15 | +# Fail installation if peer dependencies are not met |
| 16 | +strict-peer-dependencies=true |
| 17 | + |
| 18 | +# Auto-install peers |
| 19 | +# Disabled to prevent local lockfile mutations and ensure deterministic builds |
| 20 | +auto-install-peers=false |
| 21 | + |
| 22 | +# Shamefully hoist |
| 23 | +# Disabled - use pnpm's default isolated node_modules structure |
| 24 | +shamefully-hoist=false |
| 25 | + |
| 26 | +# Public hoist pattern |
| 27 | +# Hoist only necessary packages to root for compatibility |
| 28 | +public-hoist-pattern[]=*eslint* |
| 29 | +public-hoist-pattern[]=*prettier* |
| 30 | + |
| 31 | +# Node linker |
| 32 | +# Use isolated mode for better dependency management |
| 33 | +node-linker=isolated |
| 34 | + |
| 35 | +# Enable lockfile |
| 36 | +# Always generate and use pnpm-lock.yaml |
| 37 | +lockfile=true |
| 38 | + |
| 39 | +# Package import method |
| 40 | +# Use hardlinks for faster installation and disk efficiency |
| 41 | +package-import-method=auto |
| 42 | + |
| 43 | +# Engine strict |
| 44 | +# Enforce Node.js version from package.json engines field |
| 45 | +engine-strict=true |
| 46 | + |
| 47 | +# Save exact |
| 48 | +# Save exact versions in package.json for predictable builds |
| 49 | +save-exact=true |
| 50 | + |
| 51 | +# Store directory |
| 52 | +# Use default pnpm store location |
| 53 | +# store-dir=~/.pnpm-store |
| 54 | + |
| 55 | +# Verify store integrity |
| 56 | +# Check store integrity before installation |
| 57 | +verify-store-integrity=true |
| 58 | + |
| 59 | +# Prefer frozen lockfile |
| 60 | +# Use frozen lockfile in CI environments |
| 61 | +# frozen-lockfile is set via CLI in CI/CD |
| 62 | + |
| 63 | +# Ignore workspace root check |
| 64 | +# Allow running pnpm in workspace root |
| 65 | +ignore-workspace-root-check=false |
| 66 | + |
| 67 | +# Dedupe peer dependents |
| 68 | +# Deduplicate peer dependents for smaller node_modules |
| 69 | +dedupe-peer-dependents=true |
| 70 | + |
| 71 | +# ============================================================================= |
| 72 | +# Security Settings |
| 73 | +# ============================================================================= |
| 74 | + |
| 75 | +# Registry |
| 76 | +registry=https://registry.npmjs.org/ |
| 77 | + |
| 78 | +# Side effects cache |
| 79 | +# Enable for better performance |
| 80 | +side-effects-cache=true |
| 81 | + |
| 82 | +# Side effects cache readonly |
| 83 | +# Allow writing to cache |
| 84 | +side-effects-cache-readonly=false |
| 85 | + |
| 86 | +# ============================================================================= |
| 87 | +# Performance Settings |
| 88 | +# ============================================================================= |
| 89 | + |
| 90 | +# Network concurrency |
| 91 | +# Number of concurrent network requests (reduced for CI stability) |
| 92 | +network-concurrency=8 |
| 93 | + |
| 94 | +# Fetch retries |
| 95 | +# Number of times to retry failed network requests |
| 96 | +fetch-retries=2 |
| 97 | + |
| 98 | +# Fetch retry factor |
| 99 | +# Exponential backoff factor for retries |
| 100 | +fetch-retry-factor=10 |
| 101 | + |
| 102 | +# Fetch retry mintimeout |
| 103 | +# Minimum time before first retry |
| 104 | +fetch-retry-mintimeout=10000 |
| 105 | + |
| 106 | +# Fetch retry maxtimeout |
| 107 | +# Maximum time before retry |
| 108 | +fetch-retry-maxtimeout=60000 |
| 109 | + |
| 110 | +# ============================================================================= |
| 111 | +# Development Settings |
| 112 | +# ============================================================================= |
| 113 | + |
| 114 | +# Recursive install |
| 115 | +# Enable recursive installation |
| 116 | +recursive-install=true |
0 commit comments