From 0f309a91b1f4a364bd00fd69401716f84c76b97d Mon Sep 17 00:00:00 2001 From: Maxwell Brown Date: Fri, 6 Sep 2024 09:26:06 -0400 Subject: [PATCH] Fix branch used by cli (#30) --- packages/create-effect-app/src/GitHub.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/create-effect-app/src/GitHub.ts b/packages/create-effect-app/src/GitHub.ts index 5e3eb37..b7d43f9 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 = (directory: string, example: string) => - HttpClientRequest.get("/Effect-TS/examples/tar.gz/feat/examples").pipe( + HttpClientRequest.get("/Effect-TS/examples/tar.gz/main").pipe( codeloadClient, HttpClientResponse.stream, Stream.run(NodeSink.fromWritable(() => Tar.extract({ cwd: directory, strip: 2 + example.split("/").length, - filter: (path) => path.includes(`examples-feat-examples/examples/${example}`) + filter: (path) => path.includes(`examples-main/examples/${example}`) }), (cause) => new TarExtractionError({ cause, directory }))) ) const downloadTemplate = (directory: string, template: TemplateType) => - HttpClientRequest.get("/Effect-TS/examples/tar.gz/feat/examples").pipe( + HttpClientRequest.get("/Effect-TS/examples/tar.gz/main").pipe( codeloadClient, HttpClientResponse.stream, Stream.run(NodeSink.fromWritable(() => Tar.extract({ cwd: directory, strip: 2 + template.split("/").length, - filter: (path) => path.includes(`examples-feat-examples/templates/${template}`) + filter: (path) => path.includes(`examples-main/templates/${template}`) }), (cause) => new TarExtractionError({ cause, directory }))) )