create-wattpm 3.68.0 → 4.0.0-new-config.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/lib/index.js +0 -24
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -459,32 +459,8 @@ export async function createApplication (
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
let entrypoint = ''
|
|
463
|
-
const chooseEntrypoint = names.length > 1 && (!generator.existingConfigRaw || !generator.existingConfigRaw.entrypoint)
|
|
464
|
-
|
|
465
|
-
if (chooseEntrypoint) {
|
|
466
|
-
const results = await inquirer.prompt([
|
|
467
|
-
{
|
|
468
|
-
type: 'select',
|
|
469
|
-
name: 'entrypoint',
|
|
470
|
-
message: 'Which application should be exposed?',
|
|
471
|
-
choices: names.map(name => ({ name, value: name }))
|
|
472
|
-
}
|
|
473
|
-
])
|
|
474
|
-
entrypoint = results.entrypoint
|
|
475
|
-
} else {
|
|
476
|
-
entrypoint = names[0]
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
generator.setEntryPoint(entrypoint)
|
|
480
|
-
|
|
481
462
|
await generator.ask()
|
|
482
463
|
await generator.prepare()
|
|
483
|
-
|
|
484
|
-
if (chooseEntrypoint) {
|
|
485
|
-
await generator.updateConfigEntryPoint(entrypoint)
|
|
486
|
-
}
|
|
487
|
-
|
|
488
464
|
await generator.writeFiles()
|
|
489
465
|
|
|
490
466
|
// Create project here
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-wattpm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-new-config.0",
|
|
4
4
|
"description": "Create platformatic application interactive tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"resolve": "^1.22.8",
|
|
25
25
|
"undici": "^7.27.2",
|
|
26
26
|
"which": "^3.0.1",
|
|
27
|
-
"@platformatic/foundation": "
|
|
28
|
-
"@platformatic/generators": "
|
|
27
|
+
"@platformatic/foundation": "4.0.0-new-config.0",
|
|
28
|
+
"@platformatic/generators": "4.0.0-new-config.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.5.0",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"semver": "^7.6.0",
|
|
40
40
|
"typescript": "~6.0.3",
|
|
41
41
|
"yaml": "^2.4.1",
|
|
42
|
-
"@platformatic/
|
|
43
|
-
"@platformatic/runtime": "
|
|
44
|
-
"@platformatic/service": "
|
|
45
|
-
"@platformatic/
|
|
42
|
+
"@platformatic/db": "4.0.0-new-config.0",
|
|
43
|
+
"@platformatic/runtime": "4.0.0-new-config.0",
|
|
44
|
+
"@platformatic/service": "4.0.0-new-config.0",
|
|
45
|
+
"@platformatic/gateway": "4.0.0-new-config.0"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=22.19.0"
|