Previously dual-publish would overwrite the browser object field in package.json, thus important fields there would get lost and JS bundlers left confused. Now it appends to the browser object, as @ai proposed in https://github.com/ai/nanoid/issues/294
Previously
dual-publish
would overwrite thebrowser
object field in package.json, thus important fields there would get lost and JS bundlers left confused. Now it appends to thebrowser
object, as @ai proposed in https://github.com/ai/nanoid/issues/294Current
browser
field innanoid
:After this PR (tested with
npm link
andnode_modules/.bin/dual-publish --check
):