Warn on generated wrapper overwrites and status diagnostics (#90537)

Merged via squash.

Prepared head SHA: c6b6589e6d
Co-authored-by: TurboTheTurtle <35905412+TurboTheTurtle@users.noreply.github.com>
Co-authored-by: vincentkoc <25068+vincentkoc@users.noreply.github.com>
Reviewed-by: @vincentkoc
This commit is contained in:
Andy Ye
2026-06-22 22:39:20 -07:00
committed by GitHub
parent f66e83154b
commit ca2f4c0d67
15 changed files with 371 additions and 25 deletions

View File

@@ -156,6 +156,13 @@ export async function runNodeDaemonInstall(opts: NodeDaemonInstallOptions) {
}
},
});
const warn = (message: string) => {
if (json) {
warnings.push(message);
} else {
defaultRuntime.log(message);
}
};
await installDaemonServiceAndEmit({
serviceNoun: "Node",
@@ -167,6 +174,7 @@ export async function runNodeDaemonInstall(opts: NodeDaemonInstallOptions) {
await service.install({
env: process.env,
stdout,
warn,
programArguments,
workingDirectory,
environment,