When publishing library with Yarn it ignores 'dist' folder
trekhleb opened this issue · comments
Oleksii Trekhleb commented
When yarn publish
is run it ignores dist folder and publishes package to npmjs.org without it. This happens because yarn take .gitignore file into consideration even if .npmignore file exists.
Expected behavior
When publishing with yarn publish
command the dist folder must be published as well.
Current workaround
Use npm version
and npm publish
instead.