You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: "Lint REST API Code" (deno lint) fails immediately — no root deno.json, package.json missing "version" #399
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.
Activity
fix(ci): add nodeModulesDir to api/deno.json so deno lint resolves npm (
fix(ci): restore REST API Tests + Lint jobs; repair OAuth flows (#399, …
fix(tests): restore the Deno suites, and stop failures passing silently
chore: gitignore fixes, untrack build artifacts, drop dead scripts
chore: gitignore fixes, untrack build artifacts, drop dead scripts (#776