move jpeg encoding to a worker thread pool

this also switches cvmts back to building with tsc, mostly because
I couldn't get parcel's worker interop to work at all.
This commit is contained in:
modeco80
2024-04-23 19:43:23 -04:00
parent 59d5331b68
commit db97a62046
5 changed files with 97 additions and 31 deletions

View File

@@ -5,22 +5,17 @@
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "parcel build src/index.ts --target node",
"build": "tsc -outDir dist -rootDir src/",
"serve": "node dist/index.js"
},
"author": "Elijah R, modeco80",
"license": "GPL-3.0",
"targets": {
"node": {
"context": "node",
"outputFormat": "esmodule"
}
},
"dependencies": {
"@computernewb/jpeg-turbo": "*",
"@cvmts/qemu": "*",
"execa": "^8.0.1",
"mnemonist": "^0.39.5",
"piscina": "^4.4.0",
"sharp": "^0.33.3",
"toml": "^3.0.0",
"ws": "^8.14.1"
@@ -28,7 +23,6 @@
"devDependencies": {
"@types/node": "^20.12.5",
"@types/ws": "^8.5.5",
"parcel": "^2.12.0",
"prettier": "^3.2.5",
"typescript": "^5.4.4"
}