ember-apply
    Preparing search index...

    Function modify

    Public API for the packageJson namespace

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

      Parameters

      • callback: (json: Record<string, any>) => void | Promise<void>
      • Optionalcwd: string

        override the working directory

      Returns Promise<void>

      import { packageJson } from 'ember-apply';

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