create-typescript-app 2.40.0 → 2.40.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/lib/base.d.ts +11 -11
- package/lib/base.js +1 -1
- package/lib/blocks/blockAllContributors.d.ts +1 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +1 -1
- package/lib/blocks/blockCSpell.d.ts +1 -1
- package/lib/blocks/blockCTATransitions.d.ts +1 -1
- package/lib/blocks/blockCodecov.d.ts +1 -1
- package/lib/blocks/blockContributingDocs.d.ts +1 -1
- package/lib/blocks/blockContributorCovenant.d.ts +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +1 -1
- package/lib/blocks/blockESLint.d.ts +1 -1
- package/lib/blocks/blockESLintComments.d.ts +1 -1
- package/lib/blocks/blockESLintJSDoc.d.ts +1 -1
- package/lib/blocks/blockESLintJSONC.d.ts +1 -1
- package/lib/blocks/blockESLintMarkdown.d.ts +1 -1
- package/lib/blocks/blockESLintMoreStyling.d.ts +1 -1
- package/lib/blocks/blockESLintNode.d.ts +1 -1
- package/lib/blocks/blockESLintPackageJson.d.ts +1 -1
- package/lib/blocks/blockESLintPerfectionist.d.ts +1 -1
- package/lib/blocks/blockESLintPlugin.d.ts +1 -1
- package/lib/blocks/blockESLintPlugin.js +46 -5
- package/lib/blocks/blockESLintRegexp.d.ts +1 -1
- package/lib/blocks/blockESLintYML.d.ts +1 -1
- package/lib/blocks/blockExampleFiles.d.ts +2 -1
- package/lib/blocks/blockExampleFiles.js +9 -1
- package/lib/blocks/blockFunding.d.ts +1 -1
- package/lib/blocks/blockGitHubActionsCI.d.ts +1 -1
- package/lib/blocks/blockGitHubApps.d.ts +1 -1
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +1 -1
- package/lib/blocks/blockGitHubPRTemplate.d.ts +1 -1
- package/lib/blocks/blockGitignore.d.ts +1 -1
- package/lib/blocks/blockKnip.d.ts +1 -1
- package/lib/blocks/blockMITLicense.d.ts +1 -1
- package/lib/blocks/blockMain.d.ts +1 -1
- package/lib/blocks/blockMarkdownlint.d.ts +1 -1
- package/lib/blocks/blockNcc.d.ts +1 -1
- package/lib/blocks/blockNvmrc.d.ts +1 -1
- package/lib/blocks/blockPRCompliance.d.ts +1 -1
- package/lib/blocks/blockPackageJson.d.ts +1 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +1 -1
- package/lib/blocks/blockPrettier.d.ts +1 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +1 -1
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +1 -1
- package/lib/blocks/blockPrettierPluginSh.d.ts +1 -1
- package/lib/blocks/blockREADME.d.ts +2 -1
- package/lib/blocks/blockREADME.js +3 -2
- package/lib/blocks/blockReleaseIt.d.ts +1 -1
- package/lib/blocks/blockRemoveDependencies.d.ts +1 -1
- package/lib/blocks/blockRemoveFiles.d.ts +1 -1
- package/lib/blocks/blockRemoveWorkflows.d.ts +1 -1
- package/lib/blocks/blockRenovate.d.ts +1 -1
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +1 -1
- package/lib/blocks/blockRepositoryLabels.d.ts +1 -1
- package/lib/blocks/blockRepositorySecrets.d.ts +1 -1
- package/lib/blocks/blockRepositorySettings.d.ts +1 -1
- package/lib/blocks/blockSecurityDocs.d.ts +1 -1
- package/lib/blocks/blockTSup.d.ts +1 -1
- package/lib/blocks/blockTemplatedWith.d.ts +1 -1
- package/lib/blocks/blockTypeScript.d.ts +1 -1
- package/lib/blocks/blockTypeScript.js +11 -1
- package/lib/blocks/blockVSCode.d.ts +1 -1
- package/lib/blocks/blockVitest.d.ts +1 -1
- package/lib/blocks/blockWebExt.d.ts +1 -1
- package/lib/blocks/index.d.ts +48 -47
- package/lib/data/packageData.d.ts +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/options/readDocumentation.d.ts +1 -1
- package/lib/options/readReadmeUsage.d.ts +1 -1
- package/lib/options/readReadmeUsage.js +14 -10
- package/lib/presets/common.d.ts +5 -5
- package/lib/presets/everything.d.ts +5 -5
- package/lib/presets/index.d.ts +15 -15
- package/lib/presets/minimal.d.ts +5 -5
- package/lib/schemas.d.ts +10 -10
- package/lib/schemas.js +1 -1
- package/lib/template.d.ts +5 -5
- package/package.json +1 -1
- package/lib/options/readUsageFromReadme.d.ts +0 -3
- package/lib/options/readUsageFromReadme.js +0 -17
|
@@ -32,32 +32,32 @@ declare const presetEverything: bingo_stratum.Preset<{
|
|
|
32
32
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
35
|
-
usage: zod.ZodString
|
|
35
|
+
usage: zod.ZodOptional<zod.ZodString>;
|
|
36
36
|
}, "strip", zod.ZodTypeAny, {
|
|
37
|
-
usage: string;
|
|
38
37
|
additional?: string | undefined;
|
|
39
38
|
explainer?: string | undefined;
|
|
40
39
|
footnotes?: string | undefined;
|
|
40
|
+
usage?: string | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
usage: string;
|
|
43
42
|
additional?: string | undefined;
|
|
44
43
|
explainer?: string | undefined;
|
|
45
44
|
footnotes?: string | undefined;
|
|
45
|
+
usage?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
}, "strip", zod.ZodTypeAny, {
|
|
48
48
|
readme: {
|
|
49
|
-
usage: string;
|
|
50
49
|
additional?: string | undefined;
|
|
51
50
|
explainer?: string | undefined;
|
|
52
51
|
footnotes?: string | undefined;
|
|
52
|
+
usage?: string | undefined;
|
|
53
53
|
};
|
|
54
54
|
development?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
readme: {
|
|
57
|
-
usage: string;
|
|
58
57
|
additional?: string | undefined;
|
|
59
58
|
explainer?: string | undefined;
|
|
60
59
|
footnotes?: string | undefined;
|
|
60
|
+
usage?: string | undefined;
|
|
61
61
|
};
|
|
62
62
|
development?: string | undefined;
|
|
63
63
|
}>;
|
package/lib/presets/index.d.ts
CHANGED
|
@@ -36,32 +36,32 @@ declare const presets: {
|
|
|
36
36
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
37
37
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
38
38
|
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
39
|
-
usage: zod.ZodString
|
|
39
|
+
usage: zod.ZodOptional<zod.ZodString>;
|
|
40
40
|
}, "strip", zod.ZodTypeAny, {
|
|
41
|
-
usage: string;
|
|
42
41
|
additional?: string | undefined;
|
|
43
42
|
explainer?: string | undefined;
|
|
44
43
|
footnotes?: string | undefined;
|
|
44
|
+
usage?: string | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
usage: string;
|
|
47
46
|
additional?: string | undefined;
|
|
48
47
|
explainer?: string | undefined;
|
|
49
48
|
footnotes?: string | undefined;
|
|
49
|
+
usage?: string | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", zod.ZodTypeAny, {
|
|
52
52
|
readme: {
|
|
53
|
-
usage: string;
|
|
54
53
|
additional?: string | undefined;
|
|
55
54
|
explainer?: string | undefined;
|
|
56
55
|
footnotes?: string | undefined;
|
|
56
|
+
usage?: string | undefined;
|
|
57
57
|
};
|
|
58
58
|
development?: string | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
readme: {
|
|
61
|
-
usage: string;
|
|
62
61
|
additional?: string | undefined;
|
|
63
62
|
explainer?: string | undefined;
|
|
64
63
|
footnotes?: string | undefined;
|
|
64
|
+
usage?: string | undefined;
|
|
65
65
|
};
|
|
66
66
|
development?: string | undefined;
|
|
67
67
|
}>;
|
|
@@ -202,32 +202,32 @@ declare const presets: {
|
|
|
202
202
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
203
203
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
204
204
|
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
205
|
-
usage: zod.ZodString
|
|
205
|
+
usage: zod.ZodOptional<zod.ZodString>;
|
|
206
206
|
}, "strip", zod.ZodTypeAny, {
|
|
207
|
-
usage: string;
|
|
208
207
|
additional?: string | undefined;
|
|
209
208
|
explainer?: string | undefined;
|
|
210
209
|
footnotes?: string | undefined;
|
|
210
|
+
usage?: string | undefined;
|
|
211
211
|
}, {
|
|
212
|
-
usage: string;
|
|
213
212
|
additional?: string | undefined;
|
|
214
213
|
explainer?: string | undefined;
|
|
215
214
|
footnotes?: string | undefined;
|
|
215
|
+
usage?: string | undefined;
|
|
216
216
|
}>;
|
|
217
217
|
}, "strip", zod.ZodTypeAny, {
|
|
218
218
|
readme: {
|
|
219
|
-
usage: string;
|
|
220
219
|
additional?: string | undefined;
|
|
221
220
|
explainer?: string | undefined;
|
|
222
221
|
footnotes?: string | undefined;
|
|
222
|
+
usage?: string | undefined;
|
|
223
223
|
};
|
|
224
224
|
development?: string | undefined;
|
|
225
225
|
}, {
|
|
226
226
|
readme: {
|
|
227
|
-
usage: string;
|
|
228
227
|
additional?: string | undefined;
|
|
229
228
|
explainer?: string | undefined;
|
|
230
229
|
footnotes?: string | undefined;
|
|
230
|
+
usage?: string | undefined;
|
|
231
231
|
};
|
|
232
232
|
development?: string | undefined;
|
|
233
233
|
}>;
|
|
@@ -368,32 +368,32 @@ declare const presets: {
|
|
|
368
368
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
369
369
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
370
370
|
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
371
|
-
usage: zod.ZodString
|
|
371
|
+
usage: zod.ZodOptional<zod.ZodString>;
|
|
372
372
|
}, "strip", zod.ZodTypeAny, {
|
|
373
|
-
usage: string;
|
|
374
373
|
additional?: string | undefined;
|
|
375
374
|
explainer?: string | undefined;
|
|
376
375
|
footnotes?: string | undefined;
|
|
376
|
+
usage?: string | undefined;
|
|
377
377
|
}, {
|
|
378
|
-
usage: string;
|
|
379
378
|
additional?: string | undefined;
|
|
380
379
|
explainer?: string | undefined;
|
|
381
380
|
footnotes?: string | undefined;
|
|
381
|
+
usage?: string | undefined;
|
|
382
382
|
}>;
|
|
383
383
|
}, "strip", zod.ZodTypeAny, {
|
|
384
384
|
readme: {
|
|
385
|
-
usage: string;
|
|
386
385
|
additional?: string | undefined;
|
|
387
386
|
explainer?: string | undefined;
|
|
388
387
|
footnotes?: string | undefined;
|
|
388
|
+
usage?: string | undefined;
|
|
389
389
|
};
|
|
390
390
|
development?: string | undefined;
|
|
391
391
|
}, {
|
|
392
392
|
readme: {
|
|
393
|
-
usage: string;
|
|
394
393
|
additional?: string | undefined;
|
|
395
394
|
explainer?: string | undefined;
|
|
396
395
|
footnotes?: string | undefined;
|
|
396
|
+
usage?: string | undefined;
|
|
397
397
|
};
|
|
398
398
|
development?: string | undefined;
|
|
399
399
|
}>;
|
package/lib/presets/minimal.d.ts
CHANGED
|
@@ -32,32 +32,32 @@ declare const presetMinimal: bingo_stratum.Preset<{
|
|
|
32
32
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
35
|
-
usage: zod.ZodString
|
|
35
|
+
usage: zod.ZodOptional<zod.ZodString>;
|
|
36
36
|
}, "strip", zod.ZodTypeAny, {
|
|
37
|
-
usage: string;
|
|
38
37
|
additional?: string | undefined;
|
|
39
38
|
explainer?: string | undefined;
|
|
40
39
|
footnotes?: string | undefined;
|
|
40
|
+
usage?: string | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
usage: string;
|
|
43
42
|
additional?: string | undefined;
|
|
44
43
|
explainer?: string | undefined;
|
|
45
44
|
footnotes?: string | undefined;
|
|
45
|
+
usage?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
}, "strip", zod.ZodTypeAny, {
|
|
48
48
|
readme: {
|
|
49
|
-
usage: string;
|
|
50
49
|
additional?: string | undefined;
|
|
51
50
|
explainer?: string | undefined;
|
|
52
51
|
footnotes?: string | undefined;
|
|
52
|
+
usage?: string | undefined;
|
|
53
53
|
};
|
|
54
54
|
development?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
readme: {
|
|
57
|
-
usage: string;
|
|
58
57
|
additional?: string | undefined;
|
|
59
58
|
explainer?: string | undefined;
|
|
60
59
|
footnotes?: string | undefined;
|
|
60
|
+
usage?: string | undefined;
|
|
61
61
|
};
|
|
62
62
|
development?: string | undefined;
|
|
63
63
|
}>;
|
package/lib/schemas.d.ts
CHANGED
|
@@ -7,16 +7,16 @@ declare const zContributor: z.ZodObject<{
|
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
profile: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
name: string;
|
|
10
11
|
avatar_url: string;
|
|
11
12
|
contributions: string[];
|
|
12
13
|
login: string;
|
|
13
|
-
name: string;
|
|
14
14
|
profile: string;
|
|
15
15
|
}, {
|
|
16
|
+
name: string;
|
|
16
17
|
avatar_url: string;
|
|
17
18
|
contributions: string[];
|
|
18
19
|
login: string;
|
|
19
|
-
name: string;
|
|
20
20
|
profile: string;
|
|
21
21
|
}>;
|
|
22
22
|
type Contributor = z.infer<typeof zContributor>;
|
|
@@ -24,17 +24,17 @@ declare const zReadme: z.ZodObject<{
|
|
|
24
24
|
additional: z.ZodOptional<z.ZodString>;
|
|
25
25
|
explainer: z.ZodOptional<z.ZodString>;
|
|
26
26
|
footnotes: z.ZodOptional<z.ZodString>;
|
|
27
|
-
usage: z.ZodString
|
|
27
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
usage: string;
|
|
30
29
|
additional?: string | undefined;
|
|
31
30
|
explainer?: string | undefined;
|
|
32
31
|
footnotes?: string | undefined;
|
|
32
|
+
usage?: string | undefined;
|
|
33
33
|
}, {
|
|
34
|
-
usage: string;
|
|
35
34
|
additional?: string | undefined;
|
|
36
35
|
explainer?: string | undefined;
|
|
37
36
|
footnotes?: string | undefined;
|
|
37
|
+
usage?: string | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
type Readme = z.infer<typeof zReadme>;
|
|
40
40
|
declare const zDocumentation: z.ZodObject<{
|
|
@@ -43,32 +43,32 @@ declare const zDocumentation: z.ZodObject<{
|
|
|
43
43
|
additional: z.ZodOptional<z.ZodString>;
|
|
44
44
|
explainer: z.ZodOptional<z.ZodString>;
|
|
45
45
|
footnotes: z.ZodOptional<z.ZodString>;
|
|
46
|
-
usage: z.ZodString
|
|
46
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
usage: string;
|
|
49
48
|
additional?: string | undefined;
|
|
50
49
|
explainer?: string | undefined;
|
|
51
50
|
footnotes?: string | undefined;
|
|
51
|
+
usage?: string | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
usage: string;
|
|
54
53
|
additional?: string | undefined;
|
|
55
54
|
explainer?: string | undefined;
|
|
56
55
|
footnotes?: string | undefined;
|
|
56
|
+
usage?: string | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
readme: {
|
|
60
|
-
usage: string;
|
|
61
60
|
additional?: string | undefined;
|
|
62
61
|
explainer?: string | undefined;
|
|
63
62
|
footnotes?: string | undefined;
|
|
63
|
+
usage?: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
development?: string | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
readme: {
|
|
68
|
-
usage: string;
|
|
69
68
|
additional?: string | undefined;
|
|
70
69
|
explainer?: string | undefined;
|
|
71
70
|
footnotes?: string | undefined;
|
|
71
|
+
usage?: string | undefined;
|
|
72
72
|
};
|
|
73
73
|
development?: string | undefined;
|
|
74
74
|
}>;
|
package/lib/schemas.js
CHANGED
|
@@ -10,7 +10,7 @@ const zReadme = z.object({
|
|
|
10
10
|
additional: z.string().optional(),
|
|
11
11
|
explainer: z.string().optional(),
|
|
12
12
|
footnotes: z.string().optional(),
|
|
13
|
-
usage: z.string()
|
|
13
|
+
usage: z.string().optional()
|
|
14
14
|
});
|
|
15
15
|
const zDocumentation = z.object({
|
|
16
16
|
development: z.string().optional(),
|
package/lib/template.d.ts
CHANGED
|
@@ -32,32 +32,32 @@ declare const template: bingo_stratum_lib_types_templates_js.StratumTemplate<{
|
|
|
32
32
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
35
|
-
usage: zod.ZodString
|
|
35
|
+
usage: zod.ZodOptional<zod.ZodString>;
|
|
36
36
|
}, "strip", zod.ZodTypeAny, {
|
|
37
|
-
usage: string;
|
|
38
37
|
additional?: string | undefined;
|
|
39
38
|
explainer?: string | undefined;
|
|
40
39
|
footnotes?: string | undefined;
|
|
40
|
+
usage?: string | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
usage: string;
|
|
43
42
|
additional?: string | undefined;
|
|
44
43
|
explainer?: string | undefined;
|
|
45
44
|
footnotes?: string | undefined;
|
|
45
|
+
usage?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
}, "strip", zod.ZodTypeAny, {
|
|
48
48
|
readme: {
|
|
49
|
-
usage: string;
|
|
50
49
|
additional?: string | undefined;
|
|
51
50
|
explainer?: string | undefined;
|
|
52
51
|
footnotes?: string | undefined;
|
|
52
|
+
usage?: string | undefined;
|
|
53
53
|
};
|
|
54
54
|
development?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
readme: {
|
|
57
|
-
usage: string;
|
|
58
57
|
additional?: string | undefined;
|
|
59
58
|
explainer?: string | undefined;
|
|
60
59
|
footnotes?: string | undefined;
|
|
60
|
+
usage?: string | undefined;
|
|
61
61
|
};
|
|
62
62
|
development?: string | undefined;
|
|
63
63
|
}>;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const startUsage = "## Usage";
|
|
2
|
-
function readUsageFromReadme(readme) {
|
|
3
|
-
const indexOfUsage = readme.indexOf(startUsage);
|
|
4
|
-
if (indexOfUsage === -1) {
|
|
5
|
-
return void 0;
|
|
6
|
-
}
|
|
7
|
-
const offset = indexOfUsage + startUsage.length;
|
|
8
|
-
const indexOfNextKnownHeading = readme.slice(offset).search(/## (?:Development|Contributing|Contributors)/);
|
|
9
|
-
if (indexOfNextKnownHeading === -1) {
|
|
10
|
-
return readme.slice(offset);
|
|
11
|
-
}
|
|
12
|
-
const usage = readme.slice(offset, indexOfNextKnownHeading + offset).trim();
|
|
13
|
-
return usage ? usage : void 0;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
readUsageFromReadme
|
|
17
|
-
};
|