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

151
Visualizações
script to convert git repo from npm to pnpm

I have many web projects with redundant dependencies, like build tools and their plugins (grunt, gulp, etc.), and I recently learned of pnpm which looks like it would be both faster and more storage efficient for me. I read around, finding a lot of blog posts on starting a new pnpm project or comparing it to npm, but nothing that specified the exact steps to convert a git repo from npm to pnpm. This is what I'm doing:

#!/usr/bin/env bash
pnpm import
git rm package-lock.json
rm -rf node_modules
pnpm install \
&& git add pnpm-lock.yaml package.json && git commit -m "convert to pnpm"

It works, but am I missing anything? I already found one project where a missing peer dependency caused pnpm install to fail, but I can pnpm add that and then complete the rest of the steps. I'm just not sure if I'm missing something, if I should retain the package-lock.json for some reason, or if I'm implicitly making a choice that will cause me problems later on.

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