SM Metro Bundler CLI

1.0.8 · abandoned · verified Tue Apr 21

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.

Common errors

Warnings

Install

Quickstart

Installs the CLI globally and demonstrates bundling a React Native project and initializing a new project.

npm install --global sm-metro-bundler-cli

sm-metro-bundler bundle  \
  --entry-file index.js  \
  --bundle-output dist/business.jsbundle  \
  --assets-dest dist \
  --platform ios  \
  --dev false

# Example of using a custom command (template source is private)
sm-metro-bundler init MyNewProject

view raw JSON →