How to copy the README.md file, inside an angular project before publishing it to npm

Discussão em 'Angular' iniciado por Raphaël Balet, Novembro 5, 2024.

  1. I've created a library with Angular libraries

    This is my pretty default project structure

    - README.md
    - package.json
    - angular.json
    - projects
    - my-project
    - ng-package.json
    - package.json


    When publishing my library over on npm, I do run ng build my-project --configuration production && npm publish ./dist/my-project

    It does correctly publish the library, but sadly, the README.md file isn't part of it.
    I know, I could copy it inside the my-project folder, but I'd prefer having only one unique README.md file.

    Also, I cannot delete the README.md from the root, as it will then be removed from the landing page of the GitHub repository.

    Continue reading...

Compartilhe esta Página