import { log, statOrNull } from "builder-util" import * as path from "path" import { Configuration } from "../configuration" /** @internal */ export async function reactCra(projectDir: string): Promise { if ((await statOrNull(path.join(projectDir, "public", "electron.js"))) == null) { // noinspection SpellCheckingInspection log.warn("public/electron.js not found. Please see https://medium.com/@kitze/%EF%B8%8F-from-react-to-an-electron-app-ready-for-production-a0468ecb1da3") } return { directories: { buildResources: "assets", }, files: ["build/**/*"], extraMetadata: { main: "build/electron.js", }, } }