-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
MAINT Improvements to node and file_packager invocations #1600
MAINT Improvements to node and file_packager invocations #1600
Conversation
+1 for the standardizing the
I don't think that's an ideal solution.
Wouldn't setting |
It works in any folder below the folder with the node_modules. |
But I agree a different solution may well be preferable. |
According to my tests, setting |
I could live with a symlink of BTW, it might be good to upload what we have now to NPM and mark it as alpha or similar; that would also constrain how we can organize files to some extent. |
Yeah I was a bit disappointed that node doesn't have a solution to this. I think they are really assuming that It is possible to give full paths like |
Okay I'm going to merge this, if we find some better way of dealing with |
This PR does two things:
package.json
into the root directory. Why? We are usingnpx
from theMakefile
which is executing usually under the root directory. If we installnode_modules
insrc/js
then these invocations don't seenode_modules
and install an extra copy of the packages. So we wantnode_modules
in the root directory. node wants to putnode_modules
in the same directory aspackage.json
hence I movedpackage.json
. I also updated the build rules so that any recipe that usesnpx
has a dependency onnode_modules/.installed
.file_packager.py
from both the Makefile (in two places) and frombuild_pkg
. There has been some drift in which options are applied in the two places. I extracted the common options and the task of locating thefile_packager.py
script intotools/file_packager.sh
. I also shortened the make rules fordistutils.data
andtest.data
and made some minor updates to the dev docs aboutfile_packager.py
.