fix: types should not be hoisted to the root of node_modules (#4459)

close #4457
This commit is contained in:
Zoltan Kochan
2022-03-23 02:03:00 +02:00
committed by GitHub
parent 688b0eaff9
commit 546e644e93
2 changed files with 6 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/config": major
"pnpm": major
---
Don't hoist types by default to the root of node_modules.

View File

@@ -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-*',