Pkg Optimizer is a utility tool that helps optimize your package before publishing it to npm. It ensures that only necessary files and folders are included in your npm package, reducing the package size and installation time.
To install pkg-optimizer globally, run:
pnpm install -g pkg-optimizer
or with npm
npm install -g pkg-optimizer
To optimize your npm package, navigate to the project directory and run:
pkg-optimizer