src: rewrite task runner in c++

PR-URL: https://github.com/nodejs/node/pull/52609
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
This commit is contained in:
Yagiz Nizipli authored and GitHub committed 2024-05-02 19:54:02 +00:00
1 parent 905ab3e9ec
commit c5cfdd4849
15 files changed
+404 -189

No files matched your search

+5 -4
View File
@@ -566,10 +566,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
"process V8 profiler output generated using --prof",
&EnvironmentOptions::prof_process);
// Options after --prof-process are passed through to the prof processor.
AddAlias("--prof-process", { "--prof-process", "--" });
AddOption("--run",
"Run a script specified in package.json",
&EnvironmentOptions::run);
AddAlias("--prof-process", {"--prof-process", "--"});
#if HAVE_INSPECTOR
AddOption("--cpu-prof",
"Start the V8 CPU profiler on start up, and write the CPU profile "
@@ -1069,6 +1066,10 @@ PerProcessOptionsParser::PerProcessOptionsParser(
"Generate a blob that can be embedded into the single executable "
"application",
&PerProcessOptions::experimental_sea_config);
AddOption("--run",
"Run a script specified in package.json",
&PerProcessOptions::run);
}
inline std::string RemoveBrackets(const std::string& host) {