Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 347 Bytes

INC-VERSION-SOLUTION.md

File metadata and controls

17 lines (14 loc) · 347 Bytes
Increment version number
import { formatFiles, Tree, updateJson } from '@nrwl/devkit';

function incrementVersion(host: Tree) {
  updateJson(host, 'workspace.json', (json) => {
    json.version++;
    return json;
  });
}

export default async function(host: Tree) {
  incrementVersion(host);
  await formatFiles(host);
}