@ucdjs/release-scripts 0.1.0-beta.12 → 0.1.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,4 @@
1
- import "commit-parser";
2
-
3
- //#region src/workspace.d.ts
1
+ //#region src/core/workspace.d.ts
4
2
  interface WorkspacePackage {
5
3
  name: string;
6
4
  version: string;
@@ -10,7 +8,7 @@ interface WorkspacePackage {
10
8
  workspaceDevDependencies: string[];
11
9
  }
12
10
  //#endregion
13
- //#region src/types.d.ts
11
+ //#region src/shared/types.d.ts
14
12
  type BumpKind = "none" | "patch" | "minor" | "major";
15
13
  type GlobalCommitMode = false | "dependencies" | "all";
16
14
  interface SharedOptions {
@@ -29,11 +27,6 @@ interface SharedOptions {
29
27
  * - string[]: specific package names
30
28
  */
31
29
  packages?: true | FindWorkspacePackagesOptions | string[];
32
- /**
33
- * Whether to enable verbose logging
34
- * @default false
35
- */
36
- verbose?: boolean;
37
30
  /**
38
31
  * GitHub token for authentication
39
32
  */
@@ -75,7 +68,7 @@ interface FindWorkspacePackagesOptions {
75
68
  */
76
69
  excludePrivate?: boolean;
77
70
  }
78
- interface VersionUpdate {
71
+ interface PackageRelease {
79
72
  /**
80
73
  * The package being updated
81
74
  */
@@ -102,26 +95,6 @@ interface VersionUpdate {
102
95
  interface PublishOptions extends SharedOptions {}
103
96
  declare function publish(_options: PublishOptions): void;
104
97
  //#endregion
105
- //#region src/changelog.d.ts
106
- interface ChangelogOptions {
107
- /**
108
- * Whether to generate changelogs
109
- * @default false
110
- */
111
- enabled?: boolean;
112
- /**
113
- * Transform function to customize the changelog content
114
- */
115
- transform?: (changelog: string, pkg: WorkspacePackage) => string | Promise<string>;
116
- /**
117
- * Repository information for generating links
118
- */
119
- repository?: {
120
- owner: string;
121
- repo: string;
122
- };
123
- }
124
- //#endregion
125
98
  //#region src/release.d.ts
126
99
  interface ReleaseOptions extends SharedOptions {
127
100
  branch?: {
@@ -134,11 +107,6 @@ interface ReleaseOptions extends SharedOptions {
134
107
  */
135
108
  default?: string;
136
109
  };
137
- /**
138
- * Whether to perform a dry run (no changes pushed or PR created)
139
- * @default false
140
- */
141
- dryRun?: boolean;
142
110
  /**
143
111
  * Whether to enable safety safeguards (e.g., checking for clean working directory)
144
112
  * @default true
@@ -162,17 +130,20 @@ interface ReleaseOptions extends SharedOptions {
162
130
  */
163
131
  body?: string;
164
132
  };
165
- /**
166
- * Changelog configuration
167
- */
168
- changelog?: ChangelogOptions;
133
+ changelog?: {
134
+ /**
135
+ * Whether to generate or update changelogs
136
+ * @default true
137
+ */
138
+ enabled?: boolean;
139
+ };
169
140
  globalCommitMode?: GlobalCommitMode;
170
141
  }
171
142
  interface ReleaseResult {
172
143
  /**
173
144
  * Packages that will be updated
174
145
  */
175
- updates: VersionUpdate[];
146
+ updates: PackageRelease[];
176
147
  /**
177
148
  * URL of the created or updated PR
178
149
  */