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
commit cded68a2e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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),
{