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

Function addonsBuildExtras

scripts/build.mjs:239–254  ·  view source on GitHub ↗

* Special considerations for building the addons package.

()

Source from the content-addressed store, hash-verified

237 * Special considerations for building the addons package.
238 */
239async function addonsBuildExtras() {
240 const addonsCSS = await fs.readdir(resolve(packagesDir, 'addons/src/css'))
241 await fs.mkdir(
242 resolve(packagesDir, 'addons/dist/css'),
243 { recursive: true },
244 (err) => {
245 if (err) throw err
246 }
247 )
248 addonsCSS.forEach(async (css) => {
249 await fs.copyFile(
250 resolve(packagesDir, 'addons/src/css/', css),
251 resolve(packagesDir, 'addons/dist/css/', css)
252 )
253 })
254}
255
256/**
257 * Create a new bundle of a certain format for a certain package.

Callers 1

buildPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected