UNPKG

quick-publish

Version:

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

28 lines 1.02 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.COMMANDS = void 0; /** * Module dependencies */ const path_1 = __importDefault(require("path")); /** * Resolve local-installed bin */ const bin = (name) => path_1.default.resolve(__dirname, `../node_modules/.bin/${name}`); /** * Internal inline commands */ exports.COMMANDS = { bumpVersion: (version) => `npm version ${version}`, npmPublish: (tag) => `npm publish --tag=${tag}`, gitAdd: (file) => `git add ${file}`, gitCommit: (message) => `git commit -m ${encodeURIComponent(message)}`, gitPush: () => 'git push', gitPushTag: (tag) => `git push origin refs/tags/${tag}`, changelog: () => `${bin('conventional-changelog')} -p angular -r 2 -i CHANGELOG.md -s`, depcost: () => `${bin('depcost')} --record --npm-client=npm`, }; //# sourceMappingURL=commands.js.map