HotupdaterHot Updater
Build Adapters

Bare (CLI) Adapter

Build adapter for non-Expo projects that runs the project's configured bundler through the React Native CLI bundle command.

Installation

npm install @hot-updater/bare --save-dev

Configuration

interface BareAdapterConfig {
  outDir?: string;           // Output directory (default: "dist")
  entryFile?: string;        // Entry file (default: "index.js")
  sourcemap?: boolean;       // Generate sourcemaps (default: false)
  resetCache?: boolean;      // Reset Metro cache before bundling (default: true)
  enableHermes: boolean;     // Use Hermes compiler (required)
}

Usage

hot-updater.config.ts
import { bare } from '@hot-updater/bare'; 
import { defineConfig } from 'hot-updater';

export default defineConfig({
  build: bare({ 
    enableHermes: true, 
    sourcemap: false, 
    entryFile: 'index.js'
  }), 
  // ... other config
});

Key features

  • Runs the project's configured bundler through the React Native CLI bundle command
  • Automatic Hermes bytecode compilation when enabled
  • Disables the bundler's minification when Hermes compilation is enabled
  • Supports custom entry files and output directories

On this page