Skip to content

Commit

Permalink
Fix branch used by cli (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 authored Sep 6, 2024
1 parent 08b60f0 commit 0f309a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/create-effect-app/src/GitHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })))
)

Expand Down

0 comments on commit 0f309a9

Please sign in to comment.