
we input the pdfunit file to call the getColorByIndex static member. to work around this problem I made the local patch with pnpm. I can get a PR up for this if this would be the desired fix
--- a/package.json
+++ b/package.json
@@ -108,7 +108,8 @@
"types": "./dist/pdfparser.d.ts",
"import": "./dist/pdfparser.js",
"require": "./dist/pdfparser.cjs"
- }
+ },
+ "./lib/*": "./lib/*"
},
"publishConfig": {
"registry": "https://registry.npmjs.com/",