launchset 0.0.0-stage → 1.2.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/LICENSE +21 -0
- package/README.md +100 -2
- package/dist/appstore-bVSJnUv2.js +143 -0
- package/dist/cli.js +6889 -0
- package/dist/errors-CHdD4g_K.js +58 -0
- package/dist/gitlab-child-girdQprO.js +6071 -0
- package/dist/http-dQt8kfON.js +127 -0
- package/dist/index.d.ts +854 -0
- package/dist/index.js +29 -0
- package/dist/init-Cv748KKZ.js +8222 -0
- package/dist/launchset.schema.json +1473 -0
- package/dist/play-D7nv0n-W.js +123 -0
- package/dist/prompts-S8h8cgml.js +52 -0
- package/dist/schema-CKljQNeI.js +1202 -0
- package/dist/store-BCwWrhhY.js +73 -0
- package/package.json +88 -4
- package/skills/launchset/AGENTS-snippet.md +24 -0
- package/skills/launchset/SKILL.md +205 -0
- package/skills/launchset-adopt/SKILL.md +222 -0
- package/templates/gitlab/child/build.yml +17 -0
- package/templates/gitlab/child/cli.yml +14 -0
- package/templates/gitlab/child/comment.yml +14 -0
- package/templates/gitlab/child/finalize.yml +14 -0
- package/templates/gitlab/child/header.yml +4 -0
- package/templates/gitlab/child/include.yml +6 -0
- package/templates/gitlab/child/nothing.yml +11 -0
- package/templates/gitlab/gitlab-ci.yml +23 -0
- package/templates/gitlab/launchset-preview.yml +62 -0
- package/templates/gitlab/launchset-targets.yml +44 -0
- package/templates/gitlab/launchset.yml +133 -0
- package/templates/gitlab/targets/android.yml +25 -0
- package/templates/gitlab/targets/custom-npm.yml +15 -0
- package/templates/gitlab/targets/custom.yml +23 -0
- package/templates/gitlab/targets/docker.yml +23 -0
- package/templates/gitlab/targets/ios.yml +33 -0
- package/templates/gitlab/targets/web.yml +13 -0
- package/templates/launchset-readme.md +23 -0
- package/templates/workflows/launchset-check.yml +33 -0
- package/templates/workflows/launchset-preview.yml +157 -0
- package/templates/workflows/launchset-release.yml +181 -0
- package/templates/workflows/snippets/android.yml +41 -0
- package/templates/workflows/snippets/custom-example.yml +12 -0
- package/templates/workflows/snippets/custom-npm.yml +19 -0
- package/templates/workflows/snippets/custom.yml +9 -0
- package/templates/workflows/snippets/docker-login.yml +9 -0
- package/templates/workflows/snippets/docker.yml +17 -0
- package/templates/workflows/snippets/ios.yml +46 -0
- package/templates/workflows/snippets/web.yml +20 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
/** Public API of `launchset`. */
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* JSON Schema for `launchset.config.json` (and the docs' configuration reference),
|
|
5
|
+
* generated from the zod schema. Pure.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The JSON Schema of the config as users write it (`io: "input"`: defaults are optional).
|
|
9
|
+
* A top-level `$schema` property is allowed for editor support.
|
|
10
|
+
*/
|
|
11
|
+
export declare function configJsonSchema(): Record<string, unknown>;
|
|
12
|
+
/** User-facing errors (pure). */
|
|
13
|
+
interface LaunchsetErrorOptions {
|
|
14
|
+
/** What the user can do about it, shown under the message. */
|
|
15
|
+
hint?: string;
|
|
16
|
+
cause?: unknown;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A failure the user can act on: the message says what is wrong and where (file, field,
|
|
20
|
+
* line), `hint` says what to do. `code` is a stable kebab-case identifier for tests,
|
|
21
|
+
* JSON output and the action's job summary.
|
|
22
|
+
*/
|
|
23
|
+
export declare class LaunchsetError extends Error {
|
|
24
|
+
readonly code: string;
|
|
25
|
+
readonly hint?: string;
|
|
26
|
+
constructor(code: string, message: string, options?: LaunchsetErrorOptions);
|
|
27
|
+
}
|
|
28
|
+
/** True for errors meant for the user (as opposed to bugs). */
|
|
29
|
+
export declare function isLaunchsetError(error: unknown): error is LaunchsetError;
|
|
30
|
+
declare const buildNumberSchema: z.ZodObject<{
|
|
31
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
32
|
+
eas: "eas";
|
|
33
|
+
"run-number": "run-number";
|
|
34
|
+
semver: "semver";
|
|
35
|
+
timestamp: "timestamp";
|
|
36
|
+
}>>;
|
|
37
|
+
epoch: z.ZodDefault<z.ZodISODateTime>;
|
|
38
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
minute: "minute";
|
|
41
|
+
second: "second";
|
|
42
|
+
}>>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
type BuildNumberConfig = z.output<typeof buildNumberSchema>;
|
|
45
|
+
declare const fileEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
path: z.ZodString;
|
|
47
|
+
kind: z.ZodLiteral<"json">;
|
|
48
|
+
key: z.ZodString;
|
|
49
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50
|
+
path: z.ZodString;
|
|
51
|
+
kind: z.ZodLiteral<"yaml">;
|
|
52
|
+
key: z.ZodString;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
path: z.ZodString;
|
|
55
|
+
kind: z.ZodLiteral<"regex">;
|
|
56
|
+
pattern: z.ZodString;
|
|
57
|
+
replace: z.ZodString;
|
|
58
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
path: z.ZodString;
|
|
61
|
+
kind: z.ZodLiteral<"image">;
|
|
62
|
+
}, z.core.$strict>], "kind">;
|
|
63
|
+
type FileEntry = z.output<typeof fileEntrySchema>;
|
|
64
|
+
declare const targetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
66
|
+
auto: "auto";
|
|
67
|
+
manual: "manual";
|
|
68
|
+
}>>;
|
|
69
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
eas: "eas";
|
|
72
|
+
"run-number": "run-number";
|
|
73
|
+
semver: "semver";
|
|
74
|
+
timestamp: "timestamp";
|
|
75
|
+
}>>;
|
|
76
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
77
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
minute: "minute";
|
|
80
|
+
second: "second";
|
|
81
|
+
}>>;
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
+
path: z.ZodString;
|
|
85
|
+
kind: z.ZodLiteral<"json">;
|
|
86
|
+
key: z.ZodString;
|
|
87
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
+
path: z.ZodString;
|
|
89
|
+
kind: z.ZodLiteral<"yaml">;
|
|
90
|
+
key: z.ZodString;
|
|
91
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
+
path: z.ZodString;
|
|
93
|
+
kind: z.ZodLiteral<"regex">;
|
|
94
|
+
pattern: z.ZodString;
|
|
95
|
+
replace: z.ZodString;
|
|
96
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
98
|
+
path: z.ZodString;
|
|
99
|
+
kind: z.ZodLiteral<"image">;
|
|
100
|
+
}, z.core.$strict>], "kind">>>;
|
|
101
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
104
|
+
powershell: "powershell";
|
|
105
|
+
sh: "sh";
|
|
106
|
+
}>>;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
type: z.ZodLiteral<"docker">;
|
|
109
|
+
image: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
110
|
+
tags: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
111
|
+
release: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
|
+
preview: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
|
+
prerelease: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
|
+
}, z.core.$strict>]>>;
|
|
115
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodLiteral<"registry">>>;
|
|
116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
117
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
118
|
+
auto: "auto";
|
|
119
|
+
manual: "manual";
|
|
120
|
+
}>>;
|
|
121
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
eas: "eas";
|
|
124
|
+
"run-number": "run-number";
|
|
125
|
+
semver: "semver";
|
|
126
|
+
timestamp: "timestamp";
|
|
127
|
+
}>>;
|
|
128
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
129
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
minute: "minute";
|
|
132
|
+
second: "second";
|
|
133
|
+
}>>;
|
|
134
|
+
}, z.core.$strict>>;
|
|
135
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
136
|
+
path: z.ZodString;
|
|
137
|
+
kind: z.ZodLiteral<"json">;
|
|
138
|
+
key: z.ZodString;
|
|
139
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
140
|
+
path: z.ZodString;
|
|
141
|
+
kind: z.ZodLiteral<"yaml">;
|
|
142
|
+
key: z.ZodString;
|
|
143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
144
|
+
path: z.ZodString;
|
|
145
|
+
kind: z.ZodLiteral<"regex">;
|
|
146
|
+
pattern: z.ZodString;
|
|
147
|
+
replace: z.ZodString;
|
|
148
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
150
|
+
path: z.ZodString;
|
|
151
|
+
kind: z.ZodLiteral<"image">;
|
|
152
|
+
}, z.core.$strict>], "kind">>>;
|
|
153
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
156
|
+
powershell: "powershell";
|
|
157
|
+
sh: "sh";
|
|
158
|
+
}>>;
|
|
159
|
+
}, z.core.$strict>>;
|
|
160
|
+
type: z.ZodLiteral<"web">;
|
|
161
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodNever>>;
|
|
162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
163
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
164
|
+
auto: "auto";
|
|
165
|
+
manual: "manual";
|
|
166
|
+
}>>;
|
|
167
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
169
|
+
eas: "eas";
|
|
170
|
+
"run-number": "run-number";
|
|
171
|
+
semver: "semver";
|
|
172
|
+
timestamp: "timestamp";
|
|
173
|
+
}>>;
|
|
174
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
175
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
minute: "minute";
|
|
178
|
+
second: "second";
|
|
179
|
+
}>>;
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
182
|
+
path: z.ZodString;
|
|
183
|
+
kind: z.ZodLiteral<"json">;
|
|
184
|
+
key: z.ZodString;
|
|
185
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
186
|
+
path: z.ZodString;
|
|
187
|
+
kind: z.ZodLiteral<"yaml">;
|
|
188
|
+
key: z.ZodString;
|
|
189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
190
|
+
path: z.ZodString;
|
|
191
|
+
kind: z.ZodLiteral<"regex">;
|
|
192
|
+
pattern: z.ZodString;
|
|
193
|
+
replace: z.ZodString;
|
|
194
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
196
|
+
path: z.ZodString;
|
|
197
|
+
kind: z.ZodLiteral<"image">;
|
|
198
|
+
}, z.core.$strict>], "kind">>>;
|
|
199
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
200
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
202
|
+
powershell: "powershell";
|
|
203
|
+
sh: "sh";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strict>>;
|
|
206
|
+
type: z.ZodLiteral<"android">;
|
|
207
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
208
|
+
kind: z.ZodLiteral<"gradle">;
|
|
209
|
+
file: z.ZodString;
|
|
210
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
211
|
+
kind: z.ZodLiteral<"gradle-properties">;
|
|
212
|
+
file: z.ZodString;
|
|
213
|
+
versionNameKey: z.ZodDefault<z.ZodString>;
|
|
214
|
+
versionCodeKey: z.ZodDefault<z.ZodString>;
|
|
215
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
216
|
+
kind: z.ZodLiteral<"capacitor">;
|
|
217
|
+
dir: z.ZodString;
|
|
218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
+
kind: z.ZodLiteral<"expo">;
|
|
220
|
+
file: z.ZodDefault<z.ZodString>;
|
|
221
|
+
}, z.core.$strict>], "kind">;
|
|
222
|
+
store: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
packageName: z.ZodString;
|
|
224
|
+
}, z.core.$strict>>;
|
|
225
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodLiteral<"store">>>;
|
|
226
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
227
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
228
|
+
auto: "auto";
|
|
229
|
+
manual: "manual";
|
|
230
|
+
}>>;
|
|
231
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
232
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
233
|
+
eas: "eas";
|
|
234
|
+
"run-number": "run-number";
|
|
235
|
+
semver: "semver";
|
|
236
|
+
timestamp: "timestamp";
|
|
237
|
+
}>>;
|
|
238
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
239
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
minute: "minute";
|
|
242
|
+
second: "second";
|
|
243
|
+
}>>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
246
|
+
path: z.ZodString;
|
|
247
|
+
kind: z.ZodLiteral<"json">;
|
|
248
|
+
key: z.ZodString;
|
|
249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
250
|
+
path: z.ZodString;
|
|
251
|
+
kind: z.ZodLiteral<"yaml">;
|
|
252
|
+
key: z.ZodString;
|
|
253
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
254
|
+
path: z.ZodString;
|
|
255
|
+
kind: z.ZodLiteral<"regex">;
|
|
256
|
+
pattern: z.ZodString;
|
|
257
|
+
replace: z.ZodString;
|
|
258
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
260
|
+
path: z.ZodString;
|
|
261
|
+
kind: z.ZodLiteral<"image">;
|
|
262
|
+
}, z.core.$strict>], "kind">>>;
|
|
263
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
266
|
+
powershell: "powershell";
|
|
267
|
+
sh: "sh";
|
|
268
|
+
}>>;
|
|
269
|
+
}, z.core.$strict>>;
|
|
270
|
+
type: z.ZodLiteral<"ios">;
|
|
271
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
272
|
+
kind: z.ZodLiteral<"xcodeproj">;
|
|
273
|
+
file: z.ZodString;
|
|
274
|
+
xcodeTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
276
|
+
kind: z.ZodLiteral<"plist">;
|
|
277
|
+
file: z.ZodOptional<z.ZodString>;
|
|
278
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
279
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
280
|
+
kind: z.ZodLiteral<"xcconfig">;
|
|
281
|
+
file: z.ZodString;
|
|
282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
+
kind: z.ZodLiteral<"capacitor">;
|
|
284
|
+
dir: z.ZodString;
|
|
285
|
+
xcodeTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
287
|
+
kind: z.ZodLiteral<"expo">;
|
|
288
|
+
file: z.ZodDefault<z.ZodString>;
|
|
289
|
+
}, z.core.$strict>], "kind">;
|
|
290
|
+
store: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
appId: z.ZodString;
|
|
292
|
+
}, z.core.$strict>>;
|
|
293
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodLiteral<"store">>>;
|
|
294
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
295
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
296
|
+
auto: "auto";
|
|
297
|
+
manual: "manual";
|
|
298
|
+
}>>;
|
|
299
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
eas: "eas";
|
|
302
|
+
"run-number": "run-number";
|
|
303
|
+
semver: "semver";
|
|
304
|
+
timestamp: "timestamp";
|
|
305
|
+
}>>;
|
|
306
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
307
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
minute: "minute";
|
|
310
|
+
second: "second";
|
|
311
|
+
}>>;
|
|
312
|
+
}, z.core.$strict>>;
|
|
313
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
314
|
+
path: z.ZodString;
|
|
315
|
+
kind: z.ZodLiteral<"json">;
|
|
316
|
+
key: z.ZodString;
|
|
317
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
318
|
+
path: z.ZodString;
|
|
319
|
+
kind: z.ZodLiteral<"yaml">;
|
|
320
|
+
key: z.ZodString;
|
|
321
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
322
|
+
path: z.ZodString;
|
|
323
|
+
kind: z.ZodLiteral<"regex">;
|
|
324
|
+
pattern: z.ZodString;
|
|
325
|
+
replace: z.ZodString;
|
|
326
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
328
|
+
path: z.ZodString;
|
|
329
|
+
kind: z.ZodLiteral<"image">;
|
|
330
|
+
}, z.core.$strict>], "kind">>>;
|
|
331
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
332
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
334
|
+
powershell: "powershell";
|
|
335
|
+
sh: "sh";
|
|
336
|
+
}>>;
|
|
337
|
+
}, z.core.$strict>>;
|
|
338
|
+
type: z.ZodLiteral<"custom">;
|
|
339
|
+
npm: z.ZodOptional<z.ZodObject<{
|
|
340
|
+
package: z.ZodDefault<z.ZodString>;
|
|
341
|
+
}, z.core.$strict>>;
|
|
342
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodLiteral<"npm">>>;
|
|
343
|
+
}, z.core.$strict>], "type">;
|
|
344
|
+
type TargetType = z.output<typeof targetSchema>["type"];
|
|
345
|
+
declare const configSchema: z.ZodObject<{
|
|
346
|
+
version: z.ZodPrefault<z.ZodObject<{
|
|
347
|
+
file: z.ZodDefault<z.ZodString>;
|
|
348
|
+
}, z.core.$strict>>;
|
|
349
|
+
changelog: z.ZodPrefault<z.ZodPipe<z.ZodObject<{
|
|
350
|
+
file: z.ZodDefault<z.ZodString>;
|
|
351
|
+
links: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
+
github: z.ZodOptional<z.ZodBoolean>;
|
|
353
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
354
|
+
file: string;
|
|
355
|
+
links: boolean;
|
|
356
|
+
}, {
|
|
357
|
+
file: string;
|
|
358
|
+
links?: boolean | undefined;
|
|
359
|
+
github?: boolean | undefined;
|
|
360
|
+
}>>>;
|
|
361
|
+
baseBranch: z.ZodDefault<z.ZodString>;
|
|
362
|
+
maintenanceBranches: z.ZodDefault<z.ZodString>;
|
|
363
|
+
tags: z.ZodPrefault<z.ZodObject<{
|
|
364
|
+
release: z.ZodDefault<z.ZodString>;
|
|
365
|
+
marker: z.ZodDefault<z.ZodString>;
|
|
366
|
+
partial: z.ZodDefault<z.ZodString>;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
buildNumber: z.ZodPrefault<z.ZodObject<{
|
|
369
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
370
|
+
eas: "eas";
|
|
371
|
+
"run-number": "run-number";
|
|
372
|
+
semver: "semver";
|
|
373
|
+
timestamp: "timestamp";
|
|
374
|
+
}>>;
|
|
375
|
+
epoch: z.ZodDefault<z.ZodISODateTime>;
|
|
376
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
377
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
378
|
+
minute: "minute";
|
|
379
|
+
second: "second";
|
|
380
|
+
}>>;
|
|
381
|
+
}, z.core.$strict>>;
|
|
382
|
+
check: z.ZodPrefault<z.ZodObject<{
|
|
383
|
+
bots: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
384
|
+
}, z.core.$strict>>;
|
|
385
|
+
preview: z.ZodPrefault<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
386
|
+
label: z.ZodDefault<z.ZodString>;
|
|
387
|
+
rebuildOnPush: z.ZodDefault<z.ZodBoolean>;
|
|
388
|
+
branches: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
389
|
+
branch: z.ZodString;
|
|
390
|
+
targets: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
391
|
+
prerelease: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, z.core.$strict>]>>>;
|
|
393
|
+
targets: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
394
|
+
}, z.core.$strict>]>>;
|
|
395
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
396
|
+
include: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
397
|
+
tagPipelines: z.ZodDefault<z.ZodBoolean>;
|
|
398
|
+
}, z.core.$strict>>;
|
|
399
|
+
targets: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
400
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
401
|
+
auto: "auto";
|
|
402
|
+
manual: "manual";
|
|
403
|
+
}>>;
|
|
404
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
405
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
406
|
+
eas: "eas";
|
|
407
|
+
"run-number": "run-number";
|
|
408
|
+
semver: "semver";
|
|
409
|
+
timestamp: "timestamp";
|
|
410
|
+
}>>;
|
|
411
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
412
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
413
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
414
|
+
minute: "minute";
|
|
415
|
+
second: "second";
|
|
416
|
+
}>>;
|
|
417
|
+
}, z.core.$strict>>;
|
|
418
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
419
|
+
path: z.ZodString;
|
|
420
|
+
kind: z.ZodLiteral<"json">;
|
|
421
|
+
key: z.ZodString;
|
|
422
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
423
|
+
path: z.ZodString;
|
|
424
|
+
kind: z.ZodLiteral<"yaml">;
|
|
425
|
+
key: z.ZodString;
|
|
426
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
427
|
+
path: z.ZodString;
|
|
428
|
+
kind: z.ZodLiteral<"regex">;
|
|
429
|
+
pattern: z.ZodString;
|
|
430
|
+
replace: z.ZodString;
|
|
431
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
432
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
433
|
+
path: z.ZodString;
|
|
434
|
+
kind: z.ZodLiteral<"image">;
|
|
435
|
+
}, z.core.$strict>], "kind">>>;
|
|
436
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
437
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
438
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
439
|
+
powershell: "powershell";
|
|
440
|
+
sh: "sh";
|
|
441
|
+
}>>;
|
|
442
|
+
}, z.core.$strict>>;
|
|
443
|
+
type: z.ZodLiteral<"docker">;
|
|
444
|
+
image: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
445
|
+
tags: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
446
|
+
release: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
447
|
+
preview: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
448
|
+
prerelease: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
449
|
+
}, z.core.$strict>]>>;
|
|
450
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodLiteral<"registry">>>;
|
|
451
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
452
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
453
|
+
auto: "auto";
|
|
454
|
+
manual: "manual";
|
|
455
|
+
}>>;
|
|
456
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
457
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
458
|
+
eas: "eas";
|
|
459
|
+
"run-number": "run-number";
|
|
460
|
+
semver: "semver";
|
|
461
|
+
timestamp: "timestamp";
|
|
462
|
+
}>>;
|
|
463
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
464
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
465
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
466
|
+
minute: "minute";
|
|
467
|
+
second: "second";
|
|
468
|
+
}>>;
|
|
469
|
+
}, z.core.$strict>>;
|
|
470
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
471
|
+
path: z.ZodString;
|
|
472
|
+
kind: z.ZodLiteral<"json">;
|
|
473
|
+
key: z.ZodString;
|
|
474
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
475
|
+
path: z.ZodString;
|
|
476
|
+
kind: z.ZodLiteral<"yaml">;
|
|
477
|
+
key: z.ZodString;
|
|
478
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
479
|
+
path: z.ZodString;
|
|
480
|
+
kind: z.ZodLiteral<"regex">;
|
|
481
|
+
pattern: z.ZodString;
|
|
482
|
+
replace: z.ZodString;
|
|
483
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
484
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
485
|
+
path: z.ZodString;
|
|
486
|
+
kind: z.ZodLiteral<"image">;
|
|
487
|
+
}, z.core.$strict>], "kind">>>;
|
|
488
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
489
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
490
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
491
|
+
powershell: "powershell";
|
|
492
|
+
sh: "sh";
|
|
493
|
+
}>>;
|
|
494
|
+
}, z.core.$strict>>;
|
|
495
|
+
type: z.ZodLiteral<"web">;
|
|
496
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodNever>>;
|
|
497
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
498
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
499
|
+
auto: "auto";
|
|
500
|
+
manual: "manual";
|
|
501
|
+
}>>;
|
|
502
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
504
|
+
eas: "eas";
|
|
505
|
+
"run-number": "run-number";
|
|
506
|
+
semver: "semver";
|
|
507
|
+
timestamp: "timestamp";
|
|
508
|
+
}>>;
|
|
509
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
510
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
511
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
512
|
+
minute: "minute";
|
|
513
|
+
second: "second";
|
|
514
|
+
}>>;
|
|
515
|
+
}, z.core.$strict>>;
|
|
516
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
517
|
+
path: z.ZodString;
|
|
518
|
+
kind: z.ZodLiteral<"json">;
|
|
519
|
+
key: z.ZodString;
|
|
520
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
521
|
+
path: z.ZodString;
|
|
522
|
+
kind: z.ZodLiteral<"yaml">;
|
|
523
|
+
key: z.ZodString;
|
|
524
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
525
|
+
path: z.ZodString;
|
|
526
|
+
kind: z.ZodLiteral<"regex">;
|
|
527
|
+
pattern: z.ZodString;
|
|
528
|
+
replace: z.ZodString;
|
|
529
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
530
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
531
|
+
path: z.ZodString;
|
|
532
|
+
kind: z.ZodLiteral<"image">;
|
|
533
|
+
}, z.core.$strict>], "kind">>>;
|
|
534
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
535
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
536
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
537
|
+
powershell: "powershell";
|
|
538
|
+
sh: "sh";
|
|
539
|
+
}>>;
|
|
540
|
+
}, z.core.$strict>>;
|
|
541
|
+
type: z.ZodLiteral<"android">;
|
|
542
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
543
|
+
kind: z.ZodLiteral<"gradle">;
|
|
544
|
+
file: z.ZodString;
|
|
545
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
546
|
+
kind: z.ZodLiteral<"gradle-properties">;
|
|
547
|
+
file: z.ZodString;
|
|
548
|
+
versionNameKey: z.ZodDefault<z.ZodString>;
|
|
549
|
+
versionCodeKey: z.ZodDefault<z.ZodString>;
|
|
550
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
551
|
+
kind: z.ZodLiteral<"capacitor">;
|
|
552
|
+
dir: z.ZodString;
|
|
553
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
554
|
+
kind: z.ZodLiteral<"expo">;
|
|
555
|
+
file: z.ZodDefault<z.ZodString>;
|
|
556
|
+
}, z.core.$strict>], "kind">;
|
|
557
|
+
store: z.ZodOptional<z.ZodObject<{
|
|
558
|
+
packageName: z.ZodString;
|
|
559
|
+
}, z.core.$strict>>;
|
|
560
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodLiteral<"store">>>;
|
|
561
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
562
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
563
|
+
auto: "auto";
|
|
564
|
+
manual: "manual";
|
|
565
|
+
}>>;
|
|
566
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
567
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
568
|
+
eas: "eas";
|
|
569
|
+
"run-number": "run-number";
|
|
570
|
+
semver: "semver";
|
|
571
|
+
timestamp: "timestamp";
|
|
572
|
+
}>>;
|
|
573
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
574
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
575
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
576
|
+
minute: "minute";
|
|
577
|
+
second: "second";
|
|
578
|
+
}>>;
|
|
579
|
+
}, z.core.$strict>>;
|
|
580
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
581
|
+
path: z.ZodString;
|
|
582
|
+
kind: z.ZodLiteral<"json">;
|
|
583
|
+
key: z.ZodString;
|
|
584
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
585
|
+
path: z.ZodString;
|
|
586
|
+
kind: z.ZodLiteral<"yaml">;
|
|
587
|
+
key: z.ZodString;
|
|
588
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
589
|
+
path: z.ZodString;
|
|
590
|
+
kind: z.ZodLiteral<"regex">;
|
|
591
|
+
pattern: z.ZodString;
|
|
592
|
+
replace: z.ZodString;
|
|
593
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
595
|
+
path: z.ZodString;
|
|
596
|
+
kind: z.ZodLiteral<"image">;
|
|
597
|
+
}, z.core.$strict>], "kind">>>;
|
|
598
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
599
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
600
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
601
|
+
powershell: "powershell";
|
|
602
|
+
sh: "sh";
|
|
603
|
+
}>>;
|
|
604
|
+
}, z.core.$strict>>;
|
|
605
|
+
type: z.ZodLiteral<"ios">;
|
|
606
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
607
|
+
kind: z.ZodLiteral<"xcodeproj">;
|
|
608
|
+
file: z.ZodString;
|
|
609
|
+
xcodeTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
610
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
611
|
+
kind: z.ZodLiteral<"plist">;
|
|
612
|
+
file: z.ZodOptional<z.ZodString>;
|
|
613
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
614
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
615
|
+
kind: z.ZodLiteral<"xcconfig">;
|
|
616
|
+
file: z.ZodString;
|
|
617
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
618
|
+
kind: z.ZodLiteral<"capacitor">;
|
|
619
|
+
dir: z.ZodString;
|
|
620
|
+
xcodeTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
621
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
622
|
+
kind: z.ZodLiteral<"expo">;
|
|
623
|
+
file: z.ZodDefault<z.ZodString>;
|
|
624
|
+
}, z.core.$strict>], "kind">;
|
|
625
|
+
store: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
appId: z.ZodString;
|
|
627
|
+
}, z.core.$strict>>;
|
|
628
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodLiteral<"store">>>;
|
|
629
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
630
|
+
release: z.ZodDefault<z.ZodEnum<{
|
|
631
|
+
auto: "auto";
|
|
632
|
+
manual: "manual";
|
|
633
|
+
}>>;
|
|
634
|
+
buildNumber: z.ZodOptional<z.ZodObject<{
|
|
635
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
636
|
+
eas: "eas";
|
|
637
|
+
"run-number": "run-number";
|
|
638
|
+
semver: "semver";
|
|
639
|
+
timestamp: "timestamp";
|
|
640
|
+
}>>;
|
|
641
|
+
epoch: z.ZodOptional<z.ZodISODateTime>;
|
|
642
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
643
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
644
|
+
minute: "minute";
|
|
645
|
+
second: "second";
|
|
646
|
+
}>>;
|
|
647
|
+
}, z.core.$strict>>;
|
|
648
|
+
files: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
649
|
+
path: z.ZodString;
|
|
650
|
+
kind: z.ZodLiteral<"json">;
|
|
651
|
+
key: z.ZodString;
|
|
652
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
653
|
+
path: z.ZodString;
|
|
654
|
+
kind: z.ZodLiteral<"yaml">;
|
|
655
|
+
key: z.ZodString;
|
|
656
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
657
|
+
path: z.ZodString;
|
|
658
|
+
kind: z.ZodLiteral<"regex">;
|
|
659
|
+
pattern: z.ZodString;
|
|
660
|
+
replace: z.ZodString;
|
|
661
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
663
|
+
path: z.ZodString;
|
|
664
|
+
kind: z.ZodLiteral<"image">;
|
|
665
|
+
}, z.core.$strict>], "kind">>>;
|
|
666
|
+
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
667
|
+
gitlab: z.ZodOptional<z.ZodObject<{
|
|
668
|
+
shell: z.ZodDefault<z.ZodEnum<{
|
|
669
|
+
powershell: "powershell";
|
|
670
|
+
sh: "sh";
|
|
671
|
+
}>>;
|
|
672
|
+
}, z.core.$strict>>;
|
|
673
|
+
type: z.ZodLiteral<"custom">;
|
|
674
|
+
npm: z.ZodOptional<z.ZodObject<{
|
|
675
|
+
package: z.ZodDefault<z.ZodString>;
|
|
676
|
+
}, z.core.$strict>>;
|
|
677
|
+
verify: z.ZodDefault<z.ZodArray<z.ZodLiteral<"npm">>>;
|
|
678
|
+
}, z.core.$strict>], "type">>;
|
|
679
|
+
}, z.core.$strict>;
|
|
680
|
+
/** What users write in `launchset.config.*` (used by `defineConfig`). */
|
|
681
|
+
type LaunchsetConfig = z.input<typeof configSchema>;
|
|
682
|
+
type ParsedConfig = z.output<typeof configSchema>;
|
|
683
|
+
interface DockerTags {
|
|
684
|
+
release: string[];
|
|
685
|
+
preview: string[];
|
|
686
|
+
prerelease: string[];
|
|
687
|
+
}
|
|
688
|
+
type Parsed<T extends TargetType> = Extract<z.output<typeof targetSchema>, {
|
|
689
|
+
type: T;
|
|
690
|
+
}>;
|
|
691
|
+
interface ResolvedCommon {
|
|
692
|
+
/** Target name (the key in `targets`). */
|
|
693
|
+
name: string;
|
|
694
|
+
release: "auto" | "manual";
|
|
695
|
+
/** Root `buildNumber` with this target's override applied. */
|
|
696
|
+
buildNumber: BuildNumberConfig;
|
|
697
|
+
files: FileEntry[];
|
|
698
|
+
}
|
|
699
|
+
type ResolvedDockerTarget = ResolvedCommon & Omit<Parsed<"docker">, "image" | "tags" | keyof ResolvedCommon> & {
|
|
700
|
+
image: string[];
|
|
701
|
+
tags: DockerTags;
|
|
702
|
+
};
|
|
703
|
+
type ResolvedWebTarget = ResolvedCommon & Omit<Parsed<"web">, keyof ResolvedCommon> & {
|
|
704
|
+
verify: never[];
|
|
705
|
+
};
|
|
706
|
+
type ResolvedAndroidTarget = ResolvedCommon & Omit<Parsed<"android">, keyof ResolvedCommon>;
|
|
707
|
+
type ParsedIosSource = Parsed<"ios">["source"];
|
|
708
|
+
/** iOS source with plist `file`/`files` normalized to `files`. */
|
|
709
|
+
type IosSource = Exclude<ParsedIosSource, {
|
|
710
|
+
kind: "plist";
|
|
711
|
+
}> | {
|
|
712
|
+
kind: "plist";
|
|
713
|
+
files: string[];
|
|
714
|
+
};
|
|
715
|
+
type ResolvedIosTarget = ResolvedCommon & Omit<Parsed<"ios">, "source" | keyof ResolvedCommon> & {
|
|
716
|
+
source: IosSource;
|
|
717
|
+
};
|
|
718
|
+
type ResolvedCustomTarget = ResolvedCommon & Omit<Parsed<"custom">, keyof ResolvedCommon>;
|
|
719
|
+
type ResolvedTarget = ResolvedDockerTarget | ResolvedWebTarget | ResolvedAndroidTarget | ResolvedIosTarget | ResolvedCustomTarget;
|
|
720
|
+
interface PreviewBranch {
|
|
721
|
+
branch: string;
|
|
722
|
+
/** Overrides `preview.targets` for this branch. */
|
|
723
|
+
targets?: "all" | string[];
|
|
724
|
+
/** Set for prerelease branches (spec 9.9). */
|
|
725
|
+
prerelease?: string;
|
|
726
|
+
}
|
|
727
|
+
interface ResolvedPreview {
|
|
728
|
+
enabled: boolean;
|
|
729
|
+
label: string;
|
|
730
|
+
rebuildOnPush: boolean;
|
|
731
|
+
branches: PreviewBranch[];
|
|
732
|
+
targets: "all" | string[];
|
|
733
|
+
}
|
|
734
|
+
interface ResolvedConfig extends Omit<ParsedConfig, "preview" | "targets"> {
|
|
735
|
+
preview: ResolvedPreview;
|
|
736
|
+
/** In config order. */
|
|
737
|
+
targets: Record<string, ResolvedTarget>;
|
|
738
|
+
}
|
|
739
|
+
/** Type helper for `launchset.config.ts`. */
|
|
740
|
+
export declare function defineConfig(config: LaunchsetConfig): LaunchsetConfig;
|
|
741
|
+
/** Changeset bump types, lowest first. */
|
|
742
|
+
declare const BUMPS: readonly ["none", "patch", "minor", "major"];
|
|
743
|
+
type Bump = (typeof BUMPS)[number];
|
|
744
|
+
/** A parsed changeset file (spec 4.1). */
|
|
745
|
+
interface Changeset {
|
|
746
|
+
/** File name, e.g. `brave-lions-sing.md`. */
|
|
747
|
+
name: string;
|
|
748
|
+
/** Repo-relative POSIX path, e.g. `.launchset/brave-lions-sing.md`. */
|
|
749
|
+
path: string;
|
|
750
|
+
bump: Bump;
|
|
751
|
+
/** Markdown body with surrounding blank lines trimmed. Empty only when `bump` is `none`. */
|
|
752
|
+
summary: string;
|
|
753
|
+
/** `bot` for changesets generated from bot PRs (spec 9.4). */
|
|
754
|
+
source?: "bot";
|
|
755
|
+
/** PR number, set on generated bot changesets. */
|
|
756
|
+
pr?: number;
|
|
757
|
+
/** Unknown frontmatter keys, kept as parsed (spec 4.1, issue #2). */
|
|
758
|
+
extra: Record<string, unknown>;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Release workflow mode (spec 9.3). `preview` is the mode of a `preview-plan` plan
|
|
762
|
+
* (spec 9.7, 9.9); the action's `mode` output is only set by `release`.
|
|
763
|
+
*/
|
|
764
|
+
type Mode = "publish" | "ship" | "release-pr" | "none" | "preview";
|
|
765
|
+
/** Where a build job uploads to (glossary). */
|
|
766
|
+
type Channel = "release" | "prerelease" | "preview";
|
|
767
|
+
/** OCI image data for a docker target in a plan (spec 6.1). */
|
|
768
|
+
interface DockerPlan {
|
|
769
|
+
/** Image names without tag, e.g. `ghcr.io/demonsters/api`. */
|
|
770
|
+
images: string[];
|
|
771
|
+
/** Rendered tags for this run, after skipping and maintenance filtering (spec 6.1). */
|
|
772
|
+
tags: string[];
|
|
773
|
+
/** Every `image:tag` combination, images outer loop, tags inner loop. */
|
|
774
|
+
refs: string[];
|
|
775
|
+
/** The verify tag (spec 7.4): first rendered tag whose template contains `{version}`. */
|
|
776
|
+
verifyTag: string;
|
|
777
|
+
/** OCI label values: `org.opencontainers.image.version`, `.revision`, `.created`. */
|
|
778
|
+
labels: Record<string, string>;
|
|
779
|
+
}
|
|
780
|
+
/** Per-target data in a plan. */
|
|
781
|
+
interface TargetPlan {
|
|
782
|
+
name: string;
|
|
783
|
+
type: TargetType;
|
|
784
|
+
release: ResolvedTarget["release"];
|
|
785
|
+
/**
|
|
786
|
+
* Version written into this target's marketing-version fields: the plain `X.Y.Z`
|
|
787
|
+
* base version for iOS (spec 6.4), the full run version everywhere else.
|
|
788
|
+
*/
|
|
789
|
+
marketingVersion: string;
|
|
790
|
+
/** Build number for this target (its own `buildNumber` override applies). `null` for `eas`. */
|
|
791
|
+
buildNumber: number | null;
|
|
792
|
+
/** Marker tag to create after shipping (release channel only, spec 9.3 / 9.8). */
|
|
793
|
+
marker?: string;
|
|
794
|
+
docker?: DockerPlan;
|
|
795
|
+
}
|
|
796
|
+
/** Information about the release PR computed in `release-pr` mode (spec 9.3). */
|
|
797
|
+
interface ReleasePrPlan {
|
|
798
|
+
/** Version the release PR will set, e.g. `1.5.0`. */
|
|
799
|
+
version: string;
|
|
800
|
+
bump: Exclude<Bump, "none">;
|
|
801
|
+
/** Repo-relative paths of the changesets the PR consumes (including `none` ones). */
|
|
802
|
+
changesets: string[];
|
|
803
|
+
/** Bot PRs that get a generated changeset (spec 9.4). */
|
|
804
|
+
botPrs: number[];
|
|
805
|
+
}
|
|
806
|
+
/** GitHub Actions run info, when known. Used for links and build numbers. */
|
|
807
|
+
interface RunInfo {
|
|
808
|
+
id?: number;
|
|
809
|
+
number?: number;
|
|
810
|
+
attempt?: number;
|
|
811
|
+
/** Link to the workflow run. */
|
|
812
|
+
url?: string;
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* The plan: the JSON passed between workflow jobs (`plan` output, spec 9.3 / 9.7).
|
|
816
|
+
* Later steps (`stamp`, `verify`, `mark`, `finalize`, `preview-comment`) read it and
|
|
817
|
+
* never recompute version or build number.
|
|
818
|
+
*/
|
|
819
|
+
interface Plan {
|
|
820
|
+
schemaVersion: 1;
|
|
821
|
+
mode: Mode;
|
|
822
|
+
channel: Channel;
|
|
823
|
+
/** The version of this run: release version, preview version (8.3) or prerelease version (9.9). */
|
|
824
|
+
version: string;
|
|
825
|
+
/** Plain `X.Y.Z` part of `version` (`{next}` for previews and prereleases). */
|
|
826
|
+
baseVersion: string;
|
|
827
|
+
/** Build number from the root `buildNumber` config; `null` with `eas`. Targets may differ. */
|
|
828
|
+
buildNumber: number | null;
|
|
829
|
+
/** Commit every build job checks out (spec 9.3). Empty string in `none` / `release-pr` mode. */
|
|
830
|
+
releaseSha: string;
|
|
831
|
+
/** Branch the plan was made on (base, maintenance, prerelease or preview branch). */
|
|
832
|
+
branch: string;
|
|
833
|
+
/** True when `branch` matches `maintenanceBranches`. */
|
|
834
|
+
maintenance: boolean;
|
|
835
|
+
/** npm dist-tag suggestion (spec 10). */
|
|
836
|
+
distTag: string;
|
|
837
|
+
/** Git tag of this version: `v{version}` (publish/ship) or the prerelease tag (9.9). */
|
|
838
|
+
tag?: string;
|
|
839
|
+
prNumber?: number;
|
|
840
|
+
branchSlug?: string;
|
|
841
|
+
preid?: string;
|
|
842
|
+
/** Target names to build, in config order. Empty when nothing is built. */
|
|
843
|
+
matrix: string[];
|
|
844
|
+
/** Data for every target in `matrix`. */
|
|
845
|
+
targets: Record<string, TargetPlan>;
|
|
846
|
+
/** Set in `release-pr` mode. */
|
|
847
|
+
releasePr?: ReleasePrPlan;
|
|
848
|
+
/** `owner/repo`, when known. */
|
|
849
|
+
repository?: string;
|
|
850
|
+
run?: RunInfo;
|
|
851
|
+
/** ISO 8601 time the plan was created; also the OCI `created` label. */
|
|
852
|
+
createdAt: string;
|
|
853
|
+
}
|
|
854
|
+
export type { Bump, Changeset, Channel, LaunchsetConfig, Mode, Plan, ResolvedConfig, ResolvedTarget, TargetPlan };
|