Git Product home page Git Product logo

Comments (3)

pdcastro avatar pdcastro commented on August 26, 2024

Note: I only tested it with npm v6 (6.14.12), not npm v7.

from caxa.

leafac avatar leafac commented on August 26, 2024

Thanks for reaching out!

Hmmm, so it seems that npm dedupe --production only works in more recent versions of npm. What this command does is remove duplications and remove development dependencies. All in one command—cool stuff.

The caxa v1 way was incorrect, anyway: running npm dedupe would undo the work of npm prune --production, reinstalling the development dependencies. At least that’s what happens npm 7.10.0.

Here’s what you can do in your version of npm:

  1. Use --no-dedupe to prevent caxa from running npm dedupe --production.
  2. Use --prepare-command to run whatever commands you want from within the build directory before it’s packaged. You may use something like --prepare-command 'npm prune --production', for example.

Moving forward I think that people will be updating to more recent versions of npm and until they do this workaround seems pretty usable, so I think caxa will remain as it is and I’m closing the issue. If you disagree, please let me know! 😀

I’m looking forward to having balena CLI using caxa, please let me know how it goes and if there’s anything I can do on my side to help y’all out.

from caxa.

leafac avatar leafac commented on August 26, 2024

which I suspect may have been an accident / mistake -- was it?

No, it wasn’t 😀 https://youtu.be/XeTPAxYsT5w

from caxa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.