UNPKG

react-native-binary

Version:

CLI commands to cache and reuse React Native binaries

24 lines (22 loc) 578 B
const path = require('path'); const binaryHash = require('./binary-hash'); module.exports = [ { name: 'binary-hash', description: 'Calculate hash for native binary', func: binaryHash, options: [ { name: '--platform <string>', description: 'Either "ios" or "android"', default: 'ios', }, { name: '--folders <list>', description: 'Specify any additional folders to be included in the hash', parse: (val) => val.split(',').map((folder) => path.resolve(folder)), }, ], }, ];