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.
Files changed (2) hide show
  1. package/dist/index.js +19 -3
  2. 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 % 50 === 0) {
9359
+ if (processedFiles % 10 === 0 || processedFiles === allFiles.length) {
9360
9360
  const percent = Math.round(processedFiles / allFiles.length * 100);
9361
- process.stdout.write(`\r Progress: ${processedFiles}/${allFiles.length} files (${percent}%)...`);
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: ["node_modules", ".next", "dist", ".git", "coverage", ".turbo", "build", "out", ".cache", ".vercel", ".contentlayer", ".docusaurus", "target", "vendor"],
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pruny",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Find and remove unused Next.js API routes & Nest.js Controllers",
5
5
  "type": "module",
6
6
  "files": [