mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
905ab3e9ec
commit
c5cfdd4849
15 files changed
+404
-189
No files matched your search
+5
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user