prune-mod
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

prune-mod

A CLI tool to prune and extract TypeScript modules with their dependencies into standalone packages.

Installation

npm install -g prune-mod

Usage

prune-mod [options] <entry-file>

Options

  • --output-dir <dir> - Output directory for the extracted module
  • --include-node-modules - Include node_modules dependencies
  • --exclude-patterns <patterns...> - Patterns to exclude from extraction
  • --include-patterns <patterns...> - Patterns to include in extraction
  • --copy-ts-config - Copy tsconfig files (default: true)
  • --ts-config-path <path> - Path to tsconfig file (default: tsconfig.json)

Example

prune-mod src/index.ts --output-dir ./dist

License

MIT

Package Sidebar

Install

npm i prune-mod

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

29.5 kB

Total Files

24

Last publish

Collaborators

  • ahmedrowaihi