Fix launching electron app using CLI (#1319)

This commit is contained in:
Nathan Bierema 2023-01-08 13:59:58 -05:00 committed by GitHub
parent 248aa98c0b
commit c9293470ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ export default async function openApp(app: true | string, options: Options) {
try {
const port = options.port ? `--port=${options.port}` : '';
// eslint-disable-next-line @typescript-eslint/no-var-requires
spawn.sync(require('electron') as string, [
spawn(require('electron') as string, [
path.join(
path.dirname(fileURLToPath(import.meta.url)),
'..',