npm.io
4.0.0 • Published 2 weeks ago

@changesets/config

Licence
MIT
Version
4.0.0
Deps
5
Size
41 kB
Vulns
0
Weekly
0
Stars
12.3K

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