ember-apply
    Preparing search index...

    Function addScripts

    Public API for the packageJson namespace

    • Adds multiple scripts to package.json. If there is an existing script with a name provided to addScripts, it will be replaced.

      Parameters

      • scripts: Record<string, string>
      • Optionalcwd: string

        override the working directory

      Returns Promise<void>

      import { packageJson } from 'ember-apply';

      await packageJson.addScripts({
      build: "rollup -c",
      build:types: "tsc --build",
      });