-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.npmrc
More file actions
18 lines (17 loc) · 960 Bytes
/
.npmrc
File metadata and controls
18 lines (17 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
legacy-peer-deps=true
# langium 4.2.3 imports vscode-jsonrpc, vscode-languageserver-types, and
# vscode-languageserver-protocol but does not declare them as direct deps —
# they're transitive via vscode-languageserver. Under pnpm's default strict
# node_modules layout these bare imports unresolve, breaking the vite +
# rolldown bundle: langium ends up as `vscode_languageserver_types is not
# defined` at runtime and the React app fails on boot.
#
# Hoisting the whole vscode-languageserver-* family + vscode-jsonrpc to the
# top-level node_modules dedups them and makes the bare-specifier imports
# resolve under pnpm strict mode without needing to publish a langium patch.
public-hoist-pattern[]=vscode-languageserver
public-hoist-pattern[]=vscode-languageserver-types
public-hoist-pattern[]=vscode-languageserver-protocol
public-hoist-pattern[]=vscode-languageserver-textdocument
public-hoist-pattern[]=vscode-jsonrpc
public-hoist-pattern[]=vscode-uri