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

Function getPackageFromFS

scripts/utils.mjs:236–246  ·  view source on GitHub ↗
(pkg)

Source from the content-addressed store, hash-verified

234 * Given a package name, return relevant build files from the file system
235 */
236export function getPackageFromFS(pkg) {
237 const packageJSON = getPackageJSON(pkg)
238 const packageESM = getRawBuildFile(pkg, packageJSON.module)
239 const packageTS = getRawBuildFile(pkg, packageJSON.types)
240
241 return {
242 packageJSON,
243 packageESM,
244 packageTS,
245 }
246}
247
248/**
249 * Given a package name, return relevant build files from the file system

Callers

nothing calls this directly

Calls 2

getPackageJSONFunction · 0.85
getRawBuildFileFunction · 0.85

Tested by

no test coverage detected