prunify 0.1.4 → 0.1.5
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/cli.cjs +8 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +8 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1342,7 +1342,10 @@ async function main(opts) {
|
|
|
1342
1342
|
);
|
|
1343
1343
|
if (result.report) {
|
|
1344
1344
|
deadReportFile = "dead-code.txt";
|
|
1345
|
-
|
|
1345
|
+
const banner = `prunify ${PKG_VERSION} \u2014 ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
1346
|
+
|
|
1347
|
+
`;
|
|
1348
|
+
writeReport(reportsDir, deadReportFile, banner + result.report);
|
|
1346
1349
|
}
|
|
1347
1350
|
}
|
|
1348
1351
|
if (modules.includes("dupes")) {
|
|
@@ -1376,7 +1379,10 @@ async function main(opts) {
|
|
|
1376
1379
|
cycleLines.push(` \u21BB ${rel(cycle[0])} (back to start)`);
|
|
1377
1380
|
cycleLines.push("");
|
|
1378
1381
|
}
|
|
1379
|
-
|
|
1382
|
+
const banner = `prunify ${PKG_VERSION} \u2014 ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
1383
|
+
|
|
1384
|
+
`;
|
|
1385
|
+
writeReport(reportsDir, circularReportFile, banner + cycleLines.join("\n"));
|
|
1380
1386
|
}
|
|
1381
1387
|
}
|
|
1382
1388
|
if (modules.includes("deps")) {
|