Function addDevDependencies

  • Add devDependencies to the package.json.

    Parameters

    • packages: Record<string, string>

      map of package names to package versions

    • Optional cwd: string

      override the working directory

    Returns Promise<void>

    Example

    import { packageJson } from 'ember-apply';

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

Generated using TypeDoc