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

2.2.4 • 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 @motss-changesets/config

Weekly Downloads

1

Version

2.2.4

License

MIT

Unpacked Size

53.9 kB

Total Files

10

Last publish

Collaborators

  • motss