Skip to content

fix(cli): track TSRS_LINT_RUN_EXTERNAL_CODE for type-aware lint caching and document it - #3477

Draft
voidzero-bot[bot] wants to merge 1 commit into
mainfrom
triagebot/fix-3476
Draft

voidzero-bot[bot] wants to merge 1 commit into
mainfrom
triagebot/fix-3476

Conversation

@voidzero-bot

@voidzero-bot voidzero-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Type-aware vp lint uses the bundled tsrs-lint backend. When a tsconfig.json declares contentMappers (e.g. vize for .vue files), that backend requires the --runExternalCode flag, which Oxlint does not currently forward from lint.options.

The existing TSRS_LINT_RUN_EXTERNAL_CODE environment variable already reaches the backend and lets linting proceed, but it was undocumented and not included in the task-cache fingerprint.

This change documents the environment variable in the Lint guide and adds it to the cached env list for vp lint and vp check, so toggling the opt-in correctly invalidates cached results.

Note: adding a lint.options.runExternalCode config key would require an upstream Oxlint schema change, because Oxlint rejects unknown fields when it parses vite.config.ts.

Closes #3476

Automated triage bot fix (AI-assisted).

@github-actions

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: 3b48f36

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://triagebot-fix-3476-viteplus-dev.voidzero-docs.workers.dev (commit 3b48f36)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://762d9b7b-viteplus-dev.voidzero-docs.workers.dev 3b48f36 2026-11-17T07:27:41.145Z Visit the dashboard ↗

@github-actions

Copy link
Copy Markdown
Contributor

CLI artifact sizes (3b48f36)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.36 MiB 2.36 MiB 0 B (0.00%)
packages/core/dist Directory total 4.11 MiB 4.11 MiB 0 B (0.00%)
Combined package dist Directory total 6.47 MiB 6.47 MiB 0 B (0.00%)
vp (Linux x64) Binary 8.35 MiB 8.35 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 3.82 MiB 3.82 MiB 0 B (0.00%)
NAPI (Linux x64) Binary 37.06 MiB 37.06 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 14.79 MiB 14.80 MiB +641 B (+0.00%)
vp (macOS ARM64) Binary 5.46 MiB 5.46 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 3.25 MiB 3.25 MiB 0 B (0.00%)
NAPI (macOS ARM64) Binary 43.65 MiB 43.65 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 18.94 MiB 18.94 MiB +56 B (+0.00%)
vp (Windows x64) Binary 6.19 MiB 6.19 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 2.86 MiB 2.86 MiB 0 B (0.00%)
NAPI (Windows x64) Binary 33.03 MiB 33.03 MiB 0 B (0.00%)
NAPI (Windows x64) gzip -9 13.53 MiB 13.53 MiB +105 B (+0.00%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.69 MiB 4.69 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.25 MiB 2.25 MiB 0 B (0.00%)

@fengmk2
fengmk2 marked this pull request as draft November 17, 2026 07:53

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vp lint: allow configuring the type-aware backend (tsrs-lint) — pass options such as --runExternalCode and --fast from the lint config

0 participants