watskeburt
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -14,2 +14,7 @@ import { EOL } from "node:os"; | ||
--trackedOnly only take tracked files into account (default: false) | ||
-e, --extensions <list> comma separated list of file extensions to consider | ||
- pass "*" to consider all extensions | ||
- currently applicable only to the "regex" reporter | ||
- defaults to to most popular extensions in the | ||
JavaScript/ TypeScript ecosystem | ||
-V, --version output the version number | ||
@@ -16,0 +21,0 @@ -h, --help display help for command${EOL}`; |
@@ -9,5 +9,7 @@ import formatAsRegex from "./regex.js"; | ||
const lExtensions = new Set( | ||
pExtensions.split(",").map((pExtension) => `.${pExtension.trim()}`), | ||
(pExtensions ?? "*") | ||
.split(",") | ||
.map((pExtension) => `.${pExtension.trim()}`), | ||
); | ||
return OUTPUT_TYPE_TO_FUNCTION.get(pOutputType)(pChanges, lExtensions); | ||
} |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "4.2.1"; | ||
export const VERSION = "4.2.2"; |
{ | ||
"name": "watskeburt", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "List files changed since a git revision", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -86,5 +86,13 @@ # watskeburt | ||
-V, --version output the version number | ||
-e, --extensions <list> comma separated list of file extensions to consider | ||
- pass "*" to consider all extensions | ||
- currently applicable only to the "regex" reporter | ||
- defaults to to most popular extensions in the | ||
JavaScript/ TypeScript ecosystem | ||
-h, --help display help for command | ||
``` | ||
Default list of extensions (cli, regex reporter only): | ||
`"cjs, cjsx, coffee, csx, cts, js, json, jsx, litcoffee, ls, mjs, mts, svelte, ts, tsx, vue, vuex"`. | ||
## why? | ||
@@ -91,0 +99,0 @@ |
16938
388
113