Prebuild v13 accidentally removed support for node-ninja and nw-gyp, possible next steps
lovell opened this issue · comments
Lovell Fuller commented
In moving to take advantage of the Promise-based API provided by node-gyp
v10 in #316, we inadvertently broke the use of alternative "backends" (i.e. forks of node-gyp
), namely node-ninja
and nw-gyp
, which still rely on callbacks.
Some possible options (there will be others):
- Include an implicit mapping for each "backend" to determine if we need to "promisify" them.
- Add a new, explicit
--backend-uses-callbacks
option that does what it says on the tin. - Move
node-ninja
andnw-gyp
to optional peer dependencies and assume they will always use callbacks.
Thoughts/alternatives welcome, especially if you help maintain an open source package that depends on the node-ninja
or nw-gyp
forks.