[npm] Allow to abort builds.

When there's a new change detected, there's no point in finishing the
previous build (when using the watch mode).

Bug: 393063467
Change-Id: I09a2bfc2d24aa02d8f07fb4141f73a6097d12569
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6429846
Reviewed-by: Nikolay Vitkov <[email protected]>
Auto-Submit: Benedikt Meurer <[email protected]>
Commit-Queue: Nikolay Vitkov <[email protected]>
Commit-Queue: Benedikt Meurer <[email protected]>
diff --git a/scripts/devtools_paths.js b/scripts/devtools_paths.js
index 1508bea..9795ae6 100644
--- a/scripts/devtools_paths.js
+++ b/scripts/devtools_paths.js
@@ -127,6 +127,14 @@
   return path.join(devtoolsRootPath(), 'node_modules');
 }
 
+function autoninjaExecutablePath() {
+  return path.join(thirdPartyPath(), 'depot_tools', 'autoninja');
+}
+
+function gnExecutablePath() {
+  return path.join(thirdPartyPath(), 'depot_tools', 'gn');
+}
+
 function stylelintExecutablePath() {
   return path.join(nodeModulesPath(), 'stylelint', 'bin', 'stylelint.js');
 }
@@ -164,9 +172,11 @@
 }
 
 module.exports = {
+  autoninjaExecutablePath,
   devtoolsRootPath,
   downloadedChromeBinaryPath,
   isInChromiumDirectory,
+  gnExecutablePath,
   litAnalyzerExecutablePath,
   mochaExecutablePath,
   nodeModulesPath,