@angular-devkit/schematics-cli 20.2.1 → 21.0.0-next.0

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
@@ -113,29 +113,21 @@ 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,
116
117
  validate: (values) => {
117
118
  if (!definition.validator) {
118
119
  return true;
119
120
  }
120
121
  return definition.validator(Object.values(values).map(({ value }) => value));
121
122
  },
122
- default: definition.multiselect ? undefined : definition.default,
123
- choices: definition.items?.map((item) => typeof item == 'string'
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,
130
127
  }
131
128
  : {
132
- ...item,
133
129
  name: item.label,
134
130
  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,
139
131
  }),
140
132
  });
141
133
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/schematics-cli",
3
- "version": "20.2.1",
3
+ "version": "21.0.0-next.0",
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": "20.2.1",
25
- "@angular-devkit/schematics": "20.2.1",
26
- "@inquirer/prompts": "7.8.2",
24
+ "@angular-devkit/core": "21.0.0-next.0",
25
+ "@angular-devkit/schematics": "21.0.0-next.0",
26
+ "@inquirer/prompts": "7.8.3",
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 %>"
17
+ "@angular-devkit/schematics": "^<%= schematicsVersion %>",
18
+ "typescript": "~5.9.2"
18
19
  },
19
20
  "devDependencies": {
20
21
  "@types/node": "^20.17.19",
21
22
  "@types/jasmine": "~5.1.0",
22
- "jasmine": "~5.9.0",
23
- "typescript": "~5.9.2"
23
+ "jasmine": "~5.9.0"
24
24
  }
25
25
  }