trigger.dev 0.0.0-v3-prerelease-20240628191401 → 0.0.0-v3-prerelease-20240701153550
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
|
@@ -798,7 +798,7 @@ import invariant from "tiny-invariant";
|
|
|
798
798
|
import { z as z4 } from "zod";
|
|
799
799
|
|
|
800
800
|
// package.json
|
|
801
|
-
var version = "0.0.0-v3-prerelease-
|
|
801
|
+
var version = "0.0.0-v3-prerelease-20240701153550";
|
|
802
802
|
var dependencies = {
|
|
803
803
|
"@anatine/esbuild-decorators": "^0.2.19",
|
|
804
804
|
"@clack/prompts": "^0.7.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:0.0.0-v3-prerelease-
|
|
818
|
+
"@trigger.dev/core": "workspace:0.0.0-v3-prerelease-20240701153550",
|
|
819
819
|
"@types/degit": "^2.8.3",
|
|
820
820
|
chalk: "^5.2.0",
|
|
821
821
|
chokidar: "^3.5.3",
|
|
@@ -3348,6 +3348,7 @@ async function detectPackageManagerFromArtifacts(path7) {
|
|
|
3348
3348
|
case LOCKFILES.npm:
|
|
3349
3349
|
case LOCKFILES.npmShrinkwrap:
|
|
3350
3350
|
logger.debug("Found npm artifact", { foundPath });
|
|
3351
|
+
return "npm";
|
|
3351
3352
|
case LOCKFILES.bun:
|
|
3352
3353
|
logger.debug("Found bun artifact", { foundPath });
|
|
3353
3354
|
return "npm";
|
|
@@ -4306,6 +4307,10 @@ ${authorization.error}`
|
|
|
4306
4307
|
"View deployment",
|
|
4307
4308
|
`${authorization.dashboardUrl}/projects/v3/${resolvedConfig.config.project}/deployments/${finishedDeployment.shortCode}`
|
|
4308
4309
|
);
|
|
4310
|
+
const testLink = cliLink(
|
|
4311
|
+
"Test tasks",
|
|
4312
|
+
`${authorization.dashboardUrl}/projects/v3/${resolvedConfig.config.project}/test?environment=${options.env === "prod" ? "prod" : "stg"}`
|
|
4313
|
+
);
|
|
4309
4314
|
switch (finishedDeployment.status) {
|
|
4310
4315
|
case "DEPLOYED": {
|
|
4311
4316
|
if (warnings.warnings.length > 0) {
|
|
@@ -4321,7 +4326,7 @@ ${authorization.error}`
|
|
|
4321
4326
|
);
|
|
4322
4327
|
} else {
|
|
4323
4328
|
outro5(
|
|
4324
|
-
`Version ${version2} deployed with ${taskCount} detected task${taskCount === 1 ? "" : "s"} ${deploymentLink}`
|
|
4329
|
+
`Version ${version2} deployed with ${taskCount} detected task${taskCount === 1 ? "" : "s"} | ${deploymentLink} | ${testLink}`
|
|
4325
4330
|
);
|
|
4326
4331
|
}
|
|
4327
4332
|
break;
|
|
@@ -5420,7 +5425,7 @@ var SigKillTimeoutProcessError = class extends Error {
|
|
|
5420
5425
|
this.name = "SigKillTimeoutProcessError";
|
|
5421
5426
|
}
|
|
5422
5427
|
};
|
|
5423
|
-
function getFriendlyErrorMessage(code, signal, stderr) {
|
|
5428
|
+
function getFriendlyErrorMessage(code, signal, stderr, dockerMode = true) {
|
|
5424
5429
|
const message = (text3) => {
|
|
5425
5430
|
if (signal) {
|
|
5426
5431
|
return `[${signal}] ${text3}`;
|
|
@@ -5428,7 +5433,18 @@ function getFriendlyErrorMessage(code, signal, stderr) {
|
|
|
5428
5433
|
return text3;
|
|
5429
5434
|
}
|
|
5430
5435
|
};
|
|
5431
|
-
if (code === 137
|
|
5436
|
+
if (code === 137) {
|
|
5437
|
+
if (dockerMode) {
|
|
5438
|
+
return message(
|
|
5439
|
+
"Process ran out of memory! Try choosing a machine preset with more memory for this task."
|
|
5440
|
+
);
|
|
5441
|
+
} else {
|
|
5442
|
+
return message(
|
|
5443
|
+
"Process most likely ran out of memory, but we can't be certain. Try choosing a machine preset with more memory for this task."
|
|
5444
|
+
);
|
|
5445
|
+
}
|
|
5446
|
+
}
|
|
5447
|
+
if (stderr?.includes("OOMErrorHandler")) {
|
|
5432
5448
|
return message(
|
|
5433
5449
|
"Process ran out of memory! Try choosing a machine preset with more memory for this task."
|
|
5434
5450
|
);
|
|
@@ -6823,13 +6839,18 @@ ${stderr}`);
|
|
|
6823
6839
|
logger.error(error);
|
|
6824
6840
|
});
|
|
6825
6841
|
return () => {
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6842
|
+
const cleanup = async () => {
|
|
6843
|
+
logger.debug(`Shutting down dev session for ${config.project}`);
|
|
6844
|
+
const start = Date.now();
|
|
6845
|
+
await taskFileWatcher.close();
|
|
6846
|
+
websocket?.close();
|
|
6847
|
+
backgroundWorkerCoordinator.close();
|
|
6848
|
+
ctx?.dispose().catch((error) => {
|
|
6849
|
+
console.error(error);
|
|
6850
|
+
});
|
|
6851
|
+
logger.debug(`Shutdown completed in ${Date.now() - start}ms`);
|
|
6852
|
+
};
|
|
6853
|
+
cleanup();
|
|
6833
6854
|
};
|
|
6834
6855
|
}, [config, apiUrl, apiKey, environmentClient]);
|
|
6835
6856
|
}
|