Skip to content

Commit 41aeee5

Browse files
LyokoluxFRSgit
authored andcommitted
fix: import meta-png cjs dependency (#209)
resolves #207
1 parent 79dfe02 commit 41aeee5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/image.utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import path from "path";
22
import fs from "fs";
33
import { PNG, PNGWithMetadata } from "pngjs";
44
import sharp from "sharp";
5-
import { addMetadata, getMetadata } from "meta-png";
5+
import metaPngPkg from "meta-png";
6+
const { addMetadata, getMetadata } = metaPngPkg;
67
import glob from "glob";
78
import { version } from "../package.json";
89
import { wasScreenshotUsed } from "./screenshotPath.utils";

0 commit comments

Comments
 (0)