title: Husky hooks not running in Lerna monorepo
body: <p>I am working on a MonoRepo and one of the last things I am trying to automate is all my linting/formatting on code commits.</p>
  <p>Currently I have most of my config in the root folder and I am extending them into the packages. If I run <code>npm run precommit</code> in the <em>root directory</em> I can see my packages being linted successfully.</p>
  <p>The problem occurs when I stage and commit the code, <strong>husky hooks do not run</strong> and the commit goes through without following checks successfully</p>
  <p><strong>Folder Structure</strong></p>
  <pre><code>- packages
    - bar/
      - dist
      - src
      package.json
      tsconfig.json
    - foo/
      - dist
      - src
      package.json
      tsconfig.json
  .eslintrc
  .prettierrc
  package.json
  tsconfig.json
  </code></pre>
  <p><strong>Root Package.json</strong></p>
  <pre><code>{
    &quot;scripts&quot;: {
      &quot;precommit:bar&quot;: &quot;cd packages/bar &amp;&amp; npm run precommit&quot;,
      &quot;precommit:foo&quot;: &quot;cd packages/foo &amp;&amp; npm run precommit&quot;,
      &quot;precommit&quot;: &quot;npm-run-all precommit:*&quot;
    },
    &quot;husky&quot;: {
      &quot;hooks&quot;: {
        &quot;pre-commit&quot;: &quot;npm run precommit&quot;
      }
    },
    &quot;lint-staged&quot;: {
      &quot;**/*.{ts,tsx}&quot;: [
        &quot;eslint --fix&quot;,
        &quot;prettier --write&quot;
      ]
    }
  }
  </code></pre>
  <p>Inside each of the packages there is this script</p>
  <pre><code>&quot;script&quot;: {
     &quot;precommit&quot;: &quot;lint-staged&quot;
  }
  </code></pre>