chore: add opentype.js dependency for meme text rendering

This commit is contained in:
SnapOtter
2026-05-08 15:39:34 +08:00
parent 2be001161b
commit 180ec6edfb
2 changed files with 13 additions and 3 deletions
+4 -3
View File
@@ -12,9 +12,6 @@
"clean": "rm -rf dist"
},
"dependencies": {
"@snapotter/ai": "workspace:*",
"@snapotter/image-engine": "workspace:*",
"@snapotter/shared": "workspace:*",
"@fastify/cors": "^11.0.0",
"@fastify/multipart": "^9.0.0",
"@fastify/rate-limit": "^10.2.0",
@@ -22,6 +19,9 @@
"@neplex/vectorizer": "^0.0.5",
"@scalar/fastify-api-reference": "^1.49.5",
"@sentry/node": "^10.49.0",
"@snapotter/ai": "workspace:*",
"@snapotter/image-engine": "workspace:*",
"@snapotter/shared": "workspace:*",
"archiver": "^7.0.1",
"better-sqlite3": "^11.7.0",
"dotenv": "^16.4.0",
@@ -31,6 +31,7 @@
"fflate": "^0.8.2",
"js-yaml": "^4.1.1",
"mupdf": "^1.27.0",
"opentype.js": "^2.0.0",
"p-queue": "^9.1.0",
"pdfkit": "^0.18.0",
"piscina": "^5.1.4",
+9
View File
@@ -144,6 +144,9 @@ importers:
mupdf:
specifier: ^1.27.0
version: 1.27.0
opentype.js:
specifier: ^2.0.0
version: 2.0.0
p-queue:
specifier: ^9.1.0
version: 9.1.0
@@ -5525,6 +5528,10 @@ packages:
oniguruma-to-es@3.1.1:
resolution: {integrity: sha512-bUH8SDvPkH3ho3dvwJwfonjlQ4R80vjyvrU8YpxuROddv55vAEJrTuCuCVUhhsHbtlD9tGGbaNApGQckXhS8iQ==}
opentype.js@2.0.0:
resolution: {integrity: sha512-kCyjv6xdDY1W/jLWZ/L3QhhTlKUqDZMQ5+Jdlw12b3dXkKNpYBqqlMMj0YDQPShWFTMwgZI1hG14kN3XUDSg/A==}
hasBin: true
p-each-series@3.0.0:
resolution: {integrity: sha512-lastgtAdoH9YaLyDa5i5z64q+kzOcQHsQ5SsZJD3q0VEyI8mq872S3geuNbRUQLVAE9siMfgKrpj7MloKFHruw==}
engines: {node: '>=12'}
@@ -11979,6 +11986,8 @@ snapshots:
regex: 6.1.0
regex-recursion: 6.0.2
opentype.js@2.0.0: {}
p-each-series@3.0.0: {}
p-event@6.0.1: