title: How to prevent yarn from running a package.json script after add somthing in the devDependencies?
body: <p>If I run <code>yarn add &lt;dependency&gt; -D</code>, <code>yarn</code> will install the dependency AND run a task in my <code>package.json</code>. It'll run the <code>"start"</code> script.</p>
  
  <p>At first I was annoyed so I renamed <code>"start"</code> with something else, but now it'll run <code>"build"</code> after the <code>add</code> command...</p>
  
  <p>Is there a way to prevent yarn from running any command after <code>add</code> ?</p>
  
  <p>Here's my current scripts in <code>package.json</code> :</p>
  
  <pre><code>  "scripts": {
      "clean": "mkdir -p lib &amp;&amp; rm -r lib",
      "build": "yarn clean &amp;&amp; tsc",
      "test": "tsc &amp;&amp; mocha -c",
      "test:watch": "tsc-then -- mocha -c"
    }
  </code></pre>
  
  <p><strong>note</strong>: I opened an issue for those who are interested, as it seems to be specific to watchy^0.9.0 <a href="https://github.com/caseywebdev/watchy/issues/20" rel="nofollow noreferrer">@atom/watcher problem #20</a></p>