Skip to content

Commit 18c847b

Browse files
zkochanclaude
andauthored
fix: point generate-sponsors at the restructured pnpm repo (#901)
* fix: point generate-sponsors at the restructured pnpm repo pnpm/pnpm moved its trees under pnpm/ and pnpm11/, so two of the three targets no longer existed. The script updated the root README, then exited 1 on the missing pnpm/README.md markers without ever reaching the release text — so recent sponsor updates only ever landed in the root README. Retargets the READMEs, and replaces the v11 release-text target with .github/release-sponsors.md, the single fragment both release paths now read. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * refactor: trim narrating comments from the target lists Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent ee77944 commit 18c847b

2 files changed

Lines changed: 19 additions & 8 deletions

File tree

scripts/generate-sponsors.mjs

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ const TIER_CONFIG = {
1414
silver: { columns: 3, heading: 'Silver Sponsors' },
1515
};
1616

17+
const README_TARGETS = [
18+
'README.md',
19+
'pnpm/npm/pnpm/README.md',
20+
'pnpm11/pnpm/README.md',
21+
];
22+
23+
// Both release paths read this one fragment. pnpr builds its description the
24+
// same way but deliberately carries no sponsors.
25+
const RELEASE_TARGETS = [
26+
'.github/release-sponsors.md',
27+
];
28+
1729
const ALT_EXTENSIONS = ['.svg', '.png', '.jpg', '.jpeg'];
1830

1931
function addUTM(urlStr, medium) {
@@ -193,16 +205,18 @@ function generate() {
193205

194206
// READMEs — all tiers
195207
const readmeMarkdown = generateMarkdown(sponsors);
196-
updateFileMarkers(path.join(absPnpmRoot, 'README.md'), readmeMarkdown);
197-
updateFileMarkers(path.join(absPnpmRoot, 'pnpm/README.md'), readmeMarkdown);
208+
for (const rel of README_TARGETS) {
209+
updateFileMarkers(path.join(absPnpmRoot, rel), readmeMarkdown);
210+
}
198211

199-
// Release text generator — platinum + gold only
200-
const releaseTextPath = path.join(absPnpmRoot, '__utils__/get-release-text/src/main.ts');
212+
// Release descriptions — platinum + gold only
201213
const releaseMarkdown = generateMarkdown(sponsors, {
202214
tiers: ['platinum', 'gold'],
203215
utmMedium: 'release_notes',
204216
});
205-
updateFileMarkers(releaseTextPath, releaseMarkdown);
217+
for (const rel of RELEASE_TARGETS) {
218+
updateFileMarkers(path.join(absPnpmRoot, rel), releaseMarkdown);
219+
}
206220
}
207221

208222
generate();

static/img/users/notion_light.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)