@flight-framework/cli 0.4.9 → 0.4.10
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 +17 -0
- package/dist/bin.js.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -1183,18 +1183,35 @@ 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);
|
|
1186
1187
|
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);
|
|
1187
1192
|
const outDir = options.outDir ?? config.build.outDir;
|
|
1188
1193
|
const sourcemap = options.sourcemap ?? config.build.sourcemap;
|
|
1189
1194
|
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);
|
|
1190
1198
|
consola3.log(`Output directory: ${outDir}`);
|
|
1191
1199
|
consola3.log(`Sourcemaps: ${sourcemap ? "enabled" : "disabled"}`);
|
|
1192
1200
|
consola3.log(`Minification: ${minify ? "enabled" : "disabled"}
|
|
1193
1201
|
`);
|
|
1194
1202
|
const bundler = config.bundler;
|
|
1203
|
+
console.log("[DEBUG CLI] bundler:", bundler ? "exists" : "null");
|
|
1204
|
+
console.log("[DEBUG CLI] bundler.build type:", typeof bundler?.build);
|
|
1195
1205
|
if (bundler && typeof bundler.build === "function") {
|
|
1196
1206
|
consola3.info(`Using bundler: ${bundler.name || bundler.bundler || "custom"}`);
|
|
1207
|
+
console.log("[DEBUG CLI] Calling bundler.build(config)...");
|
|
1197
1208
|
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);
|
|
1198
1215
|
if (!result.success) {
|
|
1199
1216
|
for (const error of result.errors) {
|
|
1200
1217
|
consola3.error(error.message);
|