Function getPackageInfoAsync

  • Read package.json from the given path if it exists. Logs a warning if it doesn't exist, or there's an error reading or parsing it.

    Parameters

    • cwd: string

    Returns Promise<PackageInfo | undefined>

    The package info, or undefined if it doesn't exist or can't be read