Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
efiago opened this issue May 12, 2023 · 1 comment
Open

Comments

@efiago
Copy link

efiago commented May 12, 2023

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
Copy link

ericchenshine commented Jun 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants