0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-03-11 02:15:57 -05:00

chore: fix local script

This commit is contained in:
Juan Picado 2025-01-05 09:00:53 +01:00
parent 061e9a9dee
commit 98d808bcd1

View file

@ -30,7 +30,7 @@ export async function fetchNpmjsApiDownloadsWeekly() {
npmjsDownloads[currentDate] = response.body.downloads;
await fs.writeFile(npmjsFile, npmjsDownloads);
await fs.writeFile(npmjsFile, JSON.stringify(npmjsDownloads, null, 4));
debug('npmjs downloads written at %s ends', npmjsFile);
} catch (err: any) {
// eslint-disable-next-line no-console