From 5f20705d7b3690d3618e35e1374faa2fc96aa4f3 Mon Sep 17 00:00:00 2001 From: Maxwell Brown Date: Tue, 10 Sep 2024 16:07:55 -0400 Subject: [PATCH] Fix branch used by cli (#32) --- packages/create-effect-app/src/GitHub.ts | 8 ++++---- packages/create-effect-app/src/bin.ts | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/create-effect-app/src/GitHub.ts b/packages/create-effect-app/src/GitHub.ts index 3973acf..5ae66ad 100644 --- a/packages/create-effect-app/src/GitHub.ts +++ b/packages/create-effect-app/src/GitHub.ts @@ -25,26 +25,26 @@ export const make = Effect.gen(function*() { ) const downloadExample = (config: ExampleConfig) => - HttpClientRequest.get("/Effect-TS/examples/tar.gz/chore/enhance-templates").pipe( + HttpClientRequest.get("/Effect-TS/examples/tar.gz/main").pipe( codeloadClient, HttpClientResponse.stream, Stream.run(NodeSink.fromWritable(() => Tar.extract({ cwd: config.projectName, strip: 2 + config.projectType.example.split("/").length, - filter: (path) => path.includes(`examples-chore-enhance-templates/examples/${config.projectType.example}`) + filter: (path) => path.includes(`examples-main/examples/${config.projectType.example}`) }), (cause) => new TarExtractionError({ cause, directory: config.projectName }))) ) const downloadTemplate = (config: TemplateConfig) => - HttpClientRequest.get("/Effect-TS/examples/tar.gz/chore/enhance-templates").pipe( + HttpClientRequest.get("/Effect-TS/examples/tar.gz/main").pipe( codeloadClient, HttpClientResponse.stream, Stream.run(NodeSink.fromWritable(() => Tar.extract({ cwd: config.projectName, strip: 2 + config.projectType.template.split("/").length, - filter: (path) => path.includes(`examples-chore-enhance-templates/templates/${config.projectType.template}`) + filter: (path) => path.includes(`examples-main/templates/${config.projectType.template}`) }), (cause) => new TarExtractionError({ cause, directory: config.projectName }))) ) diff --git a/packages/create-effect-app/src/bin.ts b/packages/create-effect-app/src/bin.ts index 5f443fd..4e6af14 100644 --- a/packages/create-effect-app/src/bin.ts +++ b/packages/create-effect-app/src/bin.ts @@ -6,8 +6,6 @@ import * as NodeHttpClient from "@effect/platform-node/NodeHttpClient" import * as NodeRuntime from "@effect/platform-node/NodeRuntime" import * as Ansi from "@effect/printer-ansi/Ansi" import * as AnsiDoc from "@effect/printer-ansi/AnsiDoc" -import * as Cause from "effect/Cause" -import * as Console from "effect/Console" import * as Effect from "effect/Effect" import * as Layer from "effect/Layer" import * as Logger from "effect/Logger" @@ -41,7 +39,6 @@ cli(process.argv).pipe( ) }), Effect.orDie, - Effect.tapErrorCause((cause) => Console.log(Cause.pretty(cause))), Effect.provide(MainLive), NodeRuntime.runMain({ disablePrettyLogger: true,