sc-prepare-next
v1.1.0
Published
Biblioteca TypeScript
Maintainers
Readme
sc-prepare-next
Small TypeScript helper that starts a Next.js development server from an Electron main process and adjusts exported renderer paths in packaged apps.
Requirements
- Node.js 22.12 or newer
- Electron 42–44
- Next.js 15.5.24 or 16.x
Installation
npm install sc-prepare-nextElectron and Next.js are peer dependencies and must be installed by the app.
Usage
import { prepareNext } from "sc-prepare-next";
await prepareNext("./src", 4444);The development server listens only on 127.0.0.1 and the promise resolves
after the port is ready.
Development
npm ci
npm test
npm run build
npm auditLicense
ISC
