nx-lifecycle 1.0.0 → 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/README.md +42 -4
- package/WHY-NX-LIFECYCLE.md +1 -1
- package/dist/bin.d.ts +0 -603
- package/dist/bin.js +3 -13
- package/dist/cli.d.ts +8 -6
- package/dist/cli.js +17 -20
- package/dist/commands/explain-command.d.ts +13 -0
- package/dist/commands/explain-command.js +60 -0
- package/dist/commands/lib/types.d.ts +14 -4
- package/dist/commands/lib/types.js +2 -1
- package/dist/commands/lifecycle-command.d.ts +2 -11
- package/dist/commands/lifecycle-command.js +16 -22
- package/dist/container.d.ts +3 -0
- package/dist/container.js +8 -0
- package/dist/executors/lifecycle/index.d.ts +1 -4
- package/dist/executors/lifecycle/index.js +1 -4
- package/dist/executors/lifecycle/lifecycle.d.ts +8 -9
- package/dist/executors/lifecycle/lifecycle.js +13 -20
- package/dist/lifecycle/explain.d.ts +68 -0
- package/dist/lifecycle/explain.js +157 -0
- package/dist/lifecycle/lifecycle-internal.d.ts +4 -12
- package/dist/lifecycle/lifecycle-internal.js +92 -109
- package/dist/lifecycle/normalizer.d.ts +13 -7
- package/dist/lifecycle/normalizer.js +29 -36
- package/dist/lifecycle/processor.d.ts +1 -3
- package/dist/lifecycle/processor.js +22 -14
- package/dist/lifecycle/schema.d.ts +244 -714
- package/dist/lifecycle/schema.js +3 -2
- package/dist/plugin/index.d.ts +1 -277
- package/dist/plugin/index.js +1 -3
- package/dist/plugin/lifecycle-plugin.d.ts +18 -15
- package/dist/plugin/lifecycle-plugin.js +90 -106
- package/dist/plugin/schema.d.ts +33 -343
- package/dist/plugin/schema.js +0 -2
- package/dist/schemas/configurations.d.ts +5 -6
- package/dist/schemas/depend-on.d.ts +38 -74
- package/dist/schemas/depend-on.js +5 -4
- package/dist/schemas/nx-json.d.ts +38 -223
- package/dist/schemas/nx-json.js +0 -2
- package/dist/schemas/project-json.d.ts +38 -223
- package/dist/schemas/project-json.js +0 -2
- package/dist/schemas/target.d.ts +72 -140
- package/out/nx-executor/schema.json +2 -2
- package/out/schema.json +1 -1
- package/package.json +29 -14
- package/.npmignore +0 -20
- package/dist/commands/index.d.ts +0 -755
- package/dist/commands/index.js +0 -14
- package/dist/commands/lib/dependencies.d.ts +0 -10
- package/dist/commands/lib/dependencies.js +0 -12
- package/dist/executors/lifecycle/container.d.ts +0 -603
- package/dist/executors/lifecycle/container.js +0 -8
- package/dist/lifecycle/dependencies.d.ts +0 -16
- package/dist/lifecycle/dependencies.js +0 -14
- package/dist/lifecycle/index.d.ts +0 -756
- package/dist/lifecycle/index.js +0 -25
- package/dist/plugin/container.d.ts +0 -855
- package/dist/plugin/container.js +0 -13
- package/dist/plugin/dependencies.d.ts +0 -860
- package/dist/plugin/dependencies.js +0 -9
|
@@ -1,233 +1,48 @@
|
|
|
1
1
|
import type { SchemaType } from 'juniper';
|
|
2
|
+
import type { JuniperValidator } from 'juniper-validator';
|
|
2
3
|
declare const nxJsonSchema: import("juniper").ObjectSchema<{
|
|
3
4
|
targetDefaults: import("juniper").ObjectSchema<{}, never, import("juniper").ObjectSchema<{
|
|
4
5
|
executor: import("juniper").StringSchema<string, false>;
|
|
5
|
-
dependsOn: import("juniper").ArraySchema<string |
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
target: string;
|
|
22
|
-
params
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
dependencies
|
|
34
|
-
projects: string | string[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
params: string;
|
|
41
|
-
}> & Required<Pick<{
|
|
42
|
-
target: string;
|
|
43
|
-
params: string;
|
|
44
|
-
}, "target">>) | (string & Partial<{
|
|
45
|
-
dependencies: never;
|
|
46
|
-
projects: string | string[];
|
|
47
|
-
}> & Required<Pick<{
|
|
48
|
-
dependencies: never;
|
|
49
|
-
projects: string | string[];
|
|
50
|
-
}, "projects">> & Partial<{
|
|
51
|
-
target: string;
|
|
52
|
-
params: string;
|
|
53
|
-
}> & Required<Pick<{
|
|
54
|
-
target: string;
|
|
55
|
-
params: string;
|
|
56
|
-
}, "target">>) | (Partial<{
|
|
57
|
-
dependencies: never;
|
|
58
|
-
projects: string | string[];
|
|
59
|
-
}> & Required<Pick<{
|
|
60
|
-
dependencies: never;
|
|
61
|
-
projects: string | string[];
|
|
62
|
-
}, "projects">> & Partial<{
|
|
63
|
-
target: string;
|
|
64
|
-
params: string;
|
|
65
|
-
}> & Required<Pick<{
|
|
66
|
-
target: string;
|
|
67
|
-
params: string;
|
|
68
|
-
}, "target">> & string), [], never, unknown, false>;
|
|
69
|
-
configurations: import("juniper").ObjectSchema<{}, never, boolean, import("juniper").EmptyIndex, (Partial<{
|
|
70
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
71
|
-
}> & Required<Pick<{
|
|
6
|
+
dependsOn: import("juniper").ArraySchema<string | {
|
|
7
|
+
target: string;
|
|
8
|
+
params?: string;
|
|
9
|
+
dependencies?: boolean;
|
|
10
|
+
projects?: never;
|
|
11
|
+
} | {
|
|
12
|
+
target: string;
|
|
13
|
+
params?: string;
|
|
14
|
+
dependencies?: never;
|
|
15
|
+
projects: (string | string[] | undefined) & (string | string[]);
|
|
16
|
+
} | (string & {
|
|
17
|
+
target: string;
|
|
18
|
+
params?: string;
|
|
19
|
+
dependencies?: boolean;
|
|
20
|
+
projects?: never;
|
|
21
|
+
}) | (string & {
|
|
22
|
+
target: string;
|
|
23
|
+
params?: string;
|
|
24
|
+
dependencies?: never;
|
|
25
|
+
projects: (string | string[] | undefined) & (string | string[]);
|
|
26
|
+
}) | ({
|
|
27
|
+
target: string;
|
|
28
|
+
params?: string;
|
|
29
|
+
dependencies?: boolean;
|
|
30
|
+
projects?: never;
|
|
31
|
+
} & string) | ({
|
|
32
|
+
target: string;
|
|
33
|
+
params?: string;
|
|
34
|
+
dependencies?: never;
|
|
35
|
+
projects: (string | string[] | undefined) & (string | string[]);
|
|
36
|
+
} & string), [], never, unknown, false>;
|
|
37
|
+
configurations: import("juniper").ObjectSchema<{}, never, boolean, import("juniper").EmptyIndex, {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
__lifecycle?: never;
|
|
40
|
+
} | {
|
|
72
41
|
__lifecycle: import("juniper").EmptyObject;
|
|
73
|
-
},
|
|
74
|
-
__lifecycle: never;
|
|
75
|
-
}>), boolean>;
|
|
42
|
+
}, boolean>;
|
|
76
43
|
}, never, boolean, import("juniper").EmptyIndex, unknown, false>, import("juniper").EmptyIndex, unknown, false>;
|
|
77
44
|
}, never, true, import("juniper").EmptyIndex, unknown, false>;
|
|
78
45
|
export type NxJson = SchemaType<typeof nxJsonSchema>;
|
|
79
|
-
export declare const assertNxJson:
|
|
80
|
-
targetDefaults: Record<string, Partial<{
|
|
81
|
-
executor: string;
|
|
82
|
-
dependsOn: (string | (Partial<{
|
|
83
|
-
dependencies: boolean;
|
|
84
|
-
projects: never;
|
|
85
|
-
}> & Partial<{
|
|
86
|
-
target: string;
|
|
87
|
-
params: string;
|
|
88
|
-
}> & Required<Pick<{
|
|
89
|
-
target: string;
|
|
90
|
-
params: string;
|
|
91
|
-
}, "target">>) | (string & Partial<{
|
|
92
|
-
dependencies: boolean;
|
|
93
|
-
projects: never;
|
|
94
|
-
}> & Partial<{
|
|
95
|
-
target: string;
|
|
96
|
-
params: string;
|
|
97
|
-
}> & Required<Pick<{
|
|
98
|
-
target: string;
|
|
99
|
-
params: string;
|
|
100
|
-
}, "target">>) | (Partial<{
|
|
101
|
-
dependencies: boolean;
|
|
102
|
-
projects: never;
|
|
103
|
-
}> & Partial<{
|
|
104
|
-
target: string;
|
|
105
|
-
params: string;
|
|
106
|
-
}> & Required<Pick<{
|
|
107
|
-
target: string;
|
|
108
|
-
params: string;
|
|
109
|
-
}, "target">> & string) | (Partial<{
|
|
110
|
-
dependencies: never;
|
|
111
|
-
projects: string | string[];
|
|
112
|
-
}> & Required<Pick<{
|
|
113
|
-
dependencies: never;
|
|
114
|
-
projects: string | string[];
|
|
115
|
-
}, "projects">> & Partial<{
|
|
116
|
-
target: string;
|
|
117
|
-
params: string;
|
|
118
|
-
}> & Required<Pick<{
|
|
119
|
-
target: string;
|
|
120
|
-
params: string;
|
|
121
|
-
}, "target">>) | (string & Partial<{
|
|
122
|
-
dependencies: never;
|
|
123
|
-
projects: string | string[];
|
|
124
|
-
}> & Required<Pick<{
|
|
125
|
-
dependencies: never;
|
|
126
|
-
projects: string | string[];
|
|
127
|
-
}, "projects">> & Partial<{
|
|
128
|
-
target: string;
|
|
129
|
-
params: string;
|
|
130
|
-
}> & Required<Pick<{
|
|
131
|
-
target: string;
|
|
132
|
-
params: string;
|
|
133
|
-
}, "target">>) | (Partial<{
|
|
134
|
-
dependencies: never;
|
|
135
|
-
projects: string | string[];
|
|
136
|
-
}> & Required<Pick<{
|
|
137
|
-
dependencies: never;
|
|
138
|
-
projects: string | string[];
|
|
139
|
-
}, "projects">> & Partial<{
|
|
140
|
-
target: string;
|
|
141
|
-
params: string;
|
|
142
|
-
}> & Required<Pick<{
|
|
143
|
-
target: string;
|
|
144
|
-
params: string;
|
|
145
|
-
}, "target">> & string))[];
|
|
146
|
-
configurations: (Partial<{
|
|
147
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
148
|
-
}> & Required<Pick<{
|
|
149
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
150
|
-
}, "__lifecycle">>) | (Record<string, unknown> & Partial<{
|
|
151
|
-
__lifecycle: never;
|
|
152
|
-
}>);
|
|
153
|
-
}>>;
|
|
154
|
-
}>;
|
|
155
|
-
export type AssertNxJson = typeof assertNxJson;
|
|
156
|
-
export declare const assertNxJsonIdentifier: import("haywire").HaywireId<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
|
|
157
|
-
targetDefaults: Record<string, Partial<{
|
|
158
|
-
executor: string;
|
|
159
|
-
dependsOn: (string | (Partial<{
|
|
160
|
-
dependencies: boolean;
|
|
161
|
-
projects: never;
|
|
162
|
-
}> & Partial<{
|
|
163
|
-
target: string;
|
|
164
|
-
params: string;
|
|
165
|
-
}> & Required<Pick<{
|
|
166
|
-
target: string;
|
|
167
|
-
params: string;
|
|
168
|
-
}, "target">>) | (string & Partial<{
|
|
169
|
-
dependencies: boolean;
|
|
170
|
-
projects: never;
|
|
171
|
-
}> & Partial<{
|
|
172
|
-
target: string;
|
|
173
|
-
params: string;
|
|
174
|
-
}> & Required<Pick<{
|
|
175
|
-
target: string;
|
|
176
|
-
params: string;
|
|
177
|
-
}, "target">>) | (Partial<{
|
|
178
|
-
dependencies: boolean;
|
|
179
|
-
projects: never;
|
|
180
|
-
}> & Partial<{
|
|
181
|
-
target: string;
|
|
182
|
-
params: string;
|
|
183
|
-
}> & Required<Pick<{
|
|
184
|
-
target: string;
|
|
185
|
-
params: string;
|
|
186
|
-
}, "target">> & string) | (Partial<{
|
|
187
|
-
dependencies: never;
|
|
188
|
-
projects: string | string[];
|
|
189
|
-
}> & Required<Pick<{
|
|
190
|
-
dependencies: never;
|
|
191
|
-
projects: string | string[];
|
|
192
|
-
}, "projects">> & Partial<{
|
|
193
|
-
target: string;
|
|
194
|
-
params: string;
|
|
195
|
-
}> & Required<Pick<{
|
|
196
|
-
target: string;
|
|
197
|
-
params: string;
|
|
198
|
-
}, "target">>) | (string & Partial<{
|
|
199
|
-
dependencies: never;
|
|
200
|
-
projects: string | string[];
|
|
201
|
-
}> & Required<Pick<{
|
|
202
|
-
dependencies: never;
|
|
203
|
-
projects: string | string[];
|
|
204
|
-
}, "projects">> & Partial<{
|
|
205
|
-
target: string;
|
|
206
|
-
params: string;
|
|
207
|
-
}> & Required<Pick<{
|
|
208
|
-
target: string;
|
|
209
|
-
params: string;
|
|
210
|
-
}, "target">>) | (Partial<{
|
|
211
|
-
dependencies: never;
|
|
212
|
-
projects: string | string[];
|
|
213
|
-
}> & Required<Pick<{
|
|
214
|
-
dependencies: never;
|
|
215
|
-
projects: string | string[];
|
|
216
|
-
}, "projects">> & Partial<{
|
|
217
|
-
target: string;
|
|
218
|
-
params: string;
|
|
219
|
-
}> & Required<Pick<{
|
|
220
|
-
target: string;
|
|
221
|
-
params: string;
|
|
222
|
-
}, "target">> & string))[];
|
|
223
|
-
configurations: (Partial<{
|
|
224
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
225
|
-
}> & Required<Pick<{
|
|
226
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
227
|
-
}, "__lifecycle">>) | (Record<string, unknown> & Partial<{
|
|
228
|
-
__lifecycle: never;
|
|
229
|
-
}>);
|
|
230
|
-
}>>;
|
|
231
|
-
}>, null, "nxJson", false, false, false, false, false>;
|
|
46
|
+
export declare const assertNxJson: JuniperValidator<NxJson>['assert'];
|
|
232
47
|
export {};
|
|
233
48
|
//# sourceMappingURL=nx-json.d.ts.map
|
package/dist/schemas/nx-json.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { identifier } from 'haywire';
|
|
2
1
|
import { objectSchema } from 'juniper';
|
|
3
2
|
import { makeValidator } from 'juniper-validator';
|
|
4
3
|
import { allTargetsSchema } from './target.js';
|
|
@@ -9,6 +8,5 @@ const nxJsonSchema = objectSchema({
|
|
|
9
8
|
additionalProperties: true
|
|
10
9
|
});
|
|
11
10
|
export const assertNxJson = makeValidator(nxJsonSchema).assert;
|
|
12
|
-
export const assertNxJsonIdentifier = identifier().named('nxJson');
|
|
13
11
|
|
|
14
12
|
//# sourceMappingURL=nx-json.js.map
|
|
@@ -1,233 +1,48 @@
|
|
|
1
1
|
import type { SchemaType } from 'juniper';
|
|
2
|
+
import type { JuniperValidator } from 'juniper-validator';
|
|
2
3
|
declare const projectJsonSchema: import("juniper").ObjectSchema<{
|
|
3
4
|
targets: import("juniper").ObjectSchema<{}, never, import("juniper").ObjectSchema<{
|
|
4
5
|
executor: import("juniper").StringSchema<string, false>;
|
|
5
|
-
dependsOn: import("juniper").ArraySchema<string |
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
target: string;
|
|
22
|
-
params
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
dependencies
|
|
34
|
-
projects: string | string[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
params: string;
|
|
41
|
-
}> & Required<Pick<{
|
|
42
|
-
target: string;
|
|
43
|
-
params: string;
|
|
44
|
-
}, "target">>) | (string & Partial<{
|
|
45
|
-
dependencies: never;
|
|
46
|
-
projects: string | string[];
|
|
47
|
-
}> & Required<Pick<{
|
|
48
|
-
dependencies: never;
|
|
49
|
-
projects: string | string[];
|
|
50
|
-
}, "projects">> & Partial<{
|
|
51
|
-
target: string;
|
|
52
|
-
params: string;
|
|
53
|
-
}> & Required<Pick<{
|
|
54
|
-
target: string;
|
|
55
|
-
params: string;
|
|
56
|
-
}, "target">>) | (Partial<{
|
|
57
|
-
dependencies: never;
|
|
58
|
-
projects: string | string[];
|
|
59
|
-
}> & Required<Pick<{
|
|
60
|
-
dependencies: never;
|
|
61
|
-
projects: string | string[];
|
|
62
|
-
}, "projects">> & Partial<{
|
|
63
|
-
target: string;
|
|
64
|
-
params: string;
|
|
65
|
-
}> & Required<Pick<{
|
|
66
|
-
target: string;
|
|
67
|
-
params: string;
|
|
68
|
-
}, "target">> & string), [], never, unknown, false>;
|
|
69
|
-
configurations: import("juniper").ObjectSchema<{}, never, boolean, import("juniper").EmptyIndex, (Partial<{
|
|
70
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
71
|
-
}> & Required<Pick<{
|
|
6
|
+
dependsOn: import("juniper").ArraySchema<string | {
|
|
7
|
+
target: string;
|
|
8
|
+
params?: string;
|
|
9
|
+
dependencies?: boolean;
|
|
10
|
+
projects?: never;
|
|
11
|
+
} | {
|
|
12
|
+
target: string;
|
|
13
|
+
params?: string;
|
|
14
|
+
dependencies?: never;
|
|
15
|
+
projects: (string | string[] | undefined) & (string | string[]);
|
|
16
|
+
} | (string & {
|
|
17
|
+
target: string;
|
|
18
|
+
params?: string;
|
|
19
|
+
dependencies?: boolean;
|
|
20
|
+
projects?: never;
|
|
21
|
+
}) | (string & {
|
|
22
|
+
target: string;
|
|
23
|
+
params?: string;
|
|
24
|
+
dependencies?: never;
|
|
25
|
+
projects: (string | string[] | undefined) & (string | string[]);
|
|
26
|
+
}) | ({
|
|
27
|
+
target: string;
|
|
28
|
+
params?: string;
|
|
29
|
+
dependencies?: boolean;
|
|
30
|
+
projects?: never;
|
|
31
|
+
} & string) | ({
|
|
32
|
+
target: string;
|
|
33
|
+
params?: string;
|
|
34
|
+
dependencies?: never;
|
|
35
|
+
projects: (string | string[] | undefined) & (string | string[]);
|
|
36
|
+
} & string), [], never, unknown, false>;
|
|
37
|
+
configurations: import("juniper").ObjectSchema<{}, never, boolean, import("juniper").EmptyIndex, {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
__lifecycle?: never;
|
|
40
|
+
} | {
|
|
72
41
|
__lifecycle: import("juniper").EmptyObject;
|
|
73
|
-
},
|
|
74
|
-
__lifecycle: never;
|
|
75
|
-
}>), boolean>;
|
|
42
|
+
}, boolean>;
|
|
76
43
|
}, never, boolean, import("juniper").EmptyIndex, unknown, false>, import("juniper").EmptyIndex, unknown, false>;
|
|
77
44
|
}, never, true, import("juniper").EmptyIndex, unknown, false>;
|
|
78
45
|
export type ProjectJson = SchemaType<typeof projectJsonSchema>;
|
|
79
|
-
export declare const assertProjectJson:
|
|
80
|
-
targets: Record<string, Partial<{
|
|
81
|
-
executor: string;
|
|
82
|
-
dependsOn: (string | (Partial<{
|
|
83
|
-
dependencies: boolean;
|
|
84
|
-
projects: never;
|
|
85
|
-
}> & Partial<{
|
|
86
|
-
target: string;
|
|
87
|
-
params: string;
|
|
88
|
-
}> & Required<Pick<{
|
|
89
|
-
target: string;
|
|
90
|
-
params: string;
|
|
91
|
-
}, "target">>) | (string & Partial<{
|
|
92
|
-
dependencies: boolean;
|
|
93
|
-
projects: never;
|
|
94
|
-
}> & Partial<{
|
|
95
|
-
target: string;
|
|
96
|
-
params: string;
|
|
97
|
-
}> & Required<Pick<{
|
|
98
|
-
target: string;
|
|
99
|
-
params: string;
|
|
100
|
-
}, "target">>) | (Partial<{
|
|
101
|
-
dependencies: boolean;
|
|
102
|
-
projects: never;
|
|
103
|
-
}> & Partial<{
|
|
104
|
-
target: string;
|
|
105
|
-
params: string;
|
|
106
|
-
}> & Required<Pick<{
|
|
107
|
-
target: string;
|
|
108
|
-
params: string;
|
|
109
|
-
}, "target">> & string) | (Partial<{
|
|
110
|
-
dependencies: never;
|
|
111
|
-
projects: string | string[];
|
|
112
|
-
}> & Required<Pick<{
|
|
113
|
-
dependencies: never;
|
|
114
|
-
projects: string | string[];
|
|
115
|
-
}, "projects">> & Partial<{
|
|
116
|
-
target: string;
|
|
117
|
-
params: string;
|
|
118
|
-
}> & Required<Pick<{
|
|
119
|
-
target: string;
|
|
120
|
-
params: string;
|
|
121
|
-
}, "target">>) | (string & Partial<{
|
|
122
|
-
dependencies: never;
|
|
123
|
-
projects: string | string[];
|
|
124
|
-
}> & Required<Pick<{
|
|
125
|
-
dependencies: never;
|
|
126
|
-
projects: string | string[];
|
|
127
|
-
}, "projects">> & Partial<{
|
|
128
|
-
target: string;
|
|
129
|
-
params: string;
|
|
130
|
-
}> & Required<Pick<{
|
|
131
|
-
target: string;
|
|
132
|
-
params: string;
|
|
133
|
-
}, "target">>) | (Partial<{
|
|
134
|
-
dependencies: never;
|
|
135
|
-
projects: string | string[];
|
|
136
|
-
}> & Required<Pick<{
|
|
137
|
-
dependencies: never;
|
|
138
|
-
projects: string | string[];
|
|
139
|
-
}, "projects">> & Partial<{
|
|
140
|
-
target: string;
|
|
141
|
-
params: string;
|
|
142
|
-
}> & Required<Pick<{
|
|
143
|
-
target: string;
|
|
144
|
-
params: string;
|
|
145
|
-
}, "target">> & string))[];
|
|
146
|
-
configurations: (Partial<{
|
|
147
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
148
|
-
}> & Required<Pick<{
|
|
149
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
150
|
-
}, "__lifecycle">>) | (Record<string, unknown> & Partial<{
|
|
151
|
-
__lifecycle: never;
|
|
152
|
-
}>);
|
|
153
|
-
}>>;
|
|
154
|
-
}>;
|
|
155
|
-
export type AssertProjectJson = typeof assertProjectJson;
|
|
156
|
-
export declare const assertProjectJsonIdentifier: import("haywire").HaywireId<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
|
|
157
|
-
targets: Record<string, Partial<{
|
|
158
|
-
executor: string;
|
|
159
|
-
dependsOn: (string | (Partial<{
|
|
160
|
-
dependencies: boolean;
|
|
161
|
-
projects: never;
|
|
162
|
-
}> & Partial<{
|
|
163
|
-
target: string;
|
|
164
|
-
params: string;
|
|
165
|
-
}> & Required<Pick<{
|
|
166
|
-
target: string;
|
|
167
|
-
params: string;
|
|
168
|
-
}, "target">>) | (string & Partial<{
|
|
169
|
-
dependencies: boolean;
|
|
170
|
-
projects: never;
|
|
171
|
-
}> & Partial<{
|
|
172
|
-
target: string;
|
|
173
|
-
params: string;
|
|
174
|
-
}> & Required<Pick<{
|
|
175
|
-
target: string;
|
|
176
|
-
params: string;
|
|
177
|
-
}, "target">>) | (Partial<{
|
|
178
|
-
dependencies: boolean;
|
|
179
|
-
projects: never;
|
|
180
|
-
}> & Partial<{
|
|
181
|
-
target: string;
|
|
182
|
-
params: string;
|
|
183
|
-
}> & Required<Pick<{
|
|
184
|
-
target: string;
|
|
185
|
-
params: string;
|
|
186
|
-
}, "target">> & string) | (Partial<{
|
|
187
|
-
dependencies: never;
|
|
188
|
-
projects: string | string[];
|
|
189
|
-
}> & Required<Pick<{
|
|
190
|
-
dependencies: never;
|
|
191
|
-
projects: string | string[];
|
|
192
|
-
}, "projects">> & Partial<{
|
|
193
|
-
target: string;
|
|
194
|
-
params: string;
|
|
195
|
-
}> & Required<Pick<{
|
|
196
|
-
target: string;
|
|
197
|
-
params: string;
|
|
198
|
-
}, "target">>) | (string & Partial<{
|
|
199
|
-
dependencies: never;
|
|
200
|
-
projects: string | string[];
|
|
201
|
-
}> & Required<Pick<{
|
|
202
|
-
dependencies: never;
|
|
203
|
-
projects: string | string[];
|
|
204
|
-
}, "projects">> & Partial<{
|
|
205
|
-
target: string;
|
|
206
|
-
params: string;
|
|
207
|
-
}> & Required<Pick<{
|
|
208
|
-
target: string;
|
|
209
|
-
params: string;
|
|
210
|
-
}, "target">>) | (Partial<{
|
|
211
|
-
dependencies: never;
|
|
212
|
-
projects: string | string[];
|
|
213
|
-
}> & Required<Pick<{
|
|
214
|
-
dependencies: never;
|
|
215
|
-
projects: string | string[];
|
|
216
|
-
}, "projects">> & Partial<{
|
|
217
|
-
target: string;
|
|
218
|
-
params: string;
|
|
219
|
-
}> & Required<Pick<{
|
|
220
|
-
target: string;
|
|
221
|
-
params: string;
|
|
222
|
-
}, "target">> & string))[];
|
|
223
|
-
configurations: (Partial<{
|
|
224
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
225
|
-
}> & Required<Pick<{
|
|
226
|
-
__lifecycle: import("juniper").EmptyObject;
|
|
227
|
-
}, "__lifecycle">>) | (Record<string, unknown> & Partial<{
|
|
228
|
-
__lifecycle: never;
|
|
229
|
-
}>);
|
|
230
|
-
}>>;
|
|
231
|
-
}>, null, "projectJson", false, false, false, false, false>;
|
|
46
|
+
export declare const assertProjectJson: JuniperValidator<ProjectJson>['assert'];
|
|
232
47
|
export {};
|
|
233
48
|
//# sourceMappingURL=project-json.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { identifier } from 'haywire';
|
|
2
1
|
import { objectSchema } from 'juniper';
|
|
3
2
|
import { makeValidator } from 'juniper-validator';
|
|
4
3
|
import { allTargetsSchema } from './target.js';
|
|
@@ -9,6 +8,5 @@ const projectJsonSchema = objectSchema({
|
|
|
9
8
|
additionalProperties: true
|
|
10
9
|
});
|
|
11
10
|
export const assertProjectJson = makeValidator(projectJsonSchema).assert;
|
|
12
|
-
export const assertProjectJsonIdentifier = identifier().named('projectJson');
|
|
13
11
|
|
|
14
12
|
//# sourceMappingURL=project-json.js.map
|