trigger.dev 0.0.0-v3-prerelease-20240628145956 → 0.0.0-v3-prerelease-20240628191401
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-20240628191401";
|
|
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-20240628191401",
|
|
819
819
|
"@types/degit": "^2.8.3",
|
|
820
820
|
chalk: "^5.2.0",
|
|
821
821
|
chokidar: "^3.5.3",
|
|
@@ -3377,10 +3377,53 @@ var JavascriptProject = class {
|
|
|
3377
3377
|
}
|
|
3378
3378
|
return this._packageJson;
|
|
3379
3379
|
}
|
|
3380
|
+
get allowedPackageJson() {
|
|
3381
|
+
const disallowedKeys = [
|
|
3382
|
+
"scripts",
|
|
3383
|
+
"devDependencies",
|
|
3384
|
+
"dependencies",
|
|
3385
|
+
"peerDependencies",
|
|
3386
|
+
"author",
|
|
3387
|
+
"contributors",
|
|
3388
|
+
"funding",
|
|
3389
|
+
"bugs",
|
|
3390
|
+
"files",
|
|
3391
|
+
"keywords",
|
|
3392
|
+
"main",
|
|
3393
|
+
"module",
|
|
3394
|
+
"type",
|
|
3395
|
+
"bin",
|
|
3396
|
+
"browser",
|
|
3397
|
+
"man",
|
|
3398
|
+
"directories",
|
|
3399
|
+
"repository",
|
|
3400
|
+
"peerDependenciesMeta",
|
|
3401
|
+
"optionalDependencies",
|
|
3402
|
+
"engines",
|
|
3403
|
+
"os",
|
|
3404
|
+
"cpu",
|
|
3405
|
+
"private",
|
|
3406
|
+
"publishConfig",
|
|
3407
|
+
"workspaces"
|
|
3408
|
+
];
|
|
3409
|
+
return Object.keys(this.packageJson).reduce(
|
|
3410
|
+
(acc, key) => {
|
|
3411
|
+
if (!disallowedKeys.includes(key)) {
|
|
3412
|
+
acc[key] = this.packageJson[key];
|
|
3413
|
+
}
|
|
3414
|
+
return acc;
|
|
3415
|
+
},
|
|
3416
|
+
{}
|
|
3417
|
+
);
|
|
3418
|
+
}
|
|
3380
3419
|
get scripts() {
|
|
3381
|
-
return
|
|
3382
|
-
|
|
3383
|
-
|
|
3420
|
+
return this.#filterScripts();
|
|
3421
|
+
}
|
|
3422
|
+
#filterScripts() {
|
|
3423
|
+
if (!this.packageJson.scripts || typeof this.packageJson.scripts !== "object") {
|
|
3424
|
+
return {};
|
|
3425
|
+
}
|
|
3426
|
+
return this.packageJson.scripts;
|
|
3384
3427
|
}
|
|
3385
3428
|
async install() {
|
|
3386
3429
|
const command = await this.#getCommand();
|
|
@@ -4882,9 +4925,7 @@ async function compileProject(config, options, configPath) {
|
|
|
4882
4925
|
const dependencies2 = await resolveRequiredDependencies(allImports, config, javascriptProject);
|
|
4883
4926
|
logger.debug("gatherRequiredDependencies()", { dependencies: dependencies2 });
|
|
4884
4927
|
const packageJsonContents = {
|
|
4885
|
-
|
|
4886
|
-
version: "0.0.0",
|
|
4887
|
-
description: "",
|
|
4928
|
+
...javascriptProject.allowedPackageJson,
|
|
4888
4929
|
dependencies: dependencies2,
|
|
4889
4930
|
scripts: {
|
|
4890
4931
|
...javascriptProject.scripts,
|