mirror of
https://github.com/lux-amm/v4-core.git
synced 2026-10-30 20:54:53 +00:00
18 lines
376 B
JavaScript
18 lines
376 B
JavaScript
const { build } = require("esbuild");
|
|
|
|
const entryPoints = ["getModifyLiquidityResult", "getSqrtPriceAtTick", "getTickAtSqrtPrice"];
|
|
|
|
const sharedConfig = {
|
|
bundle: true,
|
|
minify: false,
|
|
};
|
|
|
|
for (const entryPoint of entryPoints) {
|
|
build({
|
|
entryPoints: [`src/${entryPoint}.ts`],
|
|
...sharedConfig,
|
|
platform: "node",
|
|
outfile: `dist/${entryPoint}.js`,
|
|
});
|
|
}
|