title: Pre Commit Hook fails
body: <p>I am using <strong>NestJs</strong> for my new project.</p>
  
  <p>I am adding all the files with this command.  <code>git add .</code></p>
  
  <p>when I commit after adding all the files husky prevents committing and shows me this error.</p>
  
  <p><strong>[path to the file]/.spec.ts' is not included in the project.</strong></p>
  
  <p>husky > pre-commit hook failed (add --no-verify to bypass)</p>
  
  <p>I implicitly added the file but It still throwing me that error.</p>
  
  <p>my tsconfig.json file </p>
  
  <pre><code>{
    "compilerOptions": {
      "module": "commonjs",
      "declaration": false,
      "noImplicitAny": false,
      "removeComments": true,
      "noLib": false,
      "allowSyntheticDefaultImports": true,
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "target": "es6",
      "sourceMap": true,
      "allowJs": true,
      "outDir": "./dist",
      "baseUrl": "./src",
      "lib": ["dom", "es2018", "esnext"]
    },
    "include": ["src/**/*"],
    "exclude": ["node_modules", "**/*.spec.ts"]
  }
  </code></pre>
  
  <p>and this is how I added husky commands in the package.json file</p>
  
  <pre><code> "scripts": {
      "lint": "tslint -p tsconfig.json -c tslint.json",
    },
  
  
  "husky": {
      "hooks": {
        "pre-commit": "lint-staged",
        "post-commit": "git push origin HEAD"
      }
    },
    "lint-staged": {
      "*.ts": [
        "tslint -p tsconfig.json -c tslint.json",
        "git add"
      ]
    },
  </code></pre>