1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const tslib_1 = require("tslib");
|
4 | const update_notifier_1 = tslib_1.__importDefault(require("update-notifier"));
|
5 | const yargs_1 = tslib_1.__importDefault(require("yargs"));
|
6 | const checkForUpdate_1 = tslib_1.__importDefault(require("./checkForUpdate"));
|
7 | const index_1 = require("./index");
|
8 | const generateAppID_1 = tslib_1.__importDefault(require("./generateAppID"));
|
9 | checkForUpdate_1.default(update_notifier_1.default);
|
10 | yargs_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;
|