@changesets/config
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @changesets/config

Weekly Downloads

634,555

Version

3.0.0

License

MIT

Unpacked Size

41.3 kB

Total Files

11

Last publish

Collaborators

  • andarist
  • emmatown
  • noviny
  • changesets-release-bot