@platformatic/runtime 2.0.0-alpha.19 → 2.0.0-alpha.20
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/utils.js +16 -0
- package/lib/worker/app.js +6 -1
- 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 HttpsSchemasPlatformaticDevPlatformaticRuntime200Alpha20Json = {
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
} & {
|
|
11
11
|
$schema?: string;
|
package/lib/utils.js
CHANGED
|
@@ -37,6 +37,22 @@ async function loadConfig (minimistConfig, args, overrides, replaceEnv = true) {
|
|
|
37
37
|
const { default: platformaticBasic } = await import('@platformatic/basic')
|
|
38
38
|
const store = new Store()
|
|
39
39
|
store.add(platformaticRuntime)
|
|
40
|
+
|
|
41
|
+
const id = platformaticRuntime.schema.$id.replace('@platformatic/runtime', 'wattpm')
|
|
42
|
+
const schema = {
|
|
43
|
+
...platformaticRuntime.schema,
|
|
44
|
+
$id: id,
|
|
45
|
+
}
|
|
46
|
+
const configManagerConfig = {
|
|
47
|
+
...platformaticRuntime.configManagerConfig,
|
|
48
|
+
schema,
|
|
49
|
+
}
|
|
50
|
+
const wattpm = {
|
|
51
|
+
...platformaticRuntime,
|
|
52
|
+
schema,
|
|
53
|
+
configManagerConfig,
|
|
54
|
+
}
|
|
55
|
+
store.add(wattpm)
|
|
40
56
|
store.add(platformaticBasic)
|
|
41
57
|
|
|
42
58
|
return pltConfigLoadConfig(minimistConfig, args, store, overrides, replaceEnv)
|
package/lib/worker/app.js
CHANGED
|
@@ -108,7 +108,12 @@ class PlatformaticApp extends EventEmitter {
|
|
|
108
108
|
|
|
109
109
|
this.#updateDispatcher()
|
|
110
110
|
} catch (err) {
|
|
111
|
-
|
|
111
|
+
if (err.validationErrors) {
|
|
112
|
+
console.error('Validation errors:', err.validationErrors)
|
|
113
|
+
process.exit(1)
|
|
114
|
+
} else {
|
|
115
|
+
this.#logAndExit(err)
|
|
116
|
+
}
|
|
112
117
|
}
|
|
113
118
|
}
|
|
114
119
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/runtime",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"typescript": "^5.5.4",
|
|
35
35
|
"undici-oidc-interceptor": "^0.5.0",
|
|
36
36
|
"why-is-node-running": "^2.2.2",
|
|
37
|
-
"@platformatic/composer": "2.0.0-alpha.
|
|
38
|
-
"@platformatic/db": "2.0.0-alpha.
|
|
39
|
-
"@platformatic/
|
|
40
|
-
"@platformatic/
|
|
41
|
-
"@platformatic/sql-mapper": "2.0.0-alpha.
|
|
37
|
+
"@platformatic/composer": "2.0.0-alpha.20",
|
|
38
|
+
"@platformatic/db": "2.0.0-alpha.20",
|
|
39
|
+
"@platformatic/sql-graphql": "2.0.0-alpha.20",
|
|
40
|
+
"@platformatic/service": "2.0.0-alpha.20",
|
|
41
|
+
"@platformatic/sql-mapper": "2.0.0-alpha.20"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@fastify/error": "^4.0.0",
|
|
@@ -61,20 +61,20 @@
|
|
|
61
61
|
"minimist": "^1.2.8",
|
|
62
62
|
"pino": "^8.19.0",
|
|
63
63
|
"pino-pretty": "^11.0.0",
|
|
64
|
-
"pino-roll": "^
|
|
64
|
+
"pino-roll": "^2.0.0",
|
|
65
65
|
"prom-client": "^15.1.2",
|
|
66
66
|
"semgrator": "^0.3.0",
|
|
67
67
|
"tail-file-stream": "^0.2.0",
|
|
68
68
|
"undici": "^6.9.0",
|
|
69
69
|
"undici-thread-interceptor": "^0.6.1",
|
|
70
70
|
"ws": "^8.16.0",
|
|
71
|
-
"@platformatic/basic": "2.0.0-alpha.
|
|
72
|
-
"@platformatic/generators": "2.0.0-alpha.
|
|
73
|
-
"@platformatic/
|
|
74
|
-
"@platformatic/
|
|
75
|
-
"@platformatic/telemetry": "2.0.0-alpha.
|
|
76
|
-
"@platformatic/ts-compiler": "2.0.0-alpha.
|
|
77
|
-
"@platformatic/utils": "2.0.0-alpha.
|
|
71
|
+
"@platformatic/basic": "2.0.0-alpha.20",
|
|
72
|
+
"@platformatic/generators": "2.0.0-alpha.20",
|
|
73
|
+
"@platformatic/itc": "2.0.0-alpha.20",
|
|
74
|
+
"@platformatic/config": "2.0.0-alpha.20",
|
|
75
|
+
"@platformatic/telemetry": "2.0.0-alpha.20",
|
|
76
|
+
"@platformatic/ts-compiler": "2.0.0-alpha.20",
|
|
77
|
+
"@platformatic/utils": "2.0.0-alpha.20"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"test": "npm run lint && borp --concurrency=1 --timeout=180000 && tsd",
|
package/schema.json
CHANGED