UNPKG

@eve-tools/cli

Version:

Everest cli to speed up project start-up and standardized frontend , backend architecture

7 lines (6 loc) 313 B
import { writeFileSync } from "fs"; import { getProperDirName } from "../../utils/index.js"; export const updatePackageJson = async ({ pkgJson, absolutePkgJsonPath, projectName, }) => { pkgJson.name = getProperDirName(projectName); writeFileSync(absolutePkgJsonPath, JSON.stringify(pkgJson, null, 4)); };