sm-metro-bundler-cli is a command-line interface tool designed to customize React Native bundling processes, specifically by adjusting module ID references to use strings instead of incremental numbers. It extends the functionality of the official Metro Bundler CLI. This tool is built upon and specifically compatible with React Native version 0.50.3, a version released in late 2017. Its primary differentiator is the modification of module ID referencing and the inclusion of commands (`init`, `upgrade`, `validate`) for managing project structures based on private templates (`sm-react-native-templates`), indicating a highly specialized use case, likely within a specific organizational context. The current stable version is 1.0.8, and given its reliance on an outdated React Native version, it does not appear to follow a regular release cadence or receive active updates for modern React Native development.
npm install sm-metro-bundler-cliNo compatibility data collected yet for this library.
Installs the CLI globally and demonstrates bundling a React Native project and initializing a new project.
Do not use this package for modern React Native projects. Consider using the official Metro CLI or alternative bundlers that support your target React Native version.
Avoid using the `init`, `upgrade`, or `validate` commands unless you have access to, and are specifically working with, the private template repository. The primary utility for external users is limited to the `bundle` command modifications.
For modern React Native projects, consult the official Metro documentation for current best practices regarding bundle optimization and module ID handling. Consider tools like Expo CLI which integrate and customize Metro effectively.
Ensure `metro` and potentially `metro-bundler-cli` are installed either globally or as local dependencies in your project: `npm install --global metro` or `npm install metro`.
This package is designed for React Native 0.50.3 projects. For newer React Native versions, use the official `@react-native/community/cli` or directly configure `metro` as appropriate for your version, rather than `sm-metro-bundler-cli`.