Open
Description
When using an npm package to format code, and that npm package has a range dependency onto another library, the formatting output can change silently. This just happened to us: we use prettier-plugin-sql
, which has a ^
-dependency on sql-formatter
. sql-formatter
released a new version that changed the formatting output, and our project’s build broke because the checked-in SQL files didn’t match the expected format.
Proposal: add the configuration method dependencyOverrides
to PrettierFormatterStep
. This method accepts a Map<String, String>
to populate the overrides
field in the generated package.json
. This mechanism could work exactly like the one populating the devDependencies
.
Metadata
Metadata
Assignees
Labels
No labels