* Install package into project using npm or yarn if available * @param {[type]} packageName Package to be installed * @return {[type]} spawnSync's result object
(packageName)
| 50 | * @return {[type]} spawnSync's result object |
| 51 | */ |
| 52 | function add(packageName) { |
| 53 | return callYarnOrNpm( |
| 54 | `yarn add ${packageName}`, |
| 55 | `npm install ${packageName} --save` |
| 56 | ); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Uninstall package from project using npm or yarn if available |
nothing calls this directly
no test coverage detected