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:
Alexander Kachkaev authored and Ika committed 2018-05-09 19:17:12 +08:00
1 parent 8cf591447c
commit 7345a38e64
15 files changed
+248 -106

No files matched your search

@@ -0,0 +1 @@
{}
@@ -0,0 +1 @@
{}