Skip to content

Commit

Permalink
Build: Add missing cleanDir() to review-package.js
Browse files Browse the repository at this point in the history
Not so much to wipe it, but to ensure it exists. Only noticed today
after re-creating some of my work environments that I had been
keeping this around as at least an empty directory all this time.
  • Loading branch information
Krinkle committed Mar 29, 2022
1 parent 66fb4b2 commit 2e99f00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/review-package.js
Expand Up @@ -8,7 +8,7 @@ const cp = require('child_process');
const fs = require('fs');
const path = require('path');
const readline = require('readline');
const { getDiff, downloadFile } = require('./utils.js');
const { getDiff, downloadFile, cleanDir } = require('./utils.js');

async function confirm (text) {
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
Expand All @@ -29,6 +29,9 @@ const ReleaseAssets = {
if (typeof prevVersion !== 'string' || !/^\d+\.\d+\.\d+$/.test(prevVersion)) {
throw new Error('Invalid or missing version argument');
}
{
cleanDir(path.join(__dirname, '../temp'));
}
{
const file = 'package.json';
console.log(`Auditing ${file}...`);
Expand Down

0 comments on commit 2e99f00

Please sign in to comment.