35 lines
858 B
JavaScript
35 lines
858 B
JavaScript
const esbuild = require('esbuild');
|
|
const glob = require('tiny-glob');
|
|
|
|
const commonConfig = {
|
|
bundle: true,
|
|
platform: 'node',
|
|
target: 'node20',
|
|
sourcemap: false,
|
|
minify: false, // makes messy debug/error output
|
|
treeShaking: true,
|
|
legalComments: 'none',
|
|
metafile: true,
|
|
format: 'cjs',
|
|
external: [
|
|
'bigint-buffer',
|
|
'@triton-one/yellowstone-grpc',
|
|
<<<<<<< HEAD
|
|
'helius-laserstream',
|
|
'rpc-websockets',
|
|
'rpc-websockets/dist/lib/client',
|
|
'rpc-websockets/dist/lib/client/websocket'
|
|
=======
|
|
'helius-laserstream'
|
|
>>>>>>> 1c3d167 (try to fix rpc-websockets)
|
|
]
|
|
};
|
|
|
|
(async () => {
|
|
let entryPoints = await glob("./src/**/*.ts");
|
|
await esbuild.build({
|
|
...commonConfig,
|
|
entryPoints,
|
|
outdir: 'lib',
|
|
});
|
|
})().catch(() => process.exit(1)); |