rivet
Version:
Suite of utilities for working with the Rivet consumer-driven API contacts testing model.
11 lines (9 loc) • 324 B
text/typescript
import runCommand from '../runCommand';
import { log } from '../../lib/log';
import { IHandlerArgs } from './types';
export default (argv: IHandlerArgs): void => {
const { version } = argv;
if (!version) { return null; }
log('Bumping package version');
runCommand(`npm version ${version} --no-git-tag-version`);
};