Closed jtwebman closed 6 years ago
Aglio uses drafter-npm so that it will attempt to install the native module, however the native code is optional and if it fails to install it will use the JavaScript variant instead.
You can already disable the installation of the native module (Protagonist) by using npm install --no-optional
. No optional argument will skip attempting to install Protagonist. This allows Aglio to retain support of both, so that if Protagonist is desired (for performance reasons, as it is faster) it can still be used.
npm install --no-optional doesn't work unless you are install the tool globally. If the tool is part of your package how do you tell it to not install optionals?
Seems like drafter should have used peer dependency and not install the C++ one but if your project had it installed used it.
Using the full drafter means you have to compile the C++ all the time. We run micro services and this adds huge amounts of time to our build process. Not sure if you guys will take the change or not, let me know.