@platformatic/runtime 2.15.0 → 2.16.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/config.d.ts +1 -1
- package/lib/runtime.js +8 -0
- package/package.json +14 -14
- package/schema.json +1 -1
package/config.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type HttpsSchemasPlatformaticDevPlatformaticRuntime2160Json = {
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
} & {
|
|
11
11
|
$schema?: string;
|
package/lib/runtime.js
CHANGED
|
@@ -111,6 +111,14 @@ class Runtime extends EventEmitter {
|
|
|
111
111
|
this.#servicesIds = config.services.map(service => service.id)
|
|
112
112
|
this.#workers.configure(config.services, this.#configManager.current.workers, this.#isProduction)
|
|
113
113
|
|
|
114
|
+
if (this.#isProduction) {
|
|
115
|
+
this.#env['PLT_DEV'] = 'false'
|
|
116
|
+
this.#env['PLT_ENVIRONMENT'] = 'production'
|
|
117
|
+
} else {
|
|
118
|
+
this.#env['PLT_DEV'] = 'true'
|
|
119
|
+
this.#env['PLT_ENVIRONMENT'] = 'development'
|
|
120
|
+
}
|
|
121
|
+
|
|
114
122
|
// Create all services, each in is own worker thread
|
|
115
123
|
for (const serviceConfig of config.services) {
|
|
116
124
|
await this.#setupService(serviceConfig)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/runtime",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"typescript": "^5.5.4",
|
|
36
36
|
"undici-oidc-interceptor": "^0.5.0",
|
|
37
37
|
"why-is-node-running": "^2.2.2",
|
|
38
|
-
"@platformatic/
|
|
39
|
-
"@platformatic/
|
|
40
|
-
"@platformatic/
|
|
41
|
-
"@platformatic/
|
|
42
|
-
"@platformatic/sql-
|
|
43
|
-
"@platformatic/
|
|
38
|
+
"@platformatic/composer": "2.16.0",
|
|
39
|
+
"@platformatic/db": "2.16.0",
|
|
40
|
+
"@platformatic/node": "2.16.0",
|
|
41
|
+
"@platformatic/sql-graphql": "2.16.0",
|
|
42
|
+
"@platformatic/sql-mapper": "2.16.0",
|
|
43
|
+
"@platformatic/service": "2.16.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@fastify/error": "^4.0.0",
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
"undici": "^6.9.0",
|
|
71
71
|
"undici-thread-interceptor": "^0.9.0",
|
|
72
72
|
"ws": "^8.16.0",
|
|
73
|
-
"@platformatic/
|
|
74
|
-
"@platformatic/
|
|
75
|
-
"@platformatic/
|
|
76
|
-
"@platformatic/ts-compiler": "2.
|
|
77
|
-
"@platformatic/itc": "2.
|
|
78
|
-
"@platformatic/telemetry": "2.
|
|
79
|
-
"@platformatic/utils": "2.
|
|
73
|
+
"@platformatic/config": "2.16.0",
|
|
74
|
+
"@platformatic/basic": "2.16.0",
|
|
75
|
+
"@platformatic/generators": "2.16.0",
|
|
76
|
+
"@platformatic/ts-compiler": "2.16.0",
|
|
77
|
+
"@platformatic/itc": "2.16.0",
|
|
78
|
+
"@platformatic/telemetry": "2.16.0",
|
|
79
|
+
"@platformatic/utils": "2.16.0"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"test": "npm run lint && borp --concurrency=1 --timeout=300000 && tsd",
|
package/schema.json
CHANGED