microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
53aa383c90df5dbdc4f9f52e16774f836bf11493

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

eng/scripts/format.js

12lines · modecode

1// @ts-check
2import {
3 ensureDotnetVersion,
4 exitOnFailedCommand,
5 runDotnetFormat,
6} from "../../packages/internal-build-utils/dist/src/index.js";
7import { runPrettier } from "./helpers.js";
8
9await exitOnFailedCommand(() => runPrettier("--write"));
10
11await ensureDotnetVersion({ exitWithSuccessInDevBuilds: true });
12await runDotnetFormat();
13