@platformatic/service 1.13.0 → 1.13.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const { BaseGenerator } = require('@platformatic/generators')
|
|
4
|
+
const { getPackageConfigurationObject } = require('@platformatic/generators/lib/utils')
|
|
4
5
|
|
|
5
6
|
class ServiceGenerator extends BaseGenerator {
|
|
6
7
|
constructor (opts = {}) {
|
|
@@ -97,6 +98,18 @@ declare module 'fastify' {
|
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
}
|
|
101
|
+
|
|
102
|
+
if (this.packages.length > 0) {
|
|
103
|
+
if (!config.plugins) {
|
|
104
|
+
config.plugins = {}
|
|
105
|
+
}
|
|
106
|
+
config.plugins.packages = this.packages.map((packageDefinition) => {
|
|
107
|
+
return {
|
|
108
|
+
name: packageDefinition.name,
|
|
109
|
+
options: getPackageConfigurationObject(packageDefinition.options)
|
|
110
|
+
}
|
|
111
|
+
})
|
|
112
|
+
}
|
|
100
113
|
return config
|
|
101
114
|
}
|
|
102
115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"pino-pretty": "^10.2.0",
|
|
70
70
|
"rfdc": "^1.3.0",
|
|
71
71
|
"ua-parser-js": "^1.0.36",
|
|
72
|
-
"@platformatic/client": "1.13.
|
|
73
|
-
"@platformatic/config": "1.13.
|
|
74
|
-
"@platformatic/
|
|
75
|
-
"@platformatic/
|
|
76
|
-
"@platformatic/
|
|
77
|
-
"@platformatic/
|
|
72
|
+
"@platformatic/client": "1.13.1",
|
|
73
|
+
"@platformatic/config": "1.13.1",
|
|
74
|
+
"@platformatic/generators": "1.13.1",
|
|
75
|
+
"@platformatic/telemetry": "1.13.1",
|
|
76
|
+
"@platformatic/swagger-ui-theme": "1.13.1",
|
|
77
|
+
"@platformatic/utils": "1.13.1"
|
|
78
78
|
},
|
|
79
79
|
"standard": {
|
|
80
80
|
"ignore": [
|