Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(migrate): ignore gitignored dirs when detecting runner usage - #3623

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

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

Conversation

@voidzero-bot

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

Copy link
Copy Markdown
Contributor

vp migrate on an already-migrated project printed the --full hint every run when a gitignored vendored folder (such as bower_components/) contained a file calling require('ts-node'). The runner-detection scans in detectScriptRunnerProject() walk the whole tree via sourceTreeMatches() and skip only a fixed list of directory names, so files the project neither commits nor runs drove the migration recommendation.

sourceTreeMatches() now supports a skipGitignoredDirs option, checked with the native isDirectoryGitignored() binding and rooted at the Git root so workspace packages inherit the repository's ignore rules. The detection scans for ts-node, tsx, and oxnode opt in, so uses confined to gitignored trees no longer trigger prompts or the --full hint. The option stays off for dependency retention, which deliberately keeps reading gitignored build output because it can still load the runner at runtime.

Closes #3622

Automated triage bot fix (AI-assisted).

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://triagebot-fix-3622-viteplus-dev.voidzero-docs.workers.dev (commit ff6e12f)

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://4c2aa24e-viteplus-dev.voidzero-docs.workers.dev ff6e12f 2026-11-30T22:40:39.847Z Visit the dashboard ↗

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 migrate suggests --full because the ts-node scan reads gitignored folders like bower_components

0 participants