Skip to content

Commit

Permalink
feat: dedupe-direct-deps
Browse files Browse the repository at this point in the history
close #6299
  • Loading branch information
zkochan committed Mar 29, 2023
1 parent e2cb4b6 commit ea9e6df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/wise-starfishes-cover.md
@@ -0,0 +1,6 @@
---
"@pnpm/config": minor
"pnpm": minor
---

A new settig has been added called `dedupe-direct-deps`, which is disabled by default. When set to `true`, dependencies that are already symlinked to the root `node_modules` directory of the workspace will not be symlinked to subproject `node_modules` directories. This feature was enabled by default in v8.0.0 but caused issues, so it's best to disable it by default [#6299](https://github.com/pnpm/pnpm/issues/6299).
2 changes: 2 additions & 0 deletions config/config/src/index.ts
Expand Up @@ -41,6 +41,7 @@ export const types = Object.assign({
'config-dir': String,
'deploy-all-files': Boolean,
'dedupe-peer-dependents': Boolean,
'dedupe-direct-deps': Boolean,
dev: [null, true],
dir: String,
'enable-modules-dir': Boolean,
Expand Down Expand Up @@ -187,6 +188,7 @@ export async function getConfig (
color: 'auto',
'deploy-all-files': false,
'dedupe-peer-dependents': true,
'dedupe-direct-deps': false,
'enable-modules-dir': true,
'extend-node-path': true,
'fetch-retries': 2,
Expand Down

0 comments on commit ea9e6df

Please sign in to comment.