create-typescript-app 2.15.6 → 2.15.7

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;
17
16
  avatar_url: string;
18
17
  contributions: string[];
19
18
  login: string;
19
+ name: string;
20
20
  profile: string;
21
21
  }, {
22
- name: string;
23
22
  avatar_url: string;
24
23
  contributions: string[];
25
24
  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
- title: string;
68
67
  href: string;
69
- }, {
70
68
  title: string;
69
+ }, {
71
70
  href: string;
71
+ title: string;
72
72
  }>>;
73
73
  keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
74
  logo: z.ZodOptional<z.ZodObject<{
@@ -103,13 +103,15 @@ function collectBinFiles(bin) {
103
103
  return files.map((file) => file.replace(/^\.\//, ""));
104
104
  }
105
105
  function removeRangePrefix(version) {
106
- return version.replaceAll(/[\^~><=]/gu, "").split(" ")[0];
106
+ const raw = version.replaceAll(/[\^~><=]/gu, "").split(" ")[0];
107
+ return semver.coerce(raw) ?? raw;
107
108
  }
108
109
  function useLargerVersion(existing, replacement) {
109
- if (!existing) {
110
+ if (!existing || existing === replacement) {
110
111
  return replacement;
111
112
  }
112
- return semver.gt(removeRangePrefix(existing), removeRangePrefix(replacement)) ? existing : replacement;
113
+ const existingCoerced = semver.coerce(removeRangePrefix(existing));
114
+ return existingCoerced && semver.gt(existingCoerced, removeRangePrefix(replacement)) ? existing : replacement;
113
115
  }
114
116
  function useLargerVersions(existing, replacements) {
115
117
  if (!existing) {
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.15.5";
2
+ var version = "2.15.6";
3
3
  var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
4
4
  var repository = {
5
5
  type: "git",
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;
11
10
  avatar_url: string;
12
11
  contributions: string[];
13
12
  login: string;
13
+ name: string;
14
14
  profile: string;
15
15
  }, {
16
- name: string;
17
16
  avatar_url: string;
18
17
  contributions: string[];
19
18
  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.6",
3
+ "version": "2.15.7",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",