Skip to content

Commit

Permalink
Turn off in memory node_modules for prettier SDK (#2480)
Browse files Browse the repository at this point in the history
  • Loading branch information
larixer authored Feb 15, 2021
1 parent e2cc693 commit 0edf724
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .yarn/versions/256bdd8e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
releases:
"@yarnpkg/pnpify": patch

declined:
- "@yarnpkg/plugin-node-modules"
- vscode-zipfs
- "@yarnpkg/builder"
- "@yarnpkg/cli"
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

- The patched fs now supports file URLs.
- The node-modules linker now ensures that hoisting result is terminal, by doing several hoisting rounds when needed

- Prettier SDK does not use in memory node_modules anymore, instead it relies on prettier plugins to be specified in `plugins` prettier config property.
### Settings

- Various `initFields` edge cases have been fixed.
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-pnpify/sources/sdks/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const generatePrettierBaseWrapper: GenerateBaseWrapper = async (pnpApi: P

await wrapper.writeManifest();

await wrapper.writeBinary(`index.js` as PortablePath, {usePnpify: true});
await wrapper.writeBinary(`index.js` as PortablePath);

return wrapper;
};
Expand Down

0 comments on commit 0edf724

Please sign in to comment.