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.

Binary file not shown.

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