platformatic 0.30.0 → 0.31.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 -1
- package/help/compile.txt +8 -0
- package/lib/deploy.js +5 -2
- package/package.json +13 -13
package/cli.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import commist from 'commist'
|
|
4
4
|
import minimist from 'minimist'
|
|
5
5
|
import { runDB } from '@platformatic/db/db.mjs'
|
|
6
|
-
import { run as runRuntime } from '@platformatic/runtime/runtime.mjs'
|
|
6
|
+
import { run as runRuntime, compile } from '@platformatic/runtime/runtime.mjs'
|
|
7
7
|
import { runService } from '@platformatic/service/service.mjs'
|
|
8
8
|
import { runComposer } from '@platformatic/composer/composer.mjs'
|
|
9
9
|
import platformaticStart from '@platformatic/start'
|
|
@@ -47,6 +47,7 @@ program.register('start', platformaticStart.startCommandInRuntime)
|
|
|
47
47
|
program.register('composer', async (args) => ensureCommand(await runComposer(args)))
|
|
48
48
|
program.register('upgrade', upgrade)
|
|
49
49
|
program.register('client', client)
|
|
50
|
+
program.register('compile', compile)
|
|
50
51
|
program.register('help', help.toStdout)
|
|
51
52
|
program.register('help db', async (args) => runDB(['help', ...args]))
|
|
52
53
|
program.register('help runtime', async (args) => runRuntime(['help', ...args]))
|
package/help/compile.txt
ADDED
package/lib/deploy.js
CHANGED
|
@@ -117,8 +117,10 @@ export async function deploy (argv) {
|
|
|
117
117
|
type: 't',
|
|
118
118
|
label: 'l',
|
|
119
119
|
env: 'e',
|
|
120
|
-
secrets: 's'
|
|
120
|
+
secrets: 's',
|
|
121
|
+
compileTypescript: ['compile', 'C']
|
|
121
122
|
},
|
|
123
|
+
boolean: ['compileTypescript'],
|
|
122
124
|
string: [
|
|
123
125
|
'type',
|
|
124
126
|
'label',
|
|
@@ -129,7 +131,8 @@ export async function deploy (argv) {
|
|
|
129
131
|
'deploy-service-host'
|
|
130
132
|
],
|
|
131
133
|
default: {
|
|
132
|
-
'deploy-service-host': DEPLOY_SERVICE_HOST
|
|
134
|
+
'deploy-service-host': DEPLOY_SERVICE_HOST,
|
|
135
|
+
compileTypescript: true
|
|
133
136
|
}
|
|
134
137
|
})
|
|
135
138
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platformatic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Platformatic CLI",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"type": "module",
|
|
@@ -48,18 +48,18 @@
|
|
|
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/composer": "0.
|
|
54
|
-
"@platformatic/config": "0.
|
|
55
|
-
"@platformatic/db": "0.
|
|
56
|
-
"@platformatic/deploy-client": "0.
|
|
57
|
-
"@platformatic/frontend-template": "0.
|
|
58
|
-
"@platformatic/metaconfig": "0.
|
|
59
|
-
"@platformatic/runtime": "0.
|
|
60
|
-
"@platformatic/service": "0.
|
|
61
|
-
"@platformatic/start": "0.
|
|
62
|
-
"create-platformatic": "0.
|
|
51
|
+
"@platformatic/authenticate": "0.31.0",
|
|
52
|
+
"@platformatic/client-cli": "0.31.0",
|
|
53
|
+
"@platformatic/composer": "0.31.0",
|
|
54
|
+
"@platformatic/config": "0.31.0",
|
|
55
|
+
"@platformatic/db": "0.31.0",
|
|
56
|
+
"@platformatic/deploy-client": "0.31.0",
|
|
57
|
+
"@platformatic/frontend-template": "0.31.0",
|
|
58
|
+
"@platformatic/metaconfig": "0.31.0",
|
|
59
|
+
"@platformatic/runtime": "0.31.0",
|
|
60
|
+
"@platformatic/service": "0.31.0",
|
|
61
|
+
"@platformatic/start": "0.31.0",
|
|
62
|
+
"create-platformatic": "0.31.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"test": "standard | snazzy && c8 --100 tap --no-coverage test/*.test.js",
|