Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add preferUnplugged: true to package.json #15169

Merged
merged 4 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.1"
}
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