(dir: string)
| 2 | import path from "path" |
| 3 | |
| 4 | export async function markPluginDependenciesReady(dir: string) { |
| 5 | await mkdir(path.join(dir, "node_modules"), { recursive: true }) |
| 6 | await Bun.write( |
| 7 | path.join(dir, "package-lock.json"), |
| 8 | JSON.stringify({ packages: { "": { dependencies: { "@opencode-ai/plugin": "0.0.0" } } } }), |
| 9 | ) |
| 10 | } |