From 0e46ef8bb388c92e649c8e1399bb7fa0491226c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Tue, 3 Feb 2026 14:16:57 +0100 Subject: [PATCH] Fix --- packages/effect-docker/scripts/codegen.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/effect-docker/scripts/codegen.ts b/packages/effect-docker/scripts/codegen.ts index 6b13726..39141a2 100644 --- a/packages/effect-docker/scripts/codegen.ts +++ b/packages/effect-docker/scripts/codegen.ts @@ -45,10 +45,13 @@ Effect.gen(function*() { ) const outputDirFiles = yield* fs.readDirectory(outputDirPath) - yield* Effect.all(outputDirFiles.map(p => fs.remove(p, { recursive: true }))) + yield* Effect.all(outputDirFiles.map(p => fs.remove(path.join(outputDirPath, p), { recursive: true }))) const tempOutputDirFiles = yield* fs.readDirectory(tempOutputDirPath) - yield* Effect.all(tempOutputDirFiles.map(p => fs.rename(p, path.join(outputDirPath, path.basename(p))))) + yield* Effect.all(tempOutputDirFiles.map(p => fs.copy( + path.join(tempOutputDirPath, p), + path.join(outputDirPath, p), + ))) }).pipe( Effect.provide([ FetchHttpClient.layer,