@flight-framework/cli 0.4.10 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +0 -17
- package/dist/bin.js.map +1 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -1183,35 +1183,18 @@ async function buildCommand(options) {
|
|
|
1183
1183
|
consola3.info("Building Flight project for production...\n");
|
|
1184
1184
|
try {
|
|
1185
1185
|
const root = resolve4(process.cwd());
|
|
1186
|
-
console.log("[DEBUG CLI] Root:", root);
|
|
1187
1186
|
const config = await loadConfig2(root);
|
|
1188
|
-
console.log("[DEBUG CLI] Config loaded");
|
|
1189
|
-
console.log("[DEBUG CLI] config.build.outDir:", config.build.outDir);
|
|
1190
|
-
console.log("[DEBUG CLI] config.bundler exists:", !!config.bundler);
|
|
1191
|
-
console.log("[DEBUG CLI] config.bundler.name:", config.bundler?.name);
|
|
1192
1187
|
const outDir = options.outDir ?? config.build.outDir;
|
|
1193
1188
|
const sourcemap = options.sourcemap ?? config.build.sourcemap;
|
|
1194
1189
|
const minify = options.minify ?? config.build.minify;
|
|
1195
|
-
console.log("[DEBUG CLI] Final outDir:", outDir);
|
|
1196
|
-
console.log("[DEBUG CLI] Final sourcemap:", sourcemap);
|
|
1197
|
-
console.log("[DEBUG CLI] Final minify:", minify);
|
|
1198
1190
|
consola3.log(`Output directory: ${outDir}`);
|
|
1199
1191
|
consola3.log(`Sourcemaps: ${sourcemap ? "enabled" : "disabled"}`);
|
|
1200
1192
|
consola3.log(`Minification: ${minify ? "enabled" : "disabled"}
|
|
1201
1193
|
`);
|
|
1202
1194
|
const bundler = config.bundler;
|
|
1203
|
-
console.log("[DEBUG CLI] bundler:", bundler ? "exists" : "null");
|
|
1204
|
-
console.log("[DEBUG CLI] bundler.build type:", typeof bundler?.build);
|
|
1205
1195
|
if (bundler && typeof bundler.build === "function") {
|
|
1206
1196
|
consola3.info(`Using bundler: ${bundler.name || bundler.bundler || "custom"}`);
|
|
1207
|
-
console.log("[DEBUG CLI] Calling bundler.build(config)...");
|
|
1208
1197
|
const result = await bundler.build(config);
|
|
1209
|
-
console.log("[DEBUG CLI] Build result received");
|
|
1210
|
-
console.log("[DEBUG CLI] result.success:", result.success);
|
|
1211
|
-
console.log("[DEBUG CLI] result.outDir:", result.outDir);
|
|
1212
|
-
console.log("[DEBUG CLI] result.files:", result.files?.length);
|
|
1213
|
-
console.log("[DEBUG CLI] result.files[0]:", JSON.stringify(result.files?.[0]));
|
|
1214
|
-
console.log("[DEBUG CLI] result.totalSize:", result.totalSize);
|
|
1215
1198
|
if (!result.success) {
|
|
1216
1199
|
for (const error of result.errors) {
|
|
1217
1200
|
consola3.error(error.message);
|