Add preferUnplugged: true to package.json (#15169)
This commit is contained in:
1 parent
089736a410
commit
7d56bc8752
3 files changed
+5
No files matched your search
@@ -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.
|
||||
@@ -205,5 +205,6 @@
|
||||
"not safari 5.1",
|
||||
"not op_mini all"
|
||||
],
|
||||
"preferUnplugged": true,
|
||||
"packageManager": "yarn@3.6.3"
|
||||
}
|
||||
@@ -17,6 +17,7 @@ const keysToKeep = [
|
||||
"exports",
|
||||
"engines",
|
||||
"files",
|
||||
"preferUnplugged",
|
||||
];
|
||||
|
||||
async function buildPackageJson({ file, files }) {
|
||||
|
||||
Reference in new issue
Block a user