Add preferUnplugged: true to package.json (#15169)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-08-28 10:25:36 +08:00
1 parent 089736a410
commit 7d56bc8752
3 files changed
+5

No files matched your search

+3
View File
@@ -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
View File
@@ -205,5 +205,6 @@
"not safari 5.1",
"not op_mini all"
],
"preferUnplugged": true,
"packageManager": "yarn@3.6.3"
}
+1
View File
@@ -17,6 +17,7 @@ const keysToKeep = [
"exports",
"engines",
"files",
"preferUnplugged",
];
async function buildPackageJson({ file, files }) {