trekhleb / angular-library-seed

🌾 Seed project for Angular libraries that are AOT/JIT compatible and that use external SCSS-styles and HTML-templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When publishing library with Yarn it ignores 'dist' folder

trekhleb opened this issue · comments

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.