1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.reactCra = void 0;
|
4 | const builder_util_1 = require("builder-util");
|
5 | const fs_1 = require("builder-util/out/fs");
|
6 | const path = require("path");
|
7 |
|
8 | async function reactCra(projectDir) {
|
9 | if ((await (0, fs_1.statOrNull)(path.join(projectDir, "public", "electron.js"))) == null) {
|
10 |
|
11 | builder_util_1.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");
|
12 | }
|
13 | return {
|
14 | directories: {
|
15 | buildResources: "assets",
|
16 | },
|
17 | files: ["build/**/*"],
|
18 | extraMetadata: {
|
19 | main: "build/electron.js",
|
20 | },
|
21 | };
|
22 | }
|
23 | exports.reactCra = reactCra;
|
24 |
|
\ | No newline at end of file |