nativescript
Version:
Command-line interface for building NativeScript projects
15 lines (11 loc) • 538 B
JavaScript
var path = require("path");
var child_process = require("child_process");
var commandArgs = [path.join(__dirname, "bin", "tns"), "dev-preuninstall"];
if (process.env.NS_CLI_PREUNINSTALL_ANALYTICS_LOG_FILE) {
commandArgs.push("--analyticsLogFile", process.env.NS_CLI_PREUNINSTALL_ANALYTICS_LOG_FILE);
}
var childProcess = child_process.spawn(process.execPath, commandArgs, { stdio: "inherit"})
childProcess.on("error", (err) => {
console.error(`Failed to complete all pre-uninstall steps. Error is ${err.message}`);
});
;