trigger.dev 3.0.0-beta.19 → 3.0.0-beta.20
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
|
@@ -799,7 +799,7 @@ import invariant from "tiny-invariant";
|
|
|
799
799
|
import { z as z4 } from "zod";
|
|
800
800
|
|
|
801
801
|
// package.json
|
|
802
|
-
var version = "3.0.0-beta.
|
|
802
|
+
var version = "3.0.0-beta.20";
|
|
803
803
|
var dependencies = {
|
|
804
804
|
"@clack/prompts": "^0.7.0",
|
|
805
805
|
"@depot/cli": "0.0.1-cli.2.55.0",
|
|
@@ -815,7 +815,7 @@ var dependencies = {
|
|
|
815
815
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
816
816
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
817
817
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
818
|
-
"@trigger.dev/core": "workspace:3.0.0-beta.
|
|
818
|
+
"@trigger.dev/core": "workspace:3.0.0-beta.20",
|
|
819
819
|
"@types/degit": "^2.8.3",
|
|
820
820
|
chalk: "^5.2.0",
|
|
821
821
|
chokidar: "^3.5.3",
|
|
@@ -1802,14 +1802,18 @@ After installation, run Trigger.dev with \`npx trigger.dev\`.`
|
|
|
1802
1802
|
}
|
|
1803
1803
|
async function printStandloneInitialBanner(performUpdateCheck = true) {
|
|
1804
1804
|
const cliVersion = getVersion();
|
|
1805
|
-
logger.log(`
|
|
1806
|
-
${logo()} ${chalkGrey(`(${cliVersion})`)}
|
|
1807
|
-
`);
|
|
1808
1805
|
if (performUpdateCheck) {
|
|
1809
1806
|
const maybeNewVersion = await updateCheck();
|
|
1810
1807
|
if (maybeNewVersion !== void 0) {
|
|
1811
|
-
logger.log(`
|
|
1808
|
+
logger.log(`
|
|
1809
|
+
${logo()} ${chalkGrey(`(${cliVersion} -> ${chalk3.green(maybeNewVersion)})`)}`);
|
|
1810
|
+
} else {
|
|
1811
|
+
logger.log(`
|
|
1812
|
+
${logo()} ${chalkGrey(`(${cliVersion})`)}`);
|
|
1812
1813
|
}
|
|
1814
|
+
} else {
|
|
1815
|
+
logger.log(`
|
|
1816
|
+
${logo()} ${chalkGrey(`(${cliVersion})`)}`);
|
|
1813
1817
|
}
|
|
1814
1818
|
logger.log(`${chalkGrey("-".repeat(54))}`);
|
|
1815
1819
|
}
|
|
@@ -3475,6 +3479,7 @@ async function updateCommand(dir, options) {
|
|
|
3475
3479
|
await updateTriggerPackages(dir, options);
|
|
3476
3480
|
}
|
|
3477
3481
|
async function updateTriggerPackages(dir, options, embedded, requireUpdate) {
|
|
3482
|
+
let hasOutput = false;
|
|
3478
3483
|
if (!embedded) {
|
|
3479
3484
|
intro3("Updating packages");
|
|
3480
3485
|
}
|
|
@@ -3482,7 +3487,7 @@ async function updateTriggerPackages(dir, options, embedded, requireUpdate) {
|
|
|
3482
3487
|
const { packageJson, readonlyPackageJson, packageJsonPath } = await getPackageJson(projectPath);
|
|
3483
3488
|
if (!packageJson) {
|
|
3484
3489
|
log4.error("Failed to load package.json. Try to re-run with `-l debug` to see what's going on.");
|
|
3485
|
-
return;
|
|
3490
|
+
return false;
|
|
3486
3491
|
}
|
|
3487
3492
|
const cliVersion = getVersion();
|
|
3488
3493
|
const newCliVersion = await updateCheck();
|
|
@@ -3493,6 +3498,7 @@ async function updateTriggerPackages(dir, options, embedded, requireUpdate) {
|
|
|
3493
3498
|
Latest: ${newCliVersion}`,
|
|
3494
3499
|
"Run latest: npx trigger.dev@beta"
|
|
3495
3500
|
);
|
|
3501
|
+
hasOutput = true;
|
|
3496
3502
|
}
|
|
3497
3503
|
const triggerDependencies = getTriggerDependencies(packageJson);
|
|
3498
3504
|
function getVersionMismatches(deps, targetVersion) {
|
|
@@ -3509,8 +3515,9 @@ Latest: ${newCliVersion}`,
|
|
|
3509
3515
|
if (versionMismatches.length === 0) {
|
|
3510
3516
|
if (!embedded) {
|
|
3511
3517
|
outro4(`Nothing to do${newCliVersion ? " ..but you should really update your CLI!" : ""}`);
|
|
3518
|
+
return hasOutput;
|
|
3512
3519
|
}
|
|
3513
|
-
return;
|
|
3520
|
+
return hasOutput;
|
|
3514
3521
|
}
|
|
3515
3522
|
prettyWarning(
|
|
3516
3523
|
"Mismatch between your CLI version and installed packages",
|
|
@@ -3552,7 +3559,7 @@ Latest: ${newCliVersion}`,
|
|
|
3552
3559
|
if (!embedded) {
|
|
3553
3560
|
outro4("You've been warned!");
|
|
3554
3561
|
}
|
|
3555
|
-
return;
|
|
3562
|
+
return hasOutput;
|
|
3556
3563
|
}
|
|
3557
3564
|
const installSpinner = spinner();
|
|
3558
3565
|
installSpinner.start("Writing new package.json file");
|
|
@@ -3593,6 +3600,7 @@ Latest: ${newCliVersion}`,
|
|
|
3593
3600
|
`Packages updated${newCliVersion ? " ..but you should really update your CLI too!" : ""}`
|
|
3594
3601
|
);
|
|
3595
3602
|
}
|
|
3603
|
+
return hasOutput;
|
|
3596
3604
|
}
|
|
3597
3605
|
function getTriggerDependencies(packageJson) {
|
|
3598
3606
|
const deps = [];
|
|
@@ -5539,11 +5547,11 @@ async function startDev(dir, options, authorization, dashboardUrl) {
|
|
|
5539
5547
|
logger.loggerLevel = options.logLevel;
|
|
5540
5548
|
}
|
|
5541
5549
|
await printStandloneInitialBanner(true);
|
|
5550
|
+
let displayedUpdateMessage = false;
|
|
5542
5551
|
if (!options.skipUpdateCheck) {
|
|
5543
|
-
|
|
5544
|
-
await updateTriggerPackages(dir, { ...options }, true, true);
|
|
5552
|
+
displayedUpdateMessage = await updateTriggerPackages(dir, { ...options }, true, true);
|
|
5545
5553
|
}
|
|
5546
|
-
printDevBanner(
|
|
5554
|
+
printDevBanner(displayedUpdateMessage);
|
|
5547
5555
|
logger.debug("Starting dev session", { dir, options, authorization });
|
|
5548
5556
|
let config = await readConfig(dir, {
|
|
5549
5557
|
projectRef: options.projectRef,
|