Function addPeerDependencies

  • Add peerDependencies 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.addPeerDependencies({
    tailwindcss: '^3.0.0',
    });

Generated using TypeDoc