1Conan / node

Node.js for jailbroken (soon non jbed) iOS (with linux building)
https://nodejs.org
Other
1 stars 2 forks source link

modules: search modules in @PREFIX@/share/nodejs #1

Open asdfugil opened 2 years ago

asdfugil commented 2 years ago

on Procursus, modules should also be searched at @MEMO_PREFIX@@MEMO_SUB_PREFIX@/share/nodejs, much like Debian searching for node modules at /usr/share/nodejs.

This is required in packaging node packages as deb packages without making each package has their own node_modules.

asdfugil commented 2 years ago

patch the lines around here: https://github.com/1Conan/node/blob/28e142599d8020c50807dd76e060b233ed0b7afb/src/node_native_module.cc#L79