summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-01-18 09:47:18 -0600
committerAiden Cline <[email protected]>2026-01-18 09:47:18 -0600
commit2dcca4755d644b2ec66c7a284484101609db210b (patch)
treee686839b726be0d5e5cdcad721b4142a4df8c9ad /packages
parentad2e03284bad0c828aaed8c41cecd67672f4fe4a (diff)
downloadopencode-2dcca4755d644b2ec66c7a284484101609db210b.tar.gz
opencode-2dcca4755d644b2ec66c7a284484101609db210b.zip
fix: import issue in patch module
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/patch/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/opencode/src/patch/index.ts b/packages/opencode/src/patch/index.ts
index 888a4d94b..0efeff544 100644
--- a/packages/opencode/src/patch/index.ts
+++ b/packages/opencode/src/patch/index.ts
@@ -1,6 +1,7 @@
import z from "zod"
import * as path from "path"
import * as fs from "fs/promises"
+import { readFileSync } from "fs"
import { Log } from "../util/log"
export namespace Patch {
@@ -311,7 +312,7 @@ export namespace Patch {
// Read original file content
let originalContent: string
try {
- originalContent = require("fs").readFileSync(filePath, "utf-8")
+ originalContent = readFileSync(filePath, "utf-8")
} catch (error) {
throw new Error(`Failed to read file ${filePath}: ${error}`)
}