diff options
| author | James Long <[email protected]> | 2026-04-17 13:01:22 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-17 13:01:22 -0400 |
| commit | 797953c88d29319deb8e003594f31fe6d2e9b8b3 (patch) | |
| tree | 74a327c5cb34dcc95d2c4a77237a3f6c76f55cf7 /script/format.ts | |
| parent | ce0cfb0ea5c86af77b97fc41e9076721f601c052 (diff) | |
| download | opencode-797953c88d29319deb8e003594f31fe6d2e9b8b3.tar.gz opencode-797953c88d29319deb8e003594f31fe6d2e9b8b3.zip | |
when generating sdk only format sdk, much faster (#23122)
Diffstat (limited to 'script/format.ts')
| -rwxr-xr-x | script/format.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/format.ts b/script/format.ts index 996de9ad0..37ab2197d 100755 --- a/script/format.ts +++ b/script/format.ts @@ -2,4 +2,6 @@ import { $ } from "bun" -await $`bun run prettier --ignore-unknown --write .` +const dir = Bun.argv[2] ?? "." + +await $`bun run prettier --ignore-unknown --write ${dir}` |
