create-platformatic 2.75.0 → 2.75.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/package.json +8 -8
- package/src/index.mjs +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-platformatic",
|
|
3
|
-
"version": "2.75.
|
|
3
|
+
"version": "2.75.1",
|
|
4
4
|
"description": "Create platformatic application interactive tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"strip-ansi": "^7.1.0",
|
|
32
32
|
"undici": "^7.0.0",
|
|
33
33
|
"which": "^3.0.1",
|
|
34
|
-
"@platformatic/config": "2.75.
|
|
35
|
-
"@platformatic/generators": "2.75.
|
|
36
|
-
"@platformatic/utils": "2.75.
|
|
34
|
+
"@platformatic/config": "2.75.1",
|
|
35
|
+
"@platformatic/generators": "2.75.1",
|
|
36
|
+
"@platformatic/utils": "2.75.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^22.5.0",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"neostandard": "^0.12.0",
|
|
49
49
|
"typescript": "~5.8.0",
|
|
50
50
|
"yaml": "^2.4.1",
|
|
51
|
-
"@platformatic/
|
|
52
|
-
"@platformatic/
|
|
53
|
-
"@platformatic/
|
|
54
|
-
"@platformatic/
|
|
51
|
+
"@platformatic/db": "2.75.1",
|
|
52
|
+
"@platformatic/runtime": "2.75.1",
|
|
53
|
+
"@platformatic/service": "2.75.1",
|
|
54
|
+
"@platformatic/composer": "2.75.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"test:cli": "borp --pattern \"test/cli/*test.mjs\" --timeout=1200000 --concurrency=1",
|
package/src/index.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import ConfigManager, { findConfigurationFile, loadConfigurationFile } from '@platformatic/config'
|
|
2
2
|
import { ImportGenerator } from '@platformatic/generators'
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
DEFAULT_PACKAGE_MANAGER,
|
|
5
5
|
createDirectory,
|
|
6
6
|
detectApplicationType,
|
|
7
7
|
executeWithTimeout,
|
|
8
8
|
generateDashedName,
|
|
9
|
+
getPackageManager,
|
|
9
10
|
getPkgManager,
|
|
10
11
|
searchJavascriptFiles
|
|
11
12
|
} from '@platformatic/utils'
|
|
@@ -27,6 +28,7 @@ import { getUsername, getVersion, say } from './utils.mjs'
|
|
|
27
28
|
|
|
28
29
|
const MARKETPLACE_HOST = 'https://marketplace.platformatic.dev'
|
|
29
30
|
const defaultStackables = ['@platformatic/service', '@platformatic/composer', '@platformatic/db']
|
|
31
|
+
const internalStackables = ['@platformatic/node', '@platformatic/next', '@platformatic/vite', '@platformatic/astro', '@platformatic/remix', '@platformatic/nest']
|
|
30
32
|
|
|
31
33
|
export async function fetchStackables (marketplaceHost, modules = []) {
|
|
32
34
|
const stackables = new Set([...modules, ...defaultStackables])
|
|
@@ -106,7 +108,7 @@ async function importOrLocal ({ pkgManager, name, projectDir, pkg }) {
|
|
|
106
108
|
|
|
107
109
|
let version = ''
|
|
108
110
|
|
|
109
|
-
if (defaultStackables.includes(pkg) || pkg === '@platformatic/runtime') {
|
|
111
|
+
if (defaultStackables.includes(pkg) || internalStackables.includes(pkg) || pkg === '@platformatic/runtime') {
|
|
110
112
|
// Let's find if we are using one of the default stackables
|
|
111
113
|
// If we are, we have to use the "local" version of the package
|
|
112
114
|
|