MCPcopy Index your code
hub / github.com/changesets/changesets / read

Function read

packages/config/src/index.ts:95–101  ·  view source on GitHub ↗
(cwd: string, packages?: Packages)

Source from the content-addressed store, hash-verified

93}
94
95export let read = async (cwd: string, packages?: Packages) => {
96 packages ??= await getPackages(cwd);
97 let json = await fs.readJSON(
98 path.join(packages.root.dir, ".changeset", "config.json")
99 );
100 return parse(json, packages);
101};
102
103export let parse = (json: WrittenConfig, packages: Packages): Config => {
104 let messages = [];

Callers 6

getReleasePlanFunction · 0.90
runFunction · 0.90
readConfigFunction · 0.90
readConfigFunction · 0.90
index.test.tsFile · 0.85
index.test.tsFile · 0.85

Calls 1

parseFunction · 0.85

Tested by 2

readConfigFunction · 0.72
readConfigFunction · 0.72