From 2a2258e89060094bc152e2752c2d815b26615359 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Wed, 28 Jan 2026 13:16:34 +0100 Subject: [PATCH] Updates --- scripts/upload.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/upload.ts diff --git a/scripts/upload.ts b/scripts/upload.ts new file mode 100644 index 0000000..33ebf07 --- /dev/null +++ b/scripts/upload.ts @@ -0,0 +1,18 @@ +import s3UploadFile from "../utils/s3-upload"; + +const cliArgs = [...process.argv]; + +const bucketDstName = cliArgs.pop(); +const filePath = cliArgs.pop(); + +if (!filePath || !bucketDstName) { + console.error("Usage: bun upload.ts "); + process.exit(1); +} + +await s3UploadFile({ + fileName: bucketDstName, + filePath, +}); + +console.log(`✅ Uploaded ${filePath}`);