platformatic 2.0.0-alpha.1 → 2.0.0-alpha.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/cli.js +4 -4
- package/eslint.config.js +3 -0
- package/lib/errors.js +1 -1
- package/lib/upgrade.js +6 -6
- package/package.json +18 -17
package/cli.js
CHANGED
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
runControl,
|
|
19
19
|
getRuntimesCommand,
|
|
20
20
|
injectRuntimeCommand,
|
|
21
|
-
streamRuntimeLogsCommand
|
|
21
|
+
streamRuntimeLogsCommand,
|
|
22
22
|
} from '@platformatic/control/control.js'
|
|
23
23
|
|
|
24
24
|
const program = commist({ maxDistance: 2 })
|
|
25
25
|
const help = helpMe({
|
|
26
26
|
dir: join(import.meta.url, 'help'),
|
|
27
27
|
// the default
|
|
28
|
-
ext: '.txt'
|
|
28
|
+
ext: '.txt',
|
|
29
29
|
})
|
|
30
30
|
|
|
31
31
|
async function load (moduleName) {
|
|
@@ -84,8 +84,8 @@ const args = minimist(process.argv.slice(2), {
|
|
|
84
84
|
boolean: ['help', 'version'],
|
|
85
85
|
alias: {
|
|
86
86
|
help: 'h',
|
|
87
|
-
version: 'v'
|
|
88
|
-
}
|
|
87
|
+
version: 'v',
|
|
88
|
+
},
|
|
89
89
|
})
|
|
90
90
|
|
|
91
91
|
if (args.version && !args._.includes('inject')) {
|
package/eslint.config.js
ADDED
package/lib/errors.js
CHANGED
|
@@ -13,7 +13,7 @@ const errors = {
|
|
|
13
13
|
CouldNotCreateWorkspaceError: createError(`${ERROR_PREFIX}_COULD_NOT_CREATE_WORKSPACE`, 'Could not create workspace'),
|
|
14
14
|
CouldNotCreateApplicationError: createError(`${ERROR_PREFIX}_COULD_NOT_CREATE_APPLICATION`, 'Could not create application'),
|
|
15
15
|
CouldNotFetchUserOrgsError: createError(`${ERROR_PREFIX}_COULD_NOT_FETCH_USER_ORGS`, 'Could not fetch user ogranisations'),
|
|
16
|
-
NoUserOrgsError: createError(`${ERROR_PREFIX}_NO_USER_ORGS`, 'User does not have any organisations.')
|
|
16
|
+
NoUserOrgsError: createError(`${ERROR_PREFIX}_NO_USER_ORGS`, 'User does not have any organisations.'),
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export default errors
|
package/lib/upgrade.js
CHANGED
|
@@ -9,13 +9,13 @@ import fjs from 'fast-json-stringify'
|
|
|
9
9
|
export async function upgrade (argv) {
|
|
10
10
|
const args = parseArgs(argv, {
|
|
11
11
|
alias: {
|
|
12
|
-
config: 'c'
|
|
13
|
-
}
|
|
12
|
+
config: 'c',
|
|
13
|
+
},
|
|
14
14
|
})
|
|
15
15
|
|
|
16
16
|
const logger = pino(pretty({
|
|
17
17
|
translateTime: 'SYS:HH:MM:ss',
|
|
18
|
-
ignore: 'hostname,pid'
|
|
18
|
+
ignore: 'hostname,pid',
|
|
19
19
|
}))
|
|
20
20
|
try {
|
|
21
21
|
await upgradeApp(args.config, logger)
|
|
@@ -28,7 +28,7 @@ export async function upgrade (argv) {
|
|
|
28
28
|
async function upgradeApp (config, logger) {
|
|
29
29
|
const store = new Store({
|
|
30
30
|
cwd: process.cwd(),
|
|
31
|
-
logger
|
|
31
|
+
logger,
|
|
32
32
|
})
|
|
33
33
|
store.add(platformaticRuntime)
|
|
34
34
|
|
|
@@ -38,8 +38,8 @@ async function upgradeApp (config, logger) {
|
|
|
38
38
|
fixPaths: false,
|
|
39
39
|
onMissingEnv (key) {
|
|
40
40
|
return '{' + key + '}'
|
|
41
|
-
}
|
|
42
|
-
}
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
43
|
})
|
|
44
44
|
|
|
45
45
|
await configManager.parseAndValidate(false)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platformatic",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "Platformatic CLI",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,18 +27,19 @@
|
|
|
27
27
|
"mercurius"
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"
|
|
30
|
+
"add": "^2.0.6",
|
|
31
|
+
"borp": "^0.17.0",
|
|
31
32
|
"c8": "^10.0.0",
|
|
33
|
+
"eslint": "9",
|
|
32
34
|
"fastify": "^4.26.2",
|
|
33
35
|
"license-checker": "^25.0.1",
|
|
34
36
|
"mkdirp": "^2.1.6",
|
|
35
|
-
"
|
|
37
|
+
"neostandard": "^0.11.1",
|
|
36
38
|
"split2": "^4.2.0",
|
|
37
|
-
"standard": "^17.1.0",
|
|
38
39
|
"typescript": "^5.5.3",
|
|
39
|
-
"@platformatic/
|
|
40
|
-
"@platformatic/
|
|
41
|
-
"@platformatic/service": "2.0.0-alpha.
|
|
40
|
+
"@platformatic/composer": "2.0.0-alpha.3",
|
|
41
|
+
"@platformatic/db": "2.0.0-alpha.3",
|
|
42
|
+
"@platformatic/service": "2.0.0-alpha.3"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"@fastify/error": "^3.4.1",
|
|
@@ -55,18 +56,18 @@
|
|
|
55
56
|
"pino": "^8.19.0",
|
|
56
57
|
"pino-pretty": "^11.0.0",
|
|
57
58
|
"undici": "^6.9.0",
|
|
58
|
-
"@platformatic/client-cli": "2.0.0-alpha.
|
|
59
|
-
"@platformatic/config": "2.0.0-alpha.
|
|
60
|
-
"@platformatic/control": "2.0.0-alpha.
|
|
61
|
-
"@platformatic/db": "2.0.0-alpha.
|
|
62
|
-
"@platformatic/
|
|
63
|
-
"@platformatic/
|
|
64
|
-
"@platformatic/
|
|
65
|
-
"create-platformatic": "2.0.0-alpha.
|
|
59
|
+
"@platformatic/client-cli": "2.0.0-alpha.3",
|
|
60
|
+
"@platformatic/config": "2.0.0-alpha.3",
|
|
61
|
+
"@platformatic/control": "2.0.0-alpha.3",
|
|
62
|
+
"@platformatic/db": "2.0.0-alpha.3",
|
|
63
|
+
"@platformatic/frontend-template": "2.0.0-alpha.3",
|
|
64
|
+
"@platformatic/runtime": "2.0.0-alpha.3",
|
|
65
|
+
"@platformatic/utils": "2.0.0-alpha.3",
|
|
66
|
+
"create-platformatic": "2.0.0-alpha.3"
|
|
66
67
|
},
|
|
67
68
|
"scripts": {
|
|
68
|
-
"test": "pnpm run lint && borp --timeout
|
|
69
|
-
"lint": "
|
|
69
|
+
"test": "pnpm run lint && borp --timeout=180000 --concurrency 1",
|
|
70
|
+
"lint": "eslint",
|
|
70
71
|
"license": "license-checker --production --onlyAllow 'Apache-2.0;MIT;ISC;BSD-2-Clause;BSD-3-Clause;CC-BY-4.0'"
|
|
71
72
|
}
|
|
72
73
|
}
|