Update dependencies and scripts in adapter-electron for improved functionality

- Added `nodemon` and `wait-on` as dependencies in the electron example's package.json for better development experience.
- Updated the `dev` script to utilize `wait-on` for ensuring the Vite server is running before starting Electron.
- Enhanced the README.md with clearer instructions and examples for configuring the adapter and its options.
- Removed the `functions` option from the TypeScript definition to simplify the interface.
- Cleaned up unused imports in setupHandler.js to streamline the code.
This commit is contained in:
Luke Hagar
2025-07-23 23:24:00 -05:00
parent ef082c2acd
commit 19e195bc98
7 changed files with 394 additions and 118 deletions

View File

@@ -1,9 +1,8 @@
import fs from 'node:fs/promises';
import path from 'node:path';
import isDev from 'electron-is-dev';
import { protocol, net, dialog, app } from 'electron';
import { protocol, net, dialog } from 'electron';
import { pathToFileURL } from 'url';
import assert from 'node:assert';
import { parse as parseCookie, splitCookiesString } from 'set-cookie-parser';
import { serialize as serializeCookie } from 'cookie';