mirror of
https://github.com/sst/opencode.git
synced 2025-07-08 00:25:00 +00:00
ci: fix
This commit is contained in:
parent
68e1b3c46c
commit
ae5cf3cc23
1 changed files with 0 additions and 4 deletions
|
@ -5,7 +5,6 @@ import { Global } from "../global"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import os from "os"
|
import os from "os"
|
||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
import { Installation } from "../installation"
|
|
||||||
|
|
||||||
export namespace App {
|
export namespace App {
|
||||||
const log = Log.create({ service: "app" })
|
const log = Log.create({ service: "app" })
|
||||||
|
@ -50,9 +49,7 @@ export namespace App {
|
||||||
const stateFile = Bun.file(path.join(data, APP_JSON))
|
const stateFile = Bun.file(path.join(data, APP_JSON))
|
||||||
const state = (await stateFile.json().catch(() => ({}))) as {
|
const state = (await stateFile.json().catch(() => ({}))) as {
|
||||||
initialized: number
|
initialized: number
|
||||||
version: string
|
|
||||||
}
|
}
|
||||||
state.version = Installation.VERSION
|
|
||||||
await stateFile.write(JSON.stringify(state))
|
await stateFile.write(JSON.stringify(state))
|
||||||
|
|
||||||
const services = new Map<
|
const services = new Map<
|
||||||
|
@ -129,7 +126,6 @@ export namespace App {
|
||||||
await Bun.write(
|
await Bun.write(
|
||||||
path.join(info.path.data, APP_JSON),
|
path.join(info.path.data, APP_JSON),
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
version: Installation.VERSION,
|
|
||||||
initialized: Date.now(),
|
initialized: Date.now(),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue