From f6d40ce841c43433e7a4afa94fc54b952f0c5d8b Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Tue, 3 Mar 2026 09:12:24 -0800 Subject: [PATCH] log? --- apps/server/scripts/cli.ts | 2 +- scripts/build-desktop-artifact.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/server/scripts/cli.ts b/apps/server/scripts/cli.ts index 8fa9b215eaa74d56f7b13005495916347af722f0..09dda34865980968c85acc554e77dafa25850cba 100644 --- a/apps/server/scripts/cli.ts +++ b/apps/server/scripts/cli.ts @@ -19,7 +19,7 @@ const RepoRoot = Effect.service(Path.Path).pipe( Effect.flatMap((path) => path.fromFileUrl(new URL("../../..", import.meta.url))), ); -const runCommand = Effect.fn(function* (command: ChildProcess.Command) { +const runCommand = Effect.fn("runCommand")(function* (command: ChildProcess.Command) { const spawner = yield* ChildProcessSpawner.ChildProcessSpawner; const child = yield* spawner.spawn(command); const exitCode = yield* child.exitCode; diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index 2dc0f7b7228fc8082936a77808ff1ef6d1e845f9..813ad968984f46ebb4e9add3c63a0bef62a01d38 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -162,7 +162,7 @@ const resolveBooleanFlag = (flag: Option.Option, envValue: boolean) => const mergeOptions = (a: Option.Option, b: Option.Option, defaultValue: A) => Option.getOrElse(a, () => Option.getOrElse(b, () => defaultValue)); -const resolveBuildOptions = Effect.fn(function* (input: BuildCliInput) { +const resolveBuildOptions = Effect.fn("resolveBuildOptions")(function* (input: BuildCliInput) { const path = yield* Path.Path; const repoRoot = yield* RepoRoot; const env = yield* BuildEnvConfig.asEffect(); @@ -208,7 +208,7 @@ const commandOutputOptions = (verbose: boolean) => stderr: "inherit", }) as const; -const runCommand = Effect.fn(function* (command: ChildProcess.Command) { +const runCommand = Effect.fn("runCommand")(function* (command: ChildProcess.Command) { const commandSpawner = yield* ChildProcessSpawner.ChildProcessSpawner; const child = yield* commandSpawner.spawn(command); const exitCode = yield* child.exitCode; @@ -321,7 +321,7 @@ function validateBundledClientAssets(clientDir: string) { }); } -const createBuildConfig = Effect.fn(function* ( +const createBuildConfig = Effect.fn("createBuildConfig")(function* ( platform: typeof BuildPlatform.Type, target: string, productName: string, @@ -366,7 +366,7 @@ const createBuildConfig = Effect.fn(function* ( return buildConfig; }); -const assertPlatformBuildResources = Effect.fn(function* ( +const assertPlatformBuildResources = Effect.fn("assertPlatformBuildResources")(function* ( platform: typeof BuildPlatform.Type, stageResourcesDir: string, verbose: boolean, @@ -399,7 +399,9 @@ const assertPlatformBuildResources = Effect.fn(function* ( } }); -const buildDesktopArtifact = Effect.fn(function* (options: ResolvedBuildOptions) { +const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* ( + options: ResolvedBuildOptions, +) { const repoRoot = yield* RepoRoot; const path = yield* Path.Path; const fs = yield* FileSystem.FileSystem; -- 2.54.0