@trigger.dev/build 4.0.0-v4-beta.25 → 4.0.0-v4-beta.26
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/extensions/lightpanda.d.ts +7 -0
- package/dist/commonjs/extensions/lightpanda.js +30 -0
- package/dist/commonjs/extensions/lightpanda.js.map +1 -0
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/extensions/lightpanda.d.ts +7 -0
- package/dist/esm/extensions/lightpanda.js +26 -0
- package/dist/esm/extensions/lightpanda.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/package.json +18 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BuildExtension } from "@trigger.dev/core/v3/build";
|
|
2
|
+
type LightpandaOpts = {
|
|
3
|
+
version?: "nightly" | "latest";
|
|
4
|
+
disableTelemetry?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const lightpanda: ({ version, disableTelemetry, }?: LightpandaOpts) => BuildExtension;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lightpanda = void 0;
|
|
4
|
+
const lightpanda = ({ version = "latest", disableTelemetry = false, } = {}) => ({
|
|
5
|
+
name: "lightpanda",
|
|
6
|
+
onBuildComplete: async (context) => {
|
|
7
|
+
if (context.target === "dev") {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
context.logger.debug(`Adding lightpanda`, { version, disableTelemetry });
|
|
11
|
+
const instructions = [
|
|
12
|
+
`COPY --from=lightpanda/browser:${version} /usr/bin/lightpanda /usr/local/bin/lightpanda`,
|
|
13
|
+
`RUN /usr/local/bin/lightpanda version || (echo "lightpanda binary is not functional" && exit 1)`,
|
|
14
|
+
];
|
|
15
|
+
context.addLayer({
|
|
16
|
+
id: "lightpanda",
|
|
17
|
+
image: {
|
|
18
|
+
instructions,
|
|
19
|
+
},
|
|
20
|
+
deploy: {
|
|
21
|
+
env: {
|
|
22
|
+
...(disableTelemetry ? { LIGHTPANDA_DISABLE_TELEMETRY: "true" } : {}),
|
|
23
|
+
},
|
|
24
|
+
override: true,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
exports.lightpanda = lightpanda;
|
|
30
|
+
//# sourceMappingURL=lightpanda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lightpanda.js","sourceRoot":"","sources":["../../../src/extensions/lightpanda.ts"],"names":[],"mappings":";;;AAOO,MAAM,UAAU,GAAG,CAAC,EACzB,OAAO,GAAG,QAAQ,EAClB,gBAAgB,GAAG,KAAK,MACN,EAAE,EAAkB,EAAE,CAAC,CAAC;IAC1C,IAAI,EAAE,YAAY;IAClB,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QACjC,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;YAC7B,OAAO;QACT,CAAC;QAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,CAAC;QAEzE,MAAM,YAAY,GAAG;YACnB,kCAAkC,OAAO,gDAAgD;YACzF,iGAAiG;SAC/E,CAAC;QAErB,OAAO,CAAC,QAAQ,CAAC;YACf,EAAE,EAAE,YAAY;YAChB,KAAK,EAAE;gBACL,YAAY;aACb;YACD,MAAM,EAAE;gBACN,GAAG,EAAE;oBACH,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,4BAA4B,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBACtE;gBACD,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AA9BU,QAAA,UAAU,cA8BpB"}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BuildExtension } from "@trigger.dev/core/v3/build";
|
|
2
|
+
type LightpandaOpts = {
|
|
3
|
+
version?: "nightly" | "latest";
|
|
4
|
+
disableTelemetry?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const lightpanda: ({ version, disableTelemetry, }?: LightpandaOpts) => BuildExtension;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const lightpanda = ({ version = "latest", disableTelemetry = false, } = {}) => ({
|
|
2
|
+
name: "lightpanda",
|
|
3
|
+
onBuildComplete: async (context) => {
|
|
4
|
+
if (context.target === "dev") {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
context.logger.debug(`Adding lightpanda`, { version, disableTelemetry });
|
|
8
|
+
const instructions = [
|
|
9
|
+
`COPY --from=lightpanda/browser:${version} /usr/bin/lightpanda /usr/local/bin/lightpanda`,
|
|
10
|
+
`RUN /usr/local/bin/lightpanda version || (echo "lightpanda binary is not functional" && exit 1)`,
|
|
11
|
+
];
|
|
12
|
+
context.addLayer({
|
|
13
|
+
id: "lightpanda",
|
|
14
|
+
image: {
|
|
15
|
+
instructions,
|
|
16
|
+
},
|
|
17
|
+
deploy: {
|
|
18
|
+
env: {
|
|
19
|
+
...(disableTelemetry ? { LIGHTPANDA_DISABLE_TELEMETRY: "true" } : {}),
|
|
20
|
+
},
|
|
21
|
+
override: true,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=lightpanda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lightpanda.js","sourceRoot":"","sources":["../../../src/extensions/lightpanda.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,OAAO,GAAG,QAAQ,EAClB,gBAAgB,GAAG,KAAK,MACN,EAAE,EAAkB,EAAE,CAAC,CAAC;IAC1C,IAAI,EAAE,YAAY;IAClB,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QACjC,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;YAC7B,OAAO;QACT,CAAC;QAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,CAAC;QAEzE,MAAM,YAAY,GAAG;YACnB,kCAAkC,OAAO,gDAAgD;YACzF,iGAAiG;SAC/E,CAAC;QAErB,OAAO,CAAC,QAAQ,CAAC;YACf,EAAE,EAAE,YAAY;YAChB,KAAK,EAAE;gBACL,YAAY;aACb;YACD,MAAM,EAAE;gBACN,GAAG,EAAE;oBACH,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,4BAA4B,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBACtE;gBACD,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "4.0.0-v4-beta.
|
|
1
|
+
export const VERSION = "4.0.0-v4-beta.26";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trigger.dev/build",
|
|
3
|
-
"version": "4.0.0-v4-beta.
|
|
3
|
+
"version": "4.0.0-v4-beta.26",
|
|
4
4
|
"description": "trigger.dev build extensions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"./extensions/audioWaveform": "./src/extensions/audioWaveform.ts",
|
|
31
31
|
"./extensions/typescript": "./src/extensions/typescript.ts",
|
|
32
32
|
"./extensions/puppeteer": "./src/extensions/puppeteer.ts",
|
|
33
|
-
"./extensions/playwright": "./src/extensions/playwright.ts"
|
|
33
|
+
"./extensions/playwright": "./src/extensions/playwright.ts",
|
|
34
|
+
"./extensions/lightpanda": "./src/extensions/lightpanda.ts"
|
|
34
35
|
},
|
|
35
36
|
"sourceDialects": [
|
|
36
37
|
"@triggerdotdev/source"
|
|
@@ -61,11 +62,14 @@
|
|
|
61
62
|
],
|
|
62
63
|
"extensions/playwright": [
|
|
63
64
|
"dist/commonjs/extensions/playwright.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"extensions/lightpanda": [
|
|
67
|
+
"dist/commonjs/extensions/lightpanda.d.ts"
|
|
64
68
|
]
|
|
65
69
|
}
|
|
66
70
|
},
|
|
67
71
|
"dependencies": {
|
|
68
|
-
"@trigger.dev/core": "4.0.0-v4-beta.
|
|
72
|
+
"@trigger.dev/core": "4.0.0-v4-beta.26",
|
|
69
73
|
"pkg-types": "^1.1.3",
|
|
70
74
|
"tinyglobby": "^0.2.2",
|
|
71
75
|
"tsconfck": "3.1.3"
|
|
@@ -180,6 +184,17 @@
|
|
|
180
184
|
"types": "./dist/commonjs/extensions/playwright.d.ts",
|
|
181
185
|
"default": "./dist/commonjs/extensions/playwright.js"
|
|
182
186
|
}
|
|
187
|
+
},
|
|
188
|
+
"./extensions/lightpanda": {
|
|
189
|
+
"import": {
|
|
190
|
+
"@triggerdotdev/source": "./src/extensions/lightpanda.ts",
|
|
191
|
+
"types": "./dist/esm/extensions/lightpanda.d.ts",
|
|
192
|
+
"default": "./dist/esm/extensions/lightpanda.js"
|
|
193
|
+
},
|
|
194
|
+
"require": {
|
|
195
|
+
"types": "./dist/commonjs/extensions/lightpanda.d.ts",
|
|
196
|
+
"default": "./dist/commonjs/extensions/lightpanda.js"
|
|
197
|
+
}
|
|
183
198
|
}
|
|
184
199
|
},
|
|
185
200
|
"main": "./dist/commonjs/index.js",
|