Skip to content

Commit 74c2ed1

Browse files
committed
refactor(cli): copy the contents of the .env.example file to a new .env file
1 parent 27ba252 commit 74c2ed1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/cli/src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { GroupResponse, SemaphoreEthers, SemaphoreSubgraph } from "@semaphore-pr
22
import chalk from "chalk"
33
import { program } from "commander"
44
import figlet from "figlet"
5-
import { existsSync, readFileSync, unlinkSync } from "fs"
5+
import { existsSync, readFileSync, unlinkSync, copyFileSync } from "fs"
66
import logSymbols from "log-symbols"
77
import pacote from "pacote"
88
import decompress from "decompress"
@@ -88,6 +88,11 @@ program
8888

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

91+
copyFileSync(
92+
`${currentDirectory}/${projectDirectory}/.env.example`,
93+
`${currentDirectory}/${projectDirectory}/.env`
94+
)
95+
9196
spinner.stop()
9297

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

0 commit comments

Comments
 (0)