3.0.0 • Published 5 months ago

@changesets/config v3.0.0

Weekly downloads
32,156
License
MIT
Repository
github
Last release
5 months ago

@changesets/config

Utilities for reading and parsing Changeset's config

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;
  }
}