install
Install npm packages into the project, including dependencies and development dependencies.
Example
{
"op": "install",
"dep": ["react", "react-dom"],
"devDep": ["typescript", "@types/react"]
}
Fields
Fields | Type | Description |
---|---|---|
op | 'install' | Specifies the type of operation. For InstallOperation, this field must be 'install'. |
dep | string[] | An array of package names to install as regular dependencies. |
devDep | string[]? | An array of package names to install as development dependencies. |