MCPcopy
hub / github.com/anomalyco/opencode / markPluginDependenciesReady

Function markPluginDependenciesReady

packages/opencode/test/fixture/plugin.ts:4–10  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

2import path from "path"
3
4export 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}

Calls 1

writeMethod · 0.80