Skip to content

Commit

Permalink
Add missing async keyword in prepare-release
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Jul 29, 2024
1 parent 3ee311e commit 0348244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prepare-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function btoa(str) {
* @return {String} The results of running the diff. An empty string if contents
* match.
*/
function computeDiff(name, folder) {
async function computeDiff(name, folder) {
// Install npm package in tmp folder
const tmpFolder = fs.mkdtempSync(path.join(os.tmpdir(), "package-"));
execSync(`npm install ${name}`, {
Expand Down Expand Up @@ -187,7 +187,7 @@ async function prepareRelease(name, folder, dryRun = false) {

console.log();
console.log("Compute diff between package and repo contents");
let diff = computeDiff(name, folder);
let diff = await computeDiff(name, folder);
console.log(`- Diff length: ${diff?.length}`);
if (!diff) {
if (pendingPR) {
Expand Down

0 comments on commit 0348244

Please sign in to comment.