Fixed TS Build, still need it to package .wasm file

This commit is contained in:
Felix Kaspar
2023-12-29 00:10:25 +01:00
parent b2fdb7ec15
commit 0411a36b56
6 changed files with 325 additions and 8648 deletions

View File

@@ -6,11 +6,14 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"imports": {
"#pdfcpu": "./src/wasm/pdfcpu/pdfcpu-wrapper.server.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"image-js": "^0.35.5",
"pdf-lib": "^1.17.1",
"pdfjs-dist": "^4.0.189"
"pdfjs-dist": "^4.0.269"
}
}

View File

@@ -2,7 +2,6 @@
import { PdfFile, RepresentationType } from "../wrappers/PdfFile";
import { Operator, Progress, oneToOne } from ".";
// @ts-expect-error
import * as pdfcpuWrapper from "#pdfcpu"; // This is updated by tsconfig.json/paths for the context (browser, node, etc.) this module is used in.
import Joi from "joi";