From 3d1fac6f8a2defc40dc84f55506208e4909b542a Mon Sep 17 00:00:00 2001 From: Koji Wakayama Date: Mon, 10 Aug 2026 05:52:08 +0200 Subject: [PATCH] build: define the verify:dist task the release script already calls `scripts/release.ts` runs `deno task verify:dist` whenever `--no-build` is not passed: // 3. Verify distributable artifacts locally (CI will rebuild on publish) if (!args["no-build"]) { await runCommand(["deno", "task", "verify:dist"]); } No such task existed. Running it printed "Task not found: verify:dist" followed by the task list, so any release cut without `--no-build` failed at that step. Together with #3505, which fixed `deno task test` dying on an orphaned `#dnt` import, this is why recent releases were all cut as `--no-test --no-build`: both of the release script's own gates were unrunnable, for two unrelated reasons. Defined as the two tasks the script's own comment names -- binary and npm package. Verified by running it end to end on this branch: exit 0, both artifacts produced. Defining a task that does not work would only move the breakage, so it was run before being proposed. Closes veryfront-issue-inbox#435. --- deno.json | 1 + 1 file changed, 1 insertion(+) diff --git a/deno.json b/deno.json index a0a7f4dd99..bc030d3026 100644 --- a/deno.json +++ b/deno.json @@ -463,6 +463,7 @@ "build": "deno task build:prepare && deno run -A scripts/build/compile-binary.ts --output ./bin/veryfront", "build:proxy-lock": "deno cache --node-modules-dir=none --lock scripts/build/proxy-deno.lock cli/proxy-main.ts", "build:npm": "deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run --config=scripts/test.deno.json --frozen -A scripts/build/build-npm-dnt.ts", + "verify:dist": "deno task build && deno task build:npm", "release": "deno run -A scripts/release.ts", "test": "deno task generate && DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/testing/preload.ts --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts,scripts' --unstable-worker-options --unstable-net", "test:unit": "deno task generate && DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/testing/preload.ts --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 '--ignore=tests,src/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts*' ! -name '*.integration.test.ts*')",