PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@expo/cli/build/src/install

Просмотр файла: index.js

#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.expoInstall = void 0;
var _chalk = _interopRequireDefault(require("chalk"));
var _args = require("../utils/args");
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const expoInstall = async (argv)=>{
    const args = (0, _args).assertWithOptionsArgs({
        // Other options are parsed manually.
        "--help": Boolean,
        // Aliases
        "-h": "--help"
    }, {
        argv,
        // Allow other options, we'll throw an error if unexpected values are passed.
        permissive: true
    });
    if (args["--help"]) {
        (0, _args).printHelp(`Install a module or other package to a project`, `npx expo install`, [
            `--check     Check which installed packages need to be updated`,
            `--fix       Automatically update any invalid package versions`,
            _chalk.default`--npm       Use npm to install dependencies. {dim Default when package-lock.json exists}`,
            _chalk.default`--yarn      Use Yarn to install dependencies. {dim Default when yarn.lock exists}`,
            `-h, --help  Usage info`, 
        ].join("\n"), [
            "",
            _chalk.default`  Additional options can be passed to the underlying install command by using {bold --}`,
            _chalk.default`    {dim $} npx expo install react -- --verbose`,
            _chalk.default`    {dim >} yarn add react --verbose`,
            "", 
        ].join("\n"));
    }
    // Load modules after the help prompt so `npx expo install -h` shows as fast as possible.
    const { installAsync  } = require("./installAsync");
    const { logCmdError  } = require("../utils/errors");
    const { resolveArgsAsync  } = require("./resolveOptions");
    const { variadic , options , extras  } = await resolveArgsAsync(process.argv.slice(3)).catch(logCmdError);
    return installAsync(variadic, options, extras).catch(logCmdError);
};
exports.expoInstall = expoInstall;

//# sourceMappingURL=index.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!