pruny 1.8.0 → 1.9.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 +19 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9356,9 +9356,10 @@ async function scanUnusedExports(config) {
|
|
|
9356
9356
|
for (const file of allFiles) {
|
|
9357
9357
|
try {
|
|
9358
9358
|
processedFiles++;
|
|
9359
|
-
if (processedFiles %
|
|
9359
|
+
if (processedFiles % 10 === 0 || processedFiles === allFiles.length) {
|
|
9360
9360
|
const percent = Math.round(processedFiles / allFiles.length * 100);
|
|
9361
|
-
|
|
9361
|
+
const shortFile = file.length > 50 ? "..." + file.slice(-47) : file;
|
|
9362
|
+
process.stdout.write(`\r Progress: ${processedFiles}/${allFiles.length} (${percent}%) - ${shortFile}${" ".repeat(10)}`);
|
|
9362
9363
|
}
|
|
9363
9364
|
const content = readFileSync3(join3(cwd, file), "utf-8");
|
|
9364
9365
|
totalContents.set(file, content);
|
|
@@ -9700,7 +9701,22 @@ var DEFAULT_CONFIG = {
|
|
|
9700
9701
|
dir: "./",
|
|
9701
9702
|
ignore: {
|
|
9702
9703
|
routes: [],
|
|
9703
|
-
folders: [
|
|
9704
|
+
folders: [
|
|
9705
|
+
"**/node_modules/**",
|
|
9706
|
+
"**/.next/**",
|
|
9707
|
+
"**/dist/**",
|
|
9708
|
+
"**/.git/**",
|
|
9709
|
+
"**/coverage/**",
|
|
9710
|
+
"**/.turbo/**",
|
|
9711
|
+
"**/build/**",
|
|
9712
|
+
"**/out/**",
|
|
9713
|
+
"**/.cache/**",
|
|
9714
|
+
"**/.vercel/**",
|
|
9715
|
+
"**/.contentlayer/**",
|
|
9716
|
+
"**/.docusaurus/**",
|
|
9717
|
+
"**/target/**",
|
|
9718
|
+
"**/vendor/**"
|
|
9719
|
+
],
|
|
9704
9720
|
files: [
|
|
9705
9721
|
"*.test.ts",
|
|
9706
9722
|
"*.spec.ts",
|