Skip to content

PackageRepositoryUrlOptions

Options for packageRepositoryUrl.

Signatures

ts
interface PackageRepositoryUrlOptions {}

Members

Properties

require

Throw a CLIError (code INVALID_REPOSITORY) instead of returning undefined when the repository field is absent or not a recognisable locator. With require: true the return type narrows to string, so callers that know their manifest carries a valid repository need no assertion — and a bad manifest fails fast with a real message instead of propagating undefined.

ts
require?: boolean;

See Also

Released under the MIT License.