Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix][NPM] Add package.json to exports
Update package.json exports to include package.json. Why package.json needs to export itself, I cannot say but it fixes the following Svelte rollup.js plugin warning: [rollup-plugin-svelte] The following packages did not export their `package.json` file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file. - browser-fs-access I've verified locally using `npm link` that the warning no longer occurs with this change in my Svelte project. I _believe_ the otherwise preexisting exports behavior is preserved. References: - [Official documentation](https://nodejs.org/api/packages.html#packages_exports) and [much more useful documentation with examples from the proposal](https://github.com/jkrems/proposal-pkg-exports) - [Similar issue for a different package](sveltejs/svelte#5659) and [its resolution](https://unpkg.com/svelte@3.29.6/package.json)
- Loading branch information