wattpm 2.65.1 → 2.66.1
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/lib/commands/build.js +1 -1
- package/lib/commands/create.js +6 -0
- package/lib/utils.js +2 -2
- package/package.json +8 -8
- package/schema.json +80 -25
package/lib/commands/build.js
CHANGED
|
@@ -23,7 +23,7 @@ async function executeCommand (root, ...args) {
|
|
|
23
23
|
const npmrc = resolve(root, '.npmrc')
|
|
24
24
|
if (existsSync(npmrc)) {
|
|
25
25
|
try {
|
|
26
|
-
const env = parse(await readFile(npmrc, '
|
|
26
|
+
const env = parse(await readFile(npmrc, 'utf-8'))
|
|
27
27
|
|
|
28
28
|
if (env['dry-run'] === 'true') {
|
|
29
29
|
return
|
package/lib/commands/create.js
CHANGED
|
@@ -50,6 +50,7 @@ export async function createCommand (logger, args) {
|
|
|
50
50
|
|
|
51
51
|
const username = await getUsername()
|
|
52
52
|
const version = await getVersion()
|
|
53
|
+
|
|
53
54
|
/* c8 ignore next 2 - Ignoring else branches */
|
|
54
55
|
const greeting = username ? `Hello ${username},` : 'Hello,'
|
|
55
56
|
await say(`${greeting} welcome to ${version ? `Watt ${version}!` : 'Watt!'}`)
|
|
@@ -67,6 +68,11 @@ export async function createCommand (logger, args) {
|
|
|
67
68
|
{
|
|
68
69
|
runtimeConfig: config,
|
|
69
70
|
servicesFolder: 'web'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
devCommand: 'wattpm dev',
|
|
74
|
+
buildCommand: 'wattpm build',
|
|
75
|
+
startCommand: 'wattpm start'
|
|
70
76
|
}
|
|
71
77
|
)
|
|
72
78
|
}
|
package/lib/utils.js
CHANGED
|
@@ -156,8 +156,8 @@ export function serviceToEnvVariable (service) {
|
|
|
156
156
|
return `PLT_SERVICE_${service.toUpperCase().replaceAll(/[^A-Z0-9_]/g, '_')}_PATH`
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
export async function findConfigurationFile (logger, root, configurationFile) {
|
|
160
|
-
const configFile = await findRawConfigurationFile(root, configurationFile,
|
|
159
|
+
export async function findConfigurationFile (logger, root, configurationFile, schemas = 'runtime') {
|
|
160
|
+
const configFile = await findRawConfigurationFile(root, configurationFile, schemas)
|
|
161
161
|
|
|
162
162
|
if (!configFile) {
|
|
163
163
|
return logFatalError(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wattpm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.66.1",
|
|
4
4
|
"description": "The Node.js Application Server",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"semver": "^7.7.0",
|
|
37
37
|
"split2": "^4.2.0",
|
|
38
38
|
"table": "^6.8.2",
|
|
39
|
-
"@platformatic/basic": "2.
|
|
40
|
-
"@platformatic/control": "2.
|
|
41
|
-
"@platformatic/runtime": "2.
|
|
42
|
-
"@platformatic/
|
|
43
|
-
"@platformatic/
|
|
44
|
-
"create-platformatic": "2.
|
|
39
|
+
"@platformatic/basic": "2.66.1",
|
|
40
|
+
"@platformatic/control": "2.66.1",
|
|
41
|
+
"@platformatic/runtime": "2.66.1",
|
|
42
|
+
"@platformatic/utils": "2.66.1",
|
|
43
|
+
"@platformatic/config": "2.66.1",
|
|
44
|
+
"create-platformatic": "2.66.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"borp": "^0.20.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"neostandard": "^0.12.0",
|
|
52
52
|
"typescript": "^5.5.4",
|
|
53
53
|
"undici": "^7.0.0",
|
|
54
|
-
"@platformatic/node": "2.
|
|
54
|
+
"@platformatic/node": "2.66.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"test": "npm run lint && borp --concurrency=1 --timeout=300000",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/wattpm/2.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/wattpm/2.66.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -773,6 +773,28 @@
|
|
|
773
773
|
"paths"
|
|
774
774
|
],
|
|
775
775
|
"additionalProperties": false
|
|
776
|
+
},
|
|
777
|
+
"base": {
|
|
778
|
+
"anyOf": [
|
|
779
|
+
{
|
|
780
|
+
"type": "object",
|
|
781
|
+
"additionalProperties": true
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"type": "null"
|
|
785
|
+
}
|
|
786
|
+
]
|
|
787
|
+
},
|
|
788
|
+
"messageKey": {
|
|
789
|
+
"type": "string"
|
|
790
|
+
},
|
|
791
|
+
"customLevels": {
|
|
792
|
+
"type": "object",
|
|
793
|
+
"additionalProperties": true
|
|
794
|
+
},
|
|
795
|
+
"captureStdio": {
|
|
796
|
+
"type": "boolean",
|
|
797
|
+
"default": true
|
|
776
798
|
}
|
|
777
799
|
},
|
|
778
800
|
"required": [
|
|
@@ -1057,7 +1079,20 @@
|
|
|
1057
1079
|
{
|
|
1058
1080
|
"type": "array",
|
|
1059
1081
|
"items": {
|
|
1060
|
-
"
|
|
1082
|
+
"type": "object",
|
|
1083
|
+
"properties": {
|
|
1084
|
+
"module": {
|
|
1085
|
+
"type": "string"
|
|
1086
|
+
},
|
|
1087
|
+
"options": {
|
|
1088
|
+
"type": "object",
|
|
1089
|
+
"additionalProperties": true
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"required": [
|
|
1093
|
+
"module",
|
|
1094
|
+
"options"
|
|
1095
|
+
]
|
|
1061
1096
|
}
|
|
1062
1097
|
},
|
|
1063
1098
|
{
|
|
@@ -1066,19 +1101,58 @@
|
|
|
1066
1101
|
"Client": {
|
|
1067
1102
|
"type": "array",
|
|
1068
1103
|
"items": {
|
|
1069
|
-
"
|
|
1104
|
+
"type": "object",
|
|
1105
|
+
"properties": {
|
|
1106
|
+
"module": {
|
|
1107
|
+
"type": "string"
|
|
1108
|
+
},
|
|
1109
|
+
"options": {
|
|
1110
|
+
"type": "object",
|
|
1111
|
+
"additionalProperties": true
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
"required": [
|
|
1115
|
+
"module",
|
|
1116
|
+
"options"
|
|
1117
|
+
]
|
|
1070
1118
|
}
|
|
1071
1119
|
},
|
|
1072
1120
|
"Pool": {
|
|
1073
1121
|
"type": "array",
|
|
1074
1122
|
"items": {
|
|
1075
|
-
"
|
|
1123
|
+
"type": "object",
|
|
1124
|
+
"properties": {
|
|
1125
|
+
"module": {
|
|
1126
|
+
"type": "string"
|
|
1127
|
+
},
|
|
1128
|
+
"options": {
|
|
1129
|
+
"type": "object",
|
|
1130
|
+
"additionalProperties": true
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
"required": [
|
|
1134
|
+
"module",
|
|
1135
|
+
"options"
|
|
1136
|
+
]
|
|
1076
1137
|
}
|
|
1077
1138
|
},
|
|
1078
1139
|
"Agent": {
|
|
1079
1140
|
"type": "array",
|
|
1080
1141
|
"items": {
|
|
1081
|
-
"
|
|
1142
|
+
"type": "object",
|
|
1143
|
+
"properties": {
|
|
1144
|
+
"module": {
|
|
1145
|
+
"type": "string"
|
|
1146
|
+
},
|
|
1147
|
+
"options": {
|
|
1148
|
+
"type": "object",
|
|
1149
|
+
"additionalProperties": true
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
"required": [
|
|
1153
|
+
"module",
|
|
1154
|
+
"options"
|
|
1155
|
+
]
|
|
1082
1156
|
}
|
|
1083
1157
|
}
|
|
1084
1158
|
}
|
|
@@ -1305,7 +1379,6 @@
|
|
|
1305
1379
|
]
|
|
1306
1380
|
},
|
|
1307
1381
|
"telemetry": {
|
|
1308
|
-
"$id": "/OpenTelemetry",
|
|
1309
1382
|
"type": "object",
|
|
1310
1383
|
"properties": {
|
|
1311
1384
|
"enabled": {
|
|
@@ -1562,23 +1635,5 @@
|
|
|
1562
1635
|
]
|
|
1563
1636
|
}
|
|
1564
1637
|
],
|
|
1565
|
-
"additionalProperties": false
|
|
1566
|
-
"$defs": {
|
|
1567
|
-
"undiciInterceptor": {
|
|
1568
|
-
"type": "object",
|
|
1569
|
-
"properties": {
|
|
1570
|
-
"module": {
|
|
1571
|
-
"type": "string"
|
|
1572
|
-
},
|
|
1573
|
-
"options": {
|
|
1574
|
-
"type": "object",
|
|
1575
|
-
"additionalProperties": true
|
|
1576
|
-
}
|
|
1577
|
-
},
|
|
1578
|
-
"required": [
|
|
1579
|
-
"module",
|
|
1580
|
-
"options"
|
|
1581
|
-
]
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1638
|
+
"additionalProperties": false
|
|
1584
1639
|
}
|