How to use the @adonisjs/application/build/standalone.rcParser.parse function in @adonisjs/application

To help you get started, we’ve selected a few @adonisjs/application 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 adonisjs / adonis-cli / src / helpers.ts View on Github external
export async function getRcContents (projectRoot: string): Promise {
  const filePath = join(projectRoot, '.adonisrc.json')
  const hasRcFile = await pathExists(filePath)
  if (!hasRcFile) {
    return null
  }

  return rcParser.parse(require(filePath))
}

@adonisjs/application

AdonisJS application class to read app related data

MIT
Latest version published 5 months ago

Package Health Score

68 / 100
Full package analysis