• Enables modification of any part of the project's package.json file.

    Parameters

    • callback: ((json) => void | Promise<void>)
    • Optional cwd: string

      override the working directory

    Returns Promise<void>

    Example

    import { packageJson } from 'ember-apply';

    await packageJson.modify(packageJson => {
    packageJson.volta = {
    node: '16.3.0'
    }
    });