Fix tailwind prettier plugin discovery

This commit is contained in:
Kirill Bulatov 2023-10-12 15:58:00 +03:00
parent 12d7d8db0a
commit 09ef3ccf67

View file

@ -283,9 +283,11 @@ impl Prettier {
let prettier_plugin_dir = prettier_node_modules.join(plugin_name);
for possible_plugin_path in [
prettier_plugin_dir.join("dist").join("index.mjs"),
prettier_plugin_dir.join("dist").join("index.js"),
prettier_plugin_dir.join("dist").join("plugin.js"),
prettier_plugin_dir.join("index.mjs"),
prettier_plugin_dir.join("plugin.js"),
prettier_plugin_dir.join("index.js"),
prettier_plugin_dir.join("plugin.js"),
prettier_plugin_dir,
] {
if possible_plugin_path.is_file() {