Skip to content

Commit d49241f

Browse files
chore(cli): drop unused exports from trigger.dev/internal
Audit of the downstream scripts (build.mjs / register.mjs in govsignals) showed two re-exports nothing imports: - CliApiClient: scripts use `getProjectClient`, which returns an engine-bound CliApiClient internally. Nobody constructs one directly. - saveLogs: added speculatively for `--save-logs` parity but never wired up. Drop both. Future-callers can request them back via PR if there's a real need. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ab07818 commit d49241f

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

packages/cli-v3/src/internal.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ export { loadConfig } from "./config.js";
1212
export { buildWorker } from "./build/buildWorker.js";
1313
export { buildImage } from "./deploy/buildImage.js";
1414

15-
// Typed API client used to drive the deploy / register / finalize endpoints
16-
// without falling back to raw HTTP from downstream scripts.
17-
export { CliApiClient } from "./apiClient.js";
18-
1915
// Auth + project-environment resolution. `login` reads TRIGGER_ACCESS_TOKEN
2016
// from the env when present (so it works in CI without a config file);
2117
// `getProjectClient` performs the two-step engine API URL discovery and
22-
// returns an engine-bound CliApiClient.
18+
// returns an engine-bound CliApiClient that callers use for all subsequent
19+
// deploy/register/finalize/fail API calls.
2320
export { login } from "./commands/login.js";
2421
export { getProjectClient } from "./utilities/session.js";
2522

@@ -30,11 +27,9 @@ export { syncEnvVarsWithServer } from "./commands/deploy.js";
3027
// - resolveLocalEnvVars / loadDotEnvVars: read project-local .env files
3128
// - createGitMeta: extract git metadata for the deployment record
3229
// - getTmpDir: scoped temp directory with cleanup tracking
33-
// - saveLogs: dump build logs to a file (--save-logs equivalent)
3430
// - setGithubActionsOutputAndEnvVars: emit deployment metadata to GHA
3531
export { resolveLocalEnvVars } from "./utilities/localEnvVars.js";
3632
export { loadDotEnvVars } from "./utilities/dotEnv.js";
3733
export { createGitMeta } from "./utilities/gitMeta.js";
3834
export { getTmpDir } from "./utilities/tempDirectories.js";
39-
export { saveLogs } from "./deploy/logs.js";
4035
export { setGithubActionsOutputAndEnvVars } from "./utilities/githubActions.js";

0 commit comments

Comments
 (0)