trigger.dev 0.0.0-v3-prelease-20240429132319 → 0.0.0-v3-prerelease-20240501131706

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.
@@ -19,6 +19,8 @@ COPY --chown=node:node . .
19
19
  USER node
20
20
  RUN npm ci --no-fund --no-audit && npm cache clean --force
21
21
 
22
+ __POST_INSTALL__
23
+
22
24
  # Development or production stage builds upon the base stage
23
25
  FROM base AS final
24
26
 
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-prelease-20240429132319";
802
+ var version = "0.0.0-v3-prerelease-20240501131706";
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-prelease-20240429132319",
819
+ "@trigger.dev/core": "workspace:0.0.0-v3-prerelease-20240501131706",
820
820
  "@types/degit": "^2.8.3",
821
821
  chalk: "^5.2.0",
822
822
  chokidar: "^3.5.3",
@@ -4592,7 +4592,16 @@ If this is unexpected you should check your ${terminalLink2(
4592
4592
  throw new SkipLoggingError("Failed to resolve dependencies");
4593
4593
  }
4594
4594
  const containerFilePath = join6(cliRootPath(), "Containerfile.prod");
4595
- await copyFile(containerFilePath, join6(tempDir, "Containerfile"));
4595
+ let containerFileContents = readFileSync2(containerFilePath, "utf-8");
4596
+ if (config.postInstall) {
4597
+ containerFileContents = containerFileContents.replace(
4598
+ "__POST_INSTALL__",
4599
+ `RUN ${config.postInstall}`
4600
+ );
4601
+ } else {
4602
+ containerFileContents = containerFileContents.replace("__POST_INSTALL__", "");
4603
+ }
4604
+ await writeFile2(join6(tempDir, "Containerfile"), containerFileContents);
4596
4605
  const contentHasher = createHash("sha256");
4597
4606
  contentHasher.update(Buffer.from(entryPointOutputFile.text));
4598
4607
  contentHasher.update(Buffer.from(workerOutputFile.text));