|
| 1 | +# pnpm Configuration |
| 2 | + |
| 3 | +# Use workspace protocol for local packages |
| 4 | +link-workspace-packages=true |
| 5 | + |
| 6 | +# Stricter peer dependency handling (set to false for gradual migration) |
| 7 | +strict-peer-dependencies=false |
| 8 | + |
| 9 | +# Auto install peer dependencies |
| 10 | +auto-install-peers=true |
| 11 | + |
| 12 | +# Hoist patterns for compatibility with tools that expect flat node_modules |
| 13 | +# These patterns ensure certain packages are available at the root |
| 14 | +public-hoist-pattern[]=*eslint* |
| 15 | +public-hoist-pattern[]=*prettier* |
| 16 | +public-hoist-pattern[]=@angular* |
| 17 | +public-hoist-pattern[]=@nx* |
| 18 | +public-hoist-pattern[]=@storybook* |
| 19 | +public-hoist-pattern[]=@stencil* |
| 20 | +public-hoist-pattern[]=@material* |
| 21 | +public-hoist-pattern[]=typescript |
| 22 | +public-hoist-pattern[]=ts-node |
| 23 | +public-hoist-pattern[]=jest* |
| 24 | +public-hoist-pattern[]=vitest* |
| 25 | + |
| 26 | +# Use isolated node linker for better isolation |
| 27 | +node-linker=isolated |
| 28 | + |
| 29 | +# Enabled to support legacy tooling (like Sass @use across packages) that expects a flat node_modules structure. |
| 30 | +# Should definitely be changed in the future once all tooling supports pnpm's default structure. |
| 31 | +shamefully-hoist=true |
| 32 | + |
| 33 | +# Engine strict (enforce node version) |
| 34 | +engine-strict=true |
| 35 | + |
| 36 | +# Prefer workspace packages over registry packages |
| 37 | +prefer-workspace-packages=true |
| 38 | + |
| 39 | +# Deduplicate peer dependencies |
| 40 | +dedupe-peer-dependents=true |
| 41 | + |
| 42 | +# Lockfile settings |
| 43 | +lockfile=true |
0 commit comments