title: Export multiple modules from NPM package
body: <p>I have a rather large project A using Node and Typescript. In project A I have a lot of different modules that I would like to reuse in another project B.</p>
  
  <p>Therefore I have built the project A with this tsconfig.json: </p>
  
  <pre><code>{
      "compilerOptions": {
          "target": "es2017",
          "module": "commonjs",
          "declaration": true,
          "outDir": "./dist",
          "sourceMap": true,
          "strict": true,
          "noImplicitAny": true,
          "strictNullChecks": true,
          "typeRoots": ["./node_modules/@types", "./modules/@types"]
      },
      "exclude": ["node_modules"]
  }
  </code></pre>
  
  <p>So all the files are built into the /dist folder this way: </p>
  
  <ul>
  <li>dist
  
  <ul>
  <li>moduleA.js</li>
  <li>moduleA.map</li>
  <li>moduleA.d.ts</li>
  <li>moduleB.js</li>
  <li>moduleB.map</li>
  <li>moduleB.d.ts</li>
  <li>....</li>
  </ul></li>
  </ul>
  
  <p>To use these moduleA and moduleB in another project, I add the following to the package.json in Project A: </p>
  
  <pre><code>    "name": "projectA",
      "version": "1.0.0",
      "description": "...",
      "main": "dist/moduleA.js",
      "typings": "dist/moduleA.d.ts",
  </code></pre>
  
  <p>I use yarn workspaces to access Project A as a package in Project B. But problem is that I can only access moduleA, when using <code>import {ModuleA} from 'projectA'</code> in my new project B? So how can I access more modules from ProjectA?</p>