microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
eng/scripts/format.js
12lines · modecode
| 1 | // @ts-check |
| 2 | import { |
| 3 | ensureDotnetVersion, |
| 4 | exitOnFailedCommand, |
| 5 | runDotnetFormat, |
| 6 | } from "../../packages/internal-build-utils/dist/src/index.js"; |
| 7 | import { runPrettier } from "./helpers.js"; |
| 8 | |
| 9 | await exitOnFailedCommand(() => runPrettier("--write")); |
| 10 | |
| 11 | await ensureDotnetVersion({ exitWithSuccessInDevBuilds: true }); |
| 12 | await runDotnetFormat(); |
| 13 | |