Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

118
Visualizações
Is there a way to ignore specific changelog md file on npm publish?

I have an npm package where during ci/cd pipeline two changelog files are generated before the publish: CHANGELOG.md and CHANGELOG_INTERNAL.md First one goes to npm package normally, the second is meant for internal usage and shows some extra refactor and ci changes. Npm docs say that

The following paths and files are never ignored, so adding them to .npmignore is pointless:

package.json, README (and its variants), CHANGELOG (and its variants),LICENSE / LICENCE

Reference: https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html

Question: Can I somehow make my CHANGELOG_INTERNAL.md not to go to package on publish (preferably using package.json)? And is there any logic for changelog file name that will prevent it from publishing? (cause CHANGELOG (and its variants) definition seems a bit vague)

Update: After some testing using npm pack command, I found that putting CHANGELOG_INTERNAL.md inside .npmignore helps to resolve the issue. Which is a bit weird taking into account the rule, where CHANGELOG (and its variants) are never ignored.

Reference: https://docs.npmjs.com/cli/v8/using-npm/developers#keeping-files-out-of-your-package

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda