title: Use jQuery in a custom Angular 6+ library
body: <p><strong>EDIT2</strong><br>
  I get the feeling my approach to write an independent angular library for others to use is wrong?<br>
  My first thought was writing a npm module but it has to be private and cant be published - would that work / be easy?<br>
  Is my approach wrong?</p>
  
  <p><strong>How do I use jQuery in my Angular 6+ library?</strong></p>
  
  <p>I created a library with</p>
  
  <pre><code>ng generate library nodeeditor --prefix=lib
  </code></pre>
  
  <p>Then added a jQuery npm module to it with</p>
  
  <pre><code>cd projects/nodeeditor    
  npm i --save jquery
  </code></pre>
  
  <p>But when stating </p>
  
  <pre><code>import * as jQuery from 'jquery/dist/jquery.min.js'
  </code></pre>
  
  <p>in nodeeditor.component.ts
  (as I did in Angular projects only when absoloutely necessary)</p>
  
  <pre><code>ng build nodeeditor
  </code></pre>
  
  <p>gives me</p>
  
  <blockquote>
    <p>BUILD ERROR Cannot call a namespace ('jQuery')</p>
  </blockquote>
  
  <p>Anyone got any idea?  </p>
  
  <p><strong>EDIT1</strong><br>
  Generated folder structure looks like this</p>
  
  <p><a href="https://i.stack.imgur.com/LiMSA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LiMSA.png" alt="angular library folder structure"></a></p>