-
Notifications
You must be signed in to change notification settings - Fork 18
/
types.d.ts
69 lines (56 loc) · 1.55 KB
/
types.d.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
export type PackageAccess = 'public' | 'restricted' | string;
export type PackageManager = 'npm' | 'pnpm' | 'yarn' | string;
export interface Config {
/**
* Keep only main section of `README.md`
* @default false
*/
cleanDocs?: boolean;
/**
* Clean inline comments from JS files.
* @default false
*/
cleanComments?: boolean;
/**
* List of files that you want to delete before publishing (supports regex and glob patterns).
*/
files?: Array<string | RegExp>;
/**
* List of fields in the `package.json` file that you want to delete before publishing.
*/
fields?: string[];
/**
* Clean project without `npm publish` (tmp directory will not be deleted automatically).
* @default false
*/
withoutPublish?: boolean;
/**
* Name of package manager to use.
* @default "npm"
*/
packageManager?: PackageManager;
/**
* Whether the npm registry publishes this package as a public package, or restricted.
*/
access?: PackageAccess;
/**
* Create temporary directory with given name.
*/
tempDir?: string;
/**
* Options which are directly passed into package manager during publish.
*/
packageManagerOptions?: string[];
/**
* Reports the details of what would have been published.
*/
dryRun?: boolean;
/**
* Registers the package with the given tag.
*/
tag?: string;
/**
* Run script on the to-release dir before npm publish.
*/
beforeScript?: string;
}