Use pacote to fetch native modules

Fact: 8 out of 10 native node module packages published to npm are broken.
Actual fact: npm has a library called pacote that handles resolving the
package specifier you put in your dependencies to files on disk, and it's
actually really nice.

Change hak to use that library so now it's much simpler, handles
versions correctly and supports git / github etc. urls so we can
specify dependencies from git when a package author only publishes
half of the package to npm.
This commit is contained in:
David Baker
2021-07-16 23:38:04 +01:00
parent 45eb1252b6
commit ba0dd9e2a6
3 changed files with 432 additions and 2161 deletions
+424 -2097
View File
File diff suppressed because it is too large Load Diff