MCPcopy Index your code
hub / github.com/primer/react / build

Function build

script/component-status-project/build.ts:86–98  ·  view source on GitHub ↗

* Writes the component status to the given file.

()

Source from the content-addressed store, hash-verified

84 * Writes the component status to the given file.
85 */
86async function build() {
87 try {
88 const componentStatuses = await readFiles(sourceDirectory)
89
90 if (!fs.existsSync(outputDir)) {
91 fs.mkdirSync(outputDir)
92 }
93
94 fs.writeFileSync(`${outputDir}/component-status.json`, JSON.stringify(componentStatuses))
95 } catch (error) {
96 throw new Error(`error building component status object: ${error}`)
97 }
98}
99
100build()

Callers 1

build.tsFile · 0.85

Calls 1

readFilesFunction · 0.85

Tested by

no test coverage detected