mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
build: multi-config build and dep update
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import { esbuildPluginVersionInjector } from 'esbuild-plugin-version-injector';
|
||||
import { createTsupConfig } from '../../tsup.config.js';
|
||||
|
||||
export default createTsupConfig({
|
||||
entry: {
|
||||
index: 'src/index.ts',
|
||||
defaultWorker: 'src/strategies/sharding/defaultWorker.ts',
|
||||
},
|
||||
external: ['zlib-sync'],
|
||||
esbuildPlugins: [esbuildPluginVersionInjector()],
|
||||
});
|
||||
export default [
|
||||
createTsupConfig({
|
||||
external: ['zlib-sync'],
|
||||
esbuildPlugins: [esbuildPluginVersionInjector()],
|
||||
}),
|
||||
createTsupConfig({
|
||||
entry: {
|
||||
defaultWorker: 'src/strategies/sharding/defaultWorker.ts',
|
||||
},
|
||||
}),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user