forked from JS-DevTools/npm-publish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresults.ts
45 lines (37 loc) · 814 Bytes
/
results.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
import { ReleaseType } from "semver";
import { Access } from "./options";
export { ReleaseType };
/**
* Results of the publish
*/
export interface Results {
/**
* The type of version change that occurred
*/
type: ReleaseType | "none";
/**
* The name of the NPM package that was published
*/
package: string;
/**
* The version that was published
*/
version: string;
/**
* The version number that was previously published to NPM
*/
oldVersion: string;
/**
* The tag that the package was published to.
*/
tag: string;
/**
* Indicates whether the published package is publicly visible
* or restricted to members of your NPM organization.
*/
access: Access;
/**
* Whether this was a dry run (not published to NPM)
*/
dryRun: boolean;
}