@graphql-codegen/cli 2.13.6 → 2.13.7

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.
@@ -67,7 +67,11 @@ function getQuestions(possibleTargets) {
67
67
  type: 'input',
68
68
  name: 'config',
69
69
  message: 'How to name the config file?',
70
- default: answers => answers.targets.includes(types_js_1.Tags.client) || answers.targets.includes(types_js_1.Tags.angular) ? 'codegen.ts' : 'codegen.yml',
70
+ default: answers => answers.targets.includes(types_js_1.Tags.client) ||
71
+ answers.targets.includes(types_js_1.Tags.typescript) ||
72
+ answers.targets.includes(types_js_1.Tags.angular)
73
+ ? 'codegen.ts'
74
+ : 'codegen.yml',
71
75
  validate: (str) => {
72
76
  const isNotEmpty = str.length > 0;
73
77
  const hasCorrectExtension = ['json', 'yml', 'yaml', 'js', 'ts'].some(ext => str.toLocaleLowerCase().endsWith(`.${ext}`));
@@ -64,7 +64,11 @@ export function getQuestions(possibleTargets) {
64
64
  type: 'input',
65
65
  name: 'config',
66
66
  message: 'How to name the config file?',
67
- default: answers => answers.targets.includes(Tags.client) || answers.targets.includes(Tags.angular) ? 'codegen.ts' : 'codegen.yml',
67
+ default: answers => answers.targets.includes(Tags.client) ||
68
+ answers.targets.includes(Tags.typescript) ||
69
+ answers.targets.includes(Tags.angular)
70
+ ? 'codegen.ts'
71
+ : 'codegen.yml',
68
72
  validate: (str) => {
69
73
  const isNotEmpty = str.length > 0;
70
74
  const hasCorrectExtension = ['json', 'yml', 'yaml', 'js', 'ts'].some(ext => str.toLocaleLowerCase().endsWith(`.${ext}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "2.13.6",
3
+ "version": "2.13.7",
4
4
  "peerDependencies": {
5
5
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
6
6
  },