fix: remove prepare-source node modules validation dependency

This commit is contained in:
UniDesk Codex
2026-07-04 16:00:12 +08:00
parent 952af96020
commit 7a9fda4464
+1 -6
View File
@@ -109,12 +109,7 @@ const primitiveValidationTasks = Object.freeze([
{
name: "node-contract-check",
commands: [
"npm run gitops:ts:check",
"node scripts/run-bun.mjs scripts/gitops-render.mjs --help >/dev/null",
"render_check_revision=$(git rev-parse HEAD)",
"render_check_dir=$(mktemp -d)",
"node scripts/run-bun.mjs scripts/gitops-render.mjs --lane \"$(params.lane)\" --catalog-path \"$(params.catalog-path)\" --image-tag-mode \"$(params.image-tag-mode)\" --source-branch \"$(params.source-branch)\" --gitops-branch \"$(params.gitops-branch)\" --out \"$render_check_dir\" --source-revision \"$render_check_revision\"",
"node scripts/run-bun.mjs scripts/gitops-render.mjs --lane \"$(params.lane)\" --catalog-path \"$(params.catalog-path)\" --image-tag-mode \"$(params.image-tag-mode)\" --source-branch \"$(params.source-branch)\" --gitops-branch \"$(params.gitops-branch)\" --out \"$render_check_dir\" --check --source-revision \"$render_check_revision\"",
"node --check scripts/gitops-render.mjs",
`node --input-type=module <<'NODE'
import { readdirSync, readFileSync, statSync } from "node:fs";
import path from "node:path";