MCPcopy Create free account
hub / github.com/effector/effector / outputPackageJSON

Function outputPackageJSON

tools/builder/utils.ts:25–33  ·  view source on GitHub ↗
(
  path: string,
  config: {[key: string]: any},
)

Source from the content-addressed store, hash-verified

23 * @param config package.json content
24 */
25export async function outputPackageJSON(
26 path: string,
27 config: {[key: string]: any},
28) {
29 let fullPath
30 if (path.endsWith('package.json')) fullPath = dir(path)
31 else fullPath = dir(path, 'package.json')
32 await fs.outputJSON(fullPath, config, {spaces: 2})
33}
34
35export function booleanEnv(
36 value: string | boolean | null | void,

Callers 1

generatePackageJSONFunction · 0.90

Calls 1

dirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…