create-typescript-app 2.75.0 → 2.75.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/README.md +1 -1
- package/dist/blocks/blockAllContributors.mjs +10 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ Thanks! 🎁
|
|
|
101
101
|
<td align="center" valign="top" width="14.28%"><a href="https://jessicawilkins.dev/"><img src="https://avatars.githubusercontent.com/u/67210629?v=4?s=100" width="100px;" alt="Jessica Wilkins "/><br /><sub><b>Jessica Wilkins </b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jdwilkin4" title="Code">💻</a></td>
|
|
102
102
|
<td align="center" valign="top" width="14.28%"><a href="https://typescriptcourse.com/tutorials"><img src="https://avatars.githubusercontent.com/u/3806031?v=4?s=100" width="100px;" alt="Joe Previte"/><br /><sub><b>Joe Previte</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Ajsjoeio" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jsjoeio" title="Code">💻</a></td>
|
|
103
103
|
<td align="center" valign="top" width="14.28%"><a href="https://blog.johnnyreilly.com/"><img src="https://avatars.githubusercontent.com/u/1010525?v=4?s=100" width="100px;" alt="John Reilly"/><br /><sub><b>John Reilly</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=johnnyreilly" title="Code">💻</a> <a href="#ideas-johnnyreilly" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Ajohnnyreilly" title="Bug reports">🐛</a> <a href="#maintenance-johnnyreilly" title="Maintenance">🚧</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=johnnyreilly" title="Documentation">📖</a> <a href="#tool-johnnyreilly" title="Tools">🔧</a></td>
|
|
104
|
-
<td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#
|
|
104
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#content-JoshuaKGoldberg" title="Content">🖋</a> <a href="#design-JoshuaKGoldberg" title="Design">🎨</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#ideas-JoshuaKGoldberg" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="#projectManagement-JoshuaKGoldberg" title="Project Management">📆</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3AJoshuaKGoldberg" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Tests">⚠️</a> <a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a></td>
|
|
105
105
|
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/Jolg42"><img src="https://avatars.githubusercontent.com/u/1328733?v=4?s=100" width="100px;" alt="Joël Galeran"/><br /><sub><b>Joël Galeran</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jolg42" title="Code">💻</a></td>
|
|
106
106
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jaas666"><img src="https://avatars.githubusercontent.com/u/30204147?v=4?s=100" width="100px;" alt="Juan A."/><br /><sub><b>Juan A.</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jaas666" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jaas666" title="Documentation">📖</a></td>
|
|
107
107
|
</tr>
|
|
@@ -12,8 +12,13 @@ import { contributionTypes, createContributionLink, isContributionTypeName } fro
|
|
|
12
12
|
const blockAllContributors = base.createBlock({
|
|
13
13
|
about: { name: "AllContributors" },
|
|
14
14
|
produce({ options }) {
|
|
15
|
-
const
|
|
16
|
-
const ownerContributions = Array.from(new Set([
|
|
15
|
+
const owner = options.contributors?.find((contributor) => contributor.login.toLowerCase() === options.owner.toLowerCase());
|
|
16
|
+
const ownerContributions = Array.from(/* @__PURE__ */ new Set([...owner?.contributions ?? [], ...startingOwnerContributions]));
|
|
17
|
+
const contributors = options.contributors?.map((contributor) => contributor === owner ? {
|
|
18
|
+
...contributor,
|
|
19
|
+
contributions: ownerContributions
|
|
20
|
+
} : contributor);
|
|
21
|
+
const contributions = contributors?.length;
|
|
17
22
|
return {
|
|
18
23
|
addons: [blockPrettier({ ignores: ["/.all-contributorsrc"] }), blockREADME({
|
|
19
24
|
badges: [{
|
|
@@ -29,7 +34,7 @@ const blockAllContributors = base.createBlock({
|
|
|
29
34
|
href: "#contributors",
|
|
30
35
|
src: `https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg`
|
|
31
36
|
}],
|
|
32
|
-
sections:
|
|
37
|
+
sections: contributors ? [printAllContributorsTable(contributors, {
|
|
33
38
|
projectName: options.repository,
|
|
34
39
|
projectOwner: options.owner
|
|
35
40
|
})] : void 0
|
|
@@ -38,7 +43,7 @@ const blockAllContributors = base.createBlock({
|
|
|
38
43
|
".all-contributorsrc": JSON.stringify({
|
|
39
44
|
badgeTemplate: " <a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>",
|
|
40
45
|
commitType: "docs",
|
|
41
|
-
contributors:
|
|
46
|
+
contributors: contributors ?? [],
|
|
42
47
|
contributorsPerLine: 7,
|
|
43
48
|
contributorsSortAlphabetically: true,
|
|
44
49
|
files: ["README.md"],
|
|
@@ -61,7 +66,7 @@ const blockAllContributors = base.createBlock({
|
|
|
61
66
|
}]
|
|
62
67
|
}), ["contributors.yml"]) } }
|
|
63
68
|
},
|
|
64
|
-
scripts: [{
|
|
69
|
+
scripts: owner ? void 0 : [{
|
|
65
70
|
commands: [`pnpx all-contributors-cli@6.23.1 add ${options.owner} ${ownerContributions.join(",")}`],
|
|
66
71
|
phase: CommandPhase.Process
|
|
67
72
|
}]
|