Skip to content

fix(install): auto-create package.json when missing in vp install / vp add#545

Merged
fengmk2 merged 2 commits intomainfrom
fix-vp-dev-missing-package-json
Feb 7, 2026
Merged

fix(install): auto-create package.json when missing in vp install / vp add#545
fengmk2 merged 2 commits intomainfrom
fix-vp-dev-missing-package-json

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Feb 5, 2026

Running vp install or vp add in a directory without package.json previously
failed with "Package not found in workspace". Now a minimal { "type": "module" }
package.json is created automatically, allowing PM detection and install to proceed.

@fengmk2 fengmk2 requested a review from Brooooooklyn February 5, 2026 14:29
@fengmk2 fengmk2 marked this pull request as ready for review February 5, 2026 14:29
@fengmk2 fengmk2 force-pushed the fix-vp-dev-missing-package-json branch from cbc48dc to de8bd98 Compare February 5, 2026 14:31
@fengmk2 fengmk2 force-pushed the vp-env-shims branch 2 times, most recently from 72450c8 to b80be6c Compare February 5, 2026 14:50
@fengmk2 fengmk2 force-pushed the fix-vp-dev-missing-package-json branch 7 times, most recently from 179a406 to 68e018f Compare February 6, 2026 02:09
@fengmk2 fengmk2 force-pushed the fix-vp-dev-missing-package-json branch from 68e018f to a29953d Compare February 6, 2026 04:13
@fengmk2 fengmk2 force-pushed the fix-vp-dev-missing-package-json branch 3 times, most recently from a612cef to 85c0097 Compare February 6, 2026 06:40
@fengmk2 fengmk2 force-pushed the fix-vp-dev-missing-package-json branch from 78c1988 to ae90321 Compare February 6, 2026 07:26
@fengmk2 fengmk2 force-pushed the fix-vp-dev-missing-package-json branch from ae90321 to 97f4a34 Compare February 7, 2026 07:42
Copy link
Copy Markdown
Member Author

fengmk2 commented Feb 7, 2026

Merge activity

  • Feb 7, 8:24 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 7, 9:07 AM UTC: Graphite rebased this pull request as part of a merge.
  • Feb 7, 9:25 AM UTC: @fengmk2 merged this pull request with Graphite.

@fengmk2 fengmk2 changed the base branch from vp-env-shims to graphite-base/545 February 7, 2026 08:45
@fengmk2 fengmk2 changed the base branch from graphite-base/545 to main February 7, 2026 09:05
… `vp add`

Running `vp install` or `vp add` in a directory without package.json previously
failed with "Package not found in workspace". Now a minimal `{ "type": "module" }`
package.json is created automatically, allowing PM detection and install to proceed.
When running `vp pm`, `vp outdated`, `vp why`, and other package manager
commands in a directory without package.json, the error was verbose and
unfriendly. Now shows a clean "No package.json found." message without
the "Error: " prefix by introducing an Error::UserMessage variant.
@fengmk2 fengmk2 force-pushed the fix-vp-dev-missing-package-json branch from 97f4a34 to 4355b45 Compare February 7, 2026 09:06
@fengmk2 fengmk2 merged commit 6529a63 into main Feb 7, 2026
17 checks passed
@fengmk2 fengmk2 deleted the fix-vp-dev-missing-package-json branch February 7, 2026 09:25
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.

2 participants