Cross-posting https://github.com/microsoft/react-native-windows/issues/2663.
Running react-native init helloworld_test will result in helloworld_test_test name being used in package.json, because:
HelloWorldhelloworld in helloworld_test (not looking for a whole word, but part of it).Would be good to use a better placeholder name, something more unique.
@grabbou May I give it a try ?
@KevinHu2014 sure! @Esemesek ideas on the name or how to make the replacing more correct?
@KevinHu2014 are you still interested in this issue?
@thymikee I might not have time working on this recently. Free to release it to the community!
I can give this issue a try, but I have a question is this has something to do with the NAME_REGEX?
We can't really change the template name, since it lives inside react-native and is likely coupled with global react-native-cli which we don't want to break.
We could disable using "helloworld" and alike as a template name, but maybe there's something else we can do.
@Esemesek what do you think?
Okay, I think I know how to fix this. I'll assign myself to this issue and post PR soon.
Sounds good!
PS. Blacklisting "helloworld" sounds like a fair workaround in case we can't fix it! @thymikee, good idea
Most helpful comment
Okay, I think I know how to fix this. I'll assign myself to this issue and post PR soon.