Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/landing/scripts/screenshots/capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
3 changes: 2 additions & 1 deletion scripts/seed-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
Expand All @@ -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,
)
1 change: 1 addition & 0 deletions scripts/seed-demo/make-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Loading