platformatic 0.30.1 → 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 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]))
@@ -0,0 +1,8 @@
1
+ Compile all typescript plugins
2
+
3
+ ``` bash
4
+ $ platformatic compile
5
+ ```
6
+
7
+ This command will compile the TypeScript plugins for each
8
+ platformatic application.
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.30.1",
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.30.1",
52
- "@platformatic/client-cli": "0.30.1",
53
- "@platformatic/composer": "0.30.1",
54
- "@platformatic/config": "0.30.1",
55
- "@platformatic/db": "0.30.1",
56
- "@platformatic/deploy-client": "0.30.1",
57
- "@platformatic/frontend-template": "0.30.1",
58
- "@platformatic/metaconfig": "0.30.1",
59
- "@platformatic/runtime": "0.30.1",
60
- "@platformatic/service": "0.30.1",
61
- "@platformatic/start": "0.30.1",
62
- "create-platformatic": "0.30.1"
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",