Skip to content

deployChangedFiles

deployChangedFiles(options): Promise<DeployChangedFilesResult>

Defined in: deployChangedFiles.ts:58

Deploy exactly the given files and poll until the deploy reaches a terminal state.

Scoped to filePaths rather than a whole directory: the command already knows precisely which one or two files it just patched, so the component set is built from that list instead of rediscovering it from --directory.

Does not throw on a failed deploy — a failure is reported in the returned result (success: false, populated failures) so the caller’s restore finally still runs before it decides whether to throw. An error here means the deploy request or polling itself broke (auth, network, timeout), not that components failed to deploy.

DeployChangedFilesOptions

The connection to deploy against, the changed files, and how long to wait.

Promise<DeployChangedFilesResult>

The deploy outcome: id, terminal status, and per-component successes/failures.