pruny 1.30.0 → 1.31.0
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/index.js +26 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16475,6 +16475,17 @@ function printDetailedReport(result) {
|
|
|
16475
16475
|
}
|
|
16476
16476
|
console.log("");
|
|
16477
16477
|
}
|
|
16478
|
+
if (result.missingAssets && result.missingAssets.total > 0) {
|
|
16479
|
+
console.log(source_default.yellow.bold(`⚠️ Missing Assets (Broken Links):
|
|
16480
|
+
`));
|
|
16481
|
+
for (const asset of result.missingAssets.assets) {
|
|
16482
|
+
console.log(source_default.red(` ${asset.path}`));
|
|
16483
|
+
for (const ref of asset.references) {
|
|
16484
|
+
console.log(source_default.dim(` → Referenced in: ${ref}`));
|
|
16485
|
+
}
|
|
16486
|
+
}
|
|
16487
|
+
console.log("");
|
|
16488
|
+
}
|
|
16478
16489
|
if (result.unusedServices && result.unusedServices.methods.length > 0) {
|
|
16479
16490
|
console.log(source_default.red.bold(`\uD83D\uDEE0️ Unused Service Methods:
|
|
16480
16491
|
`));
|
|
@@ -16496,10 +16507,11 @@ function countIssues(result) {
|
|
|
16496
16507
|
const unusedRoutes = result.routes.filter((r) => !r.used).length;
|
|
16497
16508
|
const partialRoutes = result.routes.filter((r) => r.used && r.unusedMethods.length > 0).length;
|
|
16498
16509
|
const unusedAssets = result.publicAssets ? result.publicAssets.unused : 0;
|
|
16510
|
+
const missingAssets = result.missingAssets ? result.missingAssets.total : 0;
|
|
16499
16511
|
const unusedFiles = result.unusedFiles ? result.unusedFiles.unused : 0;
|
|
16500
16512
|
const unusedExports = result.unusedExports ? result.unusedExports.unused : 0;
|
|
16501
16513
|
const unusedServices = result.unusedServices ? result.unusedServices.total : 0;
|
|
16502
|
-
return unusedRoutes + partialRoutes + unusedAssets + unusedFiles + unusedExports + unusedServices;
|
|
16514
|
+
return unusedRoutes + partialRoutes + unusedAssets + missingAssets + unusedFiles + unusedExports + unusedServices;
|
|
16503
16515
|
}
|
|
16504
16516
|
async function handleFixes(result, config, options, showBack) {
|
|
16505
16517
|
const gitRoot = findGitRoot(config.dir);
|
|
@@ -17102,6 +17114,19 @@ function printSummaryTable(result, context) {
|
|
|
17102
17114
|
}
|
|
17103
17115
|
}
|
|
17104
17116
|
printTable(summary);
|
|
17117
|
+
if (result.missingAssets && result.missingAssets.total > 0) {
|
|
17118
|
+
console.log(source_default.yellow.bold(`
|
|
17119
|
+
⚠ Missing Assets (Broken Links):
|
|
17120
|
+
`));
|
|
17121
|
+
for (const asset of result.missingAssets.assets) {
|
|
17122
|
+
console.log(source_default.red(` ✗ ${asset.path}`));
|
|
17123
|
+
for (const ref of asset.references) {
|
|
17124
|
+
console.log(source_default.dim(` → Referenced in: ${ref}`));
|
|
17125
|
+
}
|
|
17126
|
+
}
|
|
17127
|
+
console.log(source_default.yellow(`
|
|
17128
|
+
These files are referenced in code but don't exist. Update the links or create the files.`));
|
|
17129
|
+
}
|
|
17105
17130
|
}
|
|
17106
17131
|
function printConsolidatedTable(allResults) {
|
|
17107
17132
|
console.log(source_default.bold(`\uD83D\uDCCA Monorepo Summary
|