@expo/eas-build-job 1.0.156 → 1.0.163

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/LICENSE CHANGED
@@ -12,7 +12,7 @@ Additional Use Grant: You may make use of the Licensed Work, provided that you d
12
12
  to access the functionality of and directly benefit from the
13
13
  functionality of the Licensed Work.
14
14
 
15
- Change Date: 2027-12-05
15
+ Change Date: 2028-01-01
16
16
 
17
17
  Change License: MIT
18
18
 
package/dist/generic.d.ts CHANGED
@@ -594,7 +594,7 @@ export declare namespace Generic {
594
594
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
595
595
  }, {
596
596
  uses: z.ZodString;
597
- with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
597
+ with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
598
598
  run: z.ZodOptional<z.ZodNever>;
599
599
  shell: z.ZodOptional<z.ZodNever>;
600
600
  outputs: z.ZodOptional<z.ZodNever>;
@@ -606,7 +606,7 @@ export declare namespace Generic {
606
606
  id?: string | undefined;
607
607
  if?: string | undefined;
608
608
  working_directory?: string | undefined;
609
- with?: Record<string, string | number | Record<string, any>> | undefined;
609
+ with?: Record<string, unknown> | undefined;
610
610
  run?: undefined;
611
611
  shell?: undefined;
612
612
  }, {
@@ -617,7 +617,7 @@ export declare namespace Generic {
617
617
  id?: string | undefined;
618
618
  if?: string | undefined;
619
619
  working_directory?: string | undefined;
620
- with?: Record<string, string | number | Record<string, any>> | undefined;
620
+ with?: Record<string, unknown> | undefined;
621
621
  run?: undefined;
622
622
  shell?: undefined;
623
623
  }>]>, "many">;
@@ -671,7 +671,7 @@ export declare namespace Generic {
671
671
  id?: string | undefined;
672
672
  if?: string | undefined;
673
673
  working_directory?: string | undefined;
674
- with?: Record<string, string | number | Record<string, any>> | undefined;
674
+ with?: Record<string, unknown> | undefined;
675
675
  run?: undefined;
676
676
  shell?: undefined;
677
677
  } | {
@@ -761,7 +761,7 @@ export declare namespace Generic {
761
761
  id?: string | undefined;
762
762
  if?: string | undefined;
763
763
  working_directory?: string | undefined;
764
- with?: Record<string, string | number | Record<string, any>> | undefined;
764
+ with?: Record<string, unknown> | undefined;
765
765
  run?: undefined;
766
766
  shell?: undefined;
767
767
  } | {
@@ -1393,7 +1393,7 @@ export declare namespace Generic {
1393
1393
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1394
1394
  }, {
1395
1395
  uses: z.ZodString;
1396
- with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
1396
+ with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1397
1397
  run: z.ZodOptional<z.ZodNever>;
1398
1398
  shell: z.ZodOptional<z.ZodNever>;
1399
1399
  outputs: z.ZodOptional<z.ZodNever>;
@@ -1405,7 +1405,7 @@ export declare namespace Generic {
1405
1405
  id?: string | undefined;
1406
1406
  if?: string | undefined;
1407
1407
  working_directory?: string | undefined;
1408
- with?: Record<string, string | number | Record<string, any>> | undefined;
1408
+ with?: Record<string, unknown> | undefined;
1409
1409
  run?: undefined;
1410
1410
  shell?: undefined;
1411
1411
  }, {
@@ -1416,7 +1416,7 @@ export declare namespace Generic {
1416
1416
  id?: string | undefined;
1417
1417
  if?: string | undefined;
1418
1418
  working_directory?: string | undefined;
1419
- with?: Record<string, string | number | Record<string, any>> | undefined;
1419
+ with?: Record<string, unknown> | undefined;
1420
1420
  run?: undefined;
1421
1421
  shell?: undefined;
1422
1422
  }>]>, "many">>;
@@ -1493,7 +1493,7 @@ export declare namespace Generic {
1493
1493
  id?: string | undefined;
1494
1494
  if?: string | undefined;
1495
1495
  working_directory?: string | undefined;
1496
- with?: Record<string, string | number | Record<string, any>> | undefined;
1496
+ with?: Record<string, unknown> | undefined;
1497
1497
  run?: undefined;
1498
1498
  shell?: undefined;
1499
1499
  } | {
@@ -1583,7 +1583,7 @@ export declare namespace Generic {
1583
1583
  id?: string | undefined;
1584
1584
  if?: string | undefined;
1585
1585
  working_directory?: string | undefined;
1586
- with?: Record<string, string | number | Record<string, any>> | undefined;
1586
+ with?: Record<string, unknown> | undefined;
1587
1587
  run?: undefined;
1588
1588
  shell?: undefined;
1589
1589
  } | {
package/dist/step.d.ts CHANGED
@@ -62,7 +62,7 @@ export declare const FunctionStepZ: z.ZodObject<z.objectUtil.extendShape<{
62
62
  * - value1
63
63
  * arg4: ${{ steps.step1.outputs.test }}
64
64
  */
65
- with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
65
+ with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
66
66
  run: z.ZodOptional<z.ZodNever>;
67
67
  shell: z.ZodOptional<z.ZodNever>;
68
68
  outputs: z.ZodOptional<z.ZodNever>;
@@ -74,7 +74,7 @@ export declare const FunctionStepZ: z.ZodObject<z.objectUtil.extendShape<{
74
74
  id?: string | undefined;
75
75
  if?: string | undefined;
76
76
  working_directory?: string | undefined;
77
- with?: Record<string, string | number | Record<string, any>> | undefined;
77
+ with?: Record<string, unknown> | undefined;
78
78
  run?: undefined;
79
79
  shell?: undefined;
80
80
  }, {
@@ -85,7 +85,7 @@ export declare const FunctionStepZ: z.ZodObject<z.objectUtil.extendShape<{
85
85
  id?: string | undefined;
86
86
  if?: string | undefined;
87
87
  working_directory?: string | undefined;
88
- with?: Record<string, string | number | Record<string, any>> | undefined;
88
+ with?: Record<string, unknown> | undefined;
89
89
  run?: undefined;
90
90
  shell?: undefined;
91
91
  }>;
@@ -379,7 +379,7 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
379
379
  * - value1
380
380
  * arg4: ${{ steps.step1.outputs.test }}
381
381
  */
382
- with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
382
+ with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
383
383
  run: z.ZodOptional<z.ZodNever>;
384
384
  shell: z.ZodOptional<z.ZodNever>;
385
385
  outputs: z.ZodOptional<z.ZodNever>;
@@ -391,7 +391,7 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
391
391
  id?: string | undefined;
392
392
  if?: string | undefined;
393
393
  working_directory?: string | undefined;
394
- with?: Record<string, string | number | Record<string, any>> | undefined;
394
+ with?: Record<string, unknown> | undefined;
395
395
  run?: undefined;
396
396
  shell?: undefined;
397
397
  }, {
@@ -402,7 +402,7 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
402
402
  id?: string | undefined;
403
403
  if?: string | undefined;
404
404
  working_directory?: string | undefined;
405
- with?: Record<string, string | number | Record<string, any>> | undefined;
405
+ with?: Record<string, unknown> | undefined;
406
406
  run?: undefined;
407
407
  shell?: undefined;
408
408
  }>]>;
package/dist/step.js CHANGED
@@ -70,7 +70,7 @@ exports.FunctionStepZ = CommonStepZ.extend({
70
70
  * - value1
71
71
  * arg4: ${{ steps.step1.outputs.test }}
72
72
  */
73
- with: zod_1.z.record(zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.record(zod_1.z.any())], zod_1.z.boolean())).optional(),
73
+ with: zod_1.z.record(zod_1.z.unknown()).optional(),
74
74
  run: zod_1.z.never().optional(),
75
75
  shell: zod_1.z.never().optional(),
76
76
  outputs: zod_1.z.never().optional(),
package/dist/step.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"step.js","sourceRoot":"","sources":["../src/step.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,IAAI,EAAE,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AC;IAC3C;;;;;;;;;;;OAWG;IACH,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf;;;;;;;OAOG;IACH,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B;;;;;;;;;;OAUG;IACH,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;IAExC,IAAI,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC1B,IAAI,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAIU,QAAA,KAAK,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,kBAAU,EAAE,qBAAa,CAAC,CAAC,CAAC;AAwB1D,SAAgB,aAAa,CAAC,UAAmB;IAC/C,MAAM,KAAK,GAAG,OAAC,CAAC,KAAK,CAAC,aAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACtD,OAAO,KAAK,CAAC;AACf,CAAC;AAHD,sCAGC;AAED,SAAgB,eAAe,CAAC,IAAU;IACxC,OAAO,IAAI,CAAC,GAAG,KAAK,SAAS,CAAC;AAChC,CAAC;AAFD,0CAEC;AAED,SAAgB,kBAAkB,CAAC,IAAU;IAC3C,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC;AACjC,CAAC;AAFD,gDAEC","sourcesContent":["import { z } from 'zod';\n\nconst StepOutputZ = z.object({\n name: z.string(),\n required: z.boolean().optional(),\n});\n\nconst CommonStepZ = z.object({\n /**\n * Unique identifier for the step.\n *\n * @example\n * id: step1\n */\n id: z.string().optional(),\n /**\n * Expression that determines whether the step should run.\n * Based on the GitHub Actions job step `if` field (https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsif).\n */\n if: z.string().optional(),\n /**\n * The name of the step.\n *\n * @example\n * name: 'Step 1'\n */\n name: z.string().optional(),\n /**\n * The working directory to run the step in.\n *\n * @example\n * working_directory: ./my-working-directory\n *\n * @default depends on the project settings\n */\n working_directory: z.string().optional(),\n /**\n * Env variables override for the step.\n *\n * @example\n * env:\n * MY_ENV_VAR: my-value\n * ANOTHER_ENV_VAR: another-value\n */\n env: z.record(z.string()).optional(),\n});\n\nexport const FunctionStepZ = CommonStepZ.extend({\n /**\n * The custom EAS function to run as a step.\n * It can be a function provided by EAS or a custom function defined by the user.\n *\n * @example\n * uses: eas/build\n *\n * @example\n * uses: my-custom-function\n */\n uses: z.string(),\n /**\n * The arguments to pass to the function.\n *\n * @example\n * with:\n * arg1: value1\n * arg2: ['ala', 'ma', 'kota']\n * arg3:\n * key1: value1\n * key2:\n * - value1\n * arg4: ${{ steps.step1.outputs.test }}\n */\n with: z.record(z.union([z.string(), z.number(), z.record(z.any())], z.boolean())).optional(),\n\n run: z.never().optional(),\n shell: z.never().optional(),\n outputs: z.never().optional(),\n});\n\nexport type FunctionStep = z.infer<typeof FunctionStepZ>;\n\nexport const ShellStepZ = CommonStepZ.extend({\n /**\n * The command-line programs to run as a step.\n *\n * @example\n * run: echo Hello, world!\n *\n * @example\n * run: |\n * npm install\n * npx expo prebuild\n * pod install\n */\n run: z.string(),\n /**\n * The shell to run the \"run\" command with.\n *\n * @example\n * shell: 'sh'\n *\n * @default 'bash'\n */\n shell: z.string().optional(),\n /**\n * The outputs of the step.\n *\n * @example\n * outputs:\n * - name: my_output\n * required: true\n * - name: my_optional_output\n * required: false\n * - name: my_optional_output_without_required\n */\n outputs: z.array(StepOutputZ).optional(),\n\n uses: z.never().optional(),\n with: z.never().optional(),\n});\n\nexport type ShellStep = z.infer<typeof ShellStepZ>;\n\nexport const StepZ = z.union([ShellStepZ, FunctionStepZ]);\n\n/**\n * Structure of a custom EAS job step.\n *\n * GHA step fields skipped here:\n * - `with.entrypoint`\n * - `continue-on-error`\n * - `timeout-minutes`\n *\n * * @example\n * steps:\n * - uses: eas/maestro-test\n * id: step1\n * name: Step 1\n * with:\n * flow_path: |\n * maestro/sign_in.yaml\n * maestro/create_post.yaml\n * maestro/sign_out.yaml\n * - run: echo Hello, world!\n */\nexport type Step = z.infer<typeof StepZ>;\n\nexport function validateSteps(maybeSteps: unknown): Step[] {\n const steps = z.array(StepZ).min(1).parse(maybeSteps);\n return steps;\n}\n\nexport function isStepShellStep(step: Step): step is ShellStep {\n return step.run !== undefined;\n}\n\nexport function isStepFunctionStep(step: Step): step is FunctionStep {\n return step.uses !== undefined;\n}\n"]}
1
+ {"version":3,"file":"step.js","sourceRoot":"","sources":["../src/step.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB;;;OAGG;IACH,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB;;;;;OAKG;IACH,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B;;;;;;;OAOG;IACH,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC;;;;;;;OAOG;IACH,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,WAAW,CAAC,MAAM,CAAC;IAC9C;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB;;;;;;;;;;;;OAYG;IACH,IAAI,EAAE,OAAC,CAAC,MAAM,CAA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StepOutputZ = z.object({\n name: z.string(),\n required: z.boolean().optional(),\n});\n\nconst CommonStepZ = z.object({\n /**\n * Unique identifier for the step.\n *\n * @example\n * id: step1\n */\n id: z.string().optional(),\n /**\n * Expression that determines whether the step should run.\n * Based on the GitHub Actions job step `if` field (https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsif).\n */\n if: z.string().optional(),\n /**\n * The name of the step.\n *\n * @example\n * name: 'Step 1'\n */\n name: z.string().optional(),\n /**\n * The working directory to run the step in.\n *\n * @example\n * working_directory: ./my-working-directory\n *\n * @default depends on the project settings\n */\n working_directory: z.string().optional(),\n /**\n * Env variables override for the step.\n *\n * @example\n * env:\n * MY_ENV_VAR: my-value\n * ANOTHER_ENV_VAR: another-value\n */\n env: z.record(z.string()).optional(),\n});\n\nexport const FunctionStepZ = CommonStepZ.extend({\n /**\n * The custom EAS function to run as a step.\n * It can be a function provided by EAS or a custom function defined by the user.\n *\n * @example\n * uses: eas/build\n *\n * @example\n * uses: my-custom-function\n */\n uses: z.string(),\n /**\n * The arguments to pass to the function.\n *\n * @example\n * with:\n * arg1: value1\n * arg2: ['ala', 'ma', 'kota']\n * arg3:\n * key1: value1\n * key2:\n * - value1\n * arg4: ${{ steps.step1.outputs.test }}\n */\n with: z.record(z.unknown()).optional(),\n\n run: z.never().optional(),\n shell: z.never().optional(),\n outputs: z.never().optional(),\n});\n\nexport type FunctionStep = z.infer<typeof FunctionStepZ>;\n\nexport const ShellStepZ = CommonStepZ.extend({\n /**\n * The command-line programs to run as a step.\n *\n * @example\n * run: echo Hello, world!\n *\n * @example\n * run: |\n * npm install\n * npx expo prebuild\n * pod install\n */\n run: z.string(),\n /**\n * The shell to run the \"run\" command with.\n *\n * @example\n * shell: 'sh'\n *\n * @default 'bash'\n */\n shell: z.string().optional(),\n /**\n * The outputs of the step.\n *\n * @example\n * outputs:\n * - name: my_output\n * required: true\n * - name: my_optional_output\n * required: false\n * - name: my_optional_output_without_required\n */\n outputs: z.array(StepOutputZ).optional(),\n\n uses: z.never().optional(),\n with: z.never().optional(),\n});\n\nexport type ShellStep = z.infer<typeof ShellStepZ>;\n\nexport const StepZ = z.union([ShellStepZ, FunctionStepZ]);\n\n/**\n * Structure of a custom EAS job step.\n *\n * GHA step fields skipped here:\n * - `with.entrypoint`\n * - `continue-on-error`\n * - `timeout-minutes`\n *\n * * @example\n * steps:\n * - uses: eas/maestro-test\n * id: step1\n * name: Step 1\n * with:\n * flow_path: |\n * maestro/sign_in.yaml\n * maestro/create_post.yaml\n * maestro/sign_out.yaml\n * - run: echo Hello, world!\n */\nexport type Step = z.infer<typeof StepZ>;\n\nexport function validateSteps(maybeSteps: unknown): Step[] {\n const steps = z.array(StepZ).min(1).parse(maybeSteps);\n return steps;\n}\n\nexport function isStepShellStep(step: Step): step is ShellStep {\n return step.run !== undefined;\n}\n\nexport function isStepFunctionStep(step: Step): step is FunctionStep {\n return step.uses !== undefined;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/eas-build-job",
3
- "version": "1.0.156",
3
+ "version": "1.0.163",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -35,5 +35,5 @@
35
35
  "node": "20.14.0",
36
36
  "yarn": "1.22.21"
37
37
  },
38
- "gitHead": "c4fa37c7cbcd937face9150c5c1ee2fdcf6a2f81"
38
+ "gitHead": "7390cf79914f90b42f72c47e67af76978450496e"
39
39
  }