Repository navigation
fix(migrate): skip gitignored directories when migrating script runners - #3623
Open
voidzero-bot[bot] wants to merge 4 commits into
Open
voidzero-bot[bot] wants to merge 4 commits into
voidzero-bot[bot] wants to merge 4 commits into
Conversation
|
Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.
Updated: |
Contributor
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
`vp migrate` printed the `--full` hint on every run when a gitignored folder, such as a vendored `bower_components`, held a file that loads ts-node, tsx, or oxnode. The runner scans read every directory except a fixed list of names. The scans that detect runner uses and rewrite runner shebangs now skip gitignored directories. They use the `GitignoreMatcher` from the Vitest v5 preflight, which reads rules from the Git root and compiles them once per walk. A workspace package that is itself gitignored is still scanned in full. The scan that decides whether to remove a runner's devDependency still reads ignored files, because migration leaves them unchanged and ignored build output can load the runner. Closes #3622
fengmk2
force-pushed
the
triagebot/fix-3622
branch
from
December 5, 2026 17:36
ac893b3 to
f0d4934
Compare
`sourceTreeMatches` and the Vitest v5 file walk now use one helper to pick the child directories they enter.
On an existing Vite+ project, a bare `vp migrate` printed the `--full` hint on every run when the project had a ts-node or oxnode use that migration cannot convert, such as a type-checking ts-node command. The hint check counted uses that `--full` keeps with a warning. It now counts only uses that `--full` changes.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vp migrateprinted the--fullhint on every run when a gitignored folder, such as a vendoredbower_components, held a file that loads ts-node, tsx, or oxnode. The runner scans read every directory except a fixed list of names.The scans that detect runner uses and rewrite runner shebangs now skip gitignored directories. They use the
GitignoreMatcherfrom the Vitest v5 preflight, which reads rules from the Git root and compiles them once per walk. A workspace package that is itself gitignored is still scanned in full. The scan that decides whether to remove a runner's devDependency still reads ignored files, because migration leaves them unchanged and ignored build output can load the runner.The hint check also stops counting ts-node and oxnode uses that
--fullkeeps with a warning, such as a ts-node command that type-checks or arequire('ts-node').register()call. Before, such a use printed the hint again after every--fullrun.Closes #3622