title: custom npm package not found in my service
body: <p>There is a similar post here:</p>
  <p><a href="https://stackoverflow.com/questions/23018581/my-custom-npm-package-is-not-found">My custom NPM Package is not found</a>,</p>
  <p>but that did not resolve my issue.</p>
  <blockquote>
  <p>Could not find a declaration file for module '@dc_microurb/common'.
  '/Users//Projects/ticketing/auth/node_modules/@dc_microurb/common/build/index.js'
  implicitly has an 'any' type.   Try <code>npm install @types/dc_microurb__common</code> if it exists or add a new declaration
  (.d.ts) file containing `declare module '@dc_microurb/common';</p>
  </blockquote>
  <p>There is no <code>@types/dc_microurb__common</code> and I am unclear as to why it is suggesting to create a new <code>.d.ts</code> file, when that happens automatically during the build process.</p>
  <p>This is the package.json file inside my published package:</p>
  <pre><code>{
    &quot;name&quot;: &quot;@dc_microurb/common&quot;,
    &quot;version&quot;: &quot;1.0.5&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;./build/index.js&quot;,
    &quot;types&quot;: &quot;./build/index.d.ts&quot;,
    &quot;files&quot;: [
      &quot;./build/**/*&quot;
    ],
    &quot;scripts&quot;: {
      &quot;clean&quot;: &quot;del ./build&quot;,
      &quot;build&quot;: &quot;npm run clean &amp;&amp; tsc&quot;,
      &quot;pub&quot;: &quot;git add . &amp;&amp; git commit -m \&quot;Updates\&quot; &amp;&amp; npm version patch &amp;&amp; npm run build &amp;&amp; npm publish&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;devDependencies&quot;: {
      &quot;del-cli&quot;: &quot;^3.0.1&quot;,
      &quot;typescript&quot;: &quot;^4.0.5&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@types/cookie-session&quot;: &quot;^2.0.41&quot;,
      &quot;@types/express&quot;: &quot;^4.17.9&quot;,
      &quot;@types/jsonwebtoken&quot;: &quot;^8.5.0&quot;,
      &quot;cookie-session&quot;: &quot;^1.4.0&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;express-validator&quot;: &quot;^6.6.1&quot;,
      &quot;jsonwebtoken&quot;: &quot;^8.5.1&quot;
    }
  }
  </code></pre>
  <p>Anybody with experience in publishing packages on npm where TypeScript is involved? I am unclear as to why this package is not being found by my auth service when it is successfully installed inside that service.</p>
  <p>Did I mess up in the way I am exporting inside my <code>common/src/index.ts</code> file?</p>
  <pre><code>export * from './errors/bad-request-error';
  export * from './errors/custom-errors';
  export * from './errors/database-connection-error';
  export * from './errors/not-authorized-error';
  export * from './errors/not-found-error';
  export * from './errors/request-validation-error';
  
  export * from './middlewares/current-user';
  export * from './middlewares/error-handler';
  export * from './middlewares/require-auth';
  export * from './middlewares/validate-request';
  </code></pre>
  <p>Does it all have to be inside a <code>module.exports</code> instead?</p>