Giter VIP home page Giter VIP logo

Comments (7)

shama avatar shama commented on June 13, 2024

The names of the actual projects would help. napa doesn't do anything fancy, it just git clones a repo. So if project A uses napa then it should have napa in it's install script or include the napa installed package in the published package.

from napa.

RichardMarks avatar RichardMarks commented on June 13, 2024

Both projects A and B are locally developed, their names are not relevant in this case.

In the package.json for project A, there is a script hook "postinstall": "napa"
and a "napa" section where I bring in my dependencies.

I then locally publish project A as an npm module using npm link

and then in the package.json for project B, I install my local npm module.

When that hits the "postinstall" script, project B fails to install project A, because it cannot find napa.

If I npm install napa in the project B directory, then project A will install into project B.

I do not want project B to have to know that it needs napa in order for project A to be installed.

from napa.

shama avatar shama commented on June 13, 2024

When that hits the "postinstall" script, project B fails to install project A, because it cannot find napa.

Is napa a dependency? If your package requires another to install, it will need to be a dependency of that project.

from napa.

linkabi9 avatar linkabi9 commented on June 13, 2024

@RichardMarks did you get this resolved? I want to do something similar and I'm wondering if I should avoid it. Did adding napa to the dependencies block of the Package A help?

from napa.

RichardMarks avatar RichardMarks commented on June 13, 2024

@linkabi9 No, I did not get this resolved, and no adding napa as a dependency does not help either.

from napa.

shama avatar shama commented on June 13, 2024

@RichardMarks @linkabi9 Here is an example: https://github.com/shama/napa-nested-deps

from napa.

linkabi9 avatar linkabi9 commented on June 13, 2024

great, i'll be able to use this while i build some in house front end widgets with pre-npm external dependencies. thanks!

from napa.

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.