ember-apply
    Preparing search index...

    Function addScript

    Public API for the packageJson namespace

    • Adds a script entry to package.json If there is an existing script with the same name, it will be overwritten.

      Parameters

      • name: string

        the name of the script

      • command: string

        the command to run

      • Optionalcwd: string

        override the working directory

      Returns Promise<void>

      import { packageJson } from 'ember-apply';

      await packageJson.addScript('say:hi', 'echo "hi"');