(files: readonly PublishFile[])
| 87 | }; |
| 88 | |
| 89 | const fileMap = (files: readonly PublishFile[]): ReadonlyMap<string, string> => { |
| 90 | const out = new Map<string, string>(); |
| 91 | for (const file of files) out.set(file.path, textDecoder.decode(file.bytes)); |
| 92 | return out; |
| 93 | }; |
| 94 | |
| 95 | const sourceRef = (path: string, source: string): Effect.Effect<ModuleSourceRef> => |
| 96 | sha256Hex(source).pipe(Effect.map((sourceHash) => ({ path, sourceHash }))); |