@platformatic/basic 2.0.0-alpha.24 → 2.0.0-alpha.26
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 +7 -3
- package/package.json +7 -7
- package/schema.json +1 -1
package/index.js
CHANGED
|
@@ -8,7 +8,8 @@ import { packageJson, schema } from './lib/schema.js'
|
|
|
8
8
|
import { importFile } from './lib/utils.js'
|
|
9
9
|
|
|
10
10
|
const importStackablePackageMarker = '__pltImportStackablePackage.js'
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
export const configCandidates = [
|
|
12
13
|
'platformatic.application.json',
|
|
13
14
|
'platformatic.json',
|
|
14
15
|
'watt.json',
|
|
@@ -23,7 +24,7 @@ const configCandidates = [
|
|
|
23
24
|
'watt.toml',
|
|
24
25
|
'platformatic.application.tml',
|
|
25
26
|
'platformatic.tml',
|
|
26
|
-
'watt.tml'
|
|
27
|
+
'watt.tml'
|
|
27
28
|
]
|
|
28
29
|
|
|
29
30
|
function isImportFailedError (error, pkg) {
|
|
@@ -107,7 +108,10 @@ async function buildStackable (opts) {
|
|
|
107
108
|
const imported = await importStackablePackage(opts, toImport, autodetectDescription)
|
|
108
109
|
|
|
109
110
|
const serviceRoot = relative(process.cwd(), opts.context.directory)
|
|
110
|
-
if (
|
|
111
|
+
if (
|
|
112
|
+
!hadConfig &&
|
|
113
|
+
!existsSync(resolve(serviceRoot, 'platformatic.json') || existsSync(resolve(serviceRoot, 'watt.json')))
|
|
114
|
+
) {
|
|
111
115
|
const logger = pino({
|
|
112
116
|
level: opts.context.serverConfig?.logger?.level ?? 'warn',
|
|
113
117
|
name: opts.context.serviceId
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"split2": "^4.2.0",
|
|
24
24
|
"undici": "^6.19.5",
|
|
25
25
|
"ws": "^8.18.0",
|
|
26
|
-
"@platformatic/
|
|
27
|
-
"@platformatic/telemetry": "2.0.0-alpha.
|
|
28
|
-
"@platformatic/
|
|
29
|
-
"@platformatic/
|
|
26
|
+
"@platformatic/itc": "2.0.0-alpha.26",
|
|
27
|
+
"@platformatic/telemetry": "2.0.0-alpha.26",
|
|
28
|
+
"@platformatic/utils": "2.0.0-alpha.26",
|
|
29
|
+
"@platformatic/config": "2.0.0-alpha.26"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"borp": "^0.17.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"react-dom": "^18.3.1",
|
|
41
41
|
"typescript": "^5.5.4",
|
|
42
42
|
"vite": "^5.4.0",
|
|
43
|
-
"@platformatic/composer": "2.0.0-alpha.
|
|
44
|
-
"@platformatic/service": "2.0.0-alpha.
|
|
43
|
+
"@platformatic/composer": "2.0.0-alpha.26",
|
|
44
|
+
"@platformatic/service": "2.0.0-alpha.26"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"gen-schema": "node lib/schema.js > schema.json",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/basic/2.0.0-alpha.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/basic/2.0.0-alpha.26.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Stackable",
|
|
5
5
|
"type": "object",
|