wrangler-action/node_modules/@changesets/config
2023-08-07 15:11:15 -05:00
..
dist Temp fix for deps issue 2023-08-07 15:11:15 -05:00
package.json Temp fix for deps issue 2023-08-07 15:11:15 -05:00
README.md Temp fix for deps issue 2023-08-07 15:11:15 -05:00
schema.json Temp fix for deps issue 2023-08-07 15:11:15 -05:00

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