quality / changes (push) Successful in 9s
quality / commitlint (push) Skipped
quality / docker-check (push) Skipped
CD / update-wiki (push) Successful in 6s
quality / web (push) Successful in 1m4s
quality / api (push) Successful in 54s
CD / quality (push) Successful in 2m17s
CD / publish (push) Successful in 2m21s
Worker сам ходит на origin по Cron Trigger; CFDM кладёт цели в KV и забирает результаты без POST /probe. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
523 B
TypeScript
18 lines
523 B
TypeScript
import { copyFileSync } from "node:fs";
|
|
import { dirname, join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "tsup";
|
|
|
|
export default defineConfig({
|
|
entry: ["src/server.ts"],
|
|
format: ["esm"],
|
|
dts: true,
|
|
async onSuccess() {
|
|
const root = join(dirname(fileURLToPath(import.meta.url)), "../..");
|
|
copyFileSync(
|
|
join(root, "workers/health-probe/src/index.mjs"),
|
|
join(dirname(fileURLToPath(import.meta.url)), "dist/health-probe-worker.mjs"),
|
|
);
|
|
},
|
|
});
|