UNPKG

@launchql/cli

Version:
15 lines (14 loc) 570 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@launchql/core"); exports.default = async (argv, prompter, _options) => { const { cwd = process.cwd() } = argv; const project = new core_1.LaunchQLProject(cwd); if (!project.isInModule()) { throw new Error('You must run this command inside a LaunchQL module.'); } if (argv._.length === 0) { throw new Error('You must provide a package name to install, e.g. `@launchql/base32`'); } await project.installModules(...argv._); };