Coder Social home page Coder Social logo

Comments (8)

mbalabash avatar mbalabash commented on June 2, 2024

Hey @fraxken
Yes, I think you are right.
I tried npx pacote tarball github://github.com/mbalabash/estimo.git#v2.3.0 ./estimo-v2.3.0.tgz) and looks like it works well. I can try to prepare PR for it.

Am I right that we need to:

  1. change mergeDependencies.js to add dependency links with github: to customResolvers
  2. change depWalker.js to make it process github: links in the same way how it works now for git+ links

?

from scanner.

fraxken avatar fraxken commented on June 2, 2024

@mbalabash Yes that's right.

However i think mergeDependencies already add github: because of the RegEx (to confirm). However yes the walker was only designed for git+ what is not great in the light of what is possible.

I also wonder if i missed a case with git: (because i'v seen an example in the npm doc).

image

https://docs.npmjs.com/cli/v8/configuring-npm/package-json#dependencies

from scanner.

fraxken avatar fraxken commented on June 2, 2024

Note: UT are not very good around walker (and i have few cross-os issues to fix).

Also, think to setup an env NODE_SECURE_TOKEN with an npm access token (Otherwise you will be limited on the use of the npm registry).

https://docs.npmjs.com/creating-and-viewing-access-tokens

from scanner.

mbalabash avatar mbalabash commented on June 2, 2024

Yes, mergeDependencies.js already will add github: and git: links. I misread RegEx 😁
OK, then I will start working on PR. Probably will ask some more questions)

from scanner.

mbalabash avatar mbalabash commented on June 2, 2024

Opened PR

from scanner.

fraxken avatar fraxken commented on June 2, 2024

Thanks for the contribution @mbalabash.

from scanner.

fraxken avatar fraxken commented on June 2, 2024

@all-contributors please add @mbalabash for code

from scanner.

allcontributors avatar allcontributors commented on June 2, 2024

@fraxken

I've put up a pull request to add @mbalabash! 🎉

from scanner.

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.