Skip to content

Commit

Permalink
chore: make 'Note to developers' on version constant a regular comment (
Browse files Browse the repository at this point in the history
#8730)

chore: make 'Note to developers' a regular comment

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
almeidx and kodiakhq[bot] committed Oct 10, 2022
1 parent caba122 commit 02ffce8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions packages/builders/src/index.ts
Expand Up @@ -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]';
3 changes: 1 addition & 2 deletions packages/collection/src/index.ts
Expand Up @@ -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]';
3 changes: 1 addition & 2 deletions packages/rest/src/index.ts
Expand Up @@ -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]';
3 changes: 1 addition & 2 deletions packages/voice/src/index.ts
Expand Up @@ -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]';
5 changes: 2 additions & 3 deletions packages/ws/src/index.ts
Expand Up @@ -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]';

0 comments on commit 02ffce8

Please sign in to comment.