Commit 499e4a7
feat(cli): expose build/deploy internals via
Mirror the pattern @trigger.dev/build already uses: a dedicated `./internal`
subpath export for downstream tooling that wants to drive the build / deploy
pipeline programmatically without going through the `trigger` CLI binary.
Adds packages/cli-v3/src/internal.ts re-exporting:
- loadConfig (trigger.config.ts loader)
- buildWorker + BuildWorkerOptions (esbuild bundling)
- buildImage + BuildImageOptions + BuildImageResults (docker buildx orchestration)
- generateContainerfile + parseGenerateOptions + GenerateContainerfileOptions (Containerfile templating)
- CliApiClient (typed wrapper around the deploy / register / finalize endpoints)
These modules already existed; this commit just makes them addressable from
outside the CLI package. Also widens the visibility of three buildImage result
types (BuildImageSuccess, BuildImageFailure, BuildImageResults) from
file-private to exported so consumers can statically discriminate the result
union.
No behavior change. The CLI binary continues to import the same modules
internally; nothing on the runtime path is affected.
Co-authored-by: Cursor <cursoragent@cursor.com>trigger.dev/internal
1 parent e01cdf5 commit 499e4a7
3 files changed
Lines changed: 31 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
162 | 169 | | |
163 | 170 | | |
164 | 171 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments