@pikku/cli 0.9.13 → 0.9.14
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/CHANGELOG.md +6 -0
- package/cli.schema.json +34 -9
- package/dist/src/pikku-cli-config.js +5 -7
- package/package.json +1 -1
- package/src/pikku-cli-config.ts +5 -7
package/CHANGELOG.md
CHANGED
package/cli.schema.json
CHANGED
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
"type": "string"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
"required": [
|
|
42
|
+
"required": [
|
|
43
|
+
"url"
|
|
44
|
+
],
|
|
43
45
|
"type": "object"
|
|
44
46
|
},
|
|
45
47
|
"info": {
|
|
@@ -73,7 +75,9 @@
|
|
|
73
75
|
"type": "string"
|
|
74
76
|
}
|
|
75
77
|
},
|
|
76
|
-
"required": [
|
|
78
|
+
"required": [
|
|
79
|
+
"name"
|
|
80
|
+
],
|
|
77
81
|
"type": "object"
|
|
78
82
|
},
|
|
79
83
|
"termsOfService": {
|
|
@@ -86,7 +90,11 @@
|
|
|
86
90
|
"type": "string"
|
|
87
91
|
}
|
|
88
92
|
},
|
|
89
|
-
"required": [
|
|
93
|
+
"required": [
|
|
94
|
+
"title",
|
|
95
|
+
"version",
|
|
96
|
+
"description"
|
|
97
|
+
],
|
|
90
98
|
"type": "object"
|
|
91
99
|
},
|
|
92
100
|
"security": {
|
|
@@ -113,7 +121,9 @@
|
|
|
113
121
|
"type": "string"
|
|
114
122
|
}
|
|
115
123
|
},
|
|
116
|
-
"required": [
|
|
124
|
+
"required": [
|
|
125
|
+
"url"
|
|
126
|
+
],
|
|
117
127
|
"type": "object"
|
|
118
128
|
},
|
|
119
129
|
"type": "array"
|
|
@@ -129,13 +139,18 @@
|
|
|
129
139
|
"type": "string"
|
|
130
140
|
}
|
|
131
141
|
},
|
|
132
|
-
"required": [
|
|
142
|
+
"required": [
|
|
143
|
+
"name"
|
|
144
|
+
],
|
|
133
145
|
"type": "object"
|
|
134
146
|
},
|
|
135
147
|
"type": "array"
|
|
136
148
|
}
|
|
137
149
|
},
|
|
138
|
-
"required": [
|
|
150
|
+
"required": [
|
|
151
|
+
"info",
|
|
152
|
+
"servers"
|
|
153
|
+
],
|
|
139
154
|
"type": "object"
|
|
140
155
|
},
|
|
141
156
|
"PikkuCLIConfig": {
|
|
@@ -169,7 +184,14 @@
|
|
|
169
184
|
"type": "string"
|
|
170
185
|
}
|
|
171
186
|
},
|
|
172
|
-
"required": [
|
|
187
|
+
"required": [
|
|
188
|
+
"http",
|
|
189
|
+
"scheduler",
|
|
190
|
+
"channel",
|
|
191
|
+
"rpc",
|
|
192
|
+
"queue",
|
|
193
|
+
"mcp"
|
|
194
|
+
],
|
|
173
195
|
"type": "object"
|
|
174
196
|
},
|
|
175
197
|
"channelsMapDeclarationFile": {
|
|
@@ -242,7 +264,10 @@
|
|
|
242
264
|
"type": "string"
|
|
243
265
|
}
|
|
244
266
|
},
|
|
245
|
-
"required": [
|
|
267
|
+
"required": [
|
|
268
|
+
"outputFile",
|
|
269
|
+
"additionalInfo"
|
|
270
|
+
],
|
|
246
271
|
"type": "object"
|
|
247
272
|
},
|
|
248
273
|
"outDir": {
|
|
@@ -354,4 +379,4 @@
|
|
|
354
379
|
"type": "object"
|
|
355
380
|
}
|
|
356
381
|
}
|
|
357
|
-
}
|
|
382
|
+
}
|
|
@@ -61,8 +61,7 @@ const _getPikkuCLIConfig = async (configFile = undefined, requiredFields, filter
|
|
|
61
61
|
const functionDir = join(result.outDir, 'function');
|
|
62
62
|
const httpDir = join(result.outDir, 'http');
|
|
63
63
|
const channelDir = join(result.outDir, 'channel');
|
|
64
|
-
const
|
|
65
|
-
const externalRPCDirectory = join(result.outDir, 'rpc');
|
|
64
|
+
const rpcDir = join(result.outDir, 'rpc');
|
|
66
65
|
const schedulerDir = join(result.outDir, 'scheduler');
|
|
67
66
|
const queueDir = join(result.outDir, 'queue');
|
|
68
67
|
const mcpDir = join(result.outDir, 'mcp');
|
|
@@ -103,16 +102,15 @@ const _getPikkuCLIConfig = async (configFile = undefined, requiredFields, filter
|
|
|
103
102
|
if (!result.channelsMapDeclarationFile) {
|
|
104
103
|
result.channelsMapDeclarationFile = join(channelDir, 'pikku-channels-map.gen.d.ts');
|
|
105
104
|
}
|
|
106
|
-
//
|
|
105
|
+
// RPC (internal and exposed)
|
|
107
106
|
if (!result.rpcInternalWiringMetaFile) {
|
|
108
|
-
result.rpcInternalWiringMetaFile = join(
|
|
107
|
+
result.rpcInternalWiringMetaFile = join(rpcDir, 'pikku-rpc-wirings-meta.internal.gen.ts');
|
|
109
108
|
}
|
|
110
109
|
if (!result.rpcInternalMapDeclarationFile) {
|
|
111
|
-
result.rpcInternalMapDeclarationFile = join(
|
|
110
|
+
result.rpcInternalMapDeclarationFile = join(rpcDir, 'pikku-rpc-wirings-map.internal.gen.d.ts');
|
|
112
111
|
}
|
|
113
|
-
// External
|
|
114
112
|
if (!result.rpcMapDeclarationFile) {
|
|
115
|
-
result.rpcMapDeclarationFile = join(
|
|
113
|
+
result.rpcMapDeclarationFile = join(rpcDir, 'pikku-rpc-wirings-map.gen.d.ts');
|
|
116
114
|
}
|
|
117
115
|
// Scheduler
|
|
118
116
|
if (!result.schedulersWiringFile) {
|
package/package.json
CHANGED
package/src/pikku-cli-config.ts
CHANGED
|
@@ -172,8 +172,7 @@ const _getPikkuCLIConfig = async (
|
|
|
172
172
|
const functionDir = join(result.outDir, 'function')
|
|
173
173
|
const httpDir = join(result.outDir, 'http')
|
|
174
174
|
const channelDir = join(result.outDir, 'channel')
|
|
175
|
-
const
|
|
176
|
-
const externalRPCDirectory = join(result.outDir, 'rpc')
|
|
175
|
+
const rpcDir = join(result.outDir, 'rpc')
|
|
177
176
|
const schedulerDir = join(result.outDir, 'scheduler')
|
|
178
177
|
const queueDir = join(result.outDir, 'queue')
|
|
179
178
|
const mcpDir = join(result.outDir, 'mcp')
|
|
@@ -238,25 +237,24 @@ const _getPikkuCLIConfig = async (
|
|
|
238
237
|
)
|
|
239
238
|
}
|
|
240
239
|
|
|
241
|
-
//
|
|
240
|
+
// RPC (internal and exposed)
|
|
242
241
|
if (!result.rpcInternalWiringMetaFile) {
|
|
243
242
|
result.rpcInternalWiringMetaFile = join(
|
|
244
|
-
|
|
243
|
+
rpcDir,
|
|
245
244
|
'pikku-rpc-wirings-meta.internal.gen.ts'
|
|
246
245
|
)
|
|
247
246
|
}
|
|
248
247
|
|
|
249
248
|
if (!result.rpcInternalMapDeclarationFile) {
|
|
250
249
|
result.rpcInternalMapDeclarationFile = join(
|
|
251
|
-
|
|
250
|
+
rpcDir,
|
|
252
251
|
'pikku-rpc-wirings-map.internal.gen.d.ts'
|
|
253
252
|
)
|
|
254
253
|
}
|
|
255
254
|
|
|
256
|
-
// External
|
|
257
255
|
if (!result.rpcMapDeclarationFile) {
|
|
258
256
|
result.rpcMapDeclarationFile = join(
|
|
259
|
-
|
|
257
|
+
rpcDir,
|
|
260
258
|
'pikku-rpc-wirings-map.gen.d.ts'
|
|
261
259
|
)
|
|
262
260
|
}
|