From 02ffce8173e2cd885e593023d0dd4969c96758e8 Mon Sep 17 00:00:00 2001 From: Almeida Date: Mon, 10 Oct 2022 15:42:03 +0100 Subject: [PATCH] chore: make 'Note to developers' on version constant a regular comment (#8730) chore: make 'Note to developers' a regular comment Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/builders/src/index.ts | 3 +-- packages/collection/src/index.ts | 3 +-- packages/rest/src/index.ts | 3 +-- packages/voice/src/index.ts | 3 +-- packages/ws/src/index.ts | 5 ++--- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/packages/builders/src/index.ts b/packages/builders/src/index.ts index bc6054a5b58a..0ce39197ce02 100644 --- a/packages/builders/src/index.ts +++ b/packages/builders/src/index.ts @@ -44,8 +44,7 @@ export * from '@discordjs/util'; /** * The [\@discordjs/builders](https://github.com/discordjs/discord.js/blob/main/packages/builders/#readme) version * that you are currently using. - * - * Note to developers: This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild */ +// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild // eslint-disable-next-line @typescript-eslint/no-inferrable-types export const version: string = '[VI]{{inject}}[/VI]'; diff --git a/packages/collection/src/index.ts b/packages/collection/src/index.ts index d732240b0c70..3fcd3e11a504 100644 --- a/packages/collection/src/index.ts +++ b/packages/collection/src/index.ts @@ -3,8 +3,7 @@ export * from './collection.js'; /** * The [\@discordjs/collection](https://github.com/discordjs/discord.js/blob/main/packages/collection/#readme) version * that you are currently using. - * - * Note to developers: This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild */ +// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild // eslint-disable-next-line @typescript-eslint/no-inferrable-types export const version: string = '[VI]{{inject}}[/VI]'; diff --git a/packages/rest/src/index.ts b/packages/rest/src/index.ts index fe2a0575edaa..a5ffc94d0b92 100644 --- a/packages/rest/src/index.ts +++ b/packages/rest/src/index.ts @@ -10,8 +10,7 @@ export { makeURLSearchParams, parseResponse } from './lib/utils/utils.js'; /** * The [\@discordjs/rest](https://github.com/discordjs/discord.js/blob/main/packages/rest/#readme) version * that you are currently using. - * - * Note to developers: This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild */ +// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild // eslint-disable-next-line @typescript-eslint/no-inferrable-types export const version: string = '[VI]{{inject}}[/VI]'; diff --git a/packages/voice/src/index.ts b/packages/voice/src/index.ts index eb2ffb7f7bbf..99e905eae108 100644 --- a/packages/voice/src/index.ts +++ b/packages/voice/src/index.ts @@ -23,8 +23,7 @@ export { type JoinConfig, getVoiceConnection, getVoiceConnections, getGroups } f /** * The [\@discordjs/voice](https://github.com/discordjs/discord.js/blob/main/packages/voice/#readme) version * that you are currently using. - * - * Note to developers: This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild */ +// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild // eslint-disable-next-line @typescript-eslint/no-inferrable-types export const version: string = '[VI]{{inject}}[/VI]'; diff --git a/packages/ws/src/index.ts b/packages/ws/src/index.ts index d502753984f5..387f17ff3045 100644 --- a/packages/ws/src/index.ts +++ b/packages/ws/src/index.ts @@ -13,10 +13,9 @@ export * from './ws/WebSocketManager.js'; export * from './ws/WebSocketShard.js'; /** - * The [\@discordjs/voice](https://github.com/discordjs/discord.js/blob/main/packages/voice/#readme) version + * The [\@discordjs/ws](https://github.com/discordjs/discord.js/blob/main/packages/ws/#readme) version * that you are currently using. - * - * Note to developers: This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild */ +// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild // eslint-disable-next-line @typescript-eslint/no-inferrable-types export const version: string = '[VI]{{inject}}[/VI]';