@platformatic/service 2.0.0-alpha.16 → 2.0.0-alpha.18

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/index.js CHANGED
@@ -171,7 +171,10 @@ async function buildStackable (options, app = platformaticService, Stackable = S
171
171
  }
172
172
 
173
173
  const stackable = new Stackable({
174
- init: () => buildServer(configManager.current, app, options.context),
174
+ init: () => buildServer({
175
+ configManager,
176
+ ...configManager.current,
177
+ }, app, options.context),
175
178
  stackable: app,
176
179
  configManager,
177
180
  context: options.context
@@ -32,12 +32,12 @@ async function loadPlugins (app, opts) {
32
32
 
33
33
  if (outDir) {
34
34
  isOutDirAccessible = await isFileAccessible(outDir)
35
- }
36
35
 
37
- if (opts.context?.isProduction && !isOutDirAccessible) {
38
- throw new Error(
39
- `Cannot access directory '${outDir}'. Please run the 'build' command before running in production mode.`
40
- )
36
+ if (opts.context?.isProduction && !isOutDirAccessible) {
37
+ throw new Error(
38
+ `Cannot access directory '${outDir}'. Please run the 'build' command before running in production mode.`
39
+ )
40
+ }
41
41
  }
42
42
 
43
43
  if (config.plugins.paths && isOutDirAccessible) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "2.0.0-alpha.16",
3
+ "version": "2.0.0-alpha.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -62,6 +62,7 @@
62
62
  "es-main": "^1.3.0",
63
63
  "execa": "^8.0.1",
64
64
  "fastify": "^5.0.0",
65
+ "fastify-metrics": "^12.0.0",
65
66
  "fastify-plugin": "^5.0.0",
66
67
  "graphql": "^16.9.0",
67
68
  "help-me": "^5.0.0",
@@ -75,13 +76,13 @@
75
76
  "rfdc": "^1.3.1",
76
77
  "semgrator": "^0.3.0",
77
78
  "undici": "^6.9.0",
78
- "@platformatic/client": "2.0.0-alpha.16",
79
- "@platformatic/config": "2.0.0-alpha.16",
80
- "@platformatic/generators": "2.0.0-alpha.16",
81
- "@platformatic/scalar-theme": "2.0.0-alpha.16",
82
- "@platformatic/telemetry": "2.0.0-alpha.16",
83
- "@platformatic/ts-compiler": "2.0.0-alpha.16",
84
- "@platformatic/utils": "2.0.0-alpha.16"
79
+ "@platformatic/client": "2.0.0-alpha.18",
80
+ "@platformatic/config": "2.0.0-alpha.18",
81
+ "@platformatic/telemetry": "2.0.0-alpha.18",
82
+ "@platformatic/scalar-theme": "2.0.0-alpha.18",
83
+ "@platformatic/ts-compiler": "2.0.0-alpha.18",
84
+ "@platformatic/utils": "2.0.0-alpha.18",
85
+ "@platformatic/generators": "2.0.0-alpha.18"
85
86
  },
86
87
  "scripts": {
87
88
  "test": "pnpm run lint && borp -T --concurrency=1 --timeout=180000 && tsd",
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/2.0.0-alpha.16.json",
3
- "version": "2.0.0-alpha.16",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/2.0.0-alpha.18.json",
3
+ "version": "2.0.0-alpha.18",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {