mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
cli: add NODE_RUN_PACKAGE_JSON_PATH env
PR-URL: https://github.com/nodejs/node/pull/53058 Refs: https://github.com/nodejs/node/issues/52673 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Daniel Lemire <daniel@lemire.me>
This commit is contained in:
1 parent
d03198712e
commit
2aaeaa863c
6 files changed
+38
-7
No files matched your search
@@ -23,7 +23,8 @@ using PositionalArgs = std::vector<std::string_view>;
|
||||
class ProcessRunner {
|
||||
public:
|
||||
ProcessRunner(std::shared_ptr<InitializationResultImpl> result,
|
||||
const std::string& script_name,
|
||||
std::string_view package_json_path,
|
||||
std::string_view script_name,
|
||||
std::string_view command_id,
|
||||
const PositionalArgs& positional_args);
|
||||
void Run();
|
||||
@@ -45,7 +46,9 @@ class ProcessRunner {
|
||||
// OnExit is the callback function that is called when the process exits.
|
||||
void OnExit(int64_t exit_status, int term_signal);
|
||||
void SetEnvironmentVariables(const std::string& bin_path,
|
||||
const std::string& script_name);
|
||||
std::string_view cwd,
|
||||
std::string_view package_json_path,
|
||||
std::string_view script_name);
|
||||
|
||||
#ifdef _WIN32
|
||||
std::string file_ = "cmd.exe";
|
||||
|
||||
Reference in new issue
Block a user