fix pnp emoji stuff

This commit is contained in:
Luna 2023-07-28 08:06:14 +05:30 committed by Laura Hausmann
parent ad2a7d7c57
commit 748bbdf6a3
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605
9 changed files with 7398 additions and 4 deletions

1
.gitignore vendored
View File

@ -71,6 +71,7 @@ pnpm*
!.yarn/releases
!.yarn/sdks
!.yarn/versions
!.yarn/unplugged/@discordapp-twemoji-npm-14.1.2-3097b95b97
# Nix Development shell items
.devenv

7375
.pnp.cjs generated

File diff suppressed because it is too large Load Diff

BIN
.yarn/cache/@esbuild-linux-x64-npm-0.18.17-2d9862a919-8.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d362d2c9cc4dd3e3c5bb5b9dc0fe8953685f63ecd641ad65a03ba5f476ebb58b
size 21598

BIN
.yarn/cache/@rometools-cli-linux-x64-npm-12.1.3-a343b37dfc-8.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@swc-core-linux-x64-gnu-npm-1.3.71-ac9ffba6fa-8.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

View File

@ -69,5 +69,10 @@
"start-server-and-test": "1.15.2",
"typescript": "5.1.6"
},
"packageManager": "yarn@3.6.1"
"packageManager": "yarn@3.6.1",
"dependenciesMeta": {
"@discordapp/twemoji@14.1.2": {
"unplugged": true
}
}
}

View File

@ -155,7 +155,7 @@ router.get("/twemoji/(.*)", async (ctx) => {
);
await send(ctx as any, path, {
root: `${_dirname}/../../../node_modules/@discordapp/twemoji/dist/svg/`,
root: `${_dirname}/../../../.yarn/unplugged/@discordapp-twemoji-npm-14.1.2-3097b95b97/dist/svg/`,
maxage: 30 * DAY,
});
});
@ -169,7 +169,7 @@ router.get("/twemoji-badge/(.*)", async (ctx) => {
}
const mask = await sharp(
`${_dirname}/../../../node_modules/@discordapp/twemoji/dist/svg/${path.replace(
`${_dirname}/../../../.yarn/unplugged/@discordapp-twemoji-npm-14.1.2-3097b95b97/dist/svg/${path.replace(
".png",
"",
)}.svg`,

View File

@ -12146,6 +12146,9 @@ __metadata:
seedrandom: ^3.0.5
start-server-and-test: 1.15.2
typescript: 5.1.6
dependenciesMeta:
"@discordapp/twemoji@14.1.2":
unplugged: true
languageName: unknown
linkType: soft