Skip to content

Commit

Permalink
refactor(cli): copy the contents of the .env.example file to a new .e…
Browse files Browse the repository at this point in the history
…nv file

Former-commit-id: 74c2ed1
  • Loading branch information
vplasencia committed Apr 11, 2023
1 parent 3746528 commit 4a221a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GroupResponse, SemaphoreEthers, SemaphoreSubgraph } from "@semaphore-pr
import chalk from "chalk"
import { program } from "commander"
import figlet from "figlet"
import { existsSync, readFileSync, unlinkSync } from "fs"
import { existsSync, readFileSync, unlinkSync, copyFileSync } from "fs"
import logSymbols from "log-symbols"
import pacote from "pacote"
import decompress from "decompress"
Expand Down Expand Up @@ -88,6 +88,11 @@ program

unlinkSync(`${currentDirectory}/${projectDirectory}/files.tgz`)

copyFileSync(
`${currentDirectory}/${projectDirectory}/.env.example`,
`${currentDirectory}/${projectDirectory}/.env`
)

spinner.stop()

console.info(`\n ${logSymbols.success}`, `Your project is ready!\n`)
Expand Down

0 comments on commit 4a221a4

Please sign in to comment.