Skip to content

🐛 Bug: blockPrettier should also add runBefore Addon to scripts creation #2122

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

If blockPrettier receives a runBefore Addon, it should be run before the created formatting script run:

scripts: [
{
commands: ["pnpm format --write"],
phase: CommandPhase.Format,
},
],

Actual

It is not, per https://github.com/JoshuaKGoldberg/prettier-plugin-curly/pull/630/files#r2026901442.

Additional Info

🎁

Metadata

Metadata

Labels

status: accepting prsPlease, send a pull request to resolve this!type: bugSomething isn't working :(

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions