nrwl / precise-commits

:sparkles: Painlessly apply Prettier by only formatting lines you have modified anyway!
MIT License
471 stars 20 forks source link

Incompatibility with Prettier 3.3.2 #80

Open eliasmohsengrenvald opened 1 month ago

eliasmohsengrenvald commented 1 month ago

Upgrading Prettier to the latest (3.3.2) causes the following error in precise-commit, please have a look, shouldn't be a big change, there're slight changes in the Prettier's latest API which requires reflection:

.../node_modules/precise-commits/lib/precise-formatters/prettier.js:18
prettier_1.getSupportInfo().languages.forEach(function (language) {
TypeError: Cannot read properties of undefined (reading 'forEach')
.../node_modules/precise-commits/lib/precise-formatters/prettier.js:18:38)
...