JSPM

  • Created
  • Published
  • Downloads 3334711
  • Score
    100M100P100Q209585F
  • License MIT

Utilities for reading and parsing Changeset's config

Package Exports

  • @changesets/config
  • @changesets/config/package.json
  • @changesets/config/schema.json

Readme

@changesets/config

Utilities for reading and parsing Changeset's config

Open on npmx.dev 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;
  }
}