title: Electron opening multiple windows package.json tweak
body: <p>Here's my script in <code>package.json</code> file. It's opening multiple electron windows for some reason. How do i fix this ?</p>
  
  <pre><code>"startRender": "cross-env BROWSER=none npm run react-start",
  "startElectron": "concurrently \"tsc ./electron/electron.ts -w\"  \"nodemon --exec 'wait-on http://localhost:3000 &amp;&amp; electron electron/electron.js'\"",
  "start": "concurrently \"npm run startElectron\"   \"npm run startRender\""
  </code></pre>
  
  <p>My project folder structure is like this : </p>
  
  <pre><code>.
  ├── electron
  │   ├── electron.js
  │   ├── electron.ts
  │   ├── ipcEvents.js
  │   ├── ipcEvents.ts
  │   ├── messageSender.ts
  │   ├── socketEvents.js
  │   ├── socketEvents.ts
  │   ├── Utils.ts
  │   ├── windowEvents.js
  │   └── windowEvents.ts
  ├── node_modules
  ├── package.json
  ├── package-lock.json
  ├── public
  │   ├── favicon.ico
  │   ├── index.html
  │   └── manifest.json
  ├── src
  │   ├── App.tsx
  │   ├── index.css
  │   ├── index.tsx
  │   ├── react-app-env.d.ts
  │   └── serviceWorker.ts
  ├── tsconfig.json
  </code></pre>