UNPKG

quick-publish

Version:

Shipped a standard `npm publish` workflow with one click.

22 lines 627 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.exec = void 0; /** * Module dependencies */ const execa_1 = __importDefault(require("execa")); /** * Execute a inline command. * * @param command * @returns */ function exec(command) { const splits = command.split(' '); return (0, execa_1.default)(splits[0], splits.slice(1).map(v => decodeURIComponent(v)), { stdio: 'inherit' }); } exports.exec = exec; //# sourceMappingURL=shared.js.map