UNPKG

514 BPlain TextView Raw
1/**
2 * `Repository` represents a remote repository hosting
3 * the source code of a package.
4 *
5 * @see {@link https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository}.
6 */
7export interface Repository {
8 /** Repository type (for example, `git`) */
9 readonly type?: string;
10
11 /** Repository's URL */
12 readonly url: string;
13
14 /**
15 * Specific directory in the repository containing the package
16 * (for example, a directory in a monorepo)
17 */
18 readonly directory?: string;
19}