@platformatic/runtime 1.21.1 → 1.22.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.
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const { BaseGenerator } = require('@platformatic/generators')
2
4
  const { NoEntryPointError, NoServiceNamedError } = require('./errors')
3
5
  const generateName = require('boring-name-generator')
@@ -78,12 +80,11 @@ class RuntimeGenerator extends BaseGenerator {
78
80
  this.setServicesConfigValues()
79
81
  this.addServicesDependencies()
80
82
 
81
- this.config.env = {
83
+ this.addEnvVars({
82
84
  PLT_SERVER_HOSTNAME: '0.0.0.0',
83
85
  PORT: this.config.port || 3042,
84
- PLT_SERVER_LOGGER_LEVEL: this.config.logLevel || 'info',
85
- ...this.config.env
86
- }
86
+ PLT_SERVER_LOGGER_LEVEL: this.config.logLevel || 'info'
87
+ })
87
88
  }
88
89
 
89
90
  addServicesDependencies () {
@@ -167,11 +168,11 @@ class RuntimeGenerator extends BaseGenerator {
167
168
  throw new NoEntryPointError()
168
169
  }
169
170
  const servicesEnv = await this.prepareServiceFiles()
170
- this.config.env = {
171
+ this.addEnvVars({
171
172
  ...this.config.env,
172
173
  ...this.getRuntimeEnv(),
173
174
  ...servicesEnv
174
- }
175
+ })
175
176
 
176
177
  this.addFile({
177
178
  path: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "1.21.1",
3
+ "version": "1.22.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -30,8 +30,8 @@
30
30
  "tsd": "^0.30.4",
31
31
  "typescript": "^5.3.3",
32
32
  "undici-oauth-interceptor": "^0.4.2",
33
- "@platformatic/sql-graphql": "1.21.1",
34
- "@platformatic/sql-mapper": "1.21.1"
33
+ "@platformatic/sql-graphql": "1.22.0",
34
+ "@platformatic/sql-mapper": "1.22.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "@fastify/error": "^3.4.1",
@@ -52,13 +52,13 @@
52
52
  "pino-pretty": "^10.3.1",
53
53
  "undici": "^6.6.0",
54
54
  "why-is-node-running": "^2.2.2",
55
- "@platformatic/composer": "1.21.1",
56
- "@platformatic/config": "1.21.1",
57
- "@platformatic/db": "1.21.1",
58
- "@platformatic/generators": "1.21.1",
59
- "@platformatic/service": "1.21.1",
60
- "@platformatic/utils": "1.21.1",
61
- "@platformatic/telemetry": "1.21.1"
55
+ "@platformatic/composer": "1.22.0",
56
+ "@platformatic/db": "1.22.0",
57
+ "@platformatic/config": "1.22.0",
58
+ "@platformatic/generators": "1.22.0",
59
+ "@platformatic/service": "1.22.0",
60
+ "@platformatic/telemetry": "1.22.0",
61
+ "@platformatic/utils": "1.22.0"
62
62
  },
63
63
  "standard": {
64
64
  "ignore": [