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

Function customizePackageJson

packages/cli/src/createTheme.ts:40–48  ·  view source on GitHub ↗
(options: CreateThemeOptions)

Source from the content-addressed store, hash-verified

38}
39
40async function customizePackageJson(options: CreateThemeOptions) {
41 const packageJson = await readPackageJSON(options.dir)
42 packageJson.name = options.packageName
43 packageJson.description = `A FormKit theme.`
44 packageJson.version = `0.0.1`
45 packageJson.contributors = [await getGitUser()]
46 await writePackageJSON(options.dir, packageJson)
47 unlink(resolve(options.dir, './pnpm-lock.yaml'))
48}
49
50async function writeLicense(options: CreateThemeOptions) {
51 const user = await getGitUser()

Callers 1

createThemeFunction · 0.85

Calls 3

readPackageJSONFunction · 0.90
getGitUserFunction · 0.90
writePackageJSONFunction · 0.90

Tested by

no test coverage detected