Giter Club home page Giter Club logo

Comments (11)

rxaviers avatar rxaviers commented on July 1, 2024

Thanks for filing this issue. I'd like to understand your concern in a little more detail please. Note this is only needed/used on development. Is it about installation time or runtime? Thanks

from async-pool.

anselmstordeur avatar anselmstordeur commented on July 1, 2024

If it is only used in development you could just install it as an devDependency. It is currently installed as a normal dependency and gets installed by default if someone depends on tiny-async-pool.

The problem I have is git specific, but I don't want to use git for npm module resolution. If I install tiny-async-pool npm tries to install assertion module from your GitHub account (using git). This is uneccesary.

I work with Docker and try to keep my Images as small as possible so I don't want to install git if it is not necessary.

from async-pool.

anselmstordeur avatar anselmstordeur commented on July 1, 2024

Is is only about installation

from async-pool.

rxaviers avatar rxaviers commented on July 1, 2024

Thanks for the clarification, I understand your problem now. On each deployed server, you run npm install and installing the extra assertion module from github impacts your install time.

Why can't we make assertion a devDependency? Because, it's an actual dependency (that can be avoided user's staging/production environment). Note the difference between user's dependencies (i.e., dependencies) and async-pool development dependencies (i.e., devDependencies, e.g., mocha).

Why can't we use node's internal assert? Because what I have in assertion is actually a higher level abstraction. If we change assertion to use node's internal assert under the hoods we would still need to install it.

What can we do? I assume your application has dozen other dependencies and the problem is that assertion comes from github instead of npm. Would publishing assertion in npm (as regular package) instead of relying on github solve your problem?

Thanks

from async-pool.

anselmstordeur avatar anselmstordeur commented on July 1, 2024

Publishing assertion would be great and would solve my problem, but you would have to change the package name, because assertion is already used by another package.

from async-pool.

rxaviers avatar rxaviers commented on July 1, 2024

Done, that module was named yaassertion. New version released 1.0.2.

Fixed by ad1489a

from async-pool.

rxaviers avatar rxaviers commented on July 1, 2024

Please, let me know if you find any problems

from async-pool.

anselmstordeur avatar anselmstordeur commented on July 1, 2024

Thank you.

from async-pool.

anselmstordeur avatar anselmstordeur commented on July 1, 2024

The package yaasertion is not published on npm. [email protected] cannot be installed....

from async-pool.

rxaviers avatar rxaviers commented on July 1, 2024

My bad, I published to a wrong npm registry. Re-did it now https://www.npmjs.com/package/yaassertion, please can you check?

from async-pool.

anselmstordeur avatar anselmstordeur commented on July 1, 2024

Now it works. Thank you.

from async-pool.

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.