add_script
Automate adding npm scripts to package.json for streamlined Node.js project management by specifying the project path, script name, and command.
Instructions
Add a new npm script to package.json
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Script command | |
name | Yes | Script name | |
path | Yes | Project directory path |
Input Schema (JSON Schema)
{
"properties": {
"command": {
"description": "Script command",
"type": "string"
},
"name": {
"description": "Script name",
"type": "string"
},
"path": {
"description": "Project directory path",
"type": "string"
}
},
"required": [
"path",
"name",
"command"
],
"type": "object"
}