Move everything away from pnpm and use bun (#278)

* testing bun migration

* e

* try no node

* test noxos

* reporter?

* reporter2

* Fix Patches

* change readme(s)

* make readme simpler

* bleh

---------

Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
Creation's 2025-06-04 11:17:57 -04:00 committed by GitHub
parent 608ffa0764
commit fbd1d1b551
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 184 additions and 5492 deletions

View file

@ -85,13 +85,6 @@ export default definePlugin({
replace: "$1.forEach($self.anonymise),$&"
},
},
{
find: 'addFilesTo:"message.attachments"',
replacement: {
match: /\i.uploadFiles\((\i),/,
replace: "$1.forEach($self.anonymise),$&"
}
},
{
find: "#{intl::ATTACHMENT_UTILITIES_SPOILER}",
replacement: {

View file

@ -61,7 +61,7 @@ export default definePlugin({
start() {
// if we're running the reporter, we need to initws in the reporter file to avoid a race condition
if (!IS_DEV) throw new Error("This plugin requires dev mode to run, please build with pnpm build --dev");
if (!IS_DEV) throw new Error("This plugin requires dev mode to run, please build with bun run build --dev");
initWs();
},

View file

@ -133,7 +133,7 @@ export default definePlugin({
{
find: "Copy image not supported",
replacement: {
match: /(?<=(?:canSaveImage|canCopyImage)\(\i?\)\{.{0,50})!\i\.isPlatformEmbedded/g,
match: /(?<=(?:canSaveImage|canCopyImage)\((\i,\i)?\)\{.{0,150})!\i\.isPlatformEmbedded/g,
replace: "false"
}
},
@ -147,7 +147,7 @@ export default definePlugin({
replace: "false"
},
{
match: /return\s*?\[.{0,50}?(?=\?.{0,100}?id:"copy-image")/,
match: /return\s*?\[.{0,50}?(?=\?.{0,25}?id:"copy-image")/,
replace: "return [true"
},
{