Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,35 @@
import { build } from "esbuild";
const sourcemap = process.env.SOURCEMAP === "true" || process.env.BUILD_SOURCEMAPS === "true";
const externalBarePackagesPlugin = {
name: "external-bare-packages",
setup(builder) {
builder.onResolve({ filter: /^[^./]|^\.[^./]|^\.\.[^/]/ }, (args) => {
if (args.path === "@toolctrl/queue/runtime" || args.path.startsWith("@toolctrl/queue/runtime/")) {
return { path: args.path, external: true };
}
if (args.path.startsWith("@toolctrl/")) {
return undefined;
}
return { path: args.path, external: true };
});
},
};
await build({
entryPoints: ["src/index.ts", "src/health.ts", "src/jobs/plugin-sandbox-worker.ts"],
outdir: "dist",
bundle: true,
platform: "node",
format: "esm",
target: "node20",
sourcemap,
banner: {
js: 'import { createRequire as __toolctrlCreateRequire } from "node:module"; const require = __toolctrlCreateRequire(import.meta.url);',
},
logLevel: "warning",
plugins: [externalBarePackagesPlugin],
});