title: How to ignore package.json with nodemon
body: <p>How do I ignore package.json when using nodemon?
  (I'm using versiony to increase package.json version).</p>
  <p>I tried to use <a href="https://stackoverflow.com/questions/47794071/nodemon-not-using-the-ignore-option">this question</a> but not sure how I can apply that for an extension or file. I tried:</p>
  <pre><code>&quot;scripts&quot;: {
      &quot;start&quot;: &quot;versiony package.json --patch &amp;&amp; node bot.js&quot;,
      &quot;nodemonConfig&quot;: {
        &quot;ignore&quot;: [
          &quot;*.json&quot;
        ]
      }
    }
  </code></pre>
  <p>I also tried to use the <a href="https://github.com/remy/nodemon#ignoring-files" rel="nofollow noreferrer">guide from nodemon</a> in a start.bat file:</p>
  <pre><code>@echo off
  echo Starting...
  :main
  REM node bot.js
  REM nodemon --delay 2500ms bot.js
  nodemon --delay 2500ms --ignore lib/package.json --exec npm start
  echo Restarting bot...
  goto main
  </code></pre>
  <p>That file, I launch and it will start the script &quot;start&quot; in package.json with the delay of 2500ms (before restarting when detecting changes), will ignore package.json (but doesn't)</p>
  <p>I expected that when the file is launched, it will start nodemon, ignoring package.json while versiony increases patch version (it does). However, right now, it increases version, but then I guess nodemon detects this new change and restarts, creating an infinite loop of restarting.</p>