fix: ai providers json formatting (#18910)

fixes CI
This commit is contained in:
neo773
2026-03-24 17:23:34 +05:30
committed by GitHub
parent 8eff9efab2
commit e0b36c3931
2 changed files with 112 additions and 403 deletions
@@ -1,5 +1,6 @@
import * as fs from 'fs';
import * as path from 'path';
import * as prettier from 'prettier';
import {
type AiSdkPackage,
@@ -331,7 +332,14 @@ const main = async (): Promise<void> => {
'ai-providers.json',
);
fs.writeFileSync(outputPath, json, 'utf-8');
const prettierConfig = await prettier.resolveConfig(outputPath);
const formatted = await prettier.format(json, {
...prettierConfig,
filepath: outputPath,
});
fs.writeFileSync(outputPath, formatted, 'utf-8');
// oxlint-disable-next-line no-console
console.log(`Wrote ${outputPath}`);
};
File diff suppressed because it is too large Load Diff