How to use the read-config-file.orNullIfFileNotExist function in read-config-file

To help you get started, we’ve selected a few read-config-file examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electron-userland / electron-builder / packages / app-builder-lib / src / util / config.ts View on Github external
                                packageMetadata: Lazy<{ [key: string]: any } | null> = new Lazy(() => orNullIfFileNotExist(readJson(path.join(projectDir, "package.json"))))): Promise {
  const configRequest: ReadConfigRequest = {packageKey: "build", configFilename: "electron-builder", projectDir, packageMetadata}
github electron-userland / electron-builder / packages / electron-builder / src / cli / install-app-deps.ts View on Github external
  const packageMetadata = new Lazy(() => orNullIfFileNotExist(readJson(path.join(projectDir, "package.json"))))
  const config = await getConfig(projectDir, null, null, packageMetadata)
github electron-userland / electron-builder / packages / app-builder-lib / src / electron / electronVersion.ts View on Github external
export async function getElectronVersion(projectDir: string, config?: Configuration, projectMetadata: MetadataValue = new Lazy(() => orNullIfFileNotExist(readJson(path.join(projectDir, "package.json"))))): Promise {
  if (config == null) {

read-config-file

Read configuration file in various formats:

MIT
Latest version published 6 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages