Commit b917254
committed
fix(version): skip config resolution in prettier getFileInfo check
When checking if a file is ignored by prettier, getFileInfo() was called
without resolveConfig: false, causing prettier to load the full config
including plugins. In monorepos where a nested project has a prettier
plugin not installed at the root, this throws "Cannot find package".
Since getFileInfo() is only used here to check the ignored status, and
the full config is already resolved separately via resolveConfig() for
the actual formatting step, passing resolveConfig: false avoids
unnecessary plugin resolution.
Fixes #42381 parent 575b248 commit b917254
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments