expo-release 2.3.1 → 2.4.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.
package/dist/args.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import type { CommandContext } from 'hanzio/cli';
2
2
  import { z } from 'zod';
3
+ import type { BuildProfile } from './eas-json';
3
4
  export declare const DEFAULT_IMPACT_PATHS: readonly ['apps/expo/'];
4
5
  export type ReleasePlatform = 'ios' | 'android';
5
- export type CommandName = 'release' | 'decide' | 'operate';
6
+ export type CommandName = 'release' | 'decide' | 'operate' | 'doctor';
6
7
  export type Operation = 'deploy' | 'force-native' | 'retry-ota' | 'republish' | 'rollback-embedded';
7
8
  export type DeployType = 'none' | 'ota' | 'native';
8
9
  export type ReleaseOptions = {
@@ -32,47 +33,48 @@ export declare const releaseFlags: z.ZodObject<{
32
33
  profile: z.ZodString;
33
34
  base: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
34
35
  head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
35
- platform: z.ZodDefault<z.ZodEnum<{
36
+ platform: z.ZodDefault<z.ZodPreprocess<z.ZodEnum<{
36
37
  android: "android";
37
38
  ios: "ios";
38
- }>>;
39
+ }>, unknown>>;
39
40
  impactPaths: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string[], string>>;
40
- ignoreExpoImpact: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
41
+ ignoreExpoImpact: z.ZodPipe<z.ZodDefault<z.ZodPreprocess<z.ZodEnum<{
41
42
  false: "false";
42
43
  true: "true";
43
- }>>, z.ZodTransform<boolean, "false" | "true">>;
44
- operation: z.ZodDefault<z.ZodEnum<{
44
+ }>, unknown>>, z.ZodTransform<boolean, "false" | "true">>;
45
+ operation: z.ZodDefault<z.ZodPreprocess<z.ZodEnum<{
45
46
  deploy: "deploy";
46
47
  "force-native": "force-native";
47
48
  republish: "republish";
48
49
  "retry-ota": "retry-ota";
49
50
  "rollback-embedded": "rollback-embedded";
50
- }>>;
51
- deployType: z.ZodDefault<z.ZodEnum<{
51
+ }>, unknown>>;
52
+ deployType: z.ZodDefault<z.ZodPreprocess<z.ZodEnum<{
52
53
  native: "native";
53
54
  none: "none";
54
55
  ota: "ota";
55
- }>>;
56
+ }>, unknown>>;
56
57
  channel: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
57
58
  environment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
58
- autoSubmit: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
59
+ autoSubmit: z.ZodPipe<z.ZodDefault<z.ZodPreprocess<z.ZodEnum<{
59
60
  false: "false";
60
61
  true: "true";
61
- }>>, z.ZodTransform<boolean, "false" | "true">>;
62
+ }>, unknown>>, z.ZodTransform<boolean, "false" | "true">>;
62
63
  preUpdate: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
63
64
  postUpdate: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
64
65
  updateExtraArgs: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
65
- exportSourceMaps: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
66
+ exportSourceMaps: z.ZodPipe<z.ZodDefault<z.ZodPreprocess<z.ZodEnum<{
66
67
  false: "false";
67
68
  true: "true";
68
- }>>, z.ZodTransform<boolean, "false" | "true">>;
69
+ }>, unknown>>, z.ZodTransform<boolean, "false" | "true">>;
69
70
  group: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
70
71
  runtimeVersion: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
71
72
  message: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
72
73
  fingerprint: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
73
- dryRun: z.ZodBoolean;
74
+ dryRun: z.ZodPreprocess<z.ZodBoolean, unknown>;
74
75
  }, z.core.$strip>;
75
76
  export type ReleaseFlags = z.output<typeof releaseFlags>;
76
- export declare function toReleaseOptions(command: CommandName, { context: flags, env }: CommandContext<ReleaseFlags>): ReleaseOptions;
77
+ /** Flags win over the eas.json build profile, which wins over the profile name. */
78
+ export declare function toReleaseOptions(command: CommandName, { context: flags }: Pick<CommandContext<ReleaseFlags>, 'context'>, buildProfile?: BuildProfile | null): ReleaseOptions;
77
79
  export declare function needsDecide(operation: Operation): boolean;
78
80
  export declare function shouldIgnoreExpoImpact(options: Pick<ReleaseOptions, 'ignoreExpoImpact' | 'operation'>): boolean;