diff --git a/bun.lockb b/bun.lockb index 025c4779..52e74ab4 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/worker/bun.lockb b/worker/bun.lockb index 9b157975..3c5b5a5e 100755 Binary files a/worker/bun.lockb and b/worker/bun.lockb differ diff --git a/worker/package.json b/worker/package.json index 6aa539fe..69ff0be0 100644 --- a/worker/package.json +++ b/worker/package.json @@ -19,7 +19,6 @@ "@types/diff": "6.0.0", "@vitest/ui": "2.1.8", "diff": "7.0.0", - "execa": "9.5.2", "typescript": "5.7.2", "vitest": "2.1.8", "wrangler": "3.96.0" diff --git a/worker/vitest.config.ts b/worker/vitest.config.ts index d33c8a03..8a0f8a78 100644 --- a/worker/vitest.config.ts +++ b/worker/vitest.config.ts @@ -1,10 +1,12 @@ // ref: https://vitest.dev/config/ +import { exec } from "node:child_process"; +import { promisify } from "node:util"; import { defineWorkersConfig } from "@cloudflare/vitest-pool-workers/config"; -import { $ } from "execa"; -const { stdout: compatibilityDate } = - await $`mise run worker:wrangler-compat-date`; +const { stdout: compatibilityDate } = await promisify(exec)( + "mise run worker:wrangler-compat-date", +); export default defineWorkersConfig({ test: {