Skip to content

Commit

Permalink
Add preferUnplugged: true to package.json (#15169)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Aug 28, 2023
1 parent 089736a commit 7d56bc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog_unreleased/api/15169.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#### Add `preferUnplugged: true` to `package.json` (#15169 by @fisker and @so1ve)

Prettier v3 uses dynamic imports, user [will need to unplug Prettier](https://github.com/yarnpkg/berry/pull/5411#issuecomment-1523502224) when Yarn's PnP mode is enabled, add [`preferUnplugged: true`](https://yarnpkg.com/configuration/manifest#preferUnplugged) to `package.json`, so Yarn will install Prettier as unplug by default.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,6 @@
"not safari 5.1",
"not op_mini all"
],
"preferUnplugged": true,
"packageManager": "yarn@3.6.3"
}
1 change: 1 addition & 0 deletions scripts/build/build-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const keysToKeep = [
"exports",
"engines",
"files",
"preferUnplugged",
];

async function buildPackageJson({ file, files }) {
Expand Down

0 comments on commit 7d56bc8

Please sign in to comment.