@platformatic/generators 2.65.1 → 2.66.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/lib/base-generator.js +19 -13
- package/package.json +2 -2
package/lib/base-generator.js
CHANGED
|
@@ -305,21 +305,27 @@ class BaseGenerator extends FileGenerator {
|
|
|
305
305
|
})
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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.
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
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.
|
|
3
|
+
"version": "2.66.1",
|
|
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.
|
|
15
|
+
"@platformatic/utils": "2.66.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/inquirer": "^9.0.7",
|