In a monorepo setup, is there a difference between exporting everything through a package.json exports
field vs exporting everything in the root index.ts
file?
// package.json
{
"exports": {
"./theme": "./src/theme.ts"
},
}
vs.
// src/index.ts
export { theme } from './theme.js