• 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>
    • Optional cwd: string

      override the working directory

    Returns Promise<void>

    Example

    import { packageJson } from 'ember-apply';

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

Generated using TypeDoc