Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir (#4192)
* Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir * Use find-parent-dir instead of find-up and test autoloading (with mocked fn) * Add two test cases where --plugin-search-dir is not . * Do not mutate pluginSearchDirs argument in load-plugins.js * Do not test automatic plugin resolution as mocking of "find-parent-dir" does not work due to rollup * Document --plugin-search-dir / pluginSearchDirs and improve spacing * Address @ikatyang's review comments * Fix require path for third-party * Undo alphabetic sorting of third-party scripts
This commit is contained in:
1 parent
8cf591447c
commit
7345a38e64
15 files changed
+248
-106
No files matched your search
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{}
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{}
|
||||
Reference in new issue
Block a user