Skip to content

@changesets/config

v4.0.0-next.5RepositoryChangelog

Utilities for reading and parsing the Changesets config (i.e. .changeset/config.json).

Installation

bash
$ pnpm add -D @changesets/config
bash
$ npm install -D @changesets/config
bash
$ yarn add -D @changesets/config

Usage

ts
import { readConfig } from "@changesets/config";

const { config, warnings, errors } = await readConfig(process.cwd());

if (warnings.length !== 0) {
  console.warn(warnings);
}
if (config == null) {
  console.error(errors);
  return;
}

console.log(config);