Files
trade-drift-dlob/esbuild.config.js
jordy25519 8bea223f27 esbuildify again
fix issues from #new-listing-dev thread
use yarn workspaces for package install
2024-12-18 11:28:01 +08:00

27 lines
614 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'
]
};
(async () => {
let entryPoints = await glob("./src/**/*.ts");
await esbuild.build({
...commonConfig,
entryPoints,
outdir: 'lib',
});
})().catch(() => process.exit(1));