@trigger.dev/sdk 4.5.15 → 4.5.16

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "4.5.15";
4
+ exports.VERSION = "4.5.16";
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = "4.5.15";
1
+ export const VERSION = "4.5.16";
2
2
  //# sourceMappingURL=version.js.map
@@ -80,7 +80,7 @@ export default defineConfig({
80
80
  extensions: [
81
81
  {
82
82
  name: "my-extension",
83
- externalsForTarget: async (target) => {
83
+ externalsForTarget: (target) => {
84
84
  return ["my-dependency"];
85
85
  },
86
86
  },
@@ -89,6 +89,19 @@ export default defineConfig({
89
89
  });
90
90
  ```
91
91
 
92
+ ### installedPackagesForTarget
93
+
94
+ This tells build diagnostics which packages your extension installs into the deployed image for a given target, so warnings (like the one for packages loaded via `createRequire()`) don't fire for packages that will actually be available at runtime. The bundler ignores this hook, so declaring it never changes the build output. Only implement it if your extension installs packages; extensions without it are assumed to install none.
95
+
96
+ ```ts
97
+ {
98
+ name: "my-extension",
99
+ installedPackagesForTarget: (target) => {
100
+ return target === "deploy" ? ["my-dependency"] : [];
101
+ },
102
+ }
103
+ ```
104
+
92
105
  ### onBuildStart
93
106
 
94
107
  This hook runs before the build starts. It receives the `BuildContext` object as an argument.
@@ -34,7 +34,7 @@ This eliminates the need to manually run the `trigger.dev deploy` command or set
34
34
  <Step title="Customize build settings (optional)">
35
35
  Configure how your project is built:
36
36
 
37
- - **Trigger config file**: Path to your `trigger.config.ts` file. By default, we look for it in the root of your repository. The path should be relative to the root of your repository and contain the config file name, e.g., `apps/tasks/trigger.config.ts`.
37
+ - **Trigger config file**: Auto-detected by default — we find your `trigger.config.ts` anywhere in your repository. Set a path relative to the root of your repository to override it, e.g., `apps/tasks/trigger.config.ts`. If your repository contains more than one config file, set the path of the one to use.
38
38
  - **Install command**: Auto-detected by default, but you can override it if necessary. The command will be run from the root of your repository.
39
39
  - **Pre-build command**: Run any commands before building and deploying your project, e.g., `pnpm run prisma:generate`. The command will be run from the root of your repository.
40
40
  </Step>
@@ -87,7 +87,7 @@ Usually there will be some useful guidance below this message. If you can't figu
87
87
 
88
88
  ### `resource_exhausted`
89
89
 
90
- If you see a `resource_exhausted` error during deploy, the build may have hit resource limits on our build infrastructure. Try our [native builder](https://trigger.dev/changelog/deployments-with-native-builds).
90
+ If you see a `resource_exhausted` error during deploy, the build may have hit resource limits on our build infrastructure. Try our [native builder](https://trigger.dev/changelog/deployments-with-native-builds) by deploying with the `--native-build` flag.
91
91
 
92
92
  ### `No loader is configured for ".node" files`
93
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trigger.dev/sdk",
3
- "version": "4.5.15",
3
+ "version": "4.5.16",
4
4
  "description": "trigger.dev Node.JS SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -69,7 +69,7 @@
69
69
  "dependencies": {
70
70
  "@opentelemetry/api": "1.9.1",
71
71
  "@opentelemetry/semantic-conventions": "1.41.1",
72
- "@trigger.dev/core": "4.5.15",
72
+ "@trigger.dev/core": "4.5.16",
73
73
  "uncrypto": "^0.1.3"
74
74
  },
75
75
  "devDependencies": {