3 ms·
This seems more like a stackoverflow type question, but... Set the "main" option in the library's package.json to a bundle or index file that exports the publi
by amk_ 10y ago
This seems more like a stackoverflow type question, but...
Set the "main" option in the library's package.json to a bundle or index file that exports the public interfaces to your library. Don't expose every source file.
- fetbaffe 10y agoThanks. Seems like most TypeScript projects creates as index.ts file that just exports whatever is needed and the the compiled index.js is exposed in the "main" option. And if I understand correctly that will give you a index.d.ts that you can refer in the "typings" option in package.json.