mirror of
https://github.com/SrIzan10/sern-cli.git
synced 2026-05-01 11:05:17 +00:00
chore: respect casing
This commit is contained in:
@@ -83,7 +83,7 @@ const CommandOnEndPlugin = (watching: boolean, watchCommand?: string) => {
|
||||
let currentProcess: ExecaChildProcess | null = null;
|
||||
|
||||
return {
|
||||
name: 'command-on-end',
|
||||
name: 'watchruncommand',
|
||||
setup(build: esbuild.PluginBuild) {
|
||||
build.onEnd((result) => {
|
||||
if (!watching || result.errors.length !== 0) return;
|
||||
@@ -115,7 +115,7 @@ const CommandOnEndPlugin = (watching: boolean, watchCommand?: string) => {
|
||||
currentProcess = execa(cmd, { stdio: 'inherit', shell: true });
|
||||
currentProcess.catch(error => {
|
||||
if (error.isCanceled) return;
|
||||
console.error(`[watch] Command execution error: ${error.message}`);
|
||||
console.error(`[watch] command execution error: ${error.message}`);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user