Git Product home page Git Product logo

Comments (3)

Andarist avatar Andarist commented on June 8, 2024

Would be interesting to see how others deal with it - I think babel, lerna, jest, rollup & others are bootstrapping their projects.

Actually I had no idea that this was also used here in source files, I had similar problem in other project which lead to my PR here, but I personally need this only for testing purposes - not for the source compilation, so it's generally not a problem for my projects. But I see how this is a problem for this one.

from param.macro.

haltcase avatar haltcase commented on June 8, 2024

Babel & lerna can do it because they're in a monorepo structure where a top level package.json contains dependencies that the lower level packages don't but can still access above. I'm not sure that jest tests itself, but the most interesting of those projects was rollup. It literally has a dev dependency on itself which I thought was disallowed.

Apparently, and I can't find this documented anywhere, while npm won't let you explicitly use npm install --save-dev current-package to add that dependency it won't actually do anything to prevent installing it if you just add the dep manually to your package.json and run a bare npm install.

Yarn on the other hand seems perfectly ok with simply adding a project to itself as a dev dependency, or even as a regular dependency with yarn add current-package.

That means it'd be a lot simpler to just have a dev dependency on the last version of param.macro. Guess we've been overcomplicating things 🤦‍♂️.

from param.macro.

haltcase avatar haltcase commented on June 8, 2024

Fixed in ddc63e7

The dev experience is already so much better!

from param.macro.

Related Issues (17)

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.