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.
the name of the script
the command to run
Optional
override the working directory
import { packageJson } from 'ember-apply';await packageJson.addScript('say:hi', 'echo "hi"'); Copy
import { packageJson } from 'ember-apply';await packageJson.addScript('say:hi', 'echo "hi"');
Public API for the packageJson namespace