-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
nodejs: Use more pure symlink builds #195
base: main
Are you sure you want to change the base?
Commits on Aug 12, 2022
-
nodejs builder: process package.json in-place
no need for package-json.bak, just put the original data aside in the JSON.
Configuration menu - View commit details
-
Copy full SHA for 209992f - Browse repository at this point
Copy the full SHA 209992fView commit details
Commits on Aug 26, 2022
-
dream-lock: change cyclic deps api
make it easier to implement cycle management
Configuration menu - View commit details
-
Copy full SHA for 27a80e5 - Browse repository at this point
Copy the full SHA 27a80e5View commit details -
nodejs builder: some script optimizations
- prevent bad permissions if possible - fix bad permissions with single chmod command - join multiple jq calls - make electron wrapping more readable
Configuration menu - View commit details
-
Copy full SHA for c8b3759 - Browse repository at this point
Copy the full SHA c8b3759View commit details -
nodejs builder: implement tree-of-symlinks
- works out-of-the-box, no node|tsc settings necessary - optimal use of storage, composable - handles cyclic dependencies by co-locating cycles in the same store path Changes: - build node_modules as a separate derivation, use everywhere - if main package has a build script, run it with dev modules and afterwards run install script if present, then switch to prod modules - only run build scripts when necessary, speedup - optionally add all transitive binaries to the node_modules/.bin - store binaries in bin/ NixOS standard location, and .bin should only be used for dependencies, not the main package - in a package, .bin is now a symlink to bin - in bin name, strip .js ending for string case - remove now-unnecessary code This builder requires all peer dependencies for packages to be mentioned and all transitive circular dependencies to be grouped
Configuration menu - View commit details
-
Copy full SHA for 3a170a1 - Browse repository at this point
Copy the full SHA 3a170a1View commit details -
nodejs: add package-lock v2 translator
- discovers peer dependencies correctly - adds metadata like os, dev and hasInstallScripts to sources
Configuration menu - View commit details
-
Copy full SHA for c71f38e - Browse repository at this point
Copy the full SHA c71f38eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95d5e5d - Browse repository at this point
Copy the full SHA 95d5e5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a5ff562 - Browse repository at this point
Copy the full SHA a5ff562View commit details -
Configuration menu - View commit details
-
Copy full SHA for a614201 - Browse repository at this point
Copy the full SHA a614201View commit details -
nodejs builder: process package.json in-place
no need for package-json.bak, just put the original data aside in the JSON.
Configuration menu - View commit details
-
Copy full SHA for 26595ea - Browse repository at this point
Copy the full SHA 26595eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ab2b21d - Browse repository at this point
Copy the full SHA ab2b21dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6719818 - Browse repository at this point
Copy the full SHA 6719818View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6c27fc - Browse repository at this point
Copy the full SHA a6c27fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81fc299 - Browse repository at this point
Copy the full SHA 81fc299View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4335130 - Browse repository at this point
Copy the full SHA 4335130View commit details -
Configuration menu - View commit details
-
Copy full SHA for d94d48f - Browse repository at this point
Copy the full SHA d94d48fView commit details