feat!: remove prettier and eslint from the default value of public-hoist-pattern (#8621)

close #8378
This commit is contained in:
Zoltan Kochan
2024-10-09 03:05:10 +02:00
committed by GitHub
parent 7fb4371868
commit 592e2ef97f
2 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/config": major
"pnpm": major
---
Do not hoist to the root of `node_modules` packages that contain the word `eslint` or `prettier` in their name. Changed the default value of the `public-hoist-pattern` setting [#8378](https://github.com/pnpm/pnpm/issues/8378).

View File

@@ -157,10 +157,7 @@ export async function getConfig (opts: {
'package-manager-strict': process.env.COREPACK_ENABLE_STRICT !== '0',
'package-manager-strict-version': false,
'prefer-workspace-packages': false,
'public-hoist-pattern': [
'*eslint*',
'*prettier*',
],
'public-hoist-pattern': [],
'recursive-install': true,
registry: npmDefaults.registry,
'resolution-mode': 'highest',