MCPcopy Create free account
hub / github.com/formkit/formkit / buildAllPackages

Function buildAllPackages

scripts/build.mjs:165–178  ·  view source on GitHub ↗
(packages)

Source from the content-addressed store, hash-verified

163 * Loops through all packages and builds them in correct order
164 */
165export async function buildAllPackages(packages) {
166 const orderedPackages = getBuildOrder(packages)
167 orderedPackages.forEach((p) => {
168 progress.expectedLogs += estimatedLogs(p)
169 })
170 buildAll = true
171 startTime = performance.now()
172 for (const [i, p] of orderedPackages.entries()) {
173 progress.step = `Building ${i + 1}/${orderedPackages.length}: @formkit/${p}`
174 await buildPackage(p)
175 }
176 msg.loader.stop()
177 buildComplete()
178}
179
180/**
181 * Output a typescript input file for each `type` key.

Callers 3

publishPackagesFunction · 0.90
publishPackagesFunction · 0.90
buildPackageFunction · 0.85

Calls 4

getBuildOrderFunction · 0.90
estimatedLogsFunction · 0.85
buildPackageFunction · 0.85
buildCompleteFunction · 0.85

Tested by

no test coverage detected