mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 00:03:13 +03:00
chore: upgrade typecheck to TypeScript 7.0.2 (#56300)
Co-authored-by: kitlangton <7587245+kitlangton@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
86c7f7c840
commit
23359e9fe6
@@ -24,7 +24,7 @@
|
||||
"build": "bun run script/build.ts",
|
||||
"update-models-snapshot": "bun run script/update-models-snapshot.ts",
|
||||
"test": "bun run script/test.ts",
|
||||
"typecheck": "tsgo -b tsconfig.json tsconfig.tests.json"
|
||||
"typecheck": "tsc -b tsconfig.json tsconfig.tests.json"
|
||||
},
|
||||
"exports": {
|
||||
"./*": "./src/*.ts"
|
||||
|
||||
@@ -125,7 +125,9 @@ export function applyOnly(db: Database, input: Migration[]) {
|
||||
const relaxForeignKeys = supportsForeignKeyToggle
|
||||
? db.run(sql`PRAGMA foreign_keys = OFF`)
|
||||
: db.run(sql`PRAGMA defer_foreign_keys = ON`)
|
||||
const restoreForeignKeys = supportsForeignKeyToggle ? db.run(sql`PRAGMA foreign_keys = ON`) : Effect.void
|
||||
const restoreForeignKeys = supportsForeignKeyToggle
|
||||
? Effect.asVoid(db.run(sql`PRAGMA foreign_keys = ON`))
|
||||
: Effect.void
|
||||
yield* relaxForeignKeys
|
||||
yield* apply.pipe(Effect.ensuring(restoreForeignKeys.pipe(Effect.orDie)))
|
||||
})
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "@tsconfig/bun/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["bun"],
|
||||
"noUnusedLocals": true,
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "@tsconfig/bun/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["bun"],
|
||||
"noUnusedLocals": true,
|
||||
"incremental": true,
|
||||
"noUncheckedIndexedAccess": false,
|
||||
|
||||
Reference in New Issue
Block a user