Giter VIP home page Giter VIP logo

Comments (6)

RobertAKARobin avatar RobertAKARobin commented on August 28, 2024

I am also experiencing this on npm 10.8.2.

from cli.

milaninfy avatar milaninfy commented on August 28, 2024

I believe it's not suppose to work like that, whatever git repo url provided in package.json that will be considered the packages. Based on what I can understand from the write up is that you want npm to recognize that there is a workspace package in git repository and you want to map @org/dep-y of your package.json to internal folder/workspace of git repository package.

I couldn't find any reference of this behaviour in documentation, could you please provide link to it if you are referring in npm doc ?

from cli.

ematipico avatar ematipico commented on August 28, 2024

As written at the beginning, if it's not a bug, then it's a limited behaviour in the functionality or the documentation.

The documentation explains how to link a package via GitHub, however if this package is inside a workspace, the documentation doesn't explain how I can do that. If I attempt to do it by following the documentation, an error is thrown.

from cli.

milaninfy avatar milaninfy commented on August 28, 2024

@ematipico As you mentioned Documentation does explain how to use package if that package is GitHub repository, however if a package resides inside a folder/directory within a repository, this behaviour is not supported as far as i know. You can only directly use GitHub repository as mentioned in the documentation.

from cli.

ematipico avatar ematipico commented on August 28, 2024

@milaninfy I understand and know that; however, you didn't tell me how to resolve this issue. Is the documentation outdated? Is it a bug in the package's resolution when using a git repository? Is it missing functionality that requires an RFC?

from cli.

milaninfy avatar milaninfy commented on August 28, 2024

Assigning P1 for now, We may need to check few things, However it might not be inline with this bug report but a different bug related to workspaces and git.

from cli.

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.