-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Our build/CI formatting scripts can't handle modern Svelte syntax #3649
Comments
Some other things have come up, so if you are interested in digging in to this @abdnh, you're most welcome. I see dprint-prettier-plugin just got an update, so that might be worth trying first, followed by dprint-plugin-exec to invoke prettier (so dprint still takes care of scanning through folders and locating changed files). If neither of those approaches work, then as a last resort we could invoke prettier directly and exclude those files from dprint. |
Here's what I tried:
|
What about invoking node_modules/.bin/prettier directly? I don't think we use npx in the rest of our code. If you can't figure it out after a few minutes, would you be able to push your changes to a branch so I can have a brief play? Don't want to spend long on it, but figured it might be worth one more try before we go with 3. |
It actually works, but we have to append
|
Sorry Abdo, I think I made a bad call above. The exec plugin is likely going to result in a node startup for every file that's processed, which is likely going to be expensive. Approach 3 might be a best course forward. |
#3640 (comment)
I'll try to dig into this in the next few days. A temporary solution might be to execute prettier via a dprint exec plugin, instead of using the wasm version.
The text was updated successfully, but these errors were encountered: