Skip to content

Commit

Permalink
fix: types should not be hoisted to the root of node_modules (#4459)
Browse files Browse the repository at this point in the history
close #4457
  • Loading branch information
zkochan committed Mar 23, 2022
1 parent 688b0ea commit 546e644
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/rude-rats-smell.md
@@ -0,0 +1,6 @@
---
"@pnpm/config": major
"pnpm": major
---

Don't hoist types by default to the root of node_modules.
3 changes: 0 additions & 3 deletions packages/config/src/index.ts
Expand Up @@ -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-*',
Expand Down

0 comments on commit 546e644

Please sign in to comment.