mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
fix: types should not be hoisted to the root of node_modules (#4459)
close #4457
This commit is contained in:
6
.changeset/rude-rats-smell.md
Normal file
6
.changeset/rude-rats-smell.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/config": major
|
||||
"pnpm": major
|
||||
---
|
||||
|
||||
Don't hoist types by default to the root of node_modules.
|
||||
@@ -188,9 +188,6 @@ export default async (
|
||||
pending: false,
|
||||
'prefer-workspace-packages': false,
|
||||
'public-hoist-pattern': [
|
||||
// Packages like @types/node, @babel/types
|
||||
// should be publicly hoisted because TypeScript only searches in the root of node_modules
|
||||
'*types*',
|
||||
'*eslint*',
|
||||
'@prettier/plugin-*',
|
||||
'*prettier-plugin-*',
|
||||
|
||||
Reference in New Issue
Block a user