bunki 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -33651,16 +33651,16 @@ class S3Uploader {
33651
33651
  try {
33652
33652
  const imagePath = path6.join(imagesDir, imageFile);
33653
33653
  const filename = path6.basename(imagePath);
33654
- console.log(`[S3] Uploading image ${imagePath} to S3 bucket ${this.s3Config.bucket}/${filename}...`);
33654
+ console.log(`[S3] Uploading image ${imagePath} to S3 bucket ${this.s3Config.bucket}/${imageFile}...`);
33655
33655
  const file = Bun.file(imagePath);
33656
33656
  const contentType = file.type;
33657
33657
  if (process.env.BUNKI_DRY_RUN === "true") {
33658
- console.log(`[S3] Dry run: would upload ${filename} with content type ${contentType}`);
33658
+ console.log(`[S3] Dry run: would upload ${imageFile} with content type ${contentType}`);
33659
33659
  } else {
33660
- const s3File = this.client.file(filename);
33660
+ const s3File = this.client.file(imageFile);
33661
33661
  await s3File.write(file);
33662
33662
  }
33663
- const imageUrl = this.getPublicUrl(filename);
33663
+ const imageUrl = this.getPublicUrl(imageFile);
33664
33664
  console.log(`[S3] Image uploaded to ${imageUrl}`);
33665
33665
  imageUrls[imageFile] = imageUrl;
33666
33666
  } catch (error) {
package/dist/index.js CHANGED
@@ -31522,16 +31522,16 @@ class S3Uploader {
31522
31522
  try {
31523
31523
  const imagePath = path6.join(imagesDir, imageFile);
31524
31524
  const filename = path6.basename(imagePath);
31525
- console.log(`[S3] Uploading image ${imagePath} to S3 bucket ${this.s3Config.bucket}/${filename}...`);
31525
+ console.log(`[S3] Uploading image ${imagePath} to S3 bucket ${this.s3Config.bucket}/${imageFile}...`);
31526
31526
  const file = Bun.file(imagePath);
31527
31527
  const contentType = file.type;
31528
31528
  if (process.env.BUNKI_DRY_RUN === "true") {
31529
- console.log(`[S3] Dry run: would upload ${filename} with content type ${contentType}`);
31529
+ console.log(`[S3] Dry run: would upload ${imageFile} with content type ${contentType}`);
31530
31530
  } else {
31531
- const s3File = this.client.file(filename);
31531
+ const s3File = this.client.file(imageFile);
31532
31532
  await s3File.write(file);
31533
31533
  }
31534
- const imageUrl = this.getPublicUrl(filename);
31534
+ const imageUrl = this.getPublicUrl(imageFile);
31535
31535
  console.log(`[S3] Image uploaded to ${imageUrl}`);
31536
31536
  imageUrls[imageFile] = imageUrl;
31537
31537
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunki",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "An opinionated static site generator built with Bun featuring PostCSS integration and modern web development workflows",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",