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 { try {
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') as string, [ spawn(require('electron') as string, [
path.join( path.join(
path.dirname(fileURLToPath(import.meta.url)), path.dirname(fileURLToPath(import.meta.url)),
'..', '..',