From ed68a1af5b989a571bb2589ad66424faefa873fb Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Mon, 28 Nov 2022 08:14:16 +0000 Subject: [PATCH] chore: Update /core constants (#8874) --- .github/ISSUE_TEMPLATE/bug_report.yml | 1 + .github/ISSUE_TEMPLATE/feature_request.yml | 1 + .github/workflows/documentation.yml | 2 +- .github/workflows/npm-auto-deprecate.yml | 2 +- .github/workflows/publish-dev.yml | 2 ++ apps/website/src/app/docs/[...slug]/page.tsx | 2 +- apps/website/src/util/constants.ts | 2 +- packages/scripts/src/generateIndex.ts | 2 +- 8 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 69d82ecfc107..8053eb32d400 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -15,6 +15,7 @@ body: - brokers - builders - collection + - core - rest - proxy - proxy-container diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index c49dd9d2ae24..5440d6e40e45 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -16,6 +16,7 @@ body: - discord.js - builders - collection + - core - rest - proxy - proxy-container diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 29eadb2e05bd..4cda34945244 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -67,7 +67,7 @@ jobs: max-parallel: 1 fail-fast: false matrix: - package: ['brokers', 'builders', 'collection', 'discord.js', 'proxy', 'rest', 'util', 'voice', 'ws'] + package: ['brokers', 'builders', 'collection', 'core', 'discord.js', 'proxy', 'rest', 'util', 'voice', 'ws'] runs-on: ubuntu-latest env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} diff --git a/.github/workflows/npm-auto-deprecate.yml b/.github/workflows/npm-auto-deprecate.yml index c57e71e670b8..d7c7b8340aaf 100644 --- a/.github/workflows/npm-auto-deprecate.yml +++ b/.github/workflows/npm-auto-deprecate.yml @@ -21,6 +21,6 @@ jobs: uses: ./packages/actions/src/yarnCache - name: Deprecate versions - run: 'yarn npm-deprecate --name "*dev*" --package @discordjs/brokers @discordjs/builders @discordjs/collection discord.js @discordjs/proxy @discordjs/rest @discordjs/util @discordjs/voice @discordjs/ws' + run: 'yarn npm-deprecate --name "*dev*" --package @discordjs/brokers @discordjs/builders @discordjs/collection @discordjs/core discord.js @discordjs/proxy @discordjs/rest @discordjs/util @discordjs/voice @discordjs/ws' env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml index 2630fe615d40..bb51ce0c0ad6 100644 --- a/.github/workflows/publish-dev.yml +++ b/.github/workflows/publish-dev.yml @@ -16,6 +16,8 @@ jobs: folder: 'builders' - package: '@discordjs/collection' folder: 'collection' + - package: '@discordjs/core' + folder: 'core' - package: 'discord.js' folder: 'discord.js' - package: '@discordjs/proxy' diff --git a/apps/website/src/app/docs/[...slug]/page.tsx b/apps/website/src/app/docs/[...slug]/page.tsx index 560d90eaf280..c86205d018db 100644 --- a/apps/website/src/app/docs/[...slug]/page.tsx +++ b/apps/website/src/app/docs/[...slug]/page.tsx @@ -390,5 +390,5 @@ export default async function Page({ params }: { params: { slug: string[] } }) { } export const config = { - unstable_includeFiles: [`../../packages/{brokers,builders,collection,proxy,rest,util,voice,ws}/README.md`], + unstable_includeFiles: [`../../packages/{brokers,builders,collection,core,proxy,rest,util,voice,ws}/README.md`], }; diff --git a/apps/website/src/util/constants.ts b/apps/website/src/util/constants.ts index bc85a14f3397..d662a7ec7845 100644 --- a/apps/website/src/util/constants.ts +++ b/apps/website/src/util/constants.ts @@ -1,4 +1,4 @@ -export const PACKAGES = ['brokers', 'builders', 'collection', 'proxy', 'rest', 'util', 'voice', 'ws']; +export const PACKAGES = ['brokers', 'builders', 'collection', 'core', 'proxy', 'rest', 'util', 'voice', 'ws']; export const DESCRIPTION = "discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend."; diff --git a/packages/scripts/src/generateIndex.ts b/packages/scripts/src/generateIndex.ts index e7e17f2cc727..b6ca8eb65971 100644 --- a/packages/scripts/src/generateIndex.ts +++ b/packages/scripts/src/generateIndex.ts @@ -28,7 +28,7 @@ export interface MemberJSON { summary: string | null; } -export const PACKAGES = ['builders', 'collection', 'proxy', 'rest', 'util', 'voice', 'ws']; +export const PACKAGES = ['builders', 'collection', 'core', 'proxy', 'rest', 'util', 'voice', 'ws']; let idx = 0; export function createApiModel(data: any) {