authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-03 09:12:24-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-03 09:12:28-08:00
logf6d40ce841c43433e7a4afa94fc54b952f0c5d8b
treef23172b13b3e6077d9e011dcdeac8c779b39cb5d
parent36fb1bb7e4712fe8bf62467d31f062d04d386664

log?


2 files changed, 8 insertions(+), 6 deletions(-)

apps/server/scripts/cli.ts+1-1
......@@ -19,7 +19,7 @@ const RepoRoot = Effect.service(Path.Path).pipe(
1919 Effect.flatMap((path) => path.fromFileUrl(new URL("../../..", import.meta.url))),
2020);
2121
22const runCommand = Effect.fn(function* (command: ChildProcess.Command) {
22const runCommand = Effect.fn("runCommand")(function* (command: ChildProcess.Command) {
2323 const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
2424 const child = yield* spawner.spawn(command);
2525 const exitCode = yield* child.exitCode;
scripts/build-desktop-artifact.ts+7-5
......@@ -162,7 +162,7 @@ const resolveBooleanFlag = (flag: Option.Option<boolean>, envValue: boolean) =>
162162const mergeOptions = <A>(a: Option.Option<A>, b: Option.Option<A>, defaultValue: A) =>
163163 Option.getOrElse(a, () => Option.getOrElse(b, () => defaultValue));
164164
165const resolveBuildOptions = Effect.fn(function* (input: BuildCliInput) {
165const resolveBuildOptions = Effect.fn("resolveBuildOptions")(function* (input: BuildCliInput) {
166166 const path = yield* Path.Path;
167167 const repoRoot = yield* RepoRoot;
168168 const env = yield* BuildEnvConfig.asEffect();
......@@ -208,7 +208,7 @@ const commandOutputOptions = (verbose: boolean) =>
208208 stderr: "inherit",
209209 }) as const;
210210
211const runCommand = Effect.fn(function* (command: ChildProcess.Command) {
211const runCommand = Effect.fn("runCommand")(function* (command: ChildProcess.Command) {
212212 const commandSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
213213 const child = yield* commandSpawner.spawn(command);
214214 const exitCode = yield* child.exitCode;
......@@ -321,7 +321,7 @@ function validateBundledClientAssets(clientDir: string) {
321321 });
322322}
323323
324const createBuildConfig = Effect.fn(function* (
324const createBuildConfig = Effect.fn("createBuildConfig")(function* (
325325 platform: typeof BuildPlatform.Type,
326326 target: string,
327327 productName: string,
......@@ -366,7 +366,7 @@ const createBuildConfig = Effect.fn(function* (
366366 return buildConfig;
367367});
368368
369const assertPlatformBuildResources = Effect.fn(function* (
369const assertPlatformBuildResources = Effect.fn("assertPlatformBuildResources")(function* (
370370 platform: typeof BuildPlatform.Type,
371371 stageResourcesDir: string,
372372 verbose: boolean,
......@@ -399,7 +399,9 @@ const assertPlatformBuildResources = Effect.fn(function* (
399399 }
400400});
401401
402const buildDesktopArtifact = Effect.fn(function* (options: ResolvedBuildOptions) {
402const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
403 options: ResolvedBuildOptions,
404) {
403405 const repoRoot = yield* RepoRoot;
404406 const path = yield* Path.Path;
405407 const fs = yield* FileSystem.FileSystem;