Code Monkey home page Code Monkey logo

Comments (4)

macrozone avatar macrozone commented on June 26, 2024 1

@Kikobeats it can infer dependencies from sub dependencies, but using dependencies of dependencies without declaring that transitive dependency isn't a good practice anyway, it even leads to linting errors usually. Imaging if you update dependency A and it no longer declares dependency on B, but you require B. Now you will get an error.

Now, "plug & play" should replace the classic node_modules approach to fix some problems with it (size, slow start) and enables zero-install repositories. it also enforces stronger boundaries between dependencies, so that using dependencies of other dependencies without declaring them is not possible.

the reason why facebook will stay at v1 for the time beeing is because they have a ton of projects and some of them have custom built tools which sometimes rely on the node_modues folder. A famous one is react-native which needs node_modules, e.g. the generated xcode or android link their libraries from the node_modules folder.

from debug-logfmt.

Kikobeats avatar Kikobeats commented on June 26, 2024

then it's not missing, it's installed since it's a dependency of a dependency

https://github.com/nmccready/debug-fabulous/blob/master/package.json#L43

from debug-logfmt.

macrozone avatar macrozone commented on June 26, 2024

then it's not missing, it's installed since it's a dependency of a dependency

https://github.com/nmccready/debug-fabulous/blob/master/package.json#L43

that is the point. If you access indirect dependencies, you should list them in package.json: https://yarnpkg.com/advanced/migration#a-package-is-trying-to-access-another-package-

from debug-logfmt.

Kikobeats avatar Kikobeats commented on June 26, 2024

Definitely I'm not living in the edge and I have no idea how Yarn v2, but not sure how helpful is a package manager that can't infer dependencies from sub dependencies.

Probably because https://next.yarnpkg.com/features/pnp ?

Does this explain why some big players (like Facebook) to use Yarn v2 and stay at Yarn v1 aka "classic"?

Just asking with all the curiosity from a non regular yarn user

from debug-logfmt.

Related Issues (1)

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.