From 5710debbe5897d7c650c223e1375ae32d649374c Mon Sep 17 00:00:00 2001 From: Makisuo Date: Wed, 7 Oct 2026 09:39:09 +0200 Subject: [PATCH] fix(scripts): clear effect-lint errors in seed-demo and screenshot scripts The CLI entry points provide their layers once at the top, so the strict-effect-provide rule is disabled there. The follow loop never succeeds, so it is returned. --- apps/landing/scripts/screenshots/capture.ts | 1 + scripts/seed-demo.ts | 3 ++- scripts/seed-demo/make-env.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/landing/scripts/screenshots/capture.ts b/apps/landing/scripts/screenshots/capture.ts index a97117d73..4242c8053 100644 --- a/apps/landing/scripts/screenshots/capture.ts +++ b/apps/landing/scripts/screenshots/capture.ts @@ -239,6 +239,7 @@ const command = Command.make( ).pipe(Command.withDescription("Capture landing screenshots from the seeded local stack")) Command.run(command, { version: "1.0.0" }).pipe( + // oxlint-disable-next-line effecttsgo/strict-effect-provide Effect.provide(Layer.mergeAll(FetchHttpClient.layer, NodeServices.layer)), NodeRuntime.runMain, ) diff --git a/scripts/seed-demo.ts b/scripts/seed-demo.ts index 688d8b3ef..0838dab71 100644 --- a/scripts/seed-demo.ts +++ b/scripts/seed-demo.ts @@ -333,7 +333,7 @@ const seed = Command.make( if (!flags.follow && !flags.resume) return yield* Console.log(`\nfollowing from ${clock(cursor)}: one window per minute, Ctrl-C to stop`) - yield* Effect.gen(function* () { + return yield* Effect.gen(function* () { const end = Math.floor(Date.now() / MINUTE) * MINUTE const catchUp = Array.from( { length: Math.ceil((end - cursor) / HOUR) }, @@ -358,6 +358,7 @@ const seed = Command.make( ).pipe(Command.withDescription("Seed the local stack with the Acme Shop demo world")) Command.run(seed, { version: "1.0.0" }).pipe( + // oxlint-disable-next-line effecttsgo/strict-effect-provide Effect.provide(Layer.mergeAll(FetchHttpClient.layer, NodeServices.layer)), NodeRuntime.runMain, ) diff --git a/scripts/seed-demo/make-env.ts b/scripts/seed-demo/make-env.ts index f0ec8dcaf..15b96b95f 100644 --- a/scripts/seed-demo/make-env.ts +++ b/scripts/seed-demo/make-env.ts @@ -97,4 +97,5 @@ const program = Effect.gen(function* () { yield* Console.log(`wrote .env.screenshots (org ${DEMO_ORG_ID}, database ${DATABASE})`) }) +// oxlint-disable-next-line effecttsgo/strict-effect-provide program.pipe(Effect.provide(NodeServices.layer), NodeRuntime.runMain)