Commit 3252ee5
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>
1 parent 5e77c9b commit 3252ee5
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
| |||
0 commit comments