@trigger.dev/core 0.0.0-prerelease-20240823132052 → 0.0.0-prerelease-20240905123715
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/commonjs/v3/apiClient/index.d.ts +45 -45
- package/dist/commonjs/v3/build/extensions.d.ts +1 -1
- package/dist/commonjs/v3/build/extensions.js +2 -2
- package/dist/commonjs/v3/build/extensions.js.map +1 -1
- package/dist/commonjs/v3/build/runtime.d.ts +5 -0
- package/dist/commonjs/v3/build/runtime.js +19 -0
- package/dist/commonjs/v3/build/runtime.js.map +1 -1
- package/dist/commonjs/v3/config.d.ts +10 -0
- package/dist/commonjs/v3/schemas/api.d.ts +207 -207
- package/dist/commonjs/v3/schemas/build.d.ts +190 -170
- package/dist/commonjs/v3/schemas/build.js +2 -0
- package/dist/commonjs/v3/schemas/build.js.map +1 -1
- package/dist/commonjs/v3/schemas/fetch.d.ts +14 -14
- package/dist/commonjs/v3/schemas/messages.d.ts +2821 -2816
- package/dist/commonjs/v3/schemas/resources.d.ts +36 -36
- package/dist/commonjs/v3/schemas/schemas.d.ts +395 -395
- package/dist/commonjs/v3/workers/taskExecutor.js +0 -12
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +45 -45
- package/dist/esm/v3/build/extensions.d.ts +1 -1
- package/dist/esm/v3/build/extensions.js +1 -1
- package/dist/esm/v3/build/extensions.js.map +1 -1
- package/dist/esm/v3/build/runtime.d.ts +5 -0
- package/dist/esm/v3/build/runtime.js +18 -0
- package/dist/esm/v3/build/runtime.js.map +1 -1
- package/dist/esm/v3/config.d.ts +10 -0
- package/dist/esm/v3/schemas/api.d.ts +207 -207
- package/dist/esm/v3/schemas/build.d.ts +190 -170
- package/dist/esm/v3/schemas/build.js +2 -0
- package/dist/esm/v3/schemas/build.js.map +1 -1
- package/dist/esm/v3/schemas/fetch.d.ts +14 -14
- package/dist/esm/v3/schemas/messages.d.ts +2821 -2816
- package/dist/esm/v3/schemas/resources.d.ts +36 -36
- package/dist/esm/v3/schemas/schemas.d.ts +395 -395
- package/dist/esm/v3/workers/taskExecutor.js +0 -12
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -23,8 +23,8 @@ export declare class ApiClient {
|
|
|
23
23
|
id: string;
|
|
24
24
|
}>;
|
|
25
25
|
batchTriggerTask(taskId: string, body: BatchTriggerTaskRequestBody, options?: TriggerOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
26
|
-
runs: string[];
|
|
27
26
|
batchId: string;
|
|
27
|
+
runs: string[];
|
|
28
28
|
}>;
|
|
29
29
|
createUploadPayloadUrl(filename: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
30
30
|
presignedUrl: string;
|
|
@@ -33,13 +33,19 @@ export declare class ApiClient {
|
|
|
33
33
|
presignedUrl: string;
|
|
34
34
|
}>;
|
|
35
35
|
retrieveRun(runId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
36
|
-
status: "
|
|
36
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
37
37
|
id: string;
|
|
38
|
+
tags: string[];
|
|
39
|
+
isTest: boolean;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
durationMs: number;
|
|
42
|
+
costInCents: number;
|
|
43
|
+
baseCostInCents: number;
|
|
38
44
|
attempts: ({
|
|
39
|
-
status: "PENDING" | "
|
|
45
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
40
46
|
id: string;
|
|
41
|
-
updatedAt: Date;
|
|
42
47
|
createdAt: Date;
|
|
48
|
+
updatedAt: Date;
|
|
43
49
|
startedAt?: Date | undefined;
|
|
44
50
|
completedAt?: Date | undefined;
|
|
45
51
|
error?: {
|
|
@@ -49,12 +55,6 @@ export declare class ApiClient {
|
|
|
49
55
|
} | undefined;
|
|
50
56
|
} | undefined)[];
|
|
51
57
|
updatedAt: Date;
|
|
52
|
-
isTest: boolean;
|
|
53
|
-
createdAt: Date;
|
|
54
|
-
tags: string[];
|
|
55
|
-
durationMs: number;
|
|
56
|
-
costInCents: number;
|
|
57
|
-
baseCostInCents: number;
|
|
58
58
|
taskIdentifier: string;
|
|
59
59
|
isQueued: boolean;
|
|
60
60
|
isExecuting: boolean;
|
|
@@ -70,8 +70,8 @@ export declare class ApiClient {
|
|
|
70
70
|
id: string;
|
|
71
71
|
generator: {
|
|
72
72
|
type: "CRON";
|
|
73
|
-
description: string;
|
|
74
73
|
expression: string;
|
|
74
|
+
description: string;
|
|
75
75
|
};
|
|
76
76
|
externalId?: string | undefined;
|
|
77
77
|
deduplicationKey?: string | undefined;
|
|
@@ -93,13 +93,19 @@ export declare class ApiClient {
|
|
|
93
93
|
id: string;
|
|
94
94
|
}>;
|
|
95
95
|
rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
96
|
-
status: "
|
|
96
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
97
97
|
id: string;
|
|
98
|
+
tags: string[];
|
|
99
|
+
isTest: boolean;
|
|
100
|
+
createdAt: Date;
|
|
101
|
+
durationMs: number;
|
|
102
|
+
costInCents: number;
|
|
103
|
+
baseCostInCents: number;
|
|
98
104
|
attempts: ({
|
|
99
|
-
status: "PENDING" | "
|
|
105
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
100
106
|
id: string;
|
|
101
|
-
updatedAt: Date;
|
|
102
107
|
createdAt: Date;
|
|
108
|
+
updatedAt: Date;
|
|
103
109
|
startedAt?: Date | undefined;
|
|
104
110
|
completedAt?: Date | undefined;
|
|
105
111
|
error?: {
|
|
@@ -109,12 +115,6 @@ export declare class ApiClient {
|
|
|
109
115
|
} | undefined;
|
|
110
116
|
} | undefined)[];
|
|
111
117
|
updatedAt: Date;
|
|
112
|
-
isTest: boolean;
|
|
113
|
-
createdAt: Date;
|
|
114
|
-
tags: string[];
|
|
115
|
-
durationMs: number;
|
|
116
|
-
costInCents: number;
|
|
117
|
-
baseCostInCents: number;
|
|
118
118
|
taskIdentifier: string;
|
|
119
119
|
isQueued: boolean;
|
|
120
120
|
isExecuting: boolean;
|
|
@@ -130,8 +130,8 @@ export declare class ApiClient {
|
|
|
130
130
|
id: string;
|
|
131
131
|
generator: {
|
|
132
132
|
type: "CRON";
|
|
133
|
-
description: string;
|
|
134
133
|
expression: string;
|
|
134
|
+
description: string;
|
|
135
135
|
};
|
|
136
136
|
externalId?: string | undefined;
|
|
137
137
|
deduplicationKey?: string | undefined;
|
|
@@ -149,14 +149,14 @@ export declare class ApiClient {
|
|
|
149
149
|
}>;
|
|
150
150
|
createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
151
151
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
152
|
+
timezone: string;
|
|
152
153
|
id: string;
|
|
153
|
-
active: boolean;
|
|
154
154
|
task: string;
|
|
155
|
-
|
|
155
|
+
active: boolean;
|
|
156
156
|
generator: {
|
|
157
157
|
type: "CRON";
|
|
158
|
-
description: string;
|
|
159
158
|
expression: string;
|
|
159
|
+
description: string;
|
|
160
160
|
};
|
|
161
161
|
environments: {
|
|
162
162
|
type: string;
|
|
@@ -180,12 +180,12 @@ export declare class ApiClient {
|
|
|
180
180
|
description: z.ZodString;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
182
|
type: "CRON";
|
|
183
|
-
description: string;
|
|
184
183
|
expression: string;
|
|
184
|
+
description: string;
|
|
185
185
|
}, {
|
|
186
186
|
type: "CRON";
|
|
187
|
-
description: string;
|
|
188
187
|
expression: string;
|
|
188
|
+
description: string;
|
|
189
189
|
}>;
|
|
190
190
|
timezone: z.ZodString;
|
|
191
191
|
nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -204,14 +204,14 @@ export declare class ApiClient {
|
|
|
204
204
|
}>, "many">;
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
207
|
+
timezone: string;
|
|
207
208
|
id: string;
|
|
208
|
-
active: boolean;
|
|
209
209
|
task: string;
|
|
210
|
-
|
|
210
|
+
active: boolean;
|
|
211
211
|
generator: {
|
|
212
212
|
type: "CRON";
|
|
213
|
-
description: string;
|
|
214
213
|
expression: string;
|
|
214
|
+
description: string;
|
|
215
215
|
};
|
|
216
216
|
environments: {
|
|
217
217
|
type: string;
|
|
@@ -223,14 +223,14 @@ export declare class ApiClient {
|
|
|
223
223
|
nextRun?: Date | null | undefined;
|
|
224
224
|
}, {
|
|
225
225
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
226
|
+
timezone: string;
|
|
226
227
|
id: string;
|
|
227
|
-
active: boolean;
|
|
228
228
|
task: string;
|
|
229
|
-
|
|
229
|
+
active: boolean;
|
|
230
230
|
generator: {
|
|
231
231
|
type: "CRON";
|
|
232
|
-
description: string;
|
|
233
232
|
expression: string;
|
|
233
|
+
description: string;
|
|
234
234
|
};
|
|
235
235
|
environments: {
|
|
236
236
|
type: string;
|
|
@@ -243,14 +243,14 @@ export declare class ApiClient {
|
|
|
243
243
|
}>>;
|
|
244
244
|
retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
245
245
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
246
|
+
timezone: string;
|
|
246
247
|
id: string;
|
|
247
|
-
active: boolean;
|
|
248
248
|
task: string;
|
|
249
|
-
|
|
249
|
+
active: boolean;
|
|
250
250
|
generator: {
|
|
251
251
|
type: "CRON";
|
|
252
|
-
description: string;
|
|
253
252
|
expression: string;
|
|
253
|
+
description: string;
|
|
254
254
|
};
|
|
255
255
|
environments: {
|
|
256
256
|
type: string;
|
|
@@ -263,14 +263,14 @@ export declare class ApiClient {
|
|
|
263
263
|
}>;
|
|
264
264
|
updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
265
265
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
266
|
+
timezone: string;
|
|
266
267
|
id: string;
|
|
267
|
-
active: boolean;
|
|
268
268
|
task: string;
|
|
269
|
-
|
|
269
|
+
active: boolean;
|
|
270
270
|
generator: {
|
|
271
271
|
type: "CRON";
|
|
272
|
-
description: string;
|
|
273
272
|
expression: string;
|
|
273
|
+
description: string;
|
|
274
274
|
};
|
|
275
275
|
environments: {
|
|
276
276
|
type: string;
|
|
@@ -283,14 +283,14 @@ export declare class ApiClient {
|
|
|
283
283
|
}>;
|
|
284
284
|
deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
285
285
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
286
|
+
timezone: string;
|
|
286
287
|
id: string;
|
|
287
|
-
active: boolean;
|
|
288
288
|
task: string;
|
|
289
|
-
|
|
289
|
+
active: boolean;
|
|
290
290
|
generator: {
|
|
291
291
|
type: "CRON";
|
|
292
|
-
description: string;
|
|
293
292
|
expression: string;
|
|
293
|
+
description: string;
|
|
294
294
|
};
|
|
295
295
|
environments: {
|
|
296
296
|
type: string;
|
|
@@ -303,14 +303,14 @@ export declare class ApiClient {
|
|
|
303
303
|
}>;
|
|
304
304
|
activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
305
305
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
306
|
+
timezone: string;
|
|
306
307
|
id: string;
|
|
307
|
-
active: boolean;
|
|
308
308
|
task: string;
|
|
309
|
-
|
|
309
|
+
active: boolean;
|
|
310
310
|
generator: {
|
|
311
311
|
type: "CRON";
|
|
312
|
-
description: string;
|
|
313
312
|
expression: string;
|
|
313
|
+
description: string;
|
|
314
314
|
};
|
|
315
315
|
environments: {
|
|
316
316
|
type: string;
|
|
@@ -325,8 +325,8 @@ export declare class ApiClient {
|
|
|
325
325
|
id: string;
|
|
326
326
|
}>;
|
|
327
327
|
listEnvVars(projectRef: string, slug: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
328
|
-
value: string;
|
|
329
328
|
name: string;
|
|
329
|
+
value: string;
|
|
330
330
|
}[]>;
|
|
331
331
|
importEnvVars(projectRef: string, slug: string, body: ImportEnvironmentVariablesParams, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
332
332
|
success: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuildManifest, BuildTarget } from "../schemas/build.js";
|
|
2
2
|
import type { Plugin } from "esbuild";
|
|
3
3
|
import { ResolvedConfig } from "./resolvedConfig.js";
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function esbuildPlugin(plugin: Plugin, options?: RegisterPluginOptions): BuildExtension;
|
|
5
5
|
export interface BuildExtension {
|
|
6
6
|
name: string;
|
|
7
7
|
externalsForTarget?: (target: BuildTarget) => string[] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.esbuildPlugin = esbuildPlugin;
|
|
4
|
+
function esbuildPlugin(plugin, options = {}) {
|
|
5
5
|
return {
|
|
6
6
|
name: plugin.name,
|
|
7
7
|
onBuildStart(context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../../src/v3/build/extensions.ts"],"names":[],"mappings":";;AAIA,
|
|
1
|
+
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../../src/v3/build/extensions.ts"],"names":[],"mappings":";;AAIA,sCAOC;AAPD,SAAgB,aAAa,CAAC,MAAc,EAAE,UAAiC,EAAE;IAC/E,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,YAAY,CAAC,OAAO;YAClB,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC1C,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -2,3 +2,8 @@ import { BuildRuntime } from "../schemas/build.js";
|
|
|
2
2
|
export declare const DEFAULT_RUNTIME: BuildRuntime;
|
|
3
3
|
export declare function binaryForRuntime(runtime: BuildRuntime): string;
|
|
4
4
|
export declare function execPathForRuntime(runtime: BuildRuntime): string;
|
|
5
|
+
export type ExecOptions = {
|
|
6
|
+
loaderEntryPoint?: string;
|
|
7
|
+
customConditions?: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare function execOptionsForRuntime(runtime: BuildRuntime, options: ExecOptions): string;
|
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DEFAULT_RUNTIME = void 0;
|
|
4
4
|
exports.binaryForRuntime = binaryForRuntime;
|
|
5
5
|
exports.execPathForRuntime = execPathForRuntime;
|
|
6
|
+
exports.execOptionsForRuntime = execOptionsForRuntime;
|
|
6
7
|
const node_path_1 = require("node:path");
|
|
8
|
+
const url_1 = require("url");
|
|
7
9
|
exports.DEFAULT_RUNTIME = "node";
|
|
8
10
|
function binaryForRuntime(runtime) {
|
|
9
11
|
switch (runtime) {
|
|
@@ -31,4 +33,21 @@ function execPathForRuntime(runtime) {
|
|
|
31
33
|
throw new Error(`Unsupported runtime ${runtime}`);
|
|
32
34
|
}
|
|
33
35
|
}
|
|
36
|
+
function execOptionsForRuntime(runtime, options) {
|
|
37
|
+
switch (runtime) {
|
|
38
|
+
case "node": {
|
|
39
|
+
const importEntryPoint = options.loaderEntryPoint
|
|
40
|
+
? `--import=${(0, url_1.pathToFileURL)(options.loaderEntryPoint).href}`
|
|
41
|
+
: undefined;
|
|
42
|
+
const conditions = options.customConditions?.map((condition) => `--conditions=${condition}`);
|
|
43
|
+
return [importEntryPoint, conditions, process.env.NODE_OPTIONS]
|
|
44
|
+
.filter(Boolean)
|
|
45
|
+
.flat()
|
|
46
|
+
.join(" ");
|
|
47
|
+
}
|
|
48
|
+
case "bun": {
|
|
49
|
+
return "";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
34
53
|
//# sourceMappingURL=runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../../src/v3/build/runtime.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../../src/v3/build/runtime.ts"],"names":[],"mappings":";;;AAMA,4CASC;AAED,gDAiBC;AAOD,sDAkBC;AA3DD,yCAAiC;AACjC,6BAAoC;AAGvB,QAAA,eAAe,GAAiB,MAAM,CAAC;AAEpD,SAAgB,gBAAgB,CAAC,OAAqB;IACpD,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QACf;YACE,MAAM,IAAI,KAAK,CAAC,uBAAuB,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;AACH,CAAC;AAED,SAAgB,kBAAkB,CAAC,OAAqB;IACtD,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,OAAO,CAAC,QAAQ,CAAC;QAC1B,KAAK,KAAK;YACR,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;gBAChD,OAAO,IAAA,gBAAI,EAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;YACrD,CAAC;YAED,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,QAAQ,EAAE,CAAC;gBACpD,OAAO,IAAA,gBAAI,EAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;YAClD,CAAC;YAED,OAAO,IAAA,gBAAI,EAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QACzC;YACE,MAAM,IAAI,KAAK,CAAC,uBAAuB,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;AACH,CAAC;AAOD,SAAgB,qBAAqB,CAAC,OAAqB,EAAE,OAAoB;IAC/E,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,MAAM,CAAC,CAAC,CAAC;YACZ,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB;gBAC/C,CAAC,CAAC,YAAY,IAAA,mBAAa,EAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,IAAI,EAAE;gBAC5D,CAAC,CAAC,SAAS,CAAC;YAEd,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,gBAAgB,SAAS,EAAE,CAAC,CAAC;YAE7F,OAAO,CAAC,gBAAgB,EAAE,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;iBAC5D,MAAM,CAAC,OAAO,CAAC;iBACf,IAAI,EAAE;iBACN,IAAI,CAAC,GAAG,CAAC,CAAC;QACf,CAAC;QACD,KAAK,KAAK,CAAC,CAAC,CAAC;YACX,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -35,6 +35,16 @@ export type TriggerConfig = {
|
|
|
35
35
|
*/
|
|
36
36
|
enableConsoleLogging?: boolean;
|
|
37
37
|
build?: {
|
|
38
|
+
/**
|
|
39
|
+
* Add custom conditions to the esbuild build. For example, if you are importing `ai/rsc`, you'll need to add "react-server" condition.
|
|
40
|
+
*
|
|
41
|
+
* By default we add the following conditions:
|
|
42
|
+
*
|
|
43
|
+
* - "trigger.dev"
|
|
44
|
+
* - "module"
|
|
45
|
+
* - "node"
|
|
46
|
+
*/
|
|
47
|
+
conditions?: string[];
|
|
38
48
|
extensions?: BuildExtension[];
|
|
39
49
|
external?: string[];
|
|
40
50
|
jsx?: {
|