UNPKG

1.14 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const tslib_1 = require("tslib");
4const update_notifier_1 = tslib_1.__importDefault(require("update-notifier"));
5const yargs_1 = tslib_1.__importDefault(require("yargs"));
6const checkForUpdate_1 = tslib_1.__importDefault(require("./checkForUpdate"));
7const index_1 = require("./index");
8const generateAppID_1 = tslib_1.__importDefault(require("./generateAppID"));
9checkForUpdate_1.default(update_notifier_1.default);
10yargs_1.default
11 .help()
12 .command(['build', '$0'], 'Build application', (args) => args.option('native-device-component', {
13 description: 'Bundle native device component (specify multiple times, once per path)',
14 array: true,
15 hidden: true,
16}), ({ nativeDeviceComponent }) => {
17 return index_1.build({
18 nativeDeviceComponentPaths: nativeDeviceComponent,
19 }).catch((error) => {
20 process.exitCode = 1;
21 if (error)
22 console.error(error);
23 });
24})
25 .command(['generate-appid'], 'Generate and write a new app ID into your package.json', (args) => args, () => generateAppID_1.default()).argv;