npm.io
3.1.4 • Published 3 months ago

@changesets/config

Licence
MIT
Version
3.1.4
Deps
8
Size
47 kB
Vulns
0
Weekly
0
Stars
12.2K

@changesets/config

Utilities for reading and parsing Changeset's config

npm package View changelog

import { parse, read, ValidationError } from "@changesets/config";

let config = await read(process.cwd(), workspaces);

let config = parse({ commit: true }, workspaces);

try {
  return parse({ commit: true }, workspaces);
} catch (err) {
  if (err instanceof ValidationError) {
    let message = err.message;
  } else {
    throw err;
  }
}