Skip to content

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

@efiago

Description

@efiago

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions