@funtools/update-native
v2.0.0
Published
> Use version `2.0.0` or higher. Versions before `2.0.0` are unstable and may contain bugs.
Downloads
79
Readme
@funtools/update-native
Use version
2.0.0or higher. Versions before2.0.0are unstable and may contain bugs.
@funtools/update-native is a small CLI that updates the dependencies in the current project's package.json to match a React Native template.
It creates a temporary app with @react-native-community/cli, compares the dependency lists, and writes the updated dependency versions back to your local package.json.
Install
npm install --save-dev @funtools/update-nativeYou can also run it directly with npx:
npx @funtools/update-nativeUsage
Run the command from the root of the project you want to update:
update-nativeTo target a specific React Native version:
update-native --version 0.76.0Or with npx:
npx @funtools/update-native --version 0.76.0What it does
- Checks for a
package.jsonin the current working directory. - Creates a temporary React Native project.
- Installs any dependencies and dev dependencies from your current project that are missing from the new template.
- Updates your local
package.jsonwith the resulting dependency versions. - Removes the temporary project when it finishes.
Notes
- Run the command from the project root.
- The command modifies your local
package.json. - If the temporary React Native init fails, the command exits with an error.
Contributing
Contributors can find the source repository here: https://github.com/Mustak24/funtools-update-native
