Skip to content

Commit

Permalink
fix branch used by cli
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Sep 10, 2024
1 parent 935213f commit a5ef20b
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 = (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 })))
)

Expand Down

0 comments on commit a5ef20b

Please sign in to comment.