Commit cd11acd
feat(create-gen-app): register licenses resolver for optionsFrom support
Registers a 'licenses' resolver that returns the list of supported
licenses from listSupportedLicenses(). This allows boilerplate templates
to use 'optionsFrom: licenses' to dynamically populate license options.
Also updates the test mock to include registerDefaultResolver.
Co-Authored-By: Dan Lynch <pyramation@gmail.com>1 parent 21ea6dd commit cd11acd
File tree
2 files changed
+8
-0
lines changed- packages/create-gen-app
- __tests__
- src
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
0 commit comments