diff --git a/CHANGELOG.md b/CHANGELOG.md index f7ef8a0..8a36c5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,14 @@ -## [9.0.6] - 26 Jun 2023 +## [10.0.0] - 9 Aug 2023 -- Handled the case when import statement contains '.ts' and '.tsx' extensions in path +### Changed + +- the setting excludePathsFromReport now supports regex - #293 +- handle import statements that contain '.ts' or '.tsx' extensions - #281 ## [9.0.5] - 24 Jun 2023 +### Added + - Add --ignoreLocallyUsed flag which means that exports which are used in the same file they are defined in won't be reported as unused ## [9.0.4] - 12 Feb 2023 diff --git a/README.md b/README.md index 01c6e32..d814d84 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ ts-unused-exports path/to/tsconfig.json [file1.ts ...] [options] | `allowUnusedEnums` | Allow unused `enum`s. | `--allowUnusedEnums` | | `allowUnusedTypes` | Allow unused `type` or `interface`. | `--allowUnusedTypes` | | `excludeDeclarationFiles` | Exclude `.d.ts` files when looking for unused exports. | `--excludeDeclarationFiles` | -| `excludePathsFromReport` | Exclude files from the _output_ that match the given path segments or regex. | `--excludePathsFromReport=math;utils` | +| `excludePathsFromReport` | Exclude files from the _output_ that match the given path segments or regex. The path segments or regexes are separated with a semi-colon. | `--excludePathsFromReport=math;utils` | | `exitWithCount` | Set the process exit code to be the count of files that have unused exports. | `--exitWithCount` | | `exitWithUnusedTypesCount` | Set the process exit code to be the total count of unused exported types. | `--exitWithUnusedTypesCount` | | `findCompletelyUnusedFiles` | Find all *completely* unused files (where *all* exports are unused). | `--findCompletelyUnusedFiles` | diff --git a/example/library-usage-via-TypeScript/build.sh b/example/library-usage-via-TypeScript/build.sh old mode 100644 new mode 100755 diff --git a/package-lock.json b/package-lock.json index 2aa95a2..c129f0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ts-unused-exports", - "version": "9.0.5", + "version": "10.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 459c3fe..c423f14 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-unused-exports", - "version": "9.0.5", + "version": "10.0.0", "description": "ts-unused-exports finds unused exported symbols in your Typescript project", "main": "lib/app.js", "repository": {