fix: types should not be hoisted to the root of node_modules (#4459)
close #4457
This commit is contained in:
1 parent
688b0eaff9
commit
546e644e93
2 files changed
+6
-3
No files matched your search
@@ -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