Git Product home page Git Product logo

Comments (2)

sindresorhus avatar sindresorhus commented on August 27, 2024

I could see the usefulness of something like this, but this one is a bit too opinionated and has a lot of incorrect statements*. I'd rather link to something more generic or include more tips inline in the Tips section.

*⬇️

https://github.com/voorhoede/npm-style-guide#use-save-exact-option

While this is a good idea as is, this makes it possible for different developers having different versions of the same package and making it harder to debug if there is inconsistency. Defining the save-exact option prevents this.

Incorrect... Pinning your dependencies only works on the top-level. Imagine you pin top-level dependency a which depends on b. If b does a buggy patch release you'll still get it, as a has not pinned its dependencies. The only way this can work is if the whole dependency tree have their dependencies pinned, which is totally unfeasible. The correct solution is to use ^ and use shrinkwrap or committing dependencies for safety.

from awesome-npm.

jbmoelker avatar jbmoelker commented on August 27, 2024

Fair enough. I understand the feedback. Shrinkwrap comes with its own issues, so that's why we're taking this approach. You are right it doesn't solve everything.

from awesome-npm.

Related Issues (12)

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.