-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
napa + npm shrinkwrap incompatible? #20
Comments
Yes it is not compatible. It could be a bit more friendly if #18 is implemented but not sure if it would completely fix it. |
As first step, couldn't we just make napa ignored from |
How would we do that? |
I have no bloody idea lol :) I should have a look. It's quite interesting. ;) |
got bit by this too, shrinkwrap is a requirement at the current stage / size of the project I cannot afford to not have it... Looking for a workaround, any suggestions would be greatly appreciated. |
So since we have a no-go from NPM i guess the next sensible solution would be to have our own conf file (sorry for pressing, this is a pain in my production installs) |
napa.json would be the answer in my opinion. |
I'm looking into a way to get it to play nice with shrinkwrap. Hopefully we can get away with just adding a command |
You're right about another package manager. |
Yes indeed, even if we create a |
Does the solution to #22 also have an effect on this? If so, I think updating that key with the package names becomes a pretty important feature. |
@bjmiller Unfortunately it doesn't help with this issue as packages are reported extraneous even when put into |
I just ran into this myself. Any chance that a fix has been implemented or a workaround discovered? |
Soooooo... @shama what's the plan? |
The bad part? It pretty much changes the way napa works entirely. So, here's how it goes...
Saving it to UPDATE: Turns out, we wouldn't have to separate them into a i.e. clone into This method fixes #22 as well. |
Also, the decision to use |
Any news on this particular issue? |
upgrade to node 4.x+ and you won't be needing napa any more |
I am trying to implement shrinkwrap. Can someone help me understand what thanpolas is talking about. I tried googling for what he is talking about but his comment did not provide enough information to be useful. I would appreciate it. Thanks! |
I can't say what @thanpolas meant, but I can give a pessimistic word of warning. I had made pretty decent progress getting How are you going about implementing it? |
since i assume that a napa dependency is inherently more volatile than an npm dependency, i didn't bother trying to get napa to play nice with npm shrinkwrap. Instead i added support for a "directory" option in napa-config. Since I can now house my napa dependencies external to node_modules (napa_modules), I'm able to shrinkwrap npm dependencies. You can see the feature in my fork which needs tests written, so i haven't done a pull request. |
Good thinking. When used with webpack you could add |
@linkabi9 with node 4+ and onwards you can directly link github repos using npm thus rendering napa obsolete. |
@thanpolas You could do that before I believe; the issue comes into play when there is no package.json. Unless I'm mistaken. |
@thanpolas Are you referring to npm's ability to reference github repos in the shorthand (linkabi9/napa for example)? If so, the solution does not fulfill my requirements. napa allows me to include dependencies that are source controlled when they don't have a package.json. can you provide content? *edit: just saw we said the same thing @caseyWebb |
@caseyWebb i did the same thing to my webpack config. nice to know others think along the same lines. also happy that webpack supported this unique requirement with minimal effort. |
The text was updated successfully, but these errors were encountered: