Skip to content

Commit e0bf8f6

Browse files
authored
preserve npm download data for scoped packages (#1727)
1 parent 634ea5b commit e0bf8f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/build-and-score-data.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ async function buildAndScoreData() {
130130
data = data.map(project => ({
131131
...project,
132132
npm: {
133+
// Keep existing npm data (for scoped packages processed individually)
134+
...project.npm,
135+
// Add bulk query results (for regular packages)
133136
...(downloadsList.find(entry => entry.name === project.npmPkg)?.npm ?? {}),
134137
// ...(downloadsListWeek.find(entry => entry.name === project.npmPkg)?.npm ?? {}),
135138
},

0 commit comments

Comments
 (0)