( files: ReadonlyMap<string, Uint8Array>, filename: string, )
| 41 | }); |
| 42 | |
| 43 | const getPackageFile = ( |
| 44 | files: ReadonlyMap<string, Uint8Array>, |
| 45 | filename: string, |
| 46 | ): Uint8Array => { |
| 47 | const bytes = files.get(filename); |
| 48 | if (!bytes) { |
| 49 | throw new Error(`Expected npm package file "${filename}" was not found`); |
| 50 | } |
| 51 | |
| 52 | return bytes; |
| 53 | }; |
| 54 | |
| 55 | const uploadArtifacts = ( |
| 56 | artifacts: readonly BuiltArtifact[], |
no test coverage detected