@platformatic/service 1.22.0 → 1.23.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.
|
@@ -18,9 +18,13 @@ class ServiceGenerator extends BaseGenerator {
|
|
|
18
18
|
PLT_SERVER_HOSTNAME: this.config.hostname,
|
|
19
19
|
PLT_SERVER_LOGGER_LEVEL: 'info',
|
|
20
20
|
PORT: 3042
|
|
21
|
-
})
|
|
21
|
+
}, { overwrite: false })
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
this.addEnvVars({
|
|
25
|
+
PLT_TYPESCRIPT: this.config.typescript
|
|
26
|
+
}, { overwrite: false })
|
|
27
|
+
|
|
24
28
|
this.config.dependencies = {
|
|
25
29
|
'@platformatic/service': `^${this.platformaticVersion}`
|
|
26
30
|
}
|
|
@@ -71,7 +75,7 @@ declare module 'fastify' {
|
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
async _getConfigFileContents () {
|
|
74
|
-
const {
|
|
78
|
+
const { isRuntimeContext } = this.config
|
|
75
79
|
const version = this.platformaticVersion
|
|
76
80
|
const config = {
|
|
77
81
|
$schema: `https://platformatic.dev/schemas/v${version}/service`,
|
|
@@ -85,11 +89,8 @@ declare module 'fastify' {
|
|
|
85
89
|
paths: [
|
|
86
90
|
{ path: './plugins', encapsulate: false },
|
|
87
91
|
'./routes'
|
|
88
|
-
]
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (typescript === true) {
|
|
92
|
-
config.plugins.typescript = true
|
|
92
|
+
],
|
|
93
|
+
typescript: `{${this.getEnvVarName('PLT_TYPESCRIPT')}}`
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"rfdc": "^1.3.1",
|
|
78
78
|
"ua-parser-js": "^1.0.37",
|
|
79
79
|
"undici": "^6.6.0",
|
|
80
|
-
"@platformatic/authenticate": "1.
|
|
81
|
-
"@platformatic/client": "1.
|
|
82
|
-
"@platformatic/config": "1.
|
|
83
|
-
"@platformatic/generators": "1.
|
|
84
|
-
"@platformatic/metaconfig": "1.
|
|
85
|
-
"@platformatic/scalar-theme": "1.
|
|
86
|
-
"@platformatic/
|
|
87
|
-
"@platformatic/
|
|
80
|
+
"@platformatic/authenticate": "1.23.0",
|
|
81
|
+
"@platformatic/client": "1.23.0",
|
|
82
|
+
"@platformatic/config": "1.23.0",
|
|
83
|
+
"@platformatic/generators": "1.23.0",
|
|
84
|
+
"@platformatic/metaconfig": "1.23.0",
|
|
85
|
+
"@platformatic/scalar-theme": "1.23.0",
|
|
86
|
+
"@platformatic/telemetry": "1.23.0",
|
|
87
|
+
"@platformatic/utils": "1.23.0"
|
|
88
88
|
},
|
|
89
89
|
"standard": {
|
|
90
90
|
"ignore": [
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
101
|
"scripts": {
|
|
102
|
-
"test": "pnpm run lint &&
|
|
102
|
+
"test": "pnpm run lint && borp -T --concurrency=1 --timeout 120000 && tsd",
|
|
103
103
|
"unit": "borp --pattern 'test/**/*.test.{js,mjs}' --ignore 'fixtures/**/*' --concurrency=1 --timeout=120000 --no-typescript",
|
|
104
104
|
"build": "node lib/schema.js | json2ts > config.d.ts",
|
|
105
105
|
"lint": "standard | snazzy && ts-standard | snazzy && tsd"
|