Amplify Toolbox
    Preparing search index...

    return the package json

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • absolutePackageJsonPath: string

      Returns { name?: string; type?: "module" | "commonjs"; version?: string }

    • Returns the contents of the package.json file in process.cwd()

      If no package.json file exists, or the content does not pass validation, an error is thrown

      Returns { name?: string; type?: "module" | "commonjs"; version?: string }