Level / classic-level

An abstract-level database backed by LevelDB.
MIT License
58 stars 11 forks source link

Specify a custom prebuilds location #57

Closed Azarattum closed 7 months ago

Azarattum commented 1 year ago

My application is bundled for production use without node_modules installed. Currently classic-level looks for the binaries either in node_modules or in ./prebuilds (as far as I know). It would be nice to be able to specify a custom path upon initialization (e.g. as a config option).

vweevers commented 1 year ago

That's possible if we lazily require() the binding. But I'm not sure it's worth it, because an (IMO) reasonable workaround already exists (copying to ./node_modules/classic-level/prebuilds or to ./prebuilds). Either way the prebuilds have to live somewhere on disk, so why not there?

vweevers commented 1 year ago

Relevant: https://github.com/prebuild/prebuildify/issues/57