@platformatic/generators 2.65.0 → 2.66.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.
@@ -305,21 +305,27 @@ class BaseGenerator extends FileGenerator {
305
305
  })
306
306
  }
307
307
 
308
- // typescript
309
- this.questions.push({
310
- type: 'list',
311
- name: 'typescript',
312
- message: 'Do you want to use TypeScript?',
313
- default: false,
314
- choices: [{ name: 'yes', value: true }, { name: 'no', value: false }],
315
- })
308
+ if (!this.config.skipTypescript) {
309
+ this.questions.push({
310
+ type: 'list',
311
+ name: 'typescript',
312
+ message: 'Do you want to use TypeScript?',
313
+ default: false,
314
+ choices: [
315
+ { name: 'yes', value: true },
316
+ { name: 'no', value: false }
317
+ ]
318
+ })
319
+ }
316
320
 
317
321
  // port
318
- this.questions.push({
319
- type: 'input',
320
- name: 'port',
321
- message: 'What port do you want to use?',
322
- })
322
+ if (!this.config.skipPort) {
323
+ this.questions.push({
324
+ type: 'input',
325
+ name: 'port',
326
+ message: 'What port do you want to use?'
327
+ })
328
+ }
323
329
  }
324
330
  }
325
331
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/generators",
3
- "version": "2.65.0",
3
+ "version": "2.66.0",
4
4
  "description": "Main classes and utils for generators.",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -12,7 +12,7 @@
12
12
  "fastify": "^5.0.0",
13
13
  "pino": "^9.0.0",
14
14
  "undici": "^7.0.0",
15
- "@platformatic/utils": "2.65.0"
15
+ "@platformatic/utils": "2.66.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/inquirer": "^9.0.7",