Commit c441ba6
committed
feat(create)!: switch manifest-entry syntax from @org/name to @org:name
BREAKING (unpublished feature): the manifest-entry selector uses `:`
instead of `/`. `vp create @your-org:web` now picks the `web` entry from
`@your-org/create`'s `createConfig.templates` manifest. The old
`@your-org/web` form is no longer a manifest lookup — it reverts to the
pre-feature `expandCreateShorthand` path that turns it into
`@your-org/create-web`, exactly as it worked before this feature.
Rationale (cpojer + fengmk2, PR #1398 review): the `/` form collides
with real npm packages. If `@your-org/web` exists on npm as a genuine
package, `vp create @your-org/web` would silently prefer the manifest
entry over the real package — confusing, and fragile. The `:` separator
mirrors the existing `vite:monorepo` / `vite:library` builtin-template
syntax, which users already read as "namespace:entry". It also keeps
manifest entries lexically distinct from any real npm package path.
Miss behavior: `vp create @org:foo` where `foo` isn't in the manifest
(or the manifest is absent) is a HARD ERROR listing the available
entries. No silent fall-through — the `:` form is an explicit manifest
lookup, and the fallback shorthand is reserved for the `/` form.
Updated: `parseOrgScopedSpec` parses only `@scope` and `@scope:name`
(returns `null` for `@scope/anything`), `resolveOrgManifestForCreate`
errors on direct-selection miss, CLI help text, RFC command matrix +
examples + error-handling table + compatibility section, docs guide +
config page, snap-test fixture commands (`create-org-bundled`,
`create-org-monorepo-direct-in-monorepo`), `--no-interactive` hint line,
and unit tests for `parseOrgScopedSpec` (new test pinning the null
return for the `/` form).1 parent f4506d4 commit c441ba6
14 files changed
Lines changed: 116 additions & 81 deletions
File tree
- docs
- config
- guide
- packages/cli
- snap-tests
- create-org-bundled
- create-org-config-default
- create-org-monorepo-direct-in-monorepo
- create-org-monorepo-filter
- create-org-no-interactive-error
- src/create
- __tests__
- rfcs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
0 commit comments