refactor discord types into separate npm package (#3520)

Co-authored-by: V <vendicated@riseup.net>
Co-authored-by: sadan <117494111+sadan4@users.noreply.github.com>
Co-authored-by: ezzud <contact@ezzud.fr>
This commit is contained in:
V 2025-07-10 00:38:39 +02:00 committed by dorkbutt
parent 3bbf885146
commit 619b0ef858
No known key found for this signature in database
149 changed files with 1561 additions and 751 deletions

View file

@ -51,7 +51,7 @@ const nodeCommonOpts = {
format: "cjs",
platform: "node",
target: ["esnext"],
// @ts-ignore this is never undefined
// @ts-expect-error this is never undefined
external: ["electron", "original-fs", "~pluginNatives", ...commonOpts.external]
};

View file

@ -363,6 +363,6 @@ export const commonRendererPlugins = [
banImportPlugin(/^react$/, "Cannot import from react. React and hooks should be imported from @webpack/common"),
banImportPlugin(/^electron(\/.*)?$/, "Cannot import electron in browser code. You need to use a native.ts file"),
banImportPlugin(/^ts-pattern$/, "Cannot import from ts-pattern. match and P should be imported from @webpack/common"),
// @ts-ignore this is never undefined
// @ts-expect-error this is never undefined
...commonOpts.plugins
];