Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ts-housekeeping) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A simple cli to remove unused variables, interface, class in .ts
files. this cli tool is built on ts-unused-exports
and ts-morph
.
This project is create from the template vitesse-lite.
Usage
npx ts-housekeeping --entry [entryFilePath]
Full Example
npx ts-housekeeping \
--tsconfig "./tsconfig.json" \
--entry "src/main.ts" \
--include "src" \
--exclude "src/*.ts"
CLI Arguments
--tsconfig
file path of the tsconfig.json
.
required | default |
---|---|
false | ./tsconfig.json |
--entry
the entry of your project, all files referenced by the entry directly or indirectly will be preserved. Others files that are unused in the project would be deleted eventually.
required | default |
---|---|
true | - |
--include
a glob pattern that match files to include, files not matched would be ignored.
required | default |
---|---|
false | - |
--exclude
a glob pattern that match files to exclude, files matched would be left untouched, which means everything in it is safe.
required | default |
---|---|
false | - |