@mznjs/mbump 1.0.6 → 1.1.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.
@@ -1,74 +0,0 @@
1
- import { ChangelogConfig, ResolvedChangelogConfig } from "changelogen";
2
- import { VersionBumpOptions, versionBumpInfo } from "bumpp";
3
-
4
- //#region src/changelog.d.ts
5
-
6
- /**
7
- * 生成changelog
8
- * @param rawConfig
9
- */
10
- declare function changelog(rawConfig: ResolvedChangelogConfig): Promise<{
11
- markdown: string;
12
- changelogMD: string;
13
- }>;
14
- //#endregion
15
- //#region src/types.d.ts
16
- /**
17
- * changelog 生成配置信息
18
- */
19
- interface ChangelogOptions extends Omit<Partial<ChangelogConfig>, 'cwd' | 'tokens' | 'newVersion' | 'to' | 'from' | 'publish'> {}
20
- interface Accesstokens {
21
- [key: string]: string;
22
- }
23
- /**
24
- * 用户配置信息
25
- */
26
- interface Config {
27
- /**
28
- * changelog 生成配置信息
29
- */
30
- changelog?: ChangelogOptions;
31
- /**
32
- * bumpp 配置信息
33
- */
34
- bumpp?: Omit<VersionBumpOptions, 'progress' | 'cwd'>;
35
- accesstoken?: Accesstokens;
36
- }
37
- /**
38
- * 合并后的配置信息
39
- */
40
- interface ResolveConfig {
41
- /**
42
- * changelog 生成配置信息
43
- */
44
- changelog: ResolvedChangelogConfig;
45
- /**
46
- * bumpp 配置信息
47
- */
48
- bumpp: Omit<VersionBumpOptions, 'progress'>;
49
- accesstoken: Accesstokens;
50
- }
51
- /**
52
- * bumpp 生成结果
53
- */
54
- type BumppResult = Awaited<ReturnType<typeof versionBumpInfo>>;
55
- /**
56
- * changelog 生成结果
57
- */
58
- type ChangelogResult = Awaited<ReturnType<typeof changelog>>;
59
- /**
60
- * bumppVersion 方法返回结果
61
- */
62
- interface BumpVersion {
63
- /**
64
- * bumpp 生成结果
65
- */
66
- bumpp: BumppResult['state'];
67
- /**
68
- * changelog 生成结果
69
- */
70
- changelog: ChangelogResult;
71
- config: ResolveConfig;
72
- }
73
- //#endregion
74
- export { ChangelogResult as a, ChangelogOptions as i, BumpVersion as n, Config as o, BumppResult as r, ResolveConfig as s, Accesstokens as t };