tegami 0.1.6 → 0.2.1
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/api-D-jf_8xY.js +116 -0
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +98 -126
- package/dist/{generate-B3bcuKLY.js → generate-L7ucD7ic.js} +36 -18
- package/dist/generators/simple.d.ts +1 -1
- package/dist/generators/simple.js +3 -3
- package/dist/{graph-DLKPUXSD.js → graph-DrzluXw8.js} +17 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +479 -105
- package/dist/plugins/git.d.ts +1 -1
- package/dist/plugins/git.js +39 -35
- package/dist/plugins/github.d.ts +28 -15
- package/dist/plugins/github.js +156 -160
- package/dist/providers/cargo.d.ts +2 -2
- package/dist/providers/cargo.js +86 -100
- package/dist/providers/npm.d.ts +2 -2
- package/dist/providers/npm.js +149 -129
- package/dist/schemas-BdUlXfSu.js +27 -0
- package/dist/{types-DexeJdl7.d.ts → types-DEaKjB3O.d.ts} +200 -229
- package/package.json +6 -7
- package/dist/checks-azjuIFt7.js +0 -109
- package/dist/publish-DkRT0yh6.js +0 -282
- package/dist/schemas-CurBAaW5.js +0 -42
|
@@ -13,21 +13,20 @@ var WorkspacePackage = class {
|
|
|
13
13
|
setPackageOptions(options) {
|
|
14
14
|
this.opts = options;
|
|
15
15
|
}
|
|
16
|
-
/** create the initial draft
|
|
17
|
-
|
|
16
|
+
/** create the initial draft. */
|
|
17
|
+
initDraft() {
|
|
18
18
|
return { bumpVersion(pkg) {
|
|
19
19
|
return bumpVersion(pkg.version, this.type, this.prerelease);
|
|
20
20
|
} };
|
|
21
21
|
}
|
|
22
|
-
/** configure an initial draft
|
|
23
|
-
|
|
22
|
+
/** configure an initial draft to match script-level configs. */
|
|
23
|
+
configureDraft(draft, group) {
|
|
24
24
|
const groupOptions = group?.options;
|
|
25
|
-
const {
|
|
26
|
-
if (
|
|
27
|
-
if (prerelease !== void 0) plan.prerelease = prerelease;
|
|
25
|
+
const { prerelease = groupOptions?.prerelease, npm: { distTag = groupOptions?.npm?.distTag } = {} } = this.opts;
|
|
26
|
+
if (prerelease !== void 0) draft.prerelease = prerelease;
|
|
28
27
|
if (distTag) {
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
draft.npm ??= {};
|
|
29
|
+
draft.npm.distTag = distTag;
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
};
|
|
@@ -100,11 +99,19 @@ var PackageGraph = class {
|
|
|
100
99
|
}
|
|
101
100
|
removeGroupMember(group, id) {
|
|
102
101
|
const entry = this.groups.get(group);
|
|
103
|
-
|
|
102
|
+
const pkg = this.packages.get(id);
|
|
103
|
+
if (!entry || !pkg || pkg.group !== entry) return;
|
|
104
104
|
const index = entry.packages.findIndex((pkg) => pkg.id === id);
|
|
105
105
|
if (index >= 0) entry.packages.splice(index, 1);
|
|
106
|
+
pkg.group = void 0;
|
|
106
107
|
}
|
|
107
108
|
unregisterGroup(name) {
|
|
109
|
+
const group = this.groups.get(name);
|
|
110
|
+
if (!group) return;
|
|
111
|
+
for (const pkg of group.packages) {
|
|
112
|
+
const entry = this.packages.get(pkg.id);
|
|
113
|
+
if (entry?.group === group) entry.group = void 0;
|
|
114
|
+
}
|
|
108
115
|
this.groups.delete(name);
|
|
109
116
|
}
|
|
110
117
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { type
|
|
1
|
+
import { A as PackageDraft, C as CommitChangelog, D as WorkspacePackage, E as PackageGroup, O as Draft, S as PublishPlan, T as PackageGraph, _ as tegami, a as PublishPreflight, b as PackagePublishResult, c as TegamiPluginOption, g as Tegami, h as GenerateChangelogOptions, i as PackageOptions, k as DraftPolicy, n as GroupOptions, o as TegamiOptions, r as LogGenerator, s as TegamiPlugin, v as PublishLock, x as PublishOptions, y as PackagePublishPlan } from "./types-DEaKjB3O.js";
|
|
2
|
+
export { type CommitChangelog, type Draft, type DraftPolicy, GenerateChangelogOptions, type GroupOptions, type LogGenerator, type PackageDraft, type PackageGraph, type PackageGroup, type PackageOptions, type PackagePublishPlan, type PackagePublishResult, type PublishLock, type PublishOptions, type PublishPlan, type PublishPreflight, Tegami, type TegamiOptions, type TegamiPlugin, type TegamiPluginOption, type WorkspacePackage, tegami };
|