Skip to content

Commit

Permalink
Allezzzz
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jun 23, 2024
1 parent 1e874d1 commit b8e8d28
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,8 +7,9 @@ function getPackageVersions(packageName) {

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

0 comments on commit b8e8d28

Please sign in to comment.