@solid-stack/builder 1.0.7 → 1.1.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.
- package/dist/bin.js +182 -56
- package/dist/bin.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/core/buildSchema.d.ts +138 -0
- package/dist/core/buildSchema.d.ts.map +1 -0
- package/dist/core/compileEnvironment.d.ts.map +1 -1
- package/dist/core/mesh/compileMeshEnvironment.d.ts.map +1 -1
- package/dist/core/mesh/meshSchema.d.ts +21 -0
- package/dist/core/mesh/meshSchema.d.ts.map +1 -1
- package/dist/core/mesh/types.d.ts +3 -0
- package/dist/core/mesh/types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +217 -57
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +8 -4
- package/schemas/build-schema.json +136 -0
- package/schemas/mesh-schema.json +190 -0
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,wBAAgB,SAAS,IAAI,OAAO,CAuBnC;AAED,wBAAsB,MAAM,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,wBAAgB,SAAS,IAAI,OAAO,CAuBnC;AAED,wBAAsB,MAAM,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAsEzE"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const buildPolicyConfigSchema: z.ZodObject<{
|
|
3
|
+
dockerfile: z.ZodOptional<z.ZodString>;
|
|
4
|
+
compose: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
dockerfile?: string | undefined;
|
|
7
|
+
compose?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
dockerfile?: string | undefined;
|
|
10
|
+
compose?: string | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const buildDependencySchema: z.ZodObject<{
|
|
13
|
+
path: z.ZodString;
|
|
14
|
+
service: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
path: string;
|
|
17
|
+
service?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
path: string;
|
|
20
|
+
service?: string | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const buildOverrideSchema: z.ZodObject<{
|
|
23
|
+
path: z.ZodString;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
path: string;
|
|
26
|
+
}, {
|
|
27
|
+
path: string;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const buildTesterSchema: z.ZodObject<{
|
|
30
|
+
envOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31
|
+
}, "strict", z.ZodTypeAny, {
|
|
32
|
+
envOverrides?: Record<string, string> | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
envOverrides?: Record<string, string> | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const buildJsonSchema: z.ZodObject<{
|
|
37
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
38
|
+
name: z.ZodOptional<z.ZodString>;
|
|
39
|
+
dockerfile: z.ZodOptional<z.ZodString>;
|
|
40
|
+
port: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
41
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
dockerfile: z.ZodOptional<z.ZodString>;
|
|
43
|
+
compose: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, "strict", z.ZodTypeAny, {
|
|
45
|
+
dockerfile?: string | undefined;
|
|
46
|
+
compose?: string | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
dockerfile?: string | undefined;
|
|
49
|
+
compose?: string | undefined;
|
|
50
|
+
}>>;
|
|
51
|
+
policies: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
dockerfile: z.ZodOptional<z.ZodString>;
|
|
53
|
+
compose: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, "strict", z.ZodTypeAny, {
|
|
55
|
+
dockerfile?: string | undefined;
|
|
56
|
+
compose?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
dockerfile?: string | undefined;
|
|
59
|
+
compose?: string | undefined;
|
|
60
|
+
}>>;
|
|
61
|
+
composeFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
62
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
63
|
+
path: z.ZodString;
|
|
64
|
+
service: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
path: string;
|
|
67
|
+
service?: string | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
path: string;
|
|
70
|
+
service?: string | undefined;
|
|
71
|
+
}>>>;
|
|
72
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["dev", "prod", "test", "e2e"]>, z.ZodObject<{
|
|
73
|
+
path: z.ZodString;
|
|
74
|
+
}, "strict", z.ZodTypeAny, {
|
|
75
|
+
path: string;
|
|
76
|
+
}, {
|
|
77
|
+
path: string;
|
|
78
|
+
}>>>;
|
|
79
|
+
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
80
|
+
tester: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
envOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
82
|
+
}, "strict", z.ZodTypeAny, {
|
|
83
|
+
envOverrides?: Record<string, string> | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
envOverrides?: Record<string, string> | undefined;
|
|
86
|
+
}>>;
|
|
87
|
+
}, "strict", z.ZodTypeAny, {
|
|
88
|
+
$schema?: string | undefined;
|
|
89
|
+
name?: string | undefined;
|
|
90
|
+
dockerfile?: string | undefined;
|
|
91
|
+
port?: string | number | undefined;
|
|
92
|
+
policy?: {
|
|
93
|
+
dockerfile?: string | undefined;
|
|
94
|
+
compose?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
policies?: {
|
|
97
|
+
dockerfile?: string | undefined;
|
|
98
|
+
compose?: string | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
composeFiles?: string[] | undefined;
|
|
101
|
+
dependencies?: Record<string, {
|
|
102
|
+
path: string;
|
|
103
|
+
service?: string | undefined;
|
|
104
|
+
}> | undefined;
|
|
105
|
+
overrides?: Partial<Record<"dev" | "e2e" | "prod" | "test", {
|
|
106
|
+
path: string;
|
|
107
|
+
}>> | undefined;
|
|
108
|
+
services?: Record<string, any> | undefined;
|
|
109
|
+
tester?: {
|
|
110
|
+
envOverrides?: Record<string, string> | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
$schema?: string | undefined;
|
|
114
|
+
name?: string | undefined;
|
|
115
|
+
dockerfile?: string | undefined;
|
|
116
|
+
port?: string | number | undefined;
|
|
117
|
+
policy?: {
|
|
118
|
+
dockerfile?: string | undefined;
|
|
119
|
+
compose?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
policies?: {
|
|
122
|
+
dockerfile?: string | undefined;
|
|
123
|
+
compose?: string | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
composeFiles?: string[] | undefined;
|
|
126
|
+
dependencies?: Record<string, {
|
|
127
|
+
path: string;
|
|
128
|
+
service?: string | undefined;
|
|
129
|
+
}> | undefined;
|
|
130
|
+
overrides?: Partial<Record<"dev" | "e2e" | "prod" | "test", {
|
|
131
|
+
path: string;
|
|
132
|
+
}>> | undefined;
|
|
133
|
+
services?: Record<string, any> | undefined;
|
|
134
|
+
tester?: {
|
|
135
|
+
envOverrides?: Record<string, string> | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
//# sourceMappingURL=buildSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildSchema.d.ts","sourceRoot":"","sources":["../../src/core/buildSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;EAYgC,CAAC;AAErE,eAAO,MAAM,qBAAqB;;;;;;;;;EAWa,CAAC;AAEhD,eAAO,MAAM,mBAAmB;;;;;;EAOiB,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;EAUS,CAAC;AAExC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCyC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileEnvironment.d.ts","sourceRoot":"","sources":["../../src/core/compileEnvironment.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAarD,eAAO,MAAM,kBAAkB,gBAChB,WAAW,eACZ,MAAM,KACjB,
|
|
1
|
+
{"version":3,"file":"compileEnvironment.d.ts","sourceRoot":"","sources":["../../src/core/compileEnvironment.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAarD,eAAO,MAAM,kBAAkB,gBAChB,WAAW,eACZ,MAAM,KACjB,MAkQF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileMeshEnvironment.d.ts","sourceRoot":"","sources":["../../../src/core/mesh/compileMeshEnvironment.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC1C;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,KAAK,GAAG,MAAM,EACpB,UAAU,GAAE,MAAsB,EAClC,OAAO,GAAE,kBAAuB,GAC/B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"compileMeshEnvironment.d.ts","sourceRoot":"","sources":["../../../src/core/mesh/compileMeshEnvironment.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC1C;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,KAAK,GAAG,MAAM,EACpB,UAAU,GAAE,MAAsB,EAClC,OAAO,GAAE,kBAAuB,GAC/B,iBAAiB,CA4xBnB"}
|
|
@@ -33,6 +33,7 @@ export declare const meshHealthcheckSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
33
33
|
export declare const meshServiceSchema: z.ZodObject<{
|
|
34
34
|
path: z.ZodString;
|
|
35
35
|
port: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
36
|
+
preservePort: z.ZodOptional<z.ZodBoolean>;
|
|
36
37
|
provideDependency: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37
38
|
replaceMocks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
39
|
envOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -70,6 +71,7 @@ export declare const meshServiceSchema: z.ZodObject<{
|
|
|
70
71
|
}, "strict", z.ZodTypeAny, {
|
|
71
72
|
path: string;
|
|
72
73
|
port?: string | number | undefined;
|
|
74
|
+
preservePort?: boolean | undefined;
|
|
73
75
|
provideDependency?: Record<string, string> | undefined;
|
|
74
76
|
replaceMocks?: Record<string, string> | undefined;
|
|
75
77
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -87,6 +89,7 @@ export declare const meshServiceSchema: z.ZodObject<{
|
|
|
87
89
|
}, {
|
|
88
90
|
path: string;
|
|
89
91
|
port?: string | number | undefined;
|
|
92
|
+
preservePort?: boolean | undefined;
|
|
90
93
|
provideDependency?: Record<string, string> | undefined;
|
|
91
94
|
replaceMocks?: Record<string, string> | undefined;
|
|
92
95
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -106,6 +109,7 @@ export declare const meshTesterSchema: z.ZodObject<{
|
|
|
106
109
|
path: z.ZodString;
|
|
107
110
|
compose: z.ZodOptional<z.ZodString>;
|
|
108
111
|
dockerfile: z.ZodOptional<z.ZodString>;
|
|
112
|
+
envOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
109
113
|
policy: z.ZodOptional<z.ZodObject<{
|
|
110
114
|
dockerfile: z.ZodOptional<z.ZodString>;
|
|
111
115
|
compose: z.ZodOptional<z.ZodString>;
|
|
@@ -120,6 +124,7 @@ export declare const meshTesterSchema: z.ZodObject<{
|
|
|
120
124
|
path: string;
|
|
121
125
|
compose?: string | undefined;
|
|
122
126
|
dockerfile?: string | undefined;
|
|
127
|
+
envOverrides?: Record<string, string> | undefined;
|
|
123
128
|
policy?: {
|
|
124
129
|
dockerfile?: string | undefined;
|
|
125
130
|
compose?: string | undefined;
|
|
@@ -128,6 +133,7 @@ export declare const meshTesterSchema: z.ZodObject<{
|
|
|
128
133
|
path: string;
|
|
129
134
|
compose?: string | undefined;
|
|
130
135
|
dockerfile?: string | undefined;
|
|
136
|
+
envOverrides?: Record<string, string> | undefined;
|
|
131
137
|
policy?: {
|
|
132
138
|
dockerfile?: string | undefined;
|
|
133
139
|
compose?: string | undefined;
|
|
@@ -135,10 +141,12 @@ export declare const meshTesterSchema: z.ZodObject<{
|
|
|
135
141
|
}>;
|
|
136
142
|
export declare const meshServiceNameRegex: RegExp;
|
|
137
143
|
export declare const meshSchema: z.ZodObject<{
|
|
144
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
138
145
|
name: z.ZodOptional<z.ZodString>;
|
|
139
146
|
services: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
140
147
|
path: z.ZodString;
|
|
141
148
|
port: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
149
|
+
preservePort: z.ZodOptional<z.ZodBoolean>;
|
|
142
150
|
provideDependency: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
143
151
|
replaceMocks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
144
152
|
envOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -176,6 +184,7 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
176
184
|
}, "strict", z.ZodTypeAny, {
|
|
177
185
|
path: string;
|
|
178
186
|
port?: string | number | undefined;
|
|
187
|
+
preservePort?: boolean | undefined;
|
|
179
188
|
provideDependency?: Record<string, string> | undefined;
|
|
180
189
|
replaceMocks?: Record<string, string> | undefined;
|
|
181
190
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -193,6 +202,7 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
193
202
|
}, {
|
|
194
203
|
path: string;
|
|
195
204
|
port?: string | number | undefined;
|
|
205
|
+
preservePort?: boolean | undefined;
|
|
196
206
|
provideDependency?: Record<string, string> | undefined;
|
|
197
207
|
replaceMocks?: Record<string, string> | undefined;
|
|
198
208
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -210,6 +220,7 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
210
220
|
}>>, Record<string, {
|
|
211
221
|
path: string;
|
|
212
222
|
port?: string | number | undefined;
|
|
223
|
+
preservePort?: boolean | undefined;
|
|
213
224
|
provideDependency?: Record<string, string> | undefined;
|
|
214
225
|
replaceMocks?: Record<string, string> | undefined;
|
|
215
226
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -227,6 +238,7 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
227
238
|
}>, Record<string, {
|
|
228
239
|
path: string;
|
|
229
240
|
port?: string | number | undefined;
|
|
241
|
+
preservePort?: boolean | undefined;
|
|
230
242
|
provideDependency?: Record<string, string> | undefined;
|
|
231
243
|
replaceMocks?: Record<string, string> | undefined;
|
|
232
244
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -256,6 +268,7 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
256
268
|
path: z.ZodString;
|
|
257
269
|
compose: z.ZodOptional<z.ZodString>;
|
|
258
270
|
dockerfile: z.ZodOptional<z.ZodString>;
|
|
271
|
+
envOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
259
272
|
policy: z.ZodOptional<z.ZodObject<{
|
|
260
273
|
dockerfile: z.ZodOptional<z.ZodString>;
|
|
261
274
|
compose: z.ZodOptional<z.ZodString>;
|
|
@@ -270,6 +283,7 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
270
283
|
path: string;
|
|
271
284
|
compose?: string | undefined;
|
|
272
285
|
dockerfile?: string | undefined;
|
|
286
|
+
envOverrides?: Record<string, string> | undefined;
|
|
273
287
|
policy?: {
|
|
274
288
|
dockerfile?: string | undefined;
|
|
275
289
|
compose?: string | undefined;
|
|
@@ -278,16 +292,19 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
278
292
|
path: string;
|
|
279
293
|
compose?: string | undefined;
|
|
280
294
|
dockerfile?: string | undefined;
|
|
295
|
+
envOverrides?: Record<string, string> | undefined;
|
|
281
296
|
policy?: {
|
|
282
297
|
dockerfile?: string | undefined;
|
|
283
298
|
compose?: string | undefined;
|
|
284
299
|
} | undefined;
|
|
285
300
|
}>>;
|
|
286
301
|
}, "strict", z.ZodTypeAny, {
|
|
302
|
+
$schema?: string | undefined;
|
|
287
303
|
name?: string | undefined;
|
|
288
304
|
services: Record<string, {
|
|
289
305
|
path: string;
|
|
290
306
|
port?: string | number | undefined;
|
|
307
|
+
preservePort?: boolean | undefined;
|
|
291
308
|
provideDependency?: Record<string, string> | undefined;
|
|
292
309
|
replaceMocks?: Record<string, string> | undefined;
|
|
293
310
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -311,16 +328,19 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
311
328
|
path: string;
|
|
312
329
|
compose?: string | undefined;
|
|
313
330
|
dockerfile?: string | undefined;
|
|
331
|
+
envOverrides?: Record<string, string> | undefined;
|
|
314
332
|
policy?: {
|
|
315
333
|
dockerfile?: string | undefined;
|
|
316
334
|
compose?: string | undefined;
|
|
317
335
|
} | undefined;
|
|
318
336
|
} | undefined;
|
|
319
337
|
}, {
|
|
338
|
+
$schema?: string | undefined;
|
|
320
339
|
name?: string | undefined;
|
|
321
340
|
services: Record<string, {
|
|
322
341
|
path: string;
|
|
323
342
|
port?: string | number | undefined;
|
|
343
|
+
preservePort?: boolean | undefined;
|
|
324
344
|
provideDependency?: Record<string, string> | undefined;
|
|
325
345
|
replaceMocks?: Record<string, string> | undefined;
|
|
326
346
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -344,6 +364,7 @@ export declare const meshSchema: z.ZodObject<{
|
|
|
344
364
|
path: string;
|
|
345
365
|
compose?: string | undefined;
|
|
346
366
|
dockerfile?: string | undefined;
|
|
367
|
+
envOverrides?: Record<string, string> | undefined;
|
|
347
368
|
policy?: {
|
|
348
369
|
dockerfile?: string | undefined;
|
|
349
370
|
compose?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meshSchema.d.ts","sourceRoot":"","sources":["../../../src/core/mesh/meshSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAiBhC,CAAC;AAEH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"meshSchema.d.ts","sourceRoot":"","sources":["../../../src/core/mesh/meshSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAiBhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BnB,CAAC;AAEZ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BlB,CAAC;AAEZ,eAAO,MAAM,oBAAoB,QAAiC,CAAC;AAEnE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BZ,CAAC"}
|
|
@@ -12,6 +12,7 @@ export type MeshHealthcheckConfig = {
|
|
|
12
12
|
export interface MeshServiceConfig {
|
|
13
13
|
path: string;
|
|
14
14
|
port?: number | string | undefined;
|
|
15
|
+
preservePort?: boolean | undefined;
|
|
15
16
|
provideDependency?: Record<string, string> | undefined;
|
|
16
17
|
replaceMocks?: Record<string, string> | undefined;
|
|
17
18
|
envOverrides?: Record<string, string> | undefined;
|
|
@@ -21,12 +22,14 @@ export interface MeshTesterConfig {
|
|
|
21
22
|
path: string;
|
|
22
23
|
compose?: string | undefined;
|
|
23
24
|
dockerfile?: string | undefined;
|
|
25
|
+
envOverrides?: Record<string, string> | undefined;
|
|
24
26
|
policy?: {
|
|
25
27
|
dockerfile?: string | undefined;
|
|
26
28
|
compose?: string | undefined;
|
|
27
29
|
} | undefined;
|
|
28
30
|
}
|
|
29
31
|
export interface MeshConfig {
|
|
32
|
+
$schema?: string | undefined;
|
|
30
33
|
name?: string | undefined;
|
|
31
34
|
services: Record<string, MeshServiceConfig>;
|
|
32
35
|
dependencies?: Record<string, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/mesh/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,GACnD;IACE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEN,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,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shEnvironment } from "./core/mesh/compileMeshEnvironment.js";
|
|
5
5
|
export { teardownCompose } from "./core/teardownCompose.js";
|
|
6
6
|
export { runCompose } from "./core/runCompose.js";
|
|
7
|
+
export { buildJsonSchema } from "./core/buildSchema.js";
|
|
8
|
+
export { meshSchema } from "./core/mesh/meshSchema.js";
|
|
7
9
|
export { ScriptError } from "./errors/ScriptError.js";
|
|
8
10
|
export { NotFoundError } from "./errors/NotFoundError.js";
|
|
9
11
|
export { version } from "./version.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|