matthewbub/lg-coffee

refactor: fs-extra command should use copySync() instead of moveSync()

Offen

#82 geöffnet am 23.11.2020

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2 Forks)auto 404
good first issuehelp wantedjavascriptnodejs

Repository-Metriken

Stars
 (0 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Referring to the command used to build the directory on local.

https://github.com/hi-matbub/lg-coffee/blob/0b89db809a112e384f79f56b39b33c4d0a7f8135/packages/lg-init/index.js#L60-L71

Reason for this is for those who decide to save this command vs using npx.

Recreate on a local environment :wrench:

run npx path_to/lg-coffee/packages/lg-init/index.js

after completing the prompts notice the og directory has been moved out of lg-coffee/packages/lg-init/lib/templates

Possible Solution 💡

we are using fs-extra and I'm blindly betting on .copySync() being the best solution here.

Contributor Guide