Refactor npm config handling (#24565)

This commit is contained in:
Dax 2026-04-26 23:54:59 -04:00 committed by GitHub
commit a9b62d67df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 207 additions and 293 deletions

View file

@ -988,7 +988,6 @@ test("installs dependencies in writable OPENCODE_CONFIG_DIR", async () => {
const noopNpm = Layer.mock(Npm.Service)({
install: () => Effect.void,
add: () => Effect.die("not implemented"),
outdated: () => Effect.succeed(false),
which: () => Effect.succeed(Option.none()),
})
const testLayer = Config.layer.pipe(