( path: VercelClientOptions['path'] | undefined, debug: Debug )
| 27 | } |
| 28 | |
| 29 | export function assertDeploymentPath( |
| 30 | path: VercelClientOptions['path'] | undefined, |
| 31 | debug: Debug |
| 32 | ): asserts path is VercelClientOptions['path'] { |
| 33 | if (typeof path !== 'string' && !Array.isArray(path)) { |
| 34 | debug( |
| 35 | `Error: 'path' is expected to be a string or an array. Received ${typeof path}` |
| 36 | ); |
| 37 | throw new DeploymentError({ |
| 38 | code: 'missing_path', |
| 39 | message: 'Path not provided', |
| 40 | }); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | export async function collectDeploymentFiles( |
| 45 | path: VercelClientOptions['path'] | undefined, |
no test coverage detected