Skip to content

Commit

Permalink
More logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jun 23, 2024
1 parent 43c70a9 commit 9d478d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deleteVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ function getPackageVersions(packageName) {

function deletePackageVersion(packageName, version) {
try {
execSync(`npm unpublish --force ${packageName}@${version}`);
const deleteResult = execSync(`npm unpublish --force ${packageName}@${version}`);
console.log(deleteResult);
console.log(`Successfully deleted ${packageName}@${version}`);
} catch (error) {
console.error(`Failed to delete ${packageName}@${version}: ${error.message}`);
Expand Down

0 comments on commit 9d478d7

Please sign in to comment.