react-native-version icon indicating copy to clipboard operation
react-native-version copied to clipboard

Rely on an argument for expo and react-native projects

Open grgmgd opened this issue 4 years ago • 0 comments

Currently in order to specify which project RNV is running in, we need to install expo or react-native in order for the resolve-from package to import the module and define the project type.

I am using RNV inside an automated github workflow to version my project based on a release tag. Why not rely on a user defined arg instead. As far as a I understand expo or react-native are not required to make the version updates and we're currently forced to install them to use this package.

Something like this:

$ react-native-version --project-type [expo | react-native] 

Please correct me if I am wrong.

grgmgd avatar Dec 10 '21 06:12 grgmgd