#package with exposed "files" in package.json not working

1 messages · Page 1 of 1 (latest)

verbal dragon
#

I have a package in my workspace that is basically a static website and that will be used by another package, when I do js { "name": "my-static-site", "version": "1.0.0", "type": "module", "files": ["dist"], "exports": { "./dist": "./dist" } } but when I now in my consumer package do js import "my-static-site/dist" that does not recognize the /dist is this some known issue in bun? also would importing just the path work like this ```js
import "my-static-site/dist" with {type: "url"}

undone siren
#

the files key is just for when publishing to npm

#

and the exports needs to resolve to a file if you want to import it