create-typescript-app 2.15.5 → 2.15.6

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 CHANGED
@@ -13,16 +13,16 @@ declare const base: bingo_stratum.Base<{
13
13
  name: z.ZodString;
14
14
  profile: z.ZodString;
15
15
  }, "strip", z.ZodTypeAny, {
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
+ name: string;
22
23
  avatar_url: string;
23
24
  contributions: string[];
24
25
  login: string;
25
- name: string;
26
26
  profile: string;
27
27
  }>, "many">>;
28
28
  description: z.ZodDefault<z.ZodString>;
@@ -64,11 +64,11 @@ declare const base: bingo_stratum.Base<{
64
64
  href: z.ZodString;
65
65
  title: z.ZodString;
66
66
  }, "strip", z.ZodTypeAny, {
67
- href: string;
68
67
  title: string;
69
- }, {
70
68
  href: string;
69
+ }, {
71
70
  title: string;
71
+ href: string;
72
72
  }>>;
73
73
  keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
74
  logo: z.ZodOptional<z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.15.4";
2
+ var version = "2.15.5";
3
3
  var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
4
4
  var repository = {
5
5
  type: "git",
@@ -1,18 +1,15 @@
1
- const startDevelopment = "## Development";
2
1
  const startUsage = "## Usage";
3
2
  function readUsageFromReadme(readme) {
4
3
  const indexOfUsage = readme.indexOf(startUsage);
5
4
  if (indexOfUsage === -1) {
6
5
  return void 0;
7
6
  }
8
- const indexOfDevelopment = readme.indexOf(
9
- startDevelopment,
10
- indexOfUsage + startUsage.length
11
- );
12
- if (indexOfDevelopment === -1) {
13
- return void 0;
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);
14
11
  }
15
- const usage = readme.slice(indexOfUsage + startUsage.length, indexOfDevelopment).trim();
12
+ const usage = readme.slice(offset, indexOfNextKnownHeading + offset).trim();
16
13
  return usage ? usage : void 0;
17
14
  }
18
15
  export {
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "2.15.5",
3
+ "version": "2.15.6",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",