diff options
| author | Dax <[email protected]> | 2026-02-18 12:03:24 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-18 12:03:24 -0500 |
| commit | 37b24f4870dc35f369e4827b89b0159c12daf4df (patch) | |
| tree | fee2c2158f001b4123b22e8d99acec5a86576c19 | |
| parent | 38572b81753aa56b7d87a9e46cdb04293bbc6956 (diff) | |
| download | opencode-37b24f4870dc35f369e4827b89b0159c12daf4df.tar.gz opencode-37b24f4870dc35f369e4827b89b0159c12daf4df.zip | |
refactor: migrate index.ts from Bun.file() to Filesystem module (#14160)
| -rw-r--r-- | packages/opencode/src/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts index 39e77782f..655156588 100644 --- a/packages/opencode/src/index.ts +++ b/packages/opencode/src/index.ts @@ -13,6 +13,7 @@ import { Installation } from "./installation" import { NamedError } from "@opencode-ai/util/error" import { FormatError } from "./cli/error" import { ServeCommand } from "./cli/cmd/serve" +import { Filesystem } from "./util/filesystem" import { DebugCommand } from "./cli/cmd/debug" import { StatsCommand } from "./cli/cmd/stats" import { McpCommand } from "./cli/cmd/mcp" @@ -81,7 +82,7 @@ const cli = yargs(hideBin(process.argv)) }) const marker = path.join(Global.Path.data, "opencode.db") - if (!(await Bun.file(marker).exists())) { + if (!(await Filesystem.exists(marker))) { const tty = process.stderr.isTTY process.stderr.write("Performing one time database migration, may take a few minutes..." + EOL) const width = 36 |
