Created by: dpoineau
Currently the getPackageName
method returns an empty string when attempting to use a custom react-scripts package that's a scoped package (e.g. create-react-app my-test-app --scripts-version=@dpoineau/react-scripts
), which causes the final step of create-react-app
to fail.
This slightly tweaks the condition so that it will work correctly with scoped packages too.