@applift/core 0.3.0 → 0.5.0

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.
@@ -183,6 +183,7 @@ type Stores = z.infer<typeof StoresSchema>;
183
183
  * - testflight: App Store Connect 上传(ipa 进 TestFlight)
184
184
  */
185
185
  declare const BetaConfigSchema: z.ZodObject<{
186
+ bump: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
186
187
  pgyer: z.ZodOptional<z.ZodObject<{
187
188
  platforms: z.ZodDefault<z.ZodArray<z.ZodEnum<{
188
189
  android: "android";
@@ -200,6 +201,24 @@ declare const BetaConfigSchema: z.ZodObject<{
200
201
  note: z.ZodOptional<z.ZodString>;
201
202
  }, z.core.$strip>>;
202
203
  }, z.core.$strip>;
204
+ /** versionCode 策略:"increment"(默认 +1) | 公式(可限定平台) */
205
+ declare const VersionCodeConfigSchema: z.ZodUnion<readonly [z.ZodLiteral<"increment">, z.ZodObject<{
206
+ formula: z.ZodString;
207
+ platforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ }, z.core.$strip>]>;
209
+ type VersionCodeConfig = z.infer<typeof VersionCodeConfigSchema>;
210
+ declare const VersionConfigSchema: z.ZodObject<{
211
+ versionCode: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"increment">, z.ZodObject<{
212
+ formula: z.ZodString;
213
+ platforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
214
+ }, z.core.$strip>]>>;
215
+ }, z.core.$strip>;
216
+ type VersionConfig = z.infer<typeof VersionConfigSchema>;
217
+ /** 正式发版段的自动 version 开关(语义同 beta.bump) */
218
+ declare const ReleaseConfigSchema: z.ZodObject<{
219
+ bump: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
220
+ }, z.core.$strip>;
221
+ type ReleaseConfig = z.infer<typeof ReleaseConfigSchema>;
203
222
  declare const ProjectConfigSchema: z.ZodObject<{
204
223
  name: z.ZodOptional<z.ZodString>;
205
224
  profile: z.ZodDefault<z.ZodString>;
@@ -230,7 +249,17 @@ declare const ProjectConfigSchema: z.ZodObject<{
230
249
  macos: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
250
  linux: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
251
  }, z.core.$catchall<z.ZodOptional<z.ZodArray<z.ZodString>>>>>;
252
+ version: z.ZodOptional<z.ZodObject<{
253
+ versionCode: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"increment">, z.ZodObject<{
254
+ formula: z.ZodString;
255
+ platforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
256
+ }, z.core.$strip>]>>;
257
+ }, z.core.$strip>>;
258
+ release: z.ZodOptional<z.ZodObject<{
259
+ bump: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
260
+ }, z.core.$strip>>;
233
261
  beta: z.ZodOptional<z.ZodObject<{
262
+ bump: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
234
263
  pgyer: z.ZodOptional<z.ZodObject<{
235
264
  platforms: z.ZodDefault<z.ZodArray<z.ZodEnum<{
236
265
  android: "android";
@@ -374,4 +403,4 @@ declare function defineConfig(config: QypubUserConfig): QypubUserConfig;
374
403
  /** 解析用户配置中的插件(工厂惰性求值),供 PluginHost 构造 */
375
404
  declare function resolvePlugins(userConfig: QypubUserConfig): QypubPlugin[];
376
405
  //#endregion
377
- export { rnAdapter as $, StoreConfigSchema as A, StageResult as B, CredentialsProfile as C, ProjectConfig as D, GlobalConfigSchema as E, ChannelContext as F, detectBundleIds as G, BundleIds as H, ChannelEvent as I, findArtifacts as J, detectFramework as K, ChannelRegistry as L, StoresSchema as M, Channel as N, ProjectConfigSchema as O, ChannelCapabilities as P, nativeIosAdapter as Q, ReleasePlanEntry as R, CredentialsFileSchema as S, GlobalConfig as T, FrameworkAdapter as U, SubmitResult as V, Platform as W, nativeAndroidAdapter as X, flutterAdapter as Y, nativeHarmonyAdapter as Z, appendEntry as _, QypubUserConfig as a, BetaConfigSchema as b, PipelineInput as c, runStage as d, tauriAdapter as et, runSubmit as f, HistoryQuery as g, HistoryEvent as h, QypubPlugin as i, Stores as j, StoreConfig as k, PipelineSummary as l, HistoryEntry as m, PluginHookName as n, defineConfig as o, HISTORY_PATH as p, electronAdapter as q, PluginHost as r, resolvePlugins as s, HookContext as t, PipelineSummaryEntry as u, readEntries as v, CredentialsProfileSchema as w, CredentialsFile as x, BetaConfig as y, ReviewStatus as z };
406
+ export { electronAdapter as $, ReleaseConfigSchema as A, ChannelCapabilities as B, CredentialsProfile as C, ProjectConfig as D, GlobalConfigSchema as E, VersionCodeConfig as F, ReviewStatus as G, ChannelEvent as H, VersionCodeConfigSchema as I, BundleIds as J, StageResult as K, VersionConfig as L, StoreConfigSchema as M, Stores as N, ProjectConfigSchema as O, StoresSchema as P, detectFramework as Q, VersionConfigSchema as R, CredentialsFileSchema as S, GlobalConfig as T, ChannelRegistry as U, ChannelContext as V, ReleasePlanEntry as W, Platform as X, FrameworkAdapter as Y, detectBundleIds as Z, appendEntry as _, QypubUserConfig as a, rnAdapter as at, BetaConfigSchema as b, PipelineInput as c, runStage as d, findArtifacts as et, runSubmit as f, HistoryQuery as g, HistoryEvent as h, QypubPlugin as i, nativeIosAdapter as it, StoreConfig as j, ReleaseConfig as k, PipelineSummary as l, HistoryEntry as m, PluginHookName as n, nativeAndroidAdapter as nt, defineConfig as o, tauriAdapter as ot, HISTORY_PATH as p, SubmitResult as q, PluginHost as r, nativeHarmonyAdapter as rt, resolvePlugins as s, HookContext as t, flutterAdapter as tt, PipelineSummaryEntry as u, readEntries as v, CredentialsProfileSchema as w, CredentialsFile as x, BetaConfig as y, Channel as z };
@@ -1,4 +1,4 @@
1
- import { i as QypubPlugin } from "../plugin-DzhwzVfu.mjs";
1
+ import { i as QypubPlugin } from "../plugin-CTt0LO8c.mjs";
2
2
  //#region src/plugins/dingtalk-notify.d.ts
3
3
  interface DingtalkNotifyOptions {
4
4
  webhook: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applift/core",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/hcg1023/applift.git",
@@ -24,11 +24,14 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "c12": "^3.3.4",
27
+ "conventional-commits-parser": "^7.1.3",
27
28
  "jiti": "^2.7.0",
29
+ "semver": "^7.8.5",
28
30
  "smol-toml": "^1.9.1",
29
31
  "zod": "^4.6.7"
30
32
  },
31
33
  "devDependencies": {
34
+ "@types/semver": "^7.8.0",
32
35
  "tsdown": "^0.23.1"
33
36
  },
34
37
  "scripts": {