-
Notifications
You must be signed in to change notification settings - Fork 21
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
Access linked node dependencies in buildPhase #28
Comments
Probably this would be a good opportunity to resolve #5. |
So we do need a way to pass I would like to think that we can treat So I guess what I’m trying to say is that we want to treat them as separate sets, pass both into the |
You also need access to the normal Also here it can be made seen why splitting I think your approach is sensible in this regard, we'll just increase the build time by linking a separate set, but at least it will work. |
I guess we should add some kind of setup hook for this — which would make it transparent to the user and even configurable. Setting |
Also |
|
In
buildNodePackage
you can set a custombuildPhase
, but such abuildPhase
has no way of accessing thenode_modules
folder in which its dependencies are located, in fact this is only generated ininstallPhase
.Many node packages will however will need some of their
devDependencies
at build time, maybe to do CoffeScript transpilation using theirprepare
script or similar.Possible fixes:
NODE_PATH
pointing tonode_modules
. This environment variable seemingly is considered depreacated by now, but node'srequire
for example will check here for dependencies.node_modules
into the build directory — probably a huge nightmareThe text was updated successfully, but these errors were encountered: