title: Custom Typescript NPM Package Won't Generate Types
body: <p>I've got an npm package that I've built that's Typescript and for some reason when building, it's not generating type definition files and when I try to run it I get the classic <code>Could not find a declaration file for module...</code></p>
  
  <p>I've tried adding <code>types</code> and <code>typings</code> to package.json with no luck.</p>
  
  <p>package.json</p>
  
  <pre><code>{
    "name": "@org/mypackage",
    "version": "0.0.7",
    "description": "",
    "main": "index.js",
    "transform": {
      "^.+\\.(ts|tsx)?$": "&lt;rootDir&gt;/node_modules/babel-jest"
    },
    "scripts": {
      "build": "tsc"
    },
    "repository": {
      "type": "git",
      "url": "git+https://github.com/sample/sample.git"
    },
    "author": "Ken M",
    "license": "ISC",
    "bugs": {
      "url": "https://github.com/sample/sample/issues"
    },
    "homepage": "https://github.com/sample/sample#readme",
    "dependencies": {
      "@types/jest": "^24.0.13",
      "@types/node": "12.0.2",
      "@types/react": "16.8.17",
      "@types/react-dom": "16.8.4",
      "react": "^16.8.6",
      "react-dom": "^16.8.6",
      "react-scripts": "3.0.1",
      "tachyons": "^4.11.1"
    },
    "devDependencies": {
      "@babel/core": "^7.4.4",
      "@babel/preset-react": "^7.0.0",
      "@typescript-eslint/eslint-plugin": "^1.9.0",
      "@typescript-eslint/parser": "^1.9.0",
      "awesome-typescript-loader": "^5.2.1",
      "babel-jest": "^24.8.0",
      "babel-preset-react": "^6.24.1",
      "eslint": "^5.16.0",
      "eslint-config-prettier": "^4.3.0",
      "eslint-plugin-prettier": "^3.1.0",
      "prettier": "^1.17.1",
      "typescript": "^3.4.5"
    }
  }
  </code></pre>
  
  <p>tsconfig.json</p>
  
  <p>See tsconfig.json below. Adding <code>declaration: true</code> to it did not result in a file getting generated. For what it's worth, the <code>main: index.js</code> isn't getting generated either.</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "es5",
      "lib": ["dom", "dom.iterable", "esnext"],
      "allowJs": false,
      "skipLibCheck": true,
      "esModuleInterop": true,
      "allowSyntheticDefaultImports": true,
      "strict": true,
      "forceConsistentCasingInFileNames": true,
      "module": "esnext",
      "moduleResolution": "node",
      "resolveJsonModule": true,
      "outDir": "./dist",
      "jsx": "react",
      "declaration": true
    },
    "include": ["src/**/*"]
  }
  </code></pre>