platformatic 0.26.0 → 0.27.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/cli.js +2 -2
- package/package.json +18 -18
- package/test/platformatic.test.js +3 -2
package/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import { runDB } from '@platformatic/db/db.mjs'
|
|
|
6
6
|
import { run as runRuntime } from '@platformatic/runtime/runtime.mjs'
|
|
7
7
|
import { runService } from '@platformatic/service/service.mjs'
|
|
8
8
|
import { runComposer } from '@platformatic/composer/composer.mjs'
|
|
9
|
-
import
|
|
9
|
+
import platformaticStart from '@platformatic/start'
|
|
10
10
|
import { login } from '@platformatic/authenticate/authenticate.js'
|
|
11
11
|
import { command as client } from '@platformatic/client-cli'
|
|
12
12
|
import { readFile } from 'fs/promises'
|
|
@@ -42,7 +42,7 @@ const ensureCommand = async ({ output, help }) => {
|
|
|
42
42
|
program.register('db', async (args) => ensureCommand(await runDB(args)))
|
|
43
43
|
program.register('runtime', async (args) => ensureCommand(await runRuntime(args)))
|
|
44
44
|
program.register('service', async (args) => ensureCommand(await runService(args)))
|
|
45
|
-
program.register('start', startCommand)
|
|
45
|
+
program.register('start', platformaticStart.startCommand)
|
|
46
46
|
program.register('composer', async (args) => ensureCommand(await runComposer(args)))
|
|
47
47
|
program.register('upgrade', upgrade)
|
|
48
48
|
program.register('client', client)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platformatic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Platformatic CLI",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,38 +27,38 @@
|
|
|
27
27
|
"mercurius"
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"c8": "^
|
|
30
|
+
"c8": "^8.0.0",
|
|
31
31
|
"execa": "^7.1.1",
|
|
32
|
-
"fastify": "^4.
|
|
32
|
+
"fastify": "^4.18.0",
|
|
33
33
|
"license-checker": "^25.0.1",
|
|
34
34
|
"mkdirp": "^2.1.6",
|
|
35
35
|
"snazzy": "^9.0.0",
|
|
36
36
|
"split2": "^4.2.0",
|
|
37
|
-
"standard": "^17.
|
|
38
|
-
"tap": "^16.3.
|
|
37
|
+
"standard": "^17.1.0",
|
|
38
|
+
"tap": "^16.3.6",
|
|
39
39
|
"undici": "^5.22.1"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"colorette": "^2.0.20",
|
|
43
43
|
"commist": "^3.2.0",
|
|
44
44
|
"desm": "^1.3.0",
|
|
45
|
-
"dotenv": "^16.1.
|
|
45
|
+
"dotenv": "^16.1.4",
|
|
46
46
|
"help-me": "^4.2.0",
|
|
47
|
-
"inquirer": "^9.2.
|
|
47
|
+
"inquirer": "^9.2.7",
|
|
48
48
|
"minimist": "^1.2.8",
|
|
49
49
|
"pino": "^8.14.1",
|
|
50
50
|
"pino-pretty": "^10.0.0",
|
|
51
|
-
"@platformatic/authenticate": "0.
|
|
52
|
-
"@platformatic/client-cli": "0.
|
|
53
|
-
"@platformatic/
|
|
54
|
-
"@platformatic/
|
|
55
|
-
"@platformatic/db": "0.
|
|
56
|
-
"@platformatic/deploy-client": "0.
|
|
57
|
-
"@platformatic/metaconfig": "0.
|
|
58
|
-
"@platformatic/runtime": "0.
|
|
59
|
-
"@platformatic/service": "0.
|
|
60
|
-
"@platformatic/start": "0.
|
|
61
|
-
"create-platformatic": "0.
|
|
51
|
+
"@platformatic/authenticate": "0.27.0",
|
|
52
|
+
"@platformatic/client-cli": "0.27.0",
|
|
53
|
+
"@platformatic/composer": "0.27.0",
|
|
54
|
+
"@platformatic/config": "0.27.0",
|
|
55
|
+
"@platformatic/db": "0.27.0",
|
|
56
|
+
"@platformatic/deploy-client": "0.27.0",
|
|
57
|
+
"@platformatic/metaconfig": "0.27.0",
|
|
58
|
+
"@platformatic/runtime": "0.27.0",
|
|
59
|
+
"@platformatic/service": "0.27.0",
|
|
60
|
+
"@platformatic/start": "0.27.0",
|
|
61
|
+
"create-platformatic": "0.27.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"test": "standard | snazzy && c8 --100 tap --no-coverage test/*.test.js",
|
|
@@ -147,8 +147,9 @@ async function start (...args) {
|
|
|
147
147
|
|
|
148
148
|
for await (const messages of on(output, 'data')) {
|
|
149
149
|
for (const message of messages) {
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
150
|
+
const text = message.msg
|
|
151
|
+
if (text && text.includes('Server listening at')) {
|
|
152
|
+
const url = text.match(/Server listening at (.*)/)[1]
|
|
152
153
|
clearTimeout(errorTimeout)
|
|
153
154
|
return { child, url, output }
|
|
154
155
|
}
|