Amplify Toolbox
    Preparing search index...

    Variable readProjectDepsConst

    readProjectDeps: (projectDir: string) => Record<string, string>

    Read the merged dependency map from the project's package.json.

    Merges dependencies + devDependencies + peerDependencies (later sources win, matching install resolution order). Returns {} for any read or parse failure — callers that need a hard error on syntax problems should use readProjectDepsStrict instead.

    Type Declaration

      • (projectDir: string): Record<string, string>
      • Parameters

        • projectDir: string

          absolute path to the project root

        Returns Record<string, string>