GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.38k stars 84 forks source link

[fix][NPM] Add package.json to exports #52

Closed niedzielski closed 3 years ago

niedzielski commented 3 years ago

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.

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:

tomayac commented 3 years ago

Version 0.17.3 that includes this has just been released.

niedzielski commented 3 years ago

@tomayac, thanks for the fast turnaround. The new release appears to function as hoped. Take care!