npm create @shopify/hydrogen@latest should not delete .git directory
#2989
PSmith-SmithAndCo
started this conversation in
Feedback
Replies: 2 comments 1 reply
|
I was able to work around this by copying the contents of the |
0 replies
|
Sorry im very late to the party, but we are keen on fixing this frustrating moment. Can you specify what you were trying to do? did you accidentally run create hydrogen on a folder you did not intend to, or did you genuinely want to install hydrogen on top of another app sharing the folder structure? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
For context: I have been hired to convert an existing
phpproject to aShopify Hydrogenproject.Running
npm create @shopify/hydrogen@latestagainst a non-empty directory either forces the user to delete everything in that folder - including.git- or abandon the process.It is annoying that the user has to delete everything. However; I understand that it would be cumbersome - if not impossible - for the Hydrogen team to figure out what is safe to keep and what would cause conflicts with the generated code.
The
.gitfolder is probably safe to keep, though.All reactions