Skip to content

Commit f7f262d

Browse files
matt-aitkenD-K-P
authored andcommitted
Updated docs to 0.0.0-prerelease-20240825150620
1 parent 49cb67b commit f7f262d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/guides/new-build-system-preview.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The main features of the new build sytem are:
1818
To use the new build system, you have to update to use our preview packages. Update the `@trigger.dev/sdk` package in your package.json:
1919

2020
```json
21-
"@trigger.dev/sdk": "0.0.0-prerelease-20240823132052"
21+
"@trigger.dev/sdk": "0.0.0-prerelease-20240825150620"
2222
```
2323

2424
You will also need to update your usage of the `trigger.dev` CLI to use the preview release. If you run the CLI via `npx` you can update to the preview release like so:
@@ -28,13 +28,13 @@ You will also need to update your usage of the `trigger.dev` CLI to use the prev
2828
npx trigger.dev@beta dev
2929

3030
# using the preview release
31-
npx [email protected]20240823132052 dev
31+
npx [email protected]20240825150620 dev
3232
```
3333

3434
If you've added the `trigger.dev` CLI to your `devDependencies`, then you should update the version to point to the preview release:
3535

3636
```json
37-
"trigger.dev": "0.0.0-prerelease-20240823132052"
37+
"trigger.dev": "0.0.0-prerelease-20240825150620"
3838
```
3939

4040
Once you do that make sure you re-install your dependencies using `npm i` or the equivalent with your preferred package manager.
@@ -85,7 +85,7 @@ The `additionalFiles` option has been moved to our new build extension system.
8585
To use build extensions, you'll need to add the `@trigger.dev/build` package to your `devDependencies`:
8686

8787
```sh
88-
npm add @trigger.dev/[email protected]20240823132052 -D
88+
npm add @trigger.dev/[email protected]20240825150620 -D
8989
```
9090

9191
Now you can import the `additionalFiles` build extension and use it in your `trigger.config.ts` file:
@@ -111,7 +111,7 @@ The `additionalPackages` option has been moved to our new build extension system
111111
To use build extensions, you'll need to add the `@trigger.dev/build` package to your `devDependencies`:
112112

113113
```sh
114-
npm add @trigger.dev/[email protected]20240823132052 -D
114+
npm add @trigger.dev/[email protected]20240825150620 -D
115115
```
116116

117117
Now you can import the `additionalPackages` build extension and use it in your `trigger.config.ts` file:
@@ -135,7 +135,7 @@ The `resolveEnvVars` export has been moved to our new build extension system.
135135
To use build extensions, you'll need to add the `@trigger.dev/build` package to your `devDependencies`:
136136

137137
```sh
138-
npm add @trigger.dev/[email protected]20240823132052 -D
138+
npm add @trigger.dev/[email protected]20240825150620 -D
139139
```
140140

141141
Now you can import the `syncEnvVars` build extension and use it in your `trigger.config.ts` file:
@@ -183,7 +183,7 @@ export default defineConfig({
183183
We've created a build extension to support using Prisma in your Trigger.dev tasks. To use this extension, you'll need to add the `@trigger.dev/build` package to your `devDependencies`:
184184

185185
```sh
186-
npm add @trigger.dev/[email protected]20240823132052 -D
186+
npm add @trigger.dev/[email protected]20240825150620 -D
187187
```
188188

189189
Then you can import the `prismaExtension` build extension and use it in your `trigger.config.ts` file, passing in the path to your Prisma schema file:
@@ -324,7 +324,7 @@ export default defineConfig({
324324
We no longer run typechecking during the deploy command. This was causing issues with some projects, and we found that it wasn't necessary to run typechecking during the deploy command. If you want to run typechecking before deploying to Trigger.dev, you can run the `tsc` command before running the `deploy` command.
325325

326326
```sh
327-
tsc && npx [email protected]20240823132052 deploy
327+
tsc && npx [email protected]20240825150620 deploy
328328
```
329329

330330
Or if you are using GitHub actions, you can add an additional step to run the `tsc` command before deploying to Trigger.dev.
@@ -340,15 +340,15 @@ Or if you are using GitHub actions, you can add an additional step to run the `t
340340
env:
341341
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
342342
run: |
343-
npx [email protected]20240823132052 deploy
343+
npx [email protected]20240825150620 deploy
344344
```
345345
346346
### deploy --dry-run
347347
348348
You can now inspect the build output of your project without actually deploying it to Trigger.dev by using the `--dry-run` flag:
349349

350350
```sh
351-
npx [email protected]20240823132052 deploy --dry-run
351+
npx [email protected]20240825150620 deploy --dry-run
352352
```
353353

354354
This will save the build output and print the path to the build output directory. If you face any issues with deploying, please include the build output in your issue report.
@@ -358,8 +358,8 @@ This will save the build output and print the path to the build output directory
358358
You can now pass the path to your local `.env` file using the `--env-file` flag during `dev` and `deploy` commands:
359359

360360
```sh
361-
npx [email protected]20240823132052 dev --env-file ../../.env
362-
npx [email protected]20240823132052 deploy --env-file ../../.env
361+
npx [email protected]20240825150620 dev --env-file ../../.env
362+
npx [email protected]20240825150620 deploy --env-file ../../.env
363363
```
364364

365365
The `.env` file works slightly differently in `dev` vs `deploy`:
@@ -381,7 +381,7 @@ Debugging your tasks code in `dev` is now supported via VS Code, without having
381381
"request": "launch",
382382
"cwd": "${workspaceFolder}",
383383
"runtimeExecutable": "npx",
384-
"runtimeArgs": ["[email protected]20240823132052", "dev"],
384+
"runtimeArgs": ["[email protected]20240825150620", "dev"],
385385
"skipFiles": ["<node_internals>/**"],
386386
"sourceMaps": true
387387
}
@@ -396,7 +396,7 @@ Then you can start debugging your tasks code by selecting the `Trigger.dev: Dev`
396396
You can now authenticate the `dev` command using the `TRIGGER_ACCESS_TOKEN` environment variable. Previously this was only supported in the `deploy` command.
397397

398398
```sh
399-
TRIGGER_ACCESS_TOKEN=<your access token> npx [email protected]20240823132052 dev
399+
TRIGGER_ACCESS_TOKEN=<your access token> npx [email protected]20240825150620 dev
400400
```
401401

402402
## Known issues

0 commit comments

Comments
 (0)