From 52234562640bf858da29e04fa8624a54e701c392 Mon Sep 17 00:00:00 2001 From: JandereDev Date: Sat, 9 Jul 2022 09:08:16 +0200 Subject: [PATCH] set up local package for shared code --- api/package.json | 6 +- api/yarn.lock | 7 +++ bot/package.json | 6 +- bot/yarn.lock | 7 +++ bridge/package.json | 4 ++ bridge/yarn.lock | 7 +++ lib/package.json | 9 +++ lib/yarn.lock | 140 ++++++++++++++++++++++++++++++++++++++++++++ web/package.json | 6 +- web/yarn.lock | 7 +++ 10 files changed, 196 insertions(+), 3 deletions(-) create mode 100644 lib/package.json create mode 100644 lib/yarn.lock diff --git a/api/package.json b/api/package.json index a3066d2..50a28e7 100644 --- a/api/package.json +++ b/api/package.json @@ -16,6 +16,7 @@ "@types/express": "^4.17.13", "@types/monk": "^6.0.0", "@types/ws": "^8.2.2", + "automod": "^0.1.0", "dotenv": "^14.2.0", "express": "^4.17.2", "log75": "^2.2.0", @@ -26,5 +27,8 @@ "devDependencies": { "typescript": "^4.5.5" }, - "packageManager": "yarn@3.2.1" + "packageManager": "yarn@3.2.1", + "resolutions": { + "automod": "portal:../lib" + } } diff --git a/api/yarn.lock b/api/yarn.lock index 73dc991..89ecea0 100644 --- a/api/yarn.lock +++ b/api/yarn.lock @@ -146,6 +146,7 @@ __metadata: "@types/express": ^4.17.13 "@types/monk": ^6.0.0 "@types/ws": ^8.2.2 + automod: ^0.1.0 dotenv: ^14.2.0 express: ^4.17.2 log75: ^2.2.0 @@ -163,6 +164,12 @@ __metadata: languageName: node linkType: hard +"automod@portal:../lib::locator=api%40workspace%3A.": + version: 0.0.0-use.local + resolution: "automod@portal:../lib::locator=api%40workspace%3A." + languageName: node + linkType: soft + "base64-js@npm:^1.3.1": version: 1.5.1 resolution: "base64-js@npm:1.5.1" diff --git a/bot/package.json b/bot/package.json index 9cf924e..25c7e7a 100644 --- a/bot/package.json +++ b/bot/package.json @@ -15,6 +15,7 @@ "dependencies": { "@janderedev/revolt.js": "^6.0.0-2-patch.1", "@types/monk": "^6.0.0", + "automod": "^0.1.0", "axios": "^0.22.0", "dayjs": "^1.10.7", "discord.js": "^13.3.1", @@ -30,5 +31,8 @@ "devDependencies": { "typescript": "^4.4.3" }, - "packageManager": "yarn@3.2.1" + "packageManager": "yarn@3.2.1", + "resolutions": { + "automod": "portal:../lib" + } } diff --git a/bot/yarn.lock b/bot/yarn.lock index 68f7557..2248a92 100644 --- a/bot/yarn.lock +++ b/bot/yarn.lock @@ -200,6 +200,12 @@ __metadata: languageName: node linkType: hard +"automod@portal:../lib::locator=revolt-automod%40workspace%3A.": + version: 0.0.0-use.local + resolution: "automod@portal:../lib::locator=revolt-automod%40workspace%3A." + languageName: node + linkType: soft + "axios@npm:^0.21.4": version: 0.21.4 resolution: "axios@npm:0.21.4" @@ -868,6 +874,7 @@ __metadata: dependencies: "@janderedev/revolt.js": ^6.0.0-2-patch.1 "@types/monk": ^6.0.0 + automod: ^0.1.0 axios: ^0.22.0 dayjs: ^1.10.7 discord.js: ^13.3.1 diff --git a/bridge/package.json b/bridge/package.json index 0a9ae96..48fee59 100644 --- a/bridge/package.json +++ b/bridge/package.json @@ -15,6 +15,7 @@ "dependencies": { "@discordjs/rest": "^0.4.1", "@janderedev/revolt.js": "^6.0.0-rc.24-patch.1", + "automod": "^0.1.0", "axios": "^0.26.1", "discord-api-types": "^0.31.2", "discord.js": "^13.6.0", @@ -31,5 +32,8 @@ "packageManager": "yarn@3.2.1", "devDependencies": { "typescript": "^4.7.4" + }, + "resolutions": { + "automod": "portal:../lib" } } diff --git a/bridge/yarn.lock b/bridge/yarn.lock index 7cd6c72..202a182 100644 --- a/bridge/yarn.lock +++ b/bridge/yarn.lock @@ -207,6 +207,12 @@ __metadata: languageName: node linkType: hard +"automod@portal:../lib::locator=bridge%40workspace%3A.": + version: 0.0.0-use.local + resolution: "automod@portal:../lib::locator=bridge%40workspace%3A." + languageName: node + linkType: soft + "axios@npm:^0.21.4": version: 0.21.4 resolution: "axios@npm:0.21.4" @@ -255,6 +261,7 @@ __metadata: dependencies: "@discordjs/rest": ^0.4.1 "@janderedev/revolt.js": ^6.0.0-rc.24-patch.1 + automod: ^0.1.0 axios: ^0.26.1 discord-api-types: ^0.31.2 discord.js: ^13.6.0 diff --git a/lib/package.json b/lib/package.json new file mode 100644 index 0000000..9e63396 --- /dev/null +++ b/lib/package.json @@ -0,0 +1,9 @@ +{ + "private": "true", + "name": "automod", + "version": "1.0.0", + "description": "Shared code for AutoMod", + "keywords": [], + "author": "", + "license": "ISC" +} diff --git a/lib/yarn.lock b/lib/yarn.lock new file mode 100644 index 0000000..453e986 --- /dev/null +++ b/lib/yarn.lock @@ -0,0 +1,140 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +duplexer@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" + integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== + +event-stream@=3.3.4: + version "3.3.4" + resolved "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571" + integrity sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g== + dependencies: + duplexer "~0.1.1" + from "~0" + map-stream "~0.1.0" + pause-stream "0.0.11" + split "0.3" + stream-combiner "~0.0.4" + through "~2.3.1" + +from@~0: + version "0.1.7" + resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe" + integrity sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +map-stream@~0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194" + integrity sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g== + +node-cleanup@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/node-cleanup/-/node-cleanup-2.1.2.tgz#7ac19abd297e09a7f72a71545d951b517e4dde2c" + integrity sha512-qN8v/s2PAJwGUtr1/hYTpNKlD6Y9rc4p8KSmJXyGdYGZsDGKXrGThikLFP9OCHFeLeEpQzPwiAtdIvBLqm//Hw== + +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +pause-stream@0.0.11: + version "0.0.11" + resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445" + integrity sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A== + dependencies: + through "~2.3" + +ps-tree@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.2.0.tgz#5e7425b89508736cdd4f2224d028f7bb3f722ebd" + integrity sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA== + dependencies: + event-stream "=3.3.4" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +split@0.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f" + integrity sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA== + dependencies: + through "2" + +stream-combiner@~0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.0.4.tgz#4d5e433c185261dde623ca3f44c586bcf5c4ad14" + integrity sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw== + dependencies: + duplexer "~0.1.1" + +string-argv@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.1.2.tgz#c5b7bc03fb2b11983ba3a72333dd0559e77e4738" + integrity sha512-mBqPGEOMNJKXRo7z0keX0wlAhbBAjilUdPW13nN0PecVryZxdHIeM7TqbsSUA7VYuS00HGC6mojP7DlQzfa9ZA== + +strip-ansi@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +through@2, through@~2.3, through@~2.3.1: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + +tsc-watch@^5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/tsc-watch/-/tsc-watch-5.0.3.tgz#4d0b2bda8f2677c8f9ed36e001c1a86c31701145" + integrity sha512-Hz2UawwELMSLOf0xHvAFc7anLeMw62cMVXr1flYmhRuOhOyOljwmb1l/O60ZwRyy1k7N1iC1mrn1QYM2zITfuw== + dependencies: + cross-spawn "^7.0.3" + node-cleanup "^2.1.2" + ps-tree "^1.2.0" + string-argv "^0.1.1" + strip-ansi "^6.0.0" + +typescript@^4.7.4: + version "4.7.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" + integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" diff --git a/web/package.json b/web/package.json index fefdd73..690aad4 100644 --- a/web/package.json +++ b/web/package.json @@ -13,6 +13,7 @@ "@types/axios": "^0.14.0", "@types/core-js": "^2.5.5", "@types/styled-components": "^5.1.21", + "automod": "^0.1.0", "axios": "^0.25.0", "core-js": "^3.20.3", "localforage": "^1.10.0", @@ -29,5 +30,8 @@ "typescript": "^4.4.4", "vite": "^2.7.2" }, - "packageManager": "yarn@3.2.1" + "packageManager": "yarn@3.2.1", + "resolutions": { + "automod": "portal:../lib" + } } diff --git a/web/yarn.lock b/web/yarn.lock index 8e6c000..8bfd14c 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -643,6 +643,12 @@ __metadata: languageName: node linkType: hard +"automod@portal:../lib::locator=web%40workspace%3A.": + version: 0.0.0-use.local + resolution: "automod@portal:../lib::locator=web%40workspace%3A." + languageName: node + linkType: soft + "axios@npm:*, axios@npm:^0.25.0": version: 0.25.0 resolution: "axios@npm:0.25.0" @@ -2242,6 +2248,7 @@ __metadata: "@types/react-dom": ^17.0.10 "@types/styled-components": ^5.1.21 "@vitejs/plugin-react": ^1.0.7 + automod: ^0.1.0 axios: ^0.25.0 core-js: ^3.20.3 localforage: ^1.10.0