-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.ts
53 lines (51 loc) · 1.11 KB
/
schema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { Type } from 'typebox'
export const schema = Type.Object({
$schema: Type.Optional(
Type.String(),
),
include: Type.Optional(
Type.Union([
Type.Array(
Type.String(),
),
Type.String(),
], {
description:
'The files, directories and glob patterns to be included for updates.',
}),
),
exclude: Type.Optional(
Type.Union([
Type.Array(
Type.String(),
),
Type.String(),
], {
description:
'The files, directories and global patterns to exclude from updates.',
}),
),
allowBreaking: Type.Optional(
Type.Boolean({
description: 'Allow breaking updates (major releases).',
default: false,
}),
),
allowUnstable: Type.Optional(
Type.Boolean({
description: 'Allow unstable updates (prereleases).',
default: false,
}),
),
readOnly: Type.Optional(
Type.Boolean({
description: 'Perform a dry run.',
default: false,
}),
),
}, {
additionalProperties: false,
})
if (import.meta.main) {
Deno.writeTextFile('schema.json', JSON.stringify(schema, null, 2))
}