diff --git a/.changeset/rude-rats-smell.md b/.changeset/rude-rats-smell.md new file mode 100644 index 00000000000..7d1613650d1 --- /dev/null +++ b/.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. diff --git a/packages/config/src/index.ts b/packages/config/src/index.ts index 6e303113f36..adf962b7762 100644 --- a/packages/config/src/index.ts +++ b/packages/config/src/index.ts @@ -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-*',