-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrepository-info.ts
40 lines (35 loc) · 944 Bytes
/
repository-info.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @file RepositoryInfo
* @module pkg-types/RepositoryInfo
*/
import type { JsonObject, RepositoryType } from '@flex-development/pkg-types'
/**
* Source code location.
*
* @see {@linkcode JsonObject}
* @see https://docs.npmjs.com/cli/v9/configuring-npm/package-json#repository
*
* @extends {JsonObject}
*/
interface RepositoryInfo extends JsonObject {
/**
* Relative path to `package.json` if placed in non-root directory.
*
* @see https://github.com/npm/rfcs/blob/main/implemented/0010-monorepo-subdirectory-declaration.md
*/
directory?: string | null
/**
* Repository type.
*
* @see {@linkcode RepositoryType}
*/
type: RepositoryType
/**
* Repository URL.
*
* > 👉 **Note**: Should be a publicly available, perhaps read-only, URL that
* > can be handed directly to a version-control system without modification.
*/
url: string
}
export type { RepositoryInfo as default }