While it may not be the standard approach, another option could be to utilize child_process
for executing it.
If you have Typings globally installed, you can try something like this:
var spawn = require("child_process").spawn;
var typings = spawn("typings", ["install"], { shell: true });
Alternatively, if you have it locally installed:
var spawn = require("child_process").spawn;
var typings = spawn("./node_modules/.bin/typings", ["install"], { shell: true });
It's advisable to refer to the child_process
documentation to understand how to redirect the output from stdout/stderr to your build script - without that, it might run quietly.