@changesets/config

Utilities for reading and parsing Changeset's config

  • Types
  • ESM
License
MIT
Install Size
42.3 kB(1.2 MB)
Vulns
0
Published

Get started

$npm install @changesets/config

Readme

@changesets/config

Open on npmx.dev View changelog

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

Usage

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);