Download packages/desktop/scripts/prepare.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/scripts/prepare.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/desktop/scripts/prepare.ts
-
curl -L -o prepare.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/scripts/prepare.ts
310 Bytes
| import { Script } from "@opencode-ai/script" | |
| await import("./prebuild") | |
| const pkg = await Bun.file("./package.json").json() | |
| pkg.version = Script.version | |
| await Bun.write("./package.json", JSON.stringify(pkg, null, 2) + "\n") | |
| console.log(`Updated package.json version to ${Script.version}`) | |