Skip to content

Commit 547e8fd

Browse files
fix: run all-contributors generate in setup script (#284)
* fix: run all-contributors generate in setup script * Update script/setup.js * wait that wasn't it * Exclude setup.js too
1 parent a236424 commit 547e8fd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

script/setup-test-e2e.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ for (const search of [
2525
"template-typescript-node-package",
2626
]) {
2727
const grepResult =
28-
await $`grep --exclude script/setup-test-e2e.js --exclude-dir node_modules -i ${search} *.* **/*.*`;
28+
await $`grep --exclude script/setup.js --exclude script/setup-test-e2e.js --exclude-dir node_modules -i ${search} *.* **/*.*`;
2929
assert.equal(
3030
grepResult.stdout.trim(),
3131
`README.md:> 💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [template-typescript-node-package](https://github.com/JoshuaKGoldberg/template-typescript-node-package).`

script/setup.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ try {
164164

165165
console.log(chalk.gray`✔️ Done.`);
166166

167+
console.log();
168+
console.log(chalk.gray`Generating all-contributors table in README.md...`);
169+
170+
await $`npx all-contributors generate`;
171+
172+
console.log(chalk.gray`✔️ Done.`);
173+
167174
console.log();
168175
console.log(chalk.gray`Deleting local git tags...`);
169176

0 commit comments

Comments
 (0)