pruny 1.28.1 → 1.30.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/README.md +16 -16
- package/dist/index.js +10171 -3671
- package/dist/workers/file-processor.js +177 -25
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -12,22 +12,22 @@ npx pruny
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
pruny --dir
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
pruny --fix
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
pruny --
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
pruny -v
|
|
30
|
-
|
|
15
|
+
## CLI Commands
|
|
16
|
+
|
|
17
|
+
| Command | Description |
|
|
18
|
+
| :--------------------------- | :--------------------------------------------------------------------------------------- |
|
|
19
|
+
| `pruny` | Scan for unused items interactively (monorepo-aware). |
|
|
20
|
+
| `pruny --dir <path>` | Set the target project directory (default: `./`). |
|
|
21
|
+
| `pruny --app <name>` | Scan a specific application within a monorepo. |
|
|
22
|
+
| `pruny --folder <path>` | Scan a specific folder OR sub-directory for routes/controllers. |
|
|
23
|
+
| `pruny --fix` | Automatically delete unused items found during scan. |
|
|
24
|
+
| `pruny --cleanup <items>` | Quick cleanup: `routes`, `exports`, `public`, `files`. (e.g. `--cleanup routes,exports`) |
|
|
25
|
+
| `pruny --filter <pattern>` | Filter results by string (app name, file path, etc). |
|
|
26
|
+
| `pruny --ignore-apps <list>` | Comma-separated list of apps to skip in monorepos. |
|
|
27
|
+
| `pruny --no-public` | Disable scanning of public assets. |
|
|
28
|
+
| `pruny --json` | Output scan results as JSON for automation. |
|
|
29
|
+
| `pruny -v, --verbose` | Show detailed debug logging and trace info. |
|
|
30
|
+
| `pruny init` | Create a `pruny.config.json` configuration file. |
|
|
31
31
|
|
|
32
32
|
### Public Asset Scanning (New in v1.1.0)
|
|
33
33
|
|