ember-apply
    Preparing search index...

    Function addDevDependencies

    Public API for the packageJson namespace

    • Add devDependencies to the package.json.

      Parameters

      • packages: Record<string, string>

        map of package names to package versions

      • Optionalcwd: string

        override the working directory

      Returns Promise<void>

      import { packageJson } from 'ember-apply';

      await packageJson.addDevDependencies({
      autoprefixer: '^10.0.0',
      tailwindcss: '^3.0.0',
      })