Go to repository

Function update

Override the missing configuration files that are created on an init or create command on the local project. This is intended to be run locally, on an already created project, to update the configuration. By appending force as a subcommand, all files are updated to their latest version.

Parameters

  • file: string = 'all'

    The file name to update, or "all" if all should be updated (Defaults to "all").

  • Optional
    force: boolean

    Whether to force the update of files, that is, override already present files in the project with their newest version (Defaults to false).

  • Optional
    projectType: string

    The project type to update from (Defaults to "library").

  • Optional
    test: boolean

    Whether test information should be added to the .npmrc file.

Returns string[]

The list of updated files.