main funcions fixes

This commit is contained in:
2025-09-29 22:06:11 +09:00
parent 40e016e128
commit c8c3274527
7995 changed files with 1517998 additions and 1057 deletions

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,23 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reactCra = reactCra;
const builder_util_1 = require("builder-util");
const builder_util_2 = require("builder-util");
const path = require("path");
/** @internal */
async function reactCra(projectDir) {
if ((await (0, builder_util_2.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",
},
};
}
//# sourceMappingURL=rectCra.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"rectCra.js","sourceRoot":"","sources":["../../src/presets/rectCra.ts"],"names":[],"mappings":";;AAMA,4BAeC;AArBD,+CAAkC;AAClC,+CAAyC;AACzC,6BAA4B;AAG5B,gBAAgB;AACT,KAAK,UAAU,QAAQ,CAAC,UAAkB;IAC/C,IAAI,CAAC,MAAM,IAAA,yBAAU,EAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;QAC/E,uCAAuC;QACvC,kBAAG,CAAC,IAAI,CAAC,8IAA8I,CAAC,CAAA;IAC1J,CAAC;IAED,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,QAAQ;SACzB;QACD,KAAK,EAAE,CAAC,YAAY,CAAC;QACrB,aAAa,EAAE;YACb,IAAI,EAAE,mBAAmB;SAC1B;KACF,CAAA;AACH,CAAC","sourcesContent":["import { log } from \"builder-util\"\nimport { statOrNull } from \"builder-util\"\nimport * as path from \"path\"\nimport { Configuration } from \"../configuration\"\n\n/** @internal */\nexport async function reactCra(projectDir: string): Promise<Configuration> {\n if ((await statOrNull(path.join(projectDir, \"public\", \"electron.js\"))) == null) {\n // noinspection SpellCheckingInspection\n 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\")\n }\n\n return {\n directories: {\n buildResources: \"assets\",\n },\n files: [\"build/**/*\"],\n extraMetadata: {\n main: \"build/electron.js\",\n },\n }\n}\n"]}