Skip to content

fix(workspace): ignore packages inside node_modules - #539

Merged
wan9chi merged 1 commit into
voidzero-dev:mainfrom
jong-kyung:fix/ignore-node-modules-workspaces
Aug 4, 2026
Merged

fix(workspace): ignore packages inside node_modules#539
wan9chi merged 1 commit into
voidzero-dev:mainfrom
jong-kyung:fix/ignore-node-modules-workspaces

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Motivation

Broad workspace patterns such as samples/** caused vp run to treat installed dependencies beneath node_modules as workspace packages and execute their matching scripts. Workspace discovery now prunes every node_modules tree before package manifests are collected, while preserving legitimate nested workspace packages.

A regression test covers the reported broad-glob layout and verifies that only the root and intended app package are discovered.

Related: voidzero-dev/vite-plus#2166

@jong-kyung
jong-kyung force-pushed the fix/ignore-node-modules-workspaces branch 2 times, most recently from 07fc7cf to f8c7e01 Compare July 12, 2026 11:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e76cbf61bd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vt_workspace/src/lib.rs
@snebjorn

Copy link
Copy Markdown

Any progress?

@jong-kyung

Copy link
Copy Markdown
Contributor Author

@wan9chi Would you be able to review it when you have a chance?

Co-authored-by: GPT-5.2 <codex@openai.com>
@wan9chi
wan9chi force-pushed the fix/ignore-node-modules-workspaces branch from d0efa7b to 7c95089 Compare August 4, 2026 05:37

@wan9chi wan9chi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased onto latest main; conflicts resolved against the vt_* crate rename. Focused tests and Clippy pass.

@wan9chi
wan9chi merged commit 99c1f3a into voidzero-dev:main Aug 4, 2026
19 checks passed
@jong-kyung
jong-kyung deleted the fix/ignore-node-modules-workspaces branch August 4, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants