-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): http-only wrapper (#9281)
- Loading branch information
Showing
5 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export * from '../api/index.js'; | ||
export * from '../util/index.js'; | ||
|
||
export * from 'discord-api-types/v10'; | ||
|
||
/** | ||
* The {@link https://github.com/discordjs/discord.js/blob/main/packages/core/#readme | @discordjs/core} version | ||
* that you are currently using. | ||
*/ | ||
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild | ||
export const version = '[VI]{{inject}}[/VI]' as string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import { esbuildPluginVersionInjector } from 'esbuild-plugin-version-injector'; | ||
import { createTsupConfig } from '../../tsup.config.js'; | ||
|
||
export default createTsupConfig({}); | ||
export default createTsupConfig({ | ||
entry: { | ||
index: 'src/index.ts', | ||
'http-only': 'src/http-only/index.ts', | ||
}, | ||
esbuildPlugins: [esbuildPluginVersionInjector()], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters