Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit ce2eba2

Browse files
committed
added proper pnpm settings for workspace management
1 parent 48951d8 commit ce2eba2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.npmrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
auto-install-peers=true # Automatically installs peer dependencies
2+
strict-peer-dependencies=false # Allows flexibility with peer dep versions
3+
link-workspace-packages=true # Ensures workspace packages are linked
4+
prefer-workspace-packages=true # Prefers workspace packages over registry
5+
resolve-workspace-protocol=true # Properly handles workspace: protocol
6+
# Hoisting patterns
7+
# Hoisting in pnpm means moving certain dependencies to the root node_modules to avoid duplication and resolve conflicts.
8+
# This is useful for packages like @types/*, eslint, and typescript that are often required at the top level.
9+
public-hoist-pattern[]=*@types*
10+
public-hoist-pattern[]=*eslint*
11+
public-hoist-pattern[]=typescript
12+
shamefully-hoist=false # Maintains proper dependency isolation

0 commit comments

Comments
 (0)