@applicaster/zapplicaster-cli
Version:
CLI Tool for the zapp app and Quick Brick project
18 lines (12 loc) • 460 B
JavaScript
const { retryPublishCommand } = require("../utils/retryPublishCommand");
const publishPackage = async (configuration) => {
const { next, version, packageName } = configuration;
const nextFlag = next ? "--tag next" : "";
const publishCommand = `yarn workspace ${packageName} npm publish ${nextFlag}`;
const cmdOptions = {};
await retryPublishCommand(publishCommand, cmdOptions, version);
return true;
};
module.exports = {
publishPackage,
};