trigger.dev 3.0.0-beta.10 → 3.0.0-beta.11
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/index.js
CHANGED
|
@@ -801,7 +801,7 @@ import invariant from "tiny-invariant";
|
|
|
801
801
|
import { z as z4 } from "zod";
|
|
802
802
|
|
|
803
803
|
// package.json
|
|
804
|
-
var version = "3.0.0-beta.
|
|
804
|
+
var version = "3.0.0-beta.11";
|
|
805
805
|
var dependencies = {
|
|
806
806
|
"@clack/prompts": "^0.7.0",
|
|
807
807
|
"@depot/cli": "0.0.1-cli.2.55.0",
|
|
@@ -817,7 +817,7 @@ var dependencies = {
|
|
|
817
817
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
818
818
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
819
819
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
820
|
-
"@trigger.dev/core": "workspace:^3.0.0-beta.
|
|
820
|
+
"@trigger.dev/core": "workspace:^3.0.0-beta.11",
|
|
821
821
|
"@types/degit": "^2.8.3",
|
|
822
822
|
chalk: "^5.2.0",
|
|
823
823
|
chokidar: "^3.5.3",
|
|
@@ -1656,7 +1656,8 @@ async function readConfig(dir, options) {
|
|
|
1656
1656
|
});
|
|
1657
1657
|
const userConfigModule = await import(builtConfigFileHref);
|
|
1658
1658
|
const rawConfig = await normalizeConfig(
|
|
1659
|
-
userConfigModule
|
|
1659
|
+
userConfigModule?.config,
|
|
1660
|
+
options?.projectRef ? { project: options?.projectRef } : void 0
|
|
1660
1661
|
);
|
|
1661
1662
|
const config = Config.parse(rawConfig);
|
|
1662
1663
|
return {
|
|
@@ -1681,11 +1682,13 @@ async function resolveConfig(path6, config) {
|
|
|
1681
1682
|
}
|
|
1682
1683
|
return config;
|
|
1683
1684
|
}
|
|
1684
|
-
async function normalizeConfig(config) {
|
|
1685
|
+
async function normalizeConfig(config, overrides) {
|
|
1686
|
+
let normalized = config;
|
|
1685
1687
|
if (typeof config === "function") {
|
|
1686
|
-
|
|
1688
|
+
normalized = await config();
|
|
1687
1689
|
}
|
|
1688
|
-
|
|
1690
|
+
normalized = { ...normalized, ...overrides };
|
|
1691
|
+
return normalized;
|
|
1689
1692
|
}
|
|
1690
1693
|
|
|
1691
1694
|
// src/utilities/initialBanner.ts
|
|
@@ -3297,7 +3300,7 @@ function configureDeployCommand(program2) {
|
|
|
3297
3300
|
"Detected missing environment variables won't block deployment"
|
|
3298
3301
|
).option("-c, --config <config file>", "The name of the config file, found at [path]").option(
|
|
3299
3302
|
"-p, --project-ref <project ref>",
|
|
3300
|
-
"The project ref. Required if there is no config file."
|
|
3303
|
+
"The project ref. Required if there is no config file. This will override the project specified in the config file."
|
|
3301
3304
|
)
|
|
3302
3305
|
).addOption(
|
|
3303
3306
|
new CommandOption(
|
|
@@ -3713,7 +3716,8 @@ async function buildAndPushImage(options, updater) {
|
|
|
3713
3716
|
const processCode = await new Promise((res, rej) => {
|
|
3714
3717
|
childProcess2.stderr?.on("data", (data) => {
|
|
3715
3718
|
const text3 = data.toString();
|
|
3716
|
-
|
|
3719
|
+
const lines = text3.split("\n").filter(Boolean);
|
|
3720
|
+
errors.push(...lines);
|
|
3717
3721
|
logger.debug(text3);
|
|
3718
3722
|
});
|
|
3719
3723
|
childProcess2.on("error", (e) => rej(e));
|
|
@@ -3867,13 +3871,12 @@ async function buildAndPushSelfHostedImage(options) {
|
|
|
3867
3871
|
});
|
|
3868
3872
|
}
|
|
3869
3873
|
function extractImageDigest(outputs) {
|
|
3870
|
-
const imageDigestRegex = /sha256:[a-f0-9]{64}/;
|
|
3874
|
+
const imageDigestRegex = /pushing manifest for .+(?<digest>sha256:[a-f0-9]{64})/;
|
|
3871
3875
|
for (const line of outputs) {
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
}
|
|
3876
|
+
const imageDigestMatch = line.match(imageDigestRegex);
|
|
3877
|
+
const digest = imageDigestMatch?.groups?.digest;
|
|
3878
|
+
if (digest) {
|
|
3879
|
+
return digest;
|
|
3877
3880
|
}
|
|
3878
3881
|
}
|
|
3879
3882
|
}
|