create-platformatic 2.2.1 → 2.3.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/create-platformatic.mjs +8 -15
- package/package.json +8 -8
package/create-platformatic.mjs
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { checkNodeVersionForServices } from '@platformatic/utils'
|
|
3
|
+
import { join } from 'desm'
|
|
3
4
|
import isMain from 'es-main'
|
|
4
|
-
import parseArgs from 'minimist'
|
|
5
5
|
import { readFile } from 'fs/promises'
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const currentVersion = process.versions.node
|
|
9
|
-
const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10)
|
|
10
|
-
const minimumMajorVersion = 18
|
|
11
|
-
|
|
12
|
-
if (requiredMajorVersion < minimumMajorVersion) {
|
|
13
|
-
console.error(`Node.js v${currentVersion} is out of date and unsupported!`)
|
|
14
|
-
console.error(`Please use Node.js v${minimumMajorVersion} or higher.`)
|
|
15
|
-
process.exit(1)
|
|
16
|
-
}
|
|
6
|
+
import parseArgs from 'minimist'
|
|
7
|
+
import { createPlatformatic } from './src/index.mjs'
|
|
17
8
|
|
|
18
9
|
if (isMain(import.meta)) {
|
|
10
|
+
checkNodeVersionForServices()
|
|
11
|
+
|
|
19
12
|
const _args = process.argv.slice(2)
|
|
20
13
|
const args = parseArgs(_args, {
|
|
21
14
|
alias: {
|
|
22
|
-
v: 'version'
|
|
23
|
-
}
|
|
15
|
+
v: 'version'
|
|
16
|
+
}
|
|
24
17
|
})
|
|
25
18
|
|
|
26
19
|
if (args.version) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-platformatic",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Create platformatic application interactive tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"strip-ansi": "^7.1.0",
|
|
35
35
|
"undici": "^6.9.0",
|
|
36
36
|
"which": "^3.0.1",
|
|
37
|
-
"@platformatic/config": "2.
|
|
38
|
-
"@platformatic/
|
|
39
|
-
"@platformatic/
|
|
37
|
+
"@platformatic/config": "2.3.0",
|
|
38
|
+
"@platformatic/utils": "2.3.0",
|
|
39
|
+
"@platformatic/generators": "2.3.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^22.5.0",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"neostandard": "^0.11.1",
|
|
52
52
|
"typescript": "~5.6.0",
|
|
53
53
|
"yaml": "^2.4.1",
|
|
54
|
-
"@platformatic/
|
|
55
|
-
"@platformatic/
|
|
56
|
-
"@platformatic/
|
|
57
|
-
"@platformatic/
|
|
54
|
+
"@platformatic/composer": "2.3.0",
|
|
55
|
+
"@platformatic/db": "2.3.0",
|
|
56
|
+
"@platformatic/service": "2.3.0",
|
|
57
|
+
"@platformatic/runtime": "2.3.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"test:cli": "borp --pattern \"test/cli/*test.mjs\" --timeout=180000 --concurrency=1",
|