-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublish-config.ts
89 lines (79 loc) · 2.22 KB
/
publish-config.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
* @file PublishConfig
* @module pkg-types/PublishConfig
*/
import type {
Access,
Bin,
Browser,
JsonObject
} from '@flex-development/pkg-types'
/**
* Configuration values to use when a package is published.
*
* @see {@linkcode JsonObject}
* @see https://docs.npmjs.com/cli/v9/configuring-npm/package-json#publishconfig
* @see https://yarnpkg.com/configuration/manifest#publishConfig
*
* @extends {JsonObject}
*/
interface PublishConfig extends JsonObject {
/**
* Package access level.
*
* @see {@linkcode Access}
* @see https://yarnpkg.com/configuration/manifest#publishConfig.access
*/
access?: Access | null
/**
* Replacement for top-level `bin` field, used in the published tarball over
* the main one.
*
* @see {@linkcode Bin}
* @see https://yarnpkg.com/configuration/manifest#publishConfig.bin
*/
bin?: Bin | null
/**
* Replacement for top-level `browser` field when using yarn, or the browser
* that is called by `npm` commands to open websites.
*
* @see {@linkcode Browser}
* @see https://docs.npmjs.com/cli/v9/using-npm/config#browser
* @see https://yarnpkg.com/configuration/manifest#publishConfig.browser
*/
browser?: Browser | boolean | null
/**
* Files that must be marked as executable (`+x`) in the published tarball.
*
* @see https://yarnpkg.com/configuration/manifest#publishConfig.executableFiles
*/
executableFiles?: string[] | null
/**
* Replacement for top-level `main` field, used in the published tarball over
* the main one.
*
* @see https://yarnpkg.com/configuration/manifest#publishConfig.main
*/
main?: string | null
/**
* Replacement for top-level `module` field, used in the published tarball
* over the main one.
*
* @see https://yarnpkg.com/configuration/manifest#publishConfig.module
*/
module?: string | null
/**
* Package registry URL.
*
* @see https://docs.npmjs.com/cli/v9/using-npm/config#registry
* @see https://yarnpkg.com/configuration/manifest#publishConfig.registry
*/
registry?: string | null
/**
* Distribution tag.
*
* @see https://docs.npmjs.com/cli/v9/using-npm/config#tag
*/
tag?: string | null
}
export type { PublishConfig as default }