-
-
Notifications
You must be signed in to change notification settings - Fork 709
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
Remove the custom node-capnp import logic. #3413
base: master
Are you sure you want to change the base?
Conversation
This removes the custom logic to import node-capnp, and instead installs deps/node-capnp as an npm dependency of the shell directly. To make this work, we also need to get the schema into meteor's node_modules, so we create a package for those too.
sandstorm-io/sandstorm#3413 removes the need for this (and I seriously doubt anyone else is using our ekam rule).
Looks like on my system it was picking up the system capnp; will have to do a bit more fiddling to get it to use the in-tree one. Marking this as a draft for now. |
Does this mean that the module gets built against the installed version of libcapnp, rather than the one built in-tree? |
See my comment above: yes, but that was not my intent, which is why this is marked as a draft. |
lol I can't read |
...rather than letting npm build it again (and possibly link against the wrong capnp).
...via an environment variable. I'm using this in: sandstorm-io/sandstorm#3413 to avoid building the module twice.
With sandstorm-io/sandstorm#3413, this will no longer be needed.
Alright, I've gotten it to use the in-tree capnp now (and only build capnp.node once). This required changes in node-capnp's repo, so capnproto/node-capnp#65 will have to be merged for this to work. |
I'll hold on the update to node-capnp being merged, and then I'll mark this ready for review. |
This removes the custom logic to import node-capnp, and instead
installs deps/node-capnp as an npm dependency of the shell directly.
To make this work, we also need to get the schema into meteor's
node_modules, so we create a package for those too.
No functional change, just cleans up one of the gnarly bits of our build system.
I also have a local change to node-capnp that skips creating the extra node_modules directory. When this lands I'll send a PR for that too.