3.1.1 • Published 9 months ago

@quick-hjk/config v3.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@quick-hjk/config

Utilities for reading and parsing Changeset's config

npm package View changelog

import { parse, read, ValidationError } from "@quick-hjk/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;
  }
}