1.1.9 • Published 1 year ago

purge-deps v1.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

OptionDefault Value
path. (current directory)
targetsnode_modules, pnpm-lock.yaml, yarn.lock, package-lock.json
ignore.changeset, .git, .github, .husky, .turbo, src,
gitignoretrue

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

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago