@angular-devkit/schematics-cli 21.0.0-next.0 → 21.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/schematics.js +10 -2
- package/blank/schema.d.ts +0 -1
- package/blank/schema.js +0 -1
- package/blank/schema.json +1 -1
- package/package.json +4 -4
- package/schematic/files/package.json +3 -3
- package/schematic/schema.d.ts +0 -1
- package/schematic/schema.js +0 -1
- package/schematic/schema.json +1 -1
package/bin/schematics.js
CHANGED
|
@@ -113,21 +113,29 @@ function _createPromptProvider() {
|
|
|
113
113
|
}
|
|
114
114
|
answers[definition.id] = await (definition.multiselect ? prompts.checkbox : prompts.select)({
|
|
115
115
|
message: definition.message,
|
|
116
|
-
default: definition.default,
|
|
117
116
|
validate: (values) => {
|
|
118
117
|
if (!definition.validator) {
|
|
119
118
|
return true;
|
|
120
119
|
}
|
|
121
120
|
return definition.validator(Object.values(values).map(({ value }) => value));
|
|
122
121
|
},
|
|
123
|
-
|
|
122
|
+
default: definition.multiselect ? undefined : definition.default,
|
|
123
|
+
choices: definition.items?.map((item) => typeof item == 'string'
|
|
124
124
|
? {
|
|
125
125
|
name: item,
|
|
126
126
|
value: item,
|
|
127
|
+
checked: definition.multiselect && Array.isArray(definition.default)
|
|
128
|
+
? definition.default?.includes(item)
|
|
129
|
+
: item === definition.default,
|
|
127
130
|
}
|
|
128
131
|
: {
|
|
132
|
+
...item,
|
|
129
133
|
name: item.label,
|
|
130
134
|
value: item.value,
|
|
135
|
+
checked: definition.multiselect && Array.isArray(definition.default)
|
|
136
|
+
? // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
137
|
+
definition.default?.includes(item.value)
|
|
138
|
+
: item.value === definition.default,
|
|
131
139
|
}),
|
|
132
140
|
});
|
|
133
141
|
break;
|
package/blank/schema.d.ts
CHANGED
package/blank/schema.js
CHANGED
package/blank/schema.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics-cli",
|
|
3
|
-
"version": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.1",
|
|
4
4
|
"description": "Angular Schematics - CLI",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"bin": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
],
|
|
22
22
|
"schematics": "./collection.json",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@angular-devkit/core": "21.0.0-next.
|
|
25
|
-
"@angular-devkit/schematics": "21.0.0-next.
|
|
26
|
-
"@inquirer/prompts": "7.8.
|
|
24
|
+
"@angular-devkit/core": "21.0.0-next.1",
|
|
25
|
+
"@angular-devkit/schematics": "21.0.0-next.1",
|
|
26
|
+
"@inquirer/prompts": "7.8.4",
|
|
27
27
|
"ansi-colors": "4.1.3",
|
|
28
28
|
"yargs-parser": "22.0.0"
|
|
29
29
|
},
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"schematics": "./src/collection.json",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@angular-devkit/core": "^<%= coreVersion %>",
|
|
17
|
-
"@angular-devkit/schematics": "^<%= schematicsVersion %>"
|
|
18
|
-
"typescript": "~5.9.2"
|
|
17
|
+
"@angular-devkit/schematics": "^<%= schematicsVersion %>"
|
|
19
18
|
},
|
|
20
19
|
"devDependencies": {
|
|
21
20
|
"@types/node": "^20.17.19",
|
|
22
21
|
"@types/jasmine": "~5.1.0",
|
|
23
|
-
"jasmine": "~5.9.0"
|
|
22
|
+
"jasmine": "~5.9.0",
|
|
23
|
+
"typescript": "~5.9.2"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/schematic/schema.d.ts
CHANGED
package/schematic/schema.js
CHANGED
package/schematic/schema.json
CHANGED