@trigger.dev/core 0.0.0-v3-canary-20240321134710 → 0.0.0-v3-canary-20240321162743

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.
@@ -11783,6 +11783,10 @@ interface ProjectConfig {
11783
11783
  default?: RetryOptions;
11784
11784
  };
11785
11785
  additionalPackages?: string[];
11786
+ /**
11787
+ * List of patterns that determine if a module is included in your trigger.dev bundle. This is needed when consuming ESM only packages, since the trigger.dev bundle is currently built as a CJS module.
11788
+ */
11789
+ dependenciesToBundle?: Array<string | RegExp>;
11786
11790
  }
11787
11791
 
11788
11792
  type InitOutput = Record<string, any> | void | undefined;
@@ -11877,6 +11881,7 @@ declare const Config: z.ZodObject<{
11877
11881
  } | undefined;
11878
11882
  }>>;
11879
11883
  additionalPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11884
+ dependenciesToBundle: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">>;
11880
11885
  }, "strip", z.ZodTypeAny, {
11881
11886
  project: string;
11882
11887
  triggerDirectories?: string[] | undefined;
@@ -11893,6 +11898,7 @@ declare const Config: z.ZodObject<{
11893
11898
  } | undefined;
11894
11899
  } | undefined;
11895
11900
  additionalPackages?: string[] | undefined;
11901
+ dependenciesToBundle?: (string | RegExp)[] | undefined;
11896
11902
  }, {
11897
11903
  project: string;
11898
11904
  triggerDirectories?: string[] | undefined;
@@ -11909,6 +11915,7 @@ declare const Config: z.ZodObject<{
11909
11915
  } | undefined;
11910
11916
  } | undefined;
11911
11917
  additionalPackages?: string[] | undefined;
11918
+ dependenciesToBundle?: (string | RegExp)[] | undefined;
11912
11919
  }>;
11913
11920
  type Config = z.infer<typeof Config>;
11914
11921
  type ResolvedConfig = RequireKeys<Config, "triggerDirectories" | "triggerUrl" | "projectDir">;
@@ -11783,6 +11783,10 @@ interface ProjectConfig {
11783
11783
  default?: RetryOptions;
11784
11784
  };
11785
11785
  additionalPackages?: string[];
11786
+ /**
11787
+ * List of patterns that determine if a module is included in your trigger.dev bundle. This is needed when consuming ESM only packages, since the trigger.dev bundle is currently built as a CJS module.
11788
+ */
11789
+ dependenciesToBundle?: Array<string | RegExp>;
11786
11790
  }
11787
11791
 
11788
11792
  type InitOutput = Record<string, any> | void | undefined;
@@ -11877,6 +11881,7 @@ declare const Config: z.ZodObject<{
11877
11881
  } | undefined;
11878
11882
  }>>;
11879
11883
  additionalPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11884
+ dependenciesToBundle: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">>;
11880
11885
  }, "strip", z.ZodTypeAny, {
11881
11886
  project: string;
11882
11887
  triggerDirectories?: string[] | undefined;
@@ -11893,6 +11898,7 @@ declare const Config: z.ZodObject<{
11893
11898
  } | undefined;
11894
11899
  } | undefined;
11895
11900
  additionalPackages?: string[] | undefined;
11901
+ dependenciesToBundle?: (string | RegExp)[] | undefined;
11896
11902
  }, {
11897
11903
  project: string;
11898
11904
  triggerDirectories?: string[] | undefined;
@@ -11909,6 +11915,7 @@ declare const Config: z.ZodObject<{
11909
11915
  } | undefined;
11910
11916
  } | undefined;
11911
11917
  additionalPackages?: string[] | undefined;
11918
+ dependenciesToBundle?: (string | RegExp)[] | undefined;
11912
11919
  }>;
11913
11920
  type Config = z.infer<typeof Config>;
11914
11921
  type ResolvedConfig = RequireKeys<Config, "triggerDirectories" | "triggerUrl" | "projectDir">;
package/dist/v3/index.js CHANGED
@@ -648,6 +648,13 @@ var GetDeploymentResponseBody = zod.z.object({
648
648
  }))
649
649
  }).optional()
650
650
  });
651
+ var RegexSchema = zod.z.custom((val) => {
652
+ try {
653
+ return typeof val.test === "function";
654
+ } catch {
655
+ return false;
656
+ }
657
+ });
651
658
  var Config = zod.z.object({
652
659
  project: zod.z.string(),
653
660
  triggerDirectories: zod.z.string().array().optional(),
@@ -657,7 +664,11 @@ var Config = zod.z.object({
657
664
  enabledInDev: zod.z.boolean().default(true),
658
665
  default: RetryOptions.optional()
659
666
  }).optional(),
660
- additionalPackages: zod.z.string().array().optional()
667
+ additionalPackages: zod.z.string().array().optional(),
668
+ dependenciesToBundle: zod.z.array(zod.z.union([
669
+ zod.z.string(),
670
+ RegexSchema
671
+ ])).optional()
661
672
  });
662
673
  var Machine = zod.z.object({
663
674
  cpu: zod.z.string().default("1").optional(),