mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: added sharding
This commit is contained in:
1 parent
ad51be7afc
commit
43f634e198
5 files changed
+21
-6
No files matched your search
+6
-5
@@ -1,10 +1,10 @@
|
||||
import { build } from 'esbuild';
|
||||
|
||||
console.log('Building bot...');
|
||||
const FILES = ['bot', 'index'];
|
||||
|
||||
await build({
|
||||
entryPoints: ['src/bot.ts'],
|
||||
outfile: 'dist/bot/index.cjs',
|
||||
entryPoints: FILES.map((file) => `src/${file}.ts`),
|
||||
outdir: 'dist/bot',
|
||||
|
||||
platform: 'node',
|
||||
tsconfig: 'tsconfig.esbuild.json',
|
||||
@@ -14,6 +14,9 @@ await build({
|
||||
},
|
||||
format: 'cjs',
|
||||
jsx: 'transform',
|
||||
outExtension: {
|
||||
'.js': '.cjs',
|
||||
},
|
||||
|
||||
bundle: true,
|
||||
sourcemap: true,
|
||||
@@ -23,5 +26,3 @@ await build({
|
||||
|
||||
logLevel: 'info',
|
||||
});
|
||||
|
||||
console.log('Built bot');
|
||||
Reference in new issue
Block a user