fix(cli): fix starting Electron app

This commit is contained in:
Nathan Bierema 2021-06-10 21:24:01 -04:00
parent ed25a72e99
commit 055ce36433

View File

@ -9,7 +9,7 @@ export default function openApp(app: boolean | string, options: Options) {
const port = options.port ? `--port=${options.port}` : ''; const port = options.port ? `--port=${options.port}` : '';
// eslint-disable-next-line @typescript-eslint/no-var-requires // eslint-disable-next-line @typescript-eslint/no-var-requires
spawn.sync(require('electron'), [ spawn.sync(require('electron'), [
path.join(__dirname, '..', 'app'), path.join(__dirname, '..', '..', 'app'),
port, port,
]); ]);
} catch (error) { } catch (error) {