dhoulb / multi-semantic-release

Proof of concept that wraps semantic-release to work with monorepos.
BSD Zero Clause License
200 stars 37 forks source link

@semantic-release/npm does not publish the content of the dist directory #143

Open efiago opened 1 year ago

efiago commented 1 year ago

I have this configuration applied in the .release.json : [ "@semantic-release/npm", { "pkgRoot": "./dist" } ]

The package is being published with the content of the src instead of the dist as I indicate, this with semantic-release worked for me, as a temporary solution I had to add "files": ["dist"] in the package.json of the specific package but this makes it include the directory dist in the package, not just its content as before.

npm: '9.5.0', node: '18.15.0' multi-semantic-release: '3.0.2'

ericchenshine commented 1 year ago

I got the same issue when using multi-semantic-release to publish the angular lib projects. The current workaround is to delete projects dir in the pipeline and copy dist/* dir to projects before running the semantic release.