create-wattpm 3.0.2 → 3.0.3
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 +7 -4
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import resolveModule from 'resolve'
|
|
|
24
24
|
import { createGitRepository } from './git.js'
|
|
25
25
|
import { findGatewayConfigFile, getUsername, getVersion, say } from './utils.js'
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const internalCapabilities = [
|
|
28
28
|
'@platformatic/node',
|
|
29
29
|
'@platformatic/gateway',
|
|
30
30
|
'@platformatic/next',
|
|
@@ -33,7 +33,10 @@ const defaultCapabilities = [
|
|
|
33
33
|
'@platformatic/remix',
|
|
34
34
|
'@platformatic/nest',
|
|
35
35
|
'@platformatic/service',
|
|
36
|
-
'@platformatic/db'
|
|
36
|
+
'@platformatic/db'
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
const externalCapabilities = [
|
|
37
40
|
'@platformatic/php',
|
|
38
41
|
'@platformatic/ai-warp',
|
|
39
42
|
'@platformatic/pg-hooks',
|
|
@@ -95,7 +98,7 @@ async function importOrLocal ({ pkgManager, projectDir, pkg }) {
|
|
|
95
98
|
|
|
96
99
|
let version = ''
|
|
97
100
|
|
|
98
|
-
if (
|
|
101
|
+
if (internalCapabilities.includes(pkg) || pkg === '@platformatic/runtime') {
|
|
99
102
|
// Let's find if we are using one of the default capabilities
|
|
100
103
|
// If we are, we have to use the "local" version of the package
|
|
101
104
|
|
|
@@ -365,7 +368,7 @@ export async function createApplication (
|
|
|
365
368
|
await say('Using existing configuration ...')
|
|
366
369
|
}
|
|
367
370
|
|
|
368
|
-
const capabilities = Array.from(new Set([...modules, ...
|
|
371
|
+
const capabilities = Array.from(new Set([...modules, ...internalCapabilities, ...externalCapabilities]))
|
|
369
372
|
|
|
370
373
|
const names = generator.existingApplications ?? []
|
|
371
374
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-wattpm",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
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.0.0",
|
|
26
26
|
"which": "^3.0.1",
|
|
27
|
-
"@platformatic/foundation": "3.0.
|
|
28
|
-
"@platformatic/generators": "3.0.
|
|
27
|
+
"@platformatic/foundation": "3.0.3",
|
|
28
|
+
"@platformatic/generators": "3.0.3"
|
|
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": "~5.8.0",
|
|
41
41
|
"yaml": "^2.4.1",
|
|
42
|
-
"@platformatic/gateway": "3.0.
|
|
43
|
-
"@platformatic/
|
|
44
|
-
"@platformatic/
|
|
45
|
-
"@platformatic/
|
|
42
|
+
"@platformatic/gateway": "3.0.3",
|
|
43
|
+
"@platformatic/db": "3.0.3",
|
|
44
|
+
"@platformatic/runtime": "3.0.3",
|
|
45
|
+
"@platformatic/service": "3.0.3"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=22.18.0"
|