message: Wrap fs.statSync in try/catch
  Close
diff: @@ -51,20 +51,20 @@ export class Cleaner {
  // Resolve the absolute filepath for every file
  .map(file => path.resolve(outdir, file))
  for (const file of files) {
  + try {
  const stats: fs.Stats = fs.statSync(file)
  if (stats.isFile()) {
  - try {
  await fs.promises.unlink(file)
  this.extension.logger.addLogMessage(`Cleaning file: ${file}`)
  + } else {
  + this.extension.logger.addLogMessage(`Not removing non-file: ${file}`)
  + }
  } catch (err) {
  this.extension.logger.addLogMessage(`Error cleaning file: ${file}`)
  if (err instanceof Error) {
  this.extension.logger.logError(err)
  }
  }
  - } else {
  - this.extension.logger.addLogMessage(`Not removing non-file: ${file}`)
  - }
  }
  }
  