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