text: import { watchFile } from 'fs';
  import { join } from 'path';
  import { app } from 'electron';
  
  export default function exitOnChange() {
    watchFile(join(process.cwd(), 'app/background.js'), () => {
      app.exit(0);
    });
  };
  