pruny 1.27.0 → 1.28.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 +4 -34
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9684,9 +9684,10 @@ async function scanHttpUsage(config) {
9684
9684
  const extensions = config.extensions;
9685
9685
  const extGlob = `**/*{${extensions.join(",")}}`;
9686
9686
  console.log(` \uD83D\uDD0D Tracking HTTP usage in: ${searchDir}`);
9687
+ const ignoreFolders = config.ignore.folders.filter((f) => f !== "public" && f !== "**/public");
9687
9688
  const files = await import_fast_glob4.default(extGlob, {
9688
9689
  cwd: searchDir,
9689
- ignore: [...config.ignore.folders],
9690
+ ignore: [...ignoreFolders],
9690
9691
  absolute: true
9691
9692
  });
9692
9693
  let axiosCount = 0;
@@ -9986,39 +9987,8 @@ var DEFAULT_CONFIG = {
9986
9987
  dir: "./",
9987
9988
  ignore: {
9988
9989
  routes: [],
9989
- folders: [
9990
- "**/node_modules/**",
9991
- "**/.next/**",
9992
- "**/dist/**",
9993
- "**/.git/**",
9994
- "**/coverage/**",
9995
- "**/.turbo/**",
9996
- "**/build/**",
9997
- "**/out/**",
9998
- "**/.cache/**",
9999
- "**/.vercel/**",
10000
- "**/.contentlayer/**",
10001
- "**/.docusaurus/**",
10002
- "**/target/**",
10003
- "**/vendor/**"
10004
- ],
10005
- files: [
10006
- "**/*.test.ts",
10007
- "**/*.spec.ts",
10008
- "**/*.test.tsx",
10009
- "**/*.spec.tsx",
10010
- "**/public/robots.txt",
10011
- "**/public/sitemap*.xml",
10012
- "**/public/favicon.ico",
10013
- "**/public/sw.js",
10014
- "**/public/manifest.json",
10015
- "**/public/twitter-image.*",
10016
- "**/public/opengraph-image.*",
10017
- "**/public/apple-icon.*",
10018
- "**/public/icon.*",
10019
- "**/proxy.*",
10020
- "**/middleware.*"
10021
- ]
9990
+ folders: [],
9991
+ files: []
10022
9992
  },
10023
9993
  extensions: [".ts", ".tsx", ".js", ".jsx"],
10024
9994
  nestGlobalPrefix: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pruny",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "description": "Find and remove unused Next.js API routes & Nest.js Controllers",
5
5
  "type": "module",
6
6
  "files": [