UNPKG

rn-build-version

Version:

A powerful React Native CLI tool for version management, build automation, and changelog generation for Android and iOS apps.

19 lines (16 loc) 577 B
#!/usr/bin/env node import VersionManager from '../lib/versionManager.js'; import { program } from 'commander'; program .version('1.0.0') .description('A tool to manage React Native version and builds') .option('-g, --gradle <path>', 'Path to build.gradle', 'android/app/build.gradle') .option('-d, --dry-run', 'Simulate changes without applying them') .action(async (options) => { const manager = new VersionManager({ gradlePath: options.gradle, dryRun: options.dryRun, }); await manager.updateVersion(); }); program.parse(process.argv);