@platformatic/runtime 1.13.0 → 1.13.1

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.
@@ -15,7 +15,8 @@ type KeyValue = {
15
15
  [key: string]: string
16
16
  }
17
17
 
18
- type RuntimeGeneratorOptions = {
18
+ type RuntimeGeneratorOptions = BaseGeneratorOptions & {
19
+ logLevel: string
19
20
  }
20
21
 
21
22
  class RuntimeGenerator extends BaseGenerator {
@@ -61,15 +61,25 @@ class RuntimeGenerator extends BaseGenerator {
61
61
 
62
62
  async _beforePrepare () {
63
63
  this.setServicesDirectory()
64
-
64
+ this.setServicesConfigValues()
65
65
  this.config.env = {
66
66
  PLT_SERVER_HOSTNAME: '0.0.0.0',
67
67
  PORT: this.config.port || 3042,
68
- PLT_SERVER_LOGGER_LEVEL: 'info',
68
+ PLT_SERVER_LOGGER_LEVEL: this.config.logLevel || 'info',
69
69
  ...this.config.env
70
70
  }
71
71
  }
72
72
 
73
+ setServicesConfigValues () {
74
+ this.services.forEach(({ service }) => {
75
+ if (!service.config) {
76
+ // set default config
77
+ service.setConfig()
78
+ }
79
+ service.config.typescript = this.config.typescript
80
+ })
81
+ }
82
+
73
83
  async _getConfigFileContents () {
74
84
  const config = {
75
85
  $schema: `https://platformatic.dev/schemas/v${this.platformaticVersion}/runtime`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -28,8 +28,8 @@
28
28
  "standard": "^17.1.0",
29
29
  "tsd": "^0.29.0",
30
30
  "typescript": "^5.2.2",
31
- "@platformatic/sql-graphql": "1.13.0",
32
- "@platformatic/sql-mapper": "1.13.0"
31
+ "@platformatic/sql-graphql": "1.13.1",
32
+ "@platformatic/sql-mapper": "1.13.1"
33
33
  },
34
34
  "dependencies": {
35
35
  "@fastify/error": "^3.4.0",
@@ -49,13 +49,13 @@
49
49
  "pino": "^8.16.0",
50
50
  "pino-pretty": "^10.2.3",
51
51
  "undici": "^5.26.3",
52
- "@platformatic/config": "1.13.0",
53
- "@platformatic/db": "1.13.0",
54
- "@platformatic/service": "1.13.0",
55
- "@platformatic/telemetry": "1.13.0",
56
- "@platformatic/utils": "1.13.0",
57
- "@platformatic/generators": "1.13.0",
58
- "@platformatic/composer": "1.13.0"
52
+ "@platformatic/composer": "1.13.1",
53
+ "@platformatic/generators": "1.13.1",
54
+ "@platformatic/db": "1.13.1",
55
+ "@platformatic/service": "1.13.1",
56
+ "@platformatic/config": "1.13.1",
57
+ "@platformatic/telemetry": "1.13.1",
58
+ "@platformatic/utils": "1.13.1"
59
59
  },
60
60
  "standard": {
61
61
  "ignore": [