I have a library folder located in the global node modules directory with a file named index.ts inside the library/src folder
//inside index.ts
export * from './components/button.component';
Now I am trying to import this into my angular-cli app
which has a tsconfig.ts file with "moduleResoulution": "node"
How can I properly import this as I keep getting an error 'cannot find module' when I try:
import * from 'library';
//Update
After some experimentation, I managed to get
import { ButtonComponent } from 'library/src/index'
working
but I would like to remove the src/index part