github-settings-as-code 4.0.3 → 4.0.5
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/github/actions-settings/constants.d.mts +14 -0
- package/dist/github/actions-settings/constants.d.mts.map +1 -1
- package/dist/github/environments/constants.d.mts +10 -0
- package/dist/github/environments/constants.d.mts.map +1 -1
- package/dist/github/pages/constants.d.mts +4 -0
- package/dist/github/pages/constants.d.mts.map +1 -1
- package/dist/github/repository/constants.d.mts +2 -0
- package/dist/github/repository/constants.d.mts.map +1 -1
- package/dist/github/ruleset/constants.d.mts +2 -0
- package/dist/github/ruleset/constants.d.mts.map +1 -1
- package/dist/github/variables/constants.d.mts +2 -0
- package/dist/github/variables/constants.d.mts.map +1 -1
- package/dist/github/vulnerability-alerts/constants.d.mts +4 -0
- package/dist/github/vulnerability-alerts/constants.d.mts.map +1 -1
- package/package.json +21 -21
- package/src/github/ruleset/schema.test.mts +2 -2
- package/src/github/settings-file-path.test.mts +11 -14
- package/src/github/variables/constants.test.mts +8 -8
|
@@ -80,6 +80,8 @@ export declare const ActionsSettings: Readonly<{
|
|
|
80
80
|
typeName: string;
|
|
81
81
|
details?: t.ValidationErrorDetails | undefined;
|
|
82
82
|
}>[]>;
|
|
83
|
+
structure?: t.TypeStructure;
|
|
84
|
+
annotations?: t.TypeAnnotations;
|
|
83
85
|
optional?: true;
|
|
84
86
|
}> & Readonly<{
|
|
85
87
|
shape: {
|
|
@@ -99,6 +101,8 @@ export declare const ActionsSettings: Readonly<{
|
|
|
99
101
|
typeName: string;
|
|
100
102
|
details?: t.ValidationErrorDetails | undefined;
|
|
101
103
|
}>[]>;
|
|
104
|
+
structure?: t.TypeStructure;
|
|
105
|
+
annotations?: t.TypeAnnotations;
|
|
102
106
|
optional?: true;
|
|
103
107
|
}>;
|
|
104
108
|
/** Actions permissions: 実行を許可する action の範囲。 */
|
|
@@ -117,6 +121,8 @@ export declare const ActionsSettings: Readonly<{
|
|
|
117
121
|
typeName: string;
|
|
118
122
|
details?: t.ValidationErrorDetails | undefined;
|
|
119
123
|
}>[]>;
|
|
124
|
+
structure?: t.TypeStructure;
|
|
125
|
+
annotations?: t.TypeAnnotations;
|
|
120
126
|
optional?: true;
|
|
121
127
|
}>;
|
|
122
128
|
/**
|
|
@@ -140,6 +146,8 @@ export declare const ActionsSettings: Readonly<{
|
|
|
140
146
|
typeName: string;
|
|
141
147
|
details?: t.ValidationErrorDetails | undefined;
|
|
142
148
|
}>[]>;
|
|
149
|
+
structure?: t.TypeStructure;
|
|
150
|
+
annotations?: t.TypeAnnotations;
|
|
143
151
|
optional?: true;
|
|
144
152
|
}>;
|
|
145
153
|
/**
|
|
@@ -166,6 +174,8 @@ export declare const ActionsSettings: Readonly<{
|
|
|
166
174
|
typeName: string;
|
|
167
175
|
details?: t.ValidationErrorDetails | undefined;
|
|
168
176
|
}>[]>;
|
|
177
|
+
structure?: t.TypeStructure;
|
|
178
|
+
annotations?: t.TypeAnnotations;
|
|
169
179
|
optional?: true;
|
|
170
180
|
}>;
|
|
171
181
|
/**
|
|
@@ -190,6 +200,8 @@ export declare const ActionsSettings: Readonly<{
|
|
|
190
200
|
typeName: string;
|
|
191
201
|
details?: t.ValidationErrorDetails | undefined;
|
|
192
202
|
}>[]>;
|
|
203
|
+
structure?: t.TypeStructure;
|
|
204
|
+
annotations?: t.TypeAnnotations;
|
|
193
205
|
optional?: true;
|
|
194
206
|
}>;
|
|
195
207
|
/**
|
|
@@ -214,6 +226,8 @@ export declare const ActionsSettings: Readonly<{
|
|
|
214
226
|
typeName: string;
|
|
215
227
|
details?: t.ValidationErrorDetails | undefined;
|
|
216
228
|
}>[]>;
|
|
229
|
+
structure?: t.TypeStructure;
|
|
230
|
+
annotations?: t.TypeAnnotations;
|
|
217
231
|
optional?: true;
|
|
218
232
|
}>;
|
|
219
233
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/actions-settings/constants.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/actions-settings/constants.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAC1B,4DAA4D;;;;;;;;;;;;;;;;;;;;QAG5D,+CAA+C;;;;;;;;;;;;;;;;;;;;QAM/C;;;;;WAKG;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;;;WAQG;;;;;;;;;;;;;;;;;;;;QAMH;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;EAYH,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -156,6 +156,8 @@ export declare const EnvironmentSettings: Readonly<{
|
|
|
156
156
|
typeName: string;
|
|
157
157
|
details?: t.ValidationErrorDetails | undefined;
|
|
158
158
|
}>[]>;
|
|
159
|
+
structure?: t.TypeStructure;
|
|
160
|
+
annotations?: t.TypeAnnotations;
|
|
159
161
|
optional?: true;
|
|
160
162
|
}> & Readonly<{
|
|
161
163
|
shape: {
|
|
@@ -205,6 +207,8 @@ export declare const EnvironmentSettings: Readonly<{
|
|
|
205
207
|
typeName: string;
|
|
206
208
|
details?: t.ValidationErrorDetails | undefined;
|
|
207
209
|
}>[]>;
|
|
210
|
+
structure?: t.TypeStructure;
|
|
211
|
+
annotations?: t.TypeAnnotations;
|
|
208
212
|
optional?: true;
|
|
209
213
|
}>;
|
|
210
214
|
/** 「 Required reviewers 」。空配列なら承認は要らない。 */
|
|
@@ -247,6 +251,8 @@ export declare const EnvironmentSettings: Readonly<{
|
|
|
247
251
|
typeName: string;
|
|
248
252
|
details?: t.ValidationErrorDetails | undefined;
|
|
249
253
|
}>[]>;
|
|
254
|
+
structure?: t.TypeStructure;
|
|
255
|
+
annotations?: t.TypeAnnotations;
|
|
250
256
|
optional?: true;
|
|
251
257
|
}>;
|
|
252
258
|
/**
|
|
@@ -298,6 +304,8 @@ export declare const EnvironmentSettings: Readonly<{
|
|
|
298
304
|
typeName: string;
|
|
299
305
|
details?: t.ValidationErrorDetails | undefined;
|
|
300
306
|
}>[]>;
|
|
307
|
+
structure?: t.TypeStructure;
|
|
308
|
+
annotations?: t.TypeAnnotations;
|
|
301
309
|
optional?: true;
|
|
302
310
|
}>;
|
|
303
311
|
/**
|
|
@@ -346,6 +354,8 @@ export declare const EnvironmentSettings: Readonly<{
|
|
|
346
354
|
typeName: string;
|
|
347
355
|
details?: t.ValidationErrorDetails | undefined;
|
|
348
356
|
}>[]>;
|
|
357
|
+
structure?: t.TypeStructure;
|
|
358
|
+
annotations?: t.TypeAnnotations;
|
|
349
359
|
optional?: true;
|
|
350
360
|
}>;
|
|
351
361
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/environments/constants.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/environments/constants.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAG9B,kCAAkC;;;;;;;;;;;;;;;;;;;QAGlC,+BAA+B;;;;;;;;;;;;;;;;;;;;QAG/B,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAY3C;;;;;;;;;WASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAYH;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWH,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -36,6 +36,8 @@ export declare const PagesSettings: Readonly<{
|
|
|
36
36
|
typeName: string;
|
|
37
37
|
details?: t.ValidationErrorDetails | undefined;
|
|
38
38
|
}>[]>;
|
|
39
|
+
structure?: t.TypeStructure;
|
|
40
|
+
annotations?: t.TypeAnnotations;
|
|
39
41
|
optional?: true;
|
|
40
42
|
}> & Readonly<{
|
|
41
43
|
shape: {
|
|
@@ -54,6 +56,8 @@ export declare const PagesSettings: Readonly<{
|
|
|
54
56
|
typeName: string;
|
|
55
57
|
details?: t.ValidationErrorDetails | undefined;
|
|
56
58
|
}>[]>;
|
|
59
|
+
structure?: t.TypeStructure;
|
|
60
|
+
annotations?: t.TypeAnnotations;
|
|
57
61
|
optional?: true;
|
|
58
62
|
}>;
|
|
59
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/pages/constants.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/pages/constants.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -5131,6 +5131,8 @@ export declare const RepositoryPicked: Readonly<{
|
|
|
5131
5131
|
typeName: string;
|
|
5132
5132
|
details?: t.ValidationErrorDetails | undefined;
|
|
5133
5133
|
}>[]>;
|
|
5134
|
+
structure?: t.TypeStructure;
|
|
5135
|
+
annotations?: t.TypeAnnotations;
|
|
5134
5136
|
optional?: true;
|
|
5135
5137
|
}>;
|
|
5136
5138
|
export type RepositoryPicked = t.TypeOf<typeof RepositoryPicked>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/repository/constants.mts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,QAAA,MAAM,cAAc,0fA0BkC,CAAC;AAEvD,QAAA,MAAM,cAAc,YAClB,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,YAAY,EAGZ,eAAe,CACP,CAAC;AAMX,eAAO,MAAM,oBAAoB,2gBAEhC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAC9C,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,EAC/B,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAChC,CAAC;AAIF,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/repository/constants.mts"],"names":[],"mappings":"AAKA,OAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -2079,6 +2079,8 @@ export declare const RulesetPicked: Readonly<{
|
|
|
2079
2079
|
typeName: string;
|
|
2080
2080
|
details?: t.ValidationErrorDetails | undefined;
|
|
2081
2081
|
}>[]>;
|
|
2082
|
+
structure?: t.TypeStructure;
|
|
2083
|
+
annotations?: t.TypeAnnotations;
|
|
2082
2084
|
optional?: true;
|
|
2083
2085
|
}>;
|
|
2084
2086
|
export type RulesetPicked = t.TypeOf<typeof RulesetPicked>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/ruleset/constants.mts"],"names":[],"mappings":"AAMA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,eAAO,MAAM,iBAAiB,0FAQ2B,CAAC;AAQ1D,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/ruleset/constants.mts"],"names":[],"mappings":"AAMA,OAAO,KAAK,CAAC,MAAM,aAAa,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -45,6 +45,8 @@ export declare const RepositoryVariables: Readonly<{
|
|
|
45
45
|
typeName: string;
|
|
46
46
|
details?: t.ValidationErrorDetails | undefined;
|
|
47
47
|
}>[]>;
|
|
48
|
+
structure?: t.TypeStructure;
|
|
49
|
+
annotations?: t.TypeAnnotations;
|
|
48
50
|
optional?: true;
|
|
49
51
|
}>;
|
|
50
52
|
export type RepositoryVariables = t.TypeOf<typeof RepositoryVariables>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/variables/constants.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/variables/constants.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEvE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,2BAA2B,cAC3B,mBAAmB,KAC7B,IAeF,CAAC"}
|
|
@@ -46,6 +46,8 @@ export declare const VulnerabilityAlertsSettings: Readonly<{
|
|
|
46
46
|
typeName: string;
|
|
47
47
|
details?: t.ValidationErrorDetails | undefined;
|
|
48
48
|
}>[]>;
|
|
49
|
+
structure?: t.TypeStructure;
|
|
50
|
+
annotations?: t.TypeAnnotations;
|
|
49
51
|
optional?: true;
|
|
50
52
|
}> & Readonly<{
|
|
51
53
|
shape: {
|
|
@@ -64,6 +66,8 @@ export declare const VulnerabilityAlertsSettings: Readonly<{
|
|
|
64
66
|
typeName: string;
|
|
65
67
|
details?: t.ValidationErrorDetails | undefined;
|
|
66
68
|
}>[]>;
|
|
69
|
+
structure?: t.TypeStructure;
|
|
70
|
+
annotations?: t.TypeAnnotations;
|
|
67
71
|
optional?: true;
|
|
68
72
|
}>;
|
|
69
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/vulnerability-alerts/constants.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/vulnerability-alerts/constants.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAChD,OAAO,2BAA2B,CACnC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-settings-as-code",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@octokit/core": "^7.0.8",
|
|
29
29
|
"dedent": "^1.7.2",
|
|
30
|
-
"dotenv": "^18.0.
|
|
30
|
+
"dotenv": "^18.0.8",
|
|
31
31
|
"octokit-safe-types": "^1.2.28",
|
|
32
|
-
"ts-data-forge": "^14.
|
|
33
|
-
"ts-fortress": "^12.
|
|
32
|
+
"ts-data-forge": "^14.10.0",
|
|
33
|
+
"ts-fortress": "^12.4.0",
|
|
34
34
|
"ts-repo-utils": "^10.7.1",
|
|
35
35
|
"ts-type-forge": "^9.2.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "26.6.
|
|
39
|
-
"@vitest/coverage-v8": "5.0.
|
|
40
|
-
"@vitest/ui": "5.0.
|
|
41
|
-
"cspell": "10.
|
|
42
|
-
"eslint": "10.
|
|
43
|
-
"eslint-config-typed": "5.
|
|
44
|
-
"eslint-plugin-ts-data-forge": "0.
|
|
45
|
-
"eslint-plugin-ts-fortress": "1.3.
|
|
46
|
-
"eslint-plugin-ts-type-forge": "0.8.
|
|
38
|
+
"@types/node": "26.6.5",
|
|
39
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
40
|
+
"@vitest/ui": "5.0.5",
|
|
41
|
+
"cspell": "10.4.0",
|
|
42
|
+
"eslint": "10.13.0",
|
|
43
|
+
"eslint-config-typed": "5.19.2",
|
|
44
|
+
"eslint-plugin-ts-data-forge": "0.10.3",
|
|
45
|
+
"eslint-plugin-ts-fortress": "1.3.8",
|
|
46
|
+
"eslint-plugin-ts-type-forge": "0.8.13",
|
|
47
47
|
"jiti": "2.7.0",
|
|
48
48
|
"npm-run-all2": "9.0.3",
|
|
49
|
-
"prettier": "3.9.
|
|
49
|
+
"prettier": "3.9.10",
|
|
50
50
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
51
51
|
"prettier-plugin-packagejson": "3.0.2",
|
|
52
52
|
"tsx": "4.23.15",
|
|
53
53
|
"typescript": "6.0.3",
|
|
54
54
|
"typescript-native": "npm:typescript@7.0.2",
|
|
55
|
-
"vitest": "5.0.
|
|
55
|
+
"vitest": "5.0.5"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=22.22.2",
|
|
59
59
|
"pnpm": ">=9.0.0"
|
|
60
60
|
},
|
|
61
61
|
"volta": {
|
|
62
|
-
"node": "26.
|
|
62
|
+
"node": "26.12.1"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"build": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/build.mts",
|
|
70
70
|
"check:cspell": "cspell \"**\" --gitignore --gitignore-root ../../ --no-progress",
|
|
71
71
|
"check:ext": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/check-ext.mts",
|
|
72
|
-
"check:lint": "eslint .",
|
|
73
|
-
"check:test": "pnpm run z:vitest:node run",
|
|
74
|
-
"check:test:cov": "pnpm run z:vitest:node run --coverage",
|
|
75
|
-
"check:types": "node ../../node_modules/typescript-native/bin/tsc --noEmit",
|
|
72
|
+
"check:lint": "node ../../tools/scripts/cmd/assert-deps-built.mts && oxlint . && eslint .",
|
|
73
|
+
"check:test": "node ../../tools/scripts/cmd/assert-deps-built.mts && pnpm run z:vitest:node run",
|
|
74
|
+
"check:test:cov": "node ../../tools/scripts/cmd/assert-deps-built.mts && pnpm run z:vitest:node run --coverage",
|
|
75
|
+
"check:types": "node ../../tools/scripts/cmd/assert-deps-built.mts && node ../../node_modules/typescript-native/bin/tsc --noEmit",
|
|
76
76
|
"check-all": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/check-all.mts",
|
|
77
77
|
"doc": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/gen-docs.mts",
|
|
78
78
|
"fix:codemod": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-codemod-cli/src/cmd/ts-codemod.mts --uncommitted --transformer append-as-const --transformer convert-to-readonly '{src,scripts,samples}/**/*.mts' && pnpm run fix:fmt",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"fix:fmt": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/format-uncommitted.mts --cwd .",
|
|
82
82
|
"fix:fmt:diff": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/format-diff-from.mts origin/main --cwd .",
|
|
83
83
|
"fix:fmt:full": "prettier --write .",
|
|
84
|
-
"fix:lint": "eslint . --fix",
|
|
84
|
+
"fix:lint": "node ../../tools/scripts/cmd/assert-deps-built.mts && oxlint . --fix && eslint . --fix",
|
|
85
85
|
"fmt": "pnpm run fix:fmt",
|
|
86
86
|
"gen": "run-s gen:index",
|
|
87
87
|
"gen:index": "run-s gen:index:src fix:fmt",
|
|
@@ -70,7 +70,7 @@ describe('the ruleset schema', () => {
|
|
|
70
70
|
assert.isTrue(Arr.isNonEmpty(files));
|
|
71
71
|
|
|
72
72
|
for (const [name, content] of files) {
|
|
73
|
-
assert.
|
|
73
|
+
assert.strictEqual(
|
|
74
74
|
outcomeOf(name, RulesetPicked.validate(content)),
|
|
75
75
|
name,
|
|
76
76
|
);
|
|
@@ -84,7 +84,7 @@ describe('the ruleset schema', () => {
|
|
|
84
84
|
|
|
85
85
|
const declared = RulesetPicked.validate(files[0][1]);
|
|
86
86
|
|
|
87
|
-
assert.
|
|
87
|
+
assert.strictEqual(outcomeOf(files[0][0], declared), files[0][0]);
|
|
88
88
|
|
|
89
89
|
if (Result.isErr(declared)) {
|
|
90
90
|
return;
|
|
@@ -13,47 +13,44 @@ const outcomeOf = (name: string): string => {
|
|
|
13
13
|
|
|
14
14
|
describe(settingsFilePath, () => {
|
|
15
15
|
test('names a file directly under the directory it was given', () => {
|
|
16
|
-
assert.
|
|
16
|
+
assert.strictEqual(
|
|
17
17
|
settingsFilePath(dir, 'release'),
|
|
18
18
|
path.join(dir, 'release.json'),
|
|
19
19
|
);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
test('keeps the characters a name is allowed to carry', () => {
|
|
23
|
-
assert.
|
|
23
|
+
assert.strictEqual(
|
|
24
24
|
settingsFilePath(dir, 'main-no-bypass'),
|
|
25
25
|
path.join(dir, 'main-no-bypass.json'),
|
|
26
26
|
);
|
|
27
27
|
|
|
28
|
-
assert.
|
|
28
|
+
assert.strictEqual(
|
|
29
29
|
settingsFilePath(dir, 'Production (US East)'),
|
|
30
30
|
path.join(dir, 'Production (US East).json'),
|
|
31
31
|
);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
test('rejects a name that would resolve above the directory', () => {
|
|
35
|
-
assert.
|
|
35
|
+
assert.strictEqual(outcomeOf('../release'), 'rejected');
|
|
36
36
|
|
|
37
|
-
assert.
|
|
37
|
+
assert.strictEqual(outcomeOf('../../../../tmp/elsewhere'), 'rejected');
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
test('rejects a name carrying a separator, rather than nesting it', () => {
|
|
41
|
-
assert.
|
|
41
|
+
assert.strictEqual(outcomeOf('production/us-east'), 'rejected');
|
|
42
42
|
|
|
43
|
-
assert.
|
|
44
|
-
outcomeOf(String.raw`production\us-east`),
|
|
45
|
-
'rejected',
|
|
46
|
-
);
|
|
43
|
+
assert.strictEqual(outcomeOf(String.raw`production\us-east`), 'rejected');
|
|
47
44
|
});
|
|
48
45
|
|
|
49
46
|
test('rejects the names that are not file names at all', () => {
|
|
50
|
-
assert.
|
|
47
|
+
assert.strictEqual(outcomeOf(''), 'rejected');
|
|
51
48
|
|
|
52
|
-
assert.
|
|
49
|
+
assert.strictEqual(outcomeOf('.'), 'rejected');
|
|
53
50
|
|
|
54
|
-
assert.
|
|
51
|
+
assert.strictEqual(outcomeOf('..'), 'rejected');
|
|
55
52
|
|
|
56
|
-
assert.
|
|
53
|
+
assert.strictEqual(outcomeOf('release\u{0}'), 'rejected');
|
|
57
54
|
});
|
|
58
55
|
|
|
59
56
|
test('says which name it refused', () => {
|
|
@@ -55,7 +55,7 @@ describe('the repository-variables schema', () => {
|
|
|
55
55
|
|
|
56
56
|
describe(assertVariableNamesAreValid, () => {
|
|
57
57
|
test('accepts the names GitHub accepts', () => {
|
|
58
|
-
assert.
|
|
58
|
+
assert.strictEqual(
|
|
59
59
|
outcomeOf({
|
|
60
60
|
REPO_AUTOMATION_BOT_CLIENT_ID: 'x',
|
|
61
61
|
lowercase_is_allowed: 'x',
|
|
@@ -67,25 +67,25 @@ describe(assertVariableNamesAreValid, () => {
|
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
test('rejects a name starting with a digit', () => {
|
|
70
|
-
assert.
|
|
70
|
+
assert.strictEqual(outcomeOf({ '1ST_PLACE': 'x' }), 'rejected');
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
test('rejects a name carrying a character GitHub does not allow', () => {
|
|
74
|
-
assert.
|
|
74
|
+
assert.strictEqual(outcomeOf({ 'WITH-HYPHEN': 'x' }), 'rejected');
|
|
75
75
|
|
|
76
|
-
assert.
|
|
76
|
+
assert.strictEqual(outcomeOf({ 'WITH SPACE': 'x' }), 'rejected');
|
|
77
77
|
|
|
78
|
-
assert.
|
|
78
|
+
assert.strictEqual(outcomeOf({ 'WITH.DOT': 'x' }), 'rejected');
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
test('rejects the reserved GITHUB_ prefix, in any case', () => {
|
|
82
|
-
assert.
|
|
82
|
+
assert.strictEqual(outcomeOf({ GITHUB_TOKEN: 'x' }), 'rejected');
|
|
83
83
|
|
|
84
|
-
assert.
|
|
84
|
+
assert.strictEqual(outcomeOf({ github_token: 'x' }), 'rejected');
|
|
85
85
|
});
|
|
86
86
|
|
|
87
87
|
test('rejects an empty name', () => {
|
|
88
|
-
assert.
|
|
88
|
+
assert.strictEqual(outcomeOf({ '': 'x' }), 'rejected');
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
test('names every offender, so one run fixes the file', () => {
|