mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 05:14:44 +00:00
Reduce avoidable setup costs in slow opencode tests while preserving reviewed coverage and recording the benchmark evidence for follow-up test-suite work.
11 lines
355 B
TypeScript
11 lines
355 B
TypeScript
import { mkdir } from "fs/promises"
|
|
import path from "path"
|
|
|
|
export async function markPluginDependenciesReady(dir: string) {
|
|
await mkdir(path.join(dir, "node_modules"), { recursive: true })
|
|
await Bun.write(
|
|
path.join(dir, "package-lock.json"),
|
|
JSON.stringify({ packages: { "": { dependencies: { "@opencode-ai/plugin": "0.0.0" } } } }),
|
|
)
|
|
}
|