Skip to content

Commit

Permalink
Fix verdaccio
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Jul 22, 2024
1 parent 3bfe0ec commit 139374a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verdaccioPkgSize.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function verdaccioPkgSize() {
let verdaccioDBPath = path.join(__dirname, '..', 'storage', '.verdaccio-db.json');
let publishedPackages = JSON.parse(fs.readFileSync(verdaccioDBPath), 'utf').list;
for (let pkg of publishedPackages) {
let tarballPath = glob.sync(`**/${pkg}/*.tgz`, {cwd: verdaccioStorePath});
let tarballPath = glob.sync(`**/${pkg}/*.tgz`, {cwd: verdaccioStorePath}).sort().at(-1);
let size = fs.statSync(verdaccioStorePath + tarballPath).size / 1000;
json[pkg] = size;
}
Expand Down

2 comments on commit 139374a

@rspbot
Copy link

@rspbot rspbot commented on 139374a Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rspbot
Copy link

@rspbot rspbot commented on 139374a Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.