1.1.9 • Published 10 months ago
purge-deps v1.1.9
purge-deps
purge-deps
is a command-line tool designed to delete all files and folders related to dependencies in JavaScript-based monorepo projects. It provides a convenient way to clean up generated files created by package managers.
Installation
You can install purge-deps
globally using npm
npm install -g purge-deps
Usage
npx purge-deps [options]
Options
-h or help: Displays the usage information.
-p or path <path>: Specifies the path to delete files and folders.
-t or targets <targets>: Replaces the targets to delete. Multiple targets can be separated by commas.
-e or extends <targets>: Adds to the targets to delete. Multiple targets can be separated by commas.
-i or ignore <folders>: Specifies folders to ignore. Multiple folders can be separated by commas.
-gi or gitignore <true|false>: Enables or disables reading from the .gitignore file.
Default Values
Option | Default Value |
---|---|
path | . (current directory) |
targets | node_modules, pnpm-lock.yaml, yarn.lock, package-lock.json |
ignore | .changeset, .git, .github, .husky, .turbo, src, |
gitignore | true |
Examples
# Basic usage (delete default targets in the current directory)
npx purge-deps [options]
# Delete target files in a specific path
npx purge-deps -p ./path
# Delete a specific target
npx purge-deps -t "test.txt,build"
# Extends targets
npx purge-deps -e "test1.txt,test2.txt,dist"
# Ignore specific folders
npx purge-deps -i "node_modules,build"
# Disable usage of the .gitignore file
npx purge-deps -gi false
1.1.9
10 months ago
1.1.8
10 months ago
1.1.7
10 months ago
1.1.6
10 months ago
1.1.5
10 months ago
1.1.4
10 months ago
1.1.3
10 months ago
1.1.2
10 months ago
1.1.1
10 months ago
1.1.0
10 months ago
1.0.8
10 months ago
1.0.7
10 months ago
1.0.6
10 months ago
1.0.5
10 months ago
1.0.4
10 months ago
1.0.3
10 months ago
1.0.2
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago