@platformatic/service 2.0.0-alpha.17 → 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 +4 -1
- package/lib/plugins/plugins.js +5 -5
- package/package.json +8 -8
- package/schema.json +2 -2
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(
|
|
174
|
+
init: () => buildServer({
|
|
175
|
+
configManager,
|
|
176
|
+
...configManager.current,
|
|
177
|
+
}, app, options.context),
|
|
175
178
|
stackable: app,
|
|
176
179
|
configManager,
|
|
177
180
|
context: options.context
|
package/lib/plugins/plugins.js
CHANGED
|
@@ -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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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.
|
|
3
|
+
"version": "2.0.0-alpha.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
"rfdc": "^1.3.1",
|
|
77
77
|
"semgrator": "^0.3.0",
|
|
78
78
|
"undici": "^6.9.0",
|
|
79
|
-
"@platformatic/client": "2.0.0-alpha.
|
|
80
|
-
"@platformatic/config": "2.0.0-alpha.
|
|
81
|
-
"@platformatic/
|
|
82
|
-
"@platformatic/scalar-theme": "2.0.0-alpha.
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/
|
|
85
|
-
"@platformatic/
|
|
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"
|
|
86
86
|
},
|
|
87
87
|
"scripts": {
|
|
88
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.
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
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": {
|