Skip to content

Commit a082b99

Browse files
authoredDec 24, 2024··
fix: use pnpx, not npx (#1800)
## PR Checklist - [x] Addresses an existing open issue: fixes #1799 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview 💖
1 parent de7a4d4 commit a082b99

7 files changed

+12
-12
lines changed
 

Diff for: ‎src/next/blocks/blockAllContributors.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ describe("blockAllContributors", () => {
6060
"scripts": [
6161
{
6262
"commands": [
63-
"npx -y all-contributors-cli generate",
64-
"npx -y all-contributors-cli add test-owner code,content,docs,ideas,infra,maintenance,projectManagement,tool",
63+
"pnpx all-contributors-cli generate",
64+
"pnpx all-contributors-cli add test-owner code,content,docs,ideas,infra,maintenance,projectManagement,tool",
6565
],
6666
"phase": 3,
6767
},
@@ -138,8 +138,8 @@ describe("blockAllContributors", () => {
138138
"scripts": [
139139
{
140140
"commands": [
141-
"npx -y all-contributors-cli generate",
142-
"npx -y all-contributors-cli add test-owner code,content,docs,ideas,infra,maintenance,projectManagement,tool",
141+
"pnpx all-contributors-cli generate",
142+
"pnpx all-contributors-cli add test-owner code,content,docs,ideas,infra,maintenance,projectManagement,tool",
143143
],
144144
"phase": 3,
145145
},

Diff for: ‎src/next/blocks/blockAllContributors.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export const blockAllContributors = base.createBlock({
5656
scripts: [
5757
{
5858
commands: [
59-
`npx -y all-contributors-cli generate`,
60-
`npx -y all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`,
59+
`pnpx all-contributors-cli generate`,
60+
`pnpx all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`,
6161
],
6262
phase: CommandPhase.Process,
6363
},

Diff for: ‎src/shared/getGitHubUserAsAllContributor.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe("getGitHubUserAsAllContributor", () => {
6363
[
6464
[
6565
[
66-
"npx -y all-contributors-cli@6.25 add ",
66+
"pnpx all-contributors-cli@6.25 add ",
6767
" ",
6868
"",
6969
],
@@ -90,7 +90,7 @@ describe("getGitHubUserAsAllContributor", () => {
9090
[
9191
[
9292
[
93-
"npx -y all-contributors-cli@6.25 add ",
93+
"pnpx all-contributors-cli@6.25 add ",
9494
" ",
9595
"",
9696
],

Diff for: ‎src/shared/getGitHubUserAsAllContributor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function getGitHubUserAsAllContributor(
4444
"projectManagement",
4545
"tool",
4646
].join(",");
47-
await $`npx -y all-contributors-cli@6.25 add ${user} ${contributions}`;
47+
await $`pnpx all-contributors-cli@6.25 add ${user} ${contributions}`;
4848

4949
return user;
5050
}

Diff for: ‎src/steps/addToolAllContributors.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe("addToolAllContributors", () => {
3333
await addToolAllContributors(undefined, { owner: "owner" });
3434

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

Diff for: ‎src/steps/addToolAllContributors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export async function addToolAllContributors(
1111
const login = await getGitHubUserAsAllContributor(octokit, options);
1212

1313
if (login !== "JoshuaKGoldberg") {
14-
await $`npx -y all-contributors-cli add JoshuaKGoldberg tool`;
14+
await $`pnpx all-contributors-cli add JoshuaKGoldberg tool`;
1515
}
1616
}

Diff for: ‎src/steps/updateAllContributorsTable.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export async function updateAllContributorsTable({
2020
}),
2121
);
2222

23-
await $`npx -y all-contributors-cli generate`;
23+
await $`pnpx all-contributors-cli generate`;
2424
}

0 commit comments

Comments
 (0)
Please sign in to comment.