fix(cli): fix starting Electron app (#729)

This commit is contained in:
Nathan Bierema 2021-06-10 22:00:00 -04:00 committed by GitHub
parent dbc08ab1b4
commit 457a201232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {