title: Looks like when I do fs.writeFile(), the changed file restarts nodemon. How to make it not restart?
body: <p>I thinks what is happening is that for a callback to update a collection in mongoose I do a <code>writeFile</code> to <code>all.json</code> and I think that is causing my nodemon to restart.</p>
  
  <p>The cmd window:</p>
  
  <pre><code>file saved
  [nodemon] restarting due to changes...
  { ok: 1, nModified: 0, n: 1 }
  Anon user added to doc
  { ok: 1, nModified: 1, n: 1 }
  [nodemon] starting `node server.js`
  listenting on port: 3000
  </code></pre>
  
  <p>I don't want it to restart when <code>all.json</code> changes.</p>
  
  <p>I get a new session when it restarts and I want to do stuff with that session while  developing. I don't want to use mongo-store or session store right now. I just don't want node to restart or get a new session but I want to fix it without playing around with the session parameters. </p>
  
  <p>So please confirm that because the all.json file changes that is why nodemon restarts . I know that it doesn't restart for jade or ejs files but I didn't know about <code>json</code></p>
  
  <p>Also please suggest a solution.</p>