Skip to content

fix: validate package workspaces field#494

Closed
wyf027 wants to merge 1 commit into
voidzero-dev:mainfrom
wyf027:codex/validate-package-workspaces
Closed

fix: validate package workspaces field#494
wyf027 wants to merge 1 commit into
voidzero-dev:mainfrom
wyf027:codex/validate-package-workspaces

Conversation

@wyf027

@wyf027 wyf027 commented Jun 28, 2026

Copy link
Copy Markdown

Summary

  • Treat package.json#workspaces as a workspace marker only when it has a valid npm/yarn shape.
  • Accept an array of strings or an object whose packages field is an array of strings.
  • Add workspace root detection tests for valid array/object forms and malformed workspaces fields.

Closes #244.

Tests

  • cargo fmt --all --check
  • cargo test -p vite_workspace

@fengmk2

fengmk2 commented Jun 28, 2026

Copy link
Copy Markdown
Member

Please stop submitting pull request unless I assign an issue to you. If you continue this behavior, I will block you from submitting PRs for a period of time.

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.

Validate "workspaces" field on package.json

2 participants