Skip to content

fix: update resolution logic for vp create to match npm-init#1041

Merged
fengmk2 merged 3 commits intovoidzero-dev:mainfrom
rrdelaney:rrdelaney/fix-scoped-create
Mar 19, 2026
Merged

fix: update resolution logic for vp create to match npm-init#1041
fengmk2 merged 3 commits intovoidzero-dev:mainfrom
rrdelaney:rrdelaney/fix-scoped-create

Conversation

@rrdelaney
Copy link
Copy Markdown
Contributor

Updates the resolution logic of vp create to match the logic from npm-init, specifically around scoped names without a package. With npm create and pnpm create, scoped named resolve to @scope/create.

Ran into this trying to run vp create @scope and got hit with a confusing error message, so figured I'd just upstream a fix!

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 19, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit d2fa1c1
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69bb8ae0ad0d5200083f96c2

@fengmk2
Copy link
Copy Markdown
Member

fengmk2 commented Mar 19, 2026

@codex review

Copy link
Copy Markdown

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

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: b357d54575

ℹ️ 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".

@fengmk2 fengmk2 changed the title Update resolution logic for vp create to match npm-init fix: update resolution logic for vp create to match npm-init Mar 19, 2026
@fengmk2
Copy link
Copy Markdown
Member

fengmk2 commented Mar 19, 2026

@rrdelaney Thanks!

@fengmk2 fengmk2 merged commit 3252ee5 into voidzero-dev:main Mar 19, 2026
22 checks passed
TheAlexLichter pushed a commit that referenced this pull request Mar 19, 2026
Updates the resolution logic of `vp create` to match the logic from
[`npm-init`](https://docs.npmjs.com/cli/v11/commands/npm-init),
specifically around scoped names without a package. With `npm create`
and `pnpm create`, scoped named resolve to `@scope/create`.

Ran into this trying to run `vp create @scope` and got hit with a
confusing error message, so figured I'd just upstream a fix!

---------

Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
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