expo-modules-autolinking
Version:
Scripts that autolink Expo modules.
26 lines (20 loc) • 936 B
text/typescript
import commander from 'commander';
import { generateModulesProviderCommand } from './commands/generateModulesProviderCommand';
import { generatePackageListCommand } from './commands/generatePackageListCommand';
import { reactNativeConfigCommand } from './commands/reactNativeConfigCommand';
import { resolveCommand } from './commands/resolveCommand';
import { searchCommand } from './commands/searchCommand';
import { verifyCommand } from './commands/verifyCommand';
async function main(args: string[]) {
const cli = commander
.version(require('expo-modules-autolinking/package.json').version)
.description('CLI command that searches for native modules to autolink them.');
verifyCommand(cli);
searchCommand(cli);
resolveCommand(cli);
generatePackageListCommand(cli);
generateModulesProviderCommand(cli);
reactNativeConfigCommand(cli);
await cli.parseAsync(args, { from: 'user' });
}
module.exports = main;