esbuildify again

fix issues from #new-listing-dev thread
use yarn workspaces for package install
This commit is contained in:
jordy25519
2024-12-18 11:28:01 +08:00
parent b129bfed74
commit 8bea223f27
5 changed files with 299 additions and 103 deletions

27
esbuild.config.js Normal file
View File

@@ -0,0 +1,27 @@
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));