@angular-devkit/schematics-cli 18.2.0 → 18.2.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 CHANGED
@@ -105,6 +105,12 @@ function _createPromptProvider() {
105
105
  answers[definition.id] = await (definition.multiselect ? prompts.checkbox : prompts.select)({
106
106
  message: definition.message,
107
107
  default: definition.default,
108
+ validate: (values) => {
109
+ if (!definition.validator) {
110
+ return true;
111
+ }
112
+ return definition.validator(Object.values(values).map(({ value }) => value));
113
+ },
108
114
  choices: definition.items.map((item) => typeof item == 'string'
109
115
  ? {
110
116
  name: item,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/schematics-cli",
3
- "version": "18.2.0",
3
+ "version": "18.2.1",
4
4
  "description": "Angular Schematics - CLI",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "bin": {
@@ -21,8 +21,8 @@
21
21
  ],
22
22
  "schematics": "./collection.json",
23
23
  "dependencies": {
24
- "@angular-devkit/core": "18.2.0",
25
- "@angular-devkit/schematics": "18.2.0",
24
+ "@angular-devkit/core": "18.2.1",
25
+ "@angular-devkit/schematics": "18.2.1",
26
26
  "@inquirer/prompts": "5.3.8",
27
27
  "ansi-colors": "4.1.3",
28
28
  "symbol-observable": "4.0.0",