# Function addDepToPkgJson

- addDepToPkgJson(pkgJson, packages, dep): {}

- Add a list of packages to a package.json's depedencies

  #### Parameters

  - pkgJson: any

    package.json data

  - packages: Record<string, string>

    list of packages to add

  - dep: string

    which dependencies section to add

  #### Returns {}

  packages actually added

  - Defined in packages/xarc-app-dev/src/lib/tasks/package-json.ts:14