(
path: string,
config: {[key: string]: any},
)
| 23 | * @param config package.json content |
| 24 | */ |
| 25 | export 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 | |
| 35 | export function booleanEnv( |
| 36 | value: string | boolean | null | void, |
no test coverage detected
searching dependent graphs…