Update
Helper functions for updating dependencies in a TypeScript project.
Functions
updatePackageJSONDependencies()
function updatePackageJSONDependencies(
filePathOrDirPath?,
installAfterUpdate?,
quiet?): boolean
Defined in: functions/update.ts:28
Helper function to run npm-check-updates
to update the dependencies in the "package.json" file.
If there are any updates, the package manager used in the project will be automatically invoked.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
filePathOrDirPath ? | string | undefined | Either the path to a "package.json" file or the path to a directory which contains a "package.json" file. If undefined is passed, the current working directory will be used. |
installAfterUpdate ? | boolean | true | Optional. Whether to install the new dependencies afterward, if any. Default is true. |
quiet ? | boolean | false | Optional. Whether to suppress console output. Default is false. |
Returns
boolean
Whether the "package.json" file was updated.