refactor(npm): use object-based package spec for install API (#23181)

This commit is contained in:
Dax
2026-04-17 17:30:50 -04:00
committed by GitHub
parent 0068ccec35
commit cded68a2e2
3 changed files with 23 additions and 7 deletions

View File

@@ -158,7 +158,12 @@ export const layer = Layer.effect(
(dir) =>
npm
.install(dir, {
add: ["@opencode-ai/plugin" + (InstallationLocal ? "" : "@" + InstallationVersion)],
add: [
{
name: "@opencode-ai/plugin",
version: InstallationLocal ? undefined : InstallationVersion,
},
],
})
.pipe(Effect.forkScoped),
{