trigger.dev 0.0.0-v3-prerelease-20240425102616 → 0.0.0-v3-prerelease-20240427071154
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 = "0.0.0-v3-prerelease-
|
|
802
|
+
var version = "0.0.0-v3-prerelease-20240427071154";
|
|
803
803
|
var dependencies = {
|
|
804
804
|
"@anatine/esbuild-decorators": "^0.2.19",
|
|
805
805
|
"@clack/prompts": "^0.7.0",
|
|
@@ -816,7 +816,7 @@ var dependencies = {
|
|
|
816
816
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
817
817
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
818
818
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
819
|
-
"@trigger.dev/core": "workspace:0.0.0-v3-prerelease-
|
|
819
|
+
"@trigger.dev/core": "workspace:0.0.0-v3-prerelease-20240427071154",
|
|
820
820
|
"@types/degit": "^2.8.3",
|
|
821
821
|
chalk: "^5.2.0",
|
|
822
822
|
chokidar: "^3.5.3",
|
|
@@ -855,7 +855,8 @@ var dependencies = {
|
|
|
855
855
|
url: "^0.11.1",
|
|
856
856
|
ws: "^8.12.0",
|
|
857
857
|
zod: "3.22.3",
|
|
858
|
-
"zod-validation-error": "^1.5.0"
|
|
858
|
+
"zod-validation-error": "^1.5.0",
|
|
859
|
+
typescript: "^5.4.0"
|
|
859
860
|
};
|
|
860
861
|
var package_default = {
|
|
861
862
|
name: "trigger.dev",
|
|
@@ -3682,7 +3683,8 @@ var DeployCommandOptions = CommonCommandOptions.extend({
|
|
|
3682
3683
|
outputMetafile: z4.string().optional(),
|
|
3683
3684
|
apiUrl: z4.string().optional(),
|
|
3684
3685
|
saveLogs: z4.boolean().default(false),
|
|
3685
|
-
skipUpdateCheck: z4.boolean().default(false)
|
|
3686
|
+
skipUpdateCheck: z4.boolean().default(false),
|
|
3687
|
+
noCache: z4.boolean().default(false)
|
|
3686
3688
|
});
|
|
3687
3689
|
function configureDeployCommand(program2) {
|
|
3688
3690
|
return commonOptions(
|
|
@@ -3699,6 +3701,11 @@ function configureDeployCommand(program2) {
|
|
|
3699
3701
|
"--self-hosted",
|
|
3700
3702
|
"Build and load the image using your local Docker. Use the --registry option to specify the registry to push the image to when using --self-hosted, or just use --push-image to push to the default registry."
|
|
3701
3703
|
).hideHelp()
|
|
3704
|
+
).addOption(
|
|
3705
|
+
new CommandOption(
|
|
3706
|
+
"--no-cache",
|
|
3707
|
+
"Do not use the cache when building the image. This will slow down the build process but can be useful if you are experiencing issues with the cache."
|
|
3708
|
+
).hideHelp()
|
|
3702
3709
|
).addOption(
|
|
3703
3710
|
new CommandOption(
|
|
3704
3711
|
"--push",
|
|
@@ -3835,7 +3842,8 @@ async function _deployCommand(dir, options) {
|
|
|
3835
3842
|
projectRef: resolvedConfig.config.project,
|
|
3836
3843
|
buildPlatform: options.buildPlatform,
|
|
3837
3844
|
pushImage: options.push,
|
|
3838
|
-
selfHostedRegistry: !!options.registry
|
|
3845
|
+
selfHostedRegistry: !!options.registry,
|
|
3846
|
+
noCache: options.noCache
|
|
3839
3847
|
});
|
|
3840
3848
|
}
|
|
3841
3849
|
if (!deploymentResponse.data.externalBuildData) {
|
|
@@ -3858,7 +3866,8 @@ async function _deployCommand(dir, options) {
|
|
|
3858
3866
|
contentHash: deploymentResponse.data.contentHash,
|
|
3859
3867
|
projectRef: resolvedConfig.config.project,
|
|
3860
3868
|
loadImage: options.loadImage,
|
|
3861
|
-
buildPlatform: options.buildPlatform
|
|
3869
|
+
buildPlatform: options.buildPlatform,
|
|
3870
|
+
noCache: options.noCache
|
|
3862
3871
|
},
|
|
3863
3872
|
deploymentSpinner
|
|
3864
3873
|
);
|
|
@@ -3911,7 +3920,8 @@ async function _deployCommand(dir, options) {
|
|
|
3911
3920
|
const startIndexingResponse = await environmentClient.startDeploymentIndexing(
|
|
3912
3921
|
deploymentResponse.data.id,
|
|
3913
3922
|
{
|
|
3914
|
-
imageReference
|
|
3923
|
+
imageReference,
|
|
3924
|
+
selfHosted: options.selfHosted
|
|
3915
3925
|
}
|
|
3916
3926
|
);
|
|
3917
3927
|
if (!startIndexingResponse.success) {
|
|
@@ -4171,6 +4181,7 @@ async function buildAndPushImage(options, updater) {
|
|
|
4171
4181
|
"build",
|
|
4172
4182
|
"-f",
|
|
4173
4183
|
"Containerfile",
|
|
4184
|
+
options.noCache ? "--no-cache" : void 0,
|
|
4174
4185
|
"--platform",
|
|
4175
4186
|
options.buildPlatform,
|
|
4176
4187
|
"--provenance",
|
|
@@ -4262,6 +4273,7 @@ async function buildAndPushSelfHostedImage(options) {
|
|
|
4262
4273
|
"build",
|
|
4263
4274
|
"-f",
|
|
4264
4275
|
"Containerfile",
|
|
4276
|
+
options.noCache ? "--no-cache" : void 0,
|
|
4265
4277
|
"--platform",
|
|
4266
4278
|
options.buildPlatform,
|
|
4267
4279
|
"--build-arg",
|
|
@@ -4279,7 +4291,9 @@ async function buildAndPushSelfHostedImage(options) {
|
|
|
4279
4291
|
"."
|
|
4280
4292
|
// The build context
|
|
4281
4293
|
].filter(Boolean);
|
|
4282
|
-
logger.debug(`docker ${buildArgs.join(" ")}
|
|
4294
|
+
logger.debug(`docker ${buildArgs.join(" ")}`, {
|
|
4295
|
+
cwd: options.cwd
|
|
4296
|
+
});
|
|
4283
4297
|
span.setAttribute("docker.command.build", `docker ${buildArgs.join(" ")}`);
|
|
4284
4298
|
const buildProcess = execa2("docker", buildArgs, {
|
|
4285
4299
|
cwd: options.cwd
|
|
@@ -4430,6 +4444,9 @@ async function compileProject(config, options, configPath) {
|
|
|
4430
4444
|
// This is needed to support opentelemetry instrumentation that uses module patching
|
|
4431
4445
|
target: ["node18", "es2020"],
|
|
4432
4446
|
outdir: "out",
|
|
4447
|
+
banner: {
|
|
4448
|
+
js: `process.on("uncaughtException", function(error, origin) { process.send && process.send({ type: "EVENT", message: { type: "UNCAUGHT_EXCEPTION", payload: { error: { name: error.name, message: error.message, stack: error.stack }, origin }, version: "v1" } }); });`
|
|
4449
|
+
},
|
|
4433
4450
|
define: {
|
|
4434
4451
|
TRIGGER_API_URL: `"${config.triggerUrl}"`,
|
|
4435
4452
|
__PROJECT_CONFIG__: JSON.stringify(config)
|
|
@@ -5762,6 +5779,9 @@ function useDev({
|
|
|
5762
5779
|
resolveDir: process.cwd(),
|
|
5763
5780
|
sourcefile: "__entryPoint.ts"
|
|
5764
5781
|
},
|
|
5782
|
+
banner: {
|
|
5783
|
+
js: `process.on("uncaughtException", function(error, origin) { process.send && process.send({ type: "UNCAUGHT_EXCEPTION", payload: { error: { name: error.name, message: error.message, stack: error.stack }, origin }, version: "v1" }); });`
|
|
5784
|
+
},
|
|
5765
5785
|
bundle: true,
|
|
5766
5786
|
metafile: true,
|
|
5767
5787
|
write: false,
|