I've run into a bit of an issue with integrating build steps for native modules written in other languages. In my case I'm working with Rust, but I think this applies to any compiled language other than C/C++. For example, here's an article about writing native modules in C# that came to a similar solution.
I see a few alternative solutions to integrating a third-party compiler into the build workflow. I'm mostly interested in getting to a mutual understanding about the recommended practice, but some of these options also suggest possible changes to the node/npm tooling.
Gyp actions let you call out to arbitrary external commands and specify their inputs and outputs so that they hook into the build flow. This almost sounds perfect, except for the fact that actions occur during the configure phase of node-g