When you initialise Changesets via the CLI using init command, this command sets up the .changeset folder. It generates a readme and a config file. The config file includes the default options, as well as comments
on what these options represent.
The default config.json generated by init command looks like below:
read function is part of another package named config.
As you can see from the above image, fs.readJSON is used in combination with path.join that combines cwd + .changesets + “config.json”
parse accepts this config.json read as its first argument and this parse function is a really long function that performs additional operations using this json and packages (second argument).
Hey, my name is Ramu Narasinga. I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.