Skip to content

CI: "Lint REST API Code" (deno lint) fails immediately — no root deno.json, package.json missing "version" #399

Closed

Description

@thinkclay

Every run of the "Lint REST API Code" job (.github/workflows/api-tests.yml) fails within seconds, before linting a single file:

Warning Linked package ignored because package.json was missing version field.
at /home/runner/work/UNI-Construct/UNI-Construct/package.json
error: Linking npm packages requires using a node_modules directory. Ensure you have a package.json or set the "nodeModulesDir" option to "auto" or "manual" in your workspace root deno.json.

Root cause: there is no deno.json/deno.jsonc at the repo root at all, and the root package.json has no version field. deno lint can't resolve the npm-linked workspace without one of those, so the job aborts immediately — no files ever get linted.

Impact: the "Lint REST API Code" check fails on every PR that touches packages/supabase/functions/api/, regardless of diff content, so it's currently useless as a gate (observed failing identically on #398, unrelated to that PR's changes).

Fix: add a root deno.json with "nodeModulesDir": "auto" (or "manual"), and/or add a "version" field to root package.json. Should be a small, low-risk config change — verify by re-running the Lint REST API Code job on an existing PR touching packages/supabase/functions/api/ and confirming it actually lints files instead of erroring at startup.

Found 2026-07-17 by the Friday weekly-improvement routine while triaging CI failures on #398.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXagent-readybugpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions