plugin.ts 356 B

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