Skip to content

Commit

Permalink
feat: Improve the existing stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanlucut committed Sep 25, 2023
1 parent b4c0313 commit 365bb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/lyricsFileNameReprocessorRunner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from 'fs';
import fs from 'fs-extra';
import path from 'path';
import * as process from 'process';
import dotenv from 'dotenv';
Expand Down Expand Up @@ -42,11 +42,11 @@ const run = async (dir: string) => {
return;
}

fs.unlinkSync(filePath);
fs.writeFileSync(
path.join(path.dirname(filePath), newFileName),
existingContent,
);
fs.unlinkSync(filePath);

console.log(chalk.green(`Renamed to "${newFileName}"`));
console.log();
Expand Down

0 comments on commit 365bb1f

Please sign in to comment.