DEV Community

Discussion on: Exports in package.json

Collapse
 
emmiep profile image
Emmie Päivärinta

Do you mean having to maintain the "exports" field with a large number of exported files? It seems like you can use globbing for these fields, so you should be able to do something like

{
  "exports": {
    "./*": "./build/*.js"
  }
}
Enter fullscreen mode Exit fullscreen mode

I haven't tried it myself, but I hope that works for you.

Collapse
 
krutoo profile image
Dmitry Petrov

Thanks but how to provide type declarations with globe?