Skip to content

Commit 9cb4e3b

Browse files
fix: always npx -y all-contributors-cli (#712)
## PR Checklist - [x] Addresses an existing open issue: fixes #711 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Basically a find-and-replace.
1 parent 4c60f5b commit 9cb4e3b

7 files changed

+5
-173
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"@typescript-eslint/eslint-plugin": "^6.4.0",
6868
"@typescript-eslint/parser": "^6.4.0",
6969
"@vitest/coverage-v8": "^0.34.2",
70-
"all-contributors-cli": "^6.26.1",
7170
"c8": "^8.0.1",
7271
"console-fail-test": "^0.2.3",
7372
"cspell": "^7.0.0",

pnpm-lock.yaml

Lines changed: 0 additions & 167 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/steps/addToolAllContributors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe("addToolAllContributors", () => {
3333
await addToolAllContributors("owner");
3434

3535
expect(mock$).toHaveBeenCalledWith([
36-
`npx all-contributors add JoshuaKGoldberg tool`,
36+
`npx -y all-contributors-cli add JoshuaKGoldberg tool`,
3737
]);
3838
});
3939
});

src/steps/addToolAllContributors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export async function addToolAllContributors(owner: string) {
66
const login = await getGitHubUserAsAllContributor(owner);
77

88
if (login !== "JoshuaKGoldberg") {
9-
await $`npx all-contributors add JoshuaKGoldberg tool`;
9+
await $`npx -y all-contributors-cli add JoshuaKGoldberg tool`;
1010
}
1111
}

src/steps/detectExistingContributors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe("detectExistingContributors", () => {
3030
[
3131
[
3232
[
33-
"npx all-contributors add ",
33+
"npx -y all-contributors-cli add ",
3434
" ",
3535
"",
3636
],

src/steps/detectExistingContributors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export async function detectExistingContributors() {
99

1010
for (const [contributor, contributions] of Object.entries(contributors)) {
1111
const contributionTypes = Object.keys(contributions).join(",");
12-
await $`npx all-contributors add ${contributor} ${contributionTypes}`;
12+
await $`npx -y all-contributors-cli add ${contributor} ${contributionTypes}`;
1313
}
1414
}

src/steps/updateAllContributorsTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ export async function updateAllContributorsTable({
2323
),
2424
);
2525

26-
await $`npx all-contributors generate`;
26+
await $`npx -y all-contributors-cli generate`;
2727
}

0 commit comments

Comments
 (0)