generated from JS-DevTools/template-node-typescript
-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathresults.ts
51 lines (39 loc) · 1.44 KB
/
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
46
47
48
49
50
51
import type { Access, Strategy } from "./options.js";
import type { ReleaseType as SemverReleaseType } from "semver";
/** Release type */
export type ReleaseType = SemverReleaseType | typeof INITIAL | typeof DIFFERENT;
export const INITIAL = "initial";
export const DIFFERENT = "different";
/** Results of the publish */
export interface Results {
/**
* The identifier of the published package, if published. Format is
* `${packageName}@${version}`
*/
id: string | undefined;
/** The name of the NPM package that was published */
name: string;
/** The version that was published */
version: string;
/** The type of version change that occurred, if any. */
type: ReleaseType | undefined;
/** The version number that was previously published to NPM, if any. */
oldVersion: string | undefined;
/** The registry where the package was published */
registry: URL;
/** 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.
*
* If package is scoped, undefined means npm's scoped package defaults. If a
* scoped package has previously been published as public, the default is
* public. Otherwise, it is restricted.
*/
access: Access | undefined;
/** Version check strategy used. */
strategy: Strategy;
/** Whether this was a dry run (not published to NPM) */
dryRun: boolean;
}