@trigger.dev/build 0.0.0-v3-prerelease-20240912191953 → 0.0.0-v3-prerelease-20240913125036

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.
@@ -0,0 +1,5 @@
1
+ import { BuildExtension } from "@trigger.dev/core/v3/build";
2
+ export type AptGetOptions = {
3
+ packages: string[];
4
+ };
5
+ export declare function aptGet(options: AptGetOptions): BuildExtension;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aptGet = aptGet;
4
+ function aptGet(options) {
5
+ return {
6
+ name: "aptGet",
7
+ onBuildComplete(context) {
8
+ if (context.target === "dev") {
9
+ return;
10
+ }
11
+ context.logger.debug("Adding apt-get layer", {
12
+ pkgs: options.packages,
13
+ });
14
+ context.addLayer({
15
+ id: "apt-get",
16
+ image: {
17
+ pkgs: options.packages,
18
+ },
19
+ });
20
+ },
21
+ };
22
+ }
23
+ //# sourceMappingURL=aptGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aptGet.js","sourceRoot":"","sources":["../../../../src/extensions/core/aptGet.ts"],"names":[],"mappings":";;AAMA,wBAoBC;AApBD,SAAgB,MAAM,CAAC,OAAsB;IAC3C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,eAAe,CAAC,OAAO;YACrB,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;gBAC7B,OAAO;YACT,CAAC;YAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,EAAE;gBAC3C,IAAI,EAAE,OAAO,CAAC,QAAQ;aACvB,CAAC,CAAC;YAEH,OAAO,CAAC,QAAQ,CAAC;gBACf,EAAE,EAAE,SAAS;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO,CAAC,QAAQ;iBACvB;aACF,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { BuildExtension } from "@trigger.dev/core/v3/build";
2
+ export type FfmpegOptions = {
3
+ version?: string;
4
+ };
5
+ /**
6
+ * Add ffmpeg to the build, and automatically set the FFMPEG_PATH and FFPROBE_PATH environment variables.
7
+ * @param options.version The version of ffmpeg to install. If not provided, the latest version will be installed.
8
+ *
9
+ * @returns The build extension.
10
+ */
11
+ export declare function ffmpeg(options?: FfmpegOptions): BuildExtension;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ffmpeg = ffmpeg;
4
+ /**
5
+ * Add ffmpeg to the build, and automatically set the FFMPEG_PATH and FFPROBE_PATH environment variables.
6
+ * @param options.version The version of ffmpeg to install. If not provided, the latest version will be installed.
7
+ *
8
+ * @returns The build extension.
9
+ */
10
+ function ffmpeg(options = {}) {
11
+ return {
12
+ name: "ffmpeg",
13
+ onBuildComplete(context) {
14
+ if (context.target === "dev") {
15
+ return;
16
+ }
17
+ context.logger.debug("Adding ffmpeg", {
18
+ options,
19
+ });
20
+ context.addLayer({
21
+ id: "ffmpeg",
22
+ image: {
23
+ pkgs: options.version ? [`ffmpeg=${options.version}`] : ["ffmpeg"],
24
+ },
25
+ deploy: {
26
+ env: {
27
+ FFMPEG_PATH: "/usr/bin/ffmpeg",
28
+ FFPROBE_PATH: "/usr/bin/ffprobe",
29
+ },
30
+ override: true,
31
+ },
32
+ });
33
+ },
34
+ };
35
+ }
36
+ //# sourceMappingURL=ffmpeg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ffmpeg.js","sourceRoot":"","sources":["../../../../src/extensions/core/ffmpeg.ts"],"names":[],"mappings":";;AAYA,wBA2BC;AAjCD;;;;;GAKG;AACH,SAAgB,MAAM,CAAC,UAAyB,EAAE;IAChD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,eAAe,CAAC,OAAO;YACrB,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;gBAC7B,OAAO;YACT,CAAC;YAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,EAAE;gBACpC,OAAO;aACR,CAAC,CAAC;YAEH,OAAO,CAAC,QAAQ,CAAC;gBACf,EAAE,EAAE,QAAQ;gBACZ,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;iBACnE;gBACD,MAAM,EAAE;oBACN,GAAG,EAAE;wBACH,WAAW,EAAE,iBAAiB;wBAC9B,YAAY,EAAE,kBAAkB;qBACjC;oBACD,QAAQ,EAAE,IAAI;iBACf;aACF,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export * from "./core/additionalFiles.js";
2
2
  export * from "./core/additionalPackages.js";
3
3
  export * from "./core/syncEnvVars.js";
4
+ export * from "./core/aptGet.js";
5
+ export * from "./core/ffmpeg.js";
@@ -17,4 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./core/additionalFiles.js"), exports);
18
18
  __exportStar(require("./core/additionalPackages.js"), exports);
19
19
  __exportStar(require("./core/syncEnvVars.js"), exports);
20
+ __exportStar(require("./core/aptGet.js"), exports);
21
+ __exportStar(require("./core/ffmpeg.js"), exports);
20
22
  //# sourceMappingURL=core.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/extensions/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,wDAAsC"}
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/extensions/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,wDAAsC;AACtC,mDAAiC;AACjC,mDAAiC"}
@@ -0,0 +1,5 @@
1
+ import { BuildExtension } from "@trigger.dev/core/v3/build";
2
+ export type AptGetOptions = {
3
+ packages: string[];
4
+ };
5
+ export declare function aptGet(options: AptGetOptions): BuildExtension;
@@ -0,0 +1,20 @@
1
+ export function aptGet(options) {
2
+ return {
3
+ name: "aptGet",
4
+ onBuildComplete(context) {
5
+ if (context.target === "dev") {
6
+ return;
7
+ }
8
+ context.logger.debug("Adding apt-get layer", {
9
+ pkgs: options.packages,
10
+ });
11
+ context.addLayer({
12
+ id: "apt-get",
13
+ image: {
14
+ pkgs: options.packages,
15
+ },
16
+ });
17
+ },
18
+ };
19
+ }
20
+ //# sourceMappingURL=aptGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aptGet.js","sourceRoot":"","sources":["../../../../src/extensions/core/aptGet.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,MAAM,CAAC,OAAsB;IAC3C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,eAAe,CAAC,OAAO;YACrB,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;gBAC7B,OAAO;YACT,CAAC;YAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,EAAE;gBAC3C,IAAI,EAAE,OAAO,CAAC,QAAQ;aACvB,CAAC,CAAC;YAEH,OAAO,CAAC,QAAQ,CAAC;gBACf,EAAE,EAAE,SAAS;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO,CAAC,QAAQ;iBACvB;aACF,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { BuildExtension } from "@trigger.dev/core/v3/build";
2
+ export type FfmpegOptions = {
3
+ version?: string;
4
+ };
5
+ /**
6
+ * Add ffmpeg to the build, and automatically set the FFMPEG_PATH and FFPROBE_PATH environment variables.
7
+ * @param options.version The version of ffmpeg to install. If not provided, the latest version will be installed.
8
+ *
9
+ * @returns The build extension.
10
+ */
11
+ export declare function ffmpeg(options?: FfmpegOptions): BuildExtension;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Add ffmpeg to the build, and automatically set the FFMPEG_PATH and FFPROBE_PATH environment variables.
3
+ * @param options.version The version of ffmpeg to install. If not provided, the latest version will be installed.
4
+ *
5
+ * @returns The build extension.
6
+ */
7
+ export function ffmpeg(options = {}) {
8
+ return {
9
+ name: "ffmpeg",
10
+ onBuildComplete(context) {
11
+ if (context.target === "dev") {
12
+ return;
13
+ }
14
+ context.logger.debug("Adding ffmpeg", {
15
+ options,
16
+ });
17
+ context.addLayer({
18
+ id: "ffmpeg",
19
+ image: {
20
+ pkgs: options.version ? [`ffmpeg=${options.version}`] : ["ffmpeg"],
21
+ },
22
+ deploy: {
23
+ env: {
24
+ FFMPEG_PATH: "/usr/bin/ffmpeg",
25
+ FFPROBE_PATH: "/usr/bin/ffprobe",
26
+ },
27
+ override: true,
28
+ },
29
+ });
30
+ },
31
+ };
32
+ }
33
+ //# sourceMappingURL=ffmpeg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ffmpeg.js","sourceRoot":"","sources":["../../../../src/extensions/core/ffmpeg.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,MAAM,UAAU,MAAM,CAAC,UAAyB,EAAE;IAChD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,eAAe,CAAC,OAAO;YACrB,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;gBAC7B,OAAO;YACT,CAAC;YAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,EAAE;gBACpC,OAAO;aACR,CAAC,CAAC;YAEH,OAAO,CAAC,QAAQ,CAAC;gBACf,EAAE,EAAE,QAAQ;gBACZ,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;iBACnE;gBACD,MAAM,EAAE;oBACN,GAAG,EAAE;wBACH,WAAW,EAAE,iBAAiB;wBAC9B,YAAY,EAAE,kBAAkB;qBACjC;oBACD,QAAQ,EAAE,IAAI;iBACf;aACF,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export * from "./core/additionalFiles.js";
2
2
  export * from "./core/additionalPackages.js";
3
3
  export * from "./core/syncEnvVars.js";
4
+ export * from "./core/aptGet.js";
5
+ export * from "./core/ffmpeg.js";
@@ -1,4 +1,6 @@
1
1
  export * from "./core/additionalFiles.js";
2
2
  export * from "./core/additionalPackages.js";
3
3
  export * from "./core/syncEnvVars.js";
4
+ export * from "./core/aptGet.js";
5
+ export * from "./core/ffmpeg.js";
4
6
  //# sourceMappingURL=core.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/extensions/core.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/extensions/core.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trigger.dev/build",
3
- "version": "0.0.0-v3-prerelease-20240912191953",
3
+ "version": "0.0.0-v3-prerelease-20240913125036",
4
4
  "description": "trigger.dev build extensions",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@trigger.dev/core": "0.0.0-v3-prerelease-20240912191953",
56
+ "@trigger.dev/core": "0.0.0-v3-prerelease-20240913125036",
57
57
  "pkg-types": "^1.1.3",
58
58
  "tinyglobby": "^0.2.2",
59
59
  "tsconfck": "3.1.3"