[Electron] Different $PATH value from prod to dev mode

Hi,
I’m dealing with the $PATH (to know if a command is exists). To check the issue, I’m running

console.log(execSync('echo $PATH').toString());

I’m getting different results when I run the app in dev mode (electron .) and prod mode (I pack the app and run it)

The $PATH in dev mode is way longer than the $PATH in prod mode.
When I run echo $PATH in the terminal (default or iTerm2) I’m getting the results as the dev mode.

I hope it’s clear enough.

Thanks