@platformatic/service 0.25.0 → 0.26.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/load-config.js +4 -1
- package/lib/utils.js +2 -1
- package/package.json +5 -5
package/lib/load-config.js
CHANGED
|
@@ -37,7 +37,10 @@ async function loadConfig (minimistConfig, _args, app, overrides = {}) {
|
|
|
37
37
|
const configFiles = ConfigManager.listConfigFiles(configType)
|
|
38
38
|
console.error(`
|
|
39
39
|
Missing config file!
|
|
40
|
-
Be sure to have a config file with one of the following names:
|
|
40
|
+
Be sure to have a config file with one of the following names:
|
|
41
|
+
|
|
42
|
+
${configFiles.map((s) => ' * ' + s).join('\n')}
|
|
43
|
+
|
|
41
44
|
In alternative run "npm create platformatic@latest" to generate a basic plt service config.
|
|
42
45
|
Error: ${err}
|
|
43
46
|
`)
|
package/lib/utils.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const { access } = require('fs/promises')
|
|
4
4
|
const { resolve, join, relative, dirname, basename } = require('path')
|
|
5
|
+
const { isatty } = require('tty')
|
|
5
6
|
|
|
6
7
|
async function isFileAccessible (filename, directory) {
|
|
7
8
|
try {
|
|
@@ -23,7 +24,7 @@ function addLoggerToTheConfig (config) {
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
// If TTY use pino-pretty
|
|
26
|
-
if (
|
|
27
|
+
if (isatty(1)) {
|
|
27
28
|
if (!logger.transport) {
|
|
28
29
|
logger.transport = {
|
|
29
30
|
target: 'pino-pretty'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"pino-pretty": "^10.0.0",
|
|
65
65
|
"rfdc": "^1.3.0",
|
|
66
66
|
"ua-parser-js": "^1.0.35",
|
|
67
|
-
"@platformatic/
|
|
68
|
-
"@platformatic/
|
|
69
|
-
"@platformatic/
|
|
70
|
-
"@platformatic/
|
|
67
|
+
"@platformatic/swagger-ui-theme": "0.26.0",
|
|
68
|
+
"@platformatic/config": "0.26.0",
|
|
69
|
+
"@platformatic/utils": "0.26.0",
|
|
70
|
+
"@platformatic/client": "0.26.0"
|
|
71
71
|
},
|
|
72
72
|
"standard": {
|
|
73
73
|
"ignore": [
|