@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.
package/dist/commonjs/version.js
CHANGED
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "4.5.
|
|
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:
|
|
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**:
|
|
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>
|
package/docs/troubleshooting.mdx
CHANGED
|
@@ -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.
|
|
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.
|
|
72
|
+
"@trigger.dev/core": "4.5.16",
|
|
73
73
|
"uncrypto": "^0.1.3"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|