wattpm 2.57.0 → 2.58.0
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/execution.js +5 -1
- package/lib/utils.js +1 -2
- package/package.json +7 -7
- package/schema.json +1 -1
|
@@ -32,6 +32,10 @@ export async function startCommand (logger, args) {
|
|
|
32
32
|
inspect: {
|
|
33
33
|
type: 'boolean',
|
|
34
34
|
short: 'i'
|
|
35
|
+
},
|
|
36
|
+
config: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
short: 'c'
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
false
|
|
@@ -39,7 +43,7 @@ export async function startCommand (logger, args) {
|
|
|
39
43
|
/* c8 ignore next */
|
|
40
44
|
const root = getRoot(positionals)
|
|
41
45
|
|
|
42
|
-
const configurationFile = await findConfigurationFile(logger, root)
|
|
46
|
+
const configurationFile = await findConfigurationFile(logger, root, values.config)
|
|
43
47
|
const cmd = ['--production', '-c', configurationFile]
|
|
44
48
|
if (values.inspect) {
|
|
45
49
|
cmd.push('--inspect')
|
package/lib/utils.js
CHANGED
|
@@ -161,9 +161,8 @@ export function serviceToEnvVariable (service) {
|
|
|
161
161
|
return `PLT_SERVICE_${service.toUpperCase().replaceAll(/[^A-Z0-9_]/g, '_')}_PATH`
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export async function findConfigurationFile (logger, root) {
|
|
164
|
+
export async function findConfigurationFile (logger, root, configurationFile) {
|
|
165
165
|
let current = root
|
|
166
|
-
let configurationFile
|
|
167
166
|
|
|
168
167
|
while (!configurationFile) {
|
|
169
168
|
// Find a wattpm.json or watt.json file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wattpm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.58.0",
|
|
4
4
|
"description": "The Node.js Application Server",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -36,11 +36,11 @@
|
|
|
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/
|
|
42
|
-
"@platformatic/config": "2.
|
|
43
|
-
"@platformatic/
|
|
39
|
+
"@platformatic/basic": "2.58.0",
|
|
40
|
+
"@platformatic/control": "2.58.0",
|
|
41
|
+
"@platformatic/utils": "2.58.0",
|
|
42
|
+
"@platformatic/config": "2.58.0",
|
|
43
|
+
"@platformatic/runtime": "2.58.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"borp": "^0.19.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"neostandard": "^0.12.0",
|
|
51
51
|
"typescript": "^5.5.4",
|
|
52
52
|
"undici": "^7.0.0",
|
|
53
|
-
"@platformatic/node": "2.
|
|
53
|
+
"@platformatic/node": "2.58.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "npm run lint && borp --concurrency=1 --timeout=300000",
|
package/schema.json
CHANGED