Adds multiple scripts to package.json. If there is an existing script with a name provided to addScripts, it will be replaced.
addScripts
Optional
override the working directory
import { packageJson } from 'ember-apply';await packageJson.addScripts({ build: "rollup -c", build:types: "tsc --build",}); Copy
import { packageJson } from 'ember-apply';await packageJson.addScripts({ build: "rollup -c", build:types: "tsc --build",});
Generated using TypeDoc
Adds multiple scripts to package.json. If there is an existing script with a name provided to
addScripts
, it will be replaced.