UNPKG

@linked-helper/framework.build-tools.aws-artifacts

Version:

LH framework build tools: upload artifacts

29 lines (26 loc) 997 B
import { u as uploadFiles, b as IConfig } from './uploadFiles-OK2kqTja.mjs'; import 'node:path'; import 'path'; import 'read-pkg-up'; import '@aws-sdk/client-s3'; import 'glob'; import 'node:fs'; async function afterAllArtifactBuild() { await uploadFiles(await IConfig.parse(), { // tslint:disable: no-console onListFiles: files => { console.log(`uploading ${files.length} file${files.length === 1 ? '' : 's'}:`); console.log(files.map(f => `"${f.relativePath}"`).join('\n')); }, onFileUploaded: f => { console.log(`uploaded "${f.relativePath}" ("${f.key}")`); }, onUploaded: files => { console.log(`uploaded ${files.length} file${files.length === 1 ? '' : 's'}:`); console.log(files.map(f => `"${f.relativePath}" ("${f.key}")`).join('\n')); }, // tslint:enable: no-console }); return []; } export { afterAllArtifactBuild, afterAllArtifactBuild as default };