watskeburt 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/formatters/regex.js +6 -4
- package/dist/version.js +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
@@ -75,7 +75,7 @@ node >=18.11).
|
|
75
75
|
```shell
|
76
76
|
# list all JavaScript-ish files changed since main in a regular expression
|
77
77
|
$ npx watskeburt main
|
78
|
-
^(src/cli
|
78
|
+
^(src/cli[.]mjs|src/formatters/regex[.]mjs|src/version[.]mjs)$
|
79
79
|
```
|
80
80
|
|
81
81
|
By default this returns a regex that contains all changed files that could be
|
package/dist/formatters/regex.js
CHANGED
@@ -31,10 +31,12 @@ export default function formatToRegex(
|
|
31
31
|
pChangeTypes = DEFAULT_CHANGE_TYPES,
|
32
32
|
) {
|
33
33
|
const lChanges = pChanges
|
34
|
-
.filter(
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
.filter(
|
35
|
+
(pChange) =>
|
36
|
+
pChangeTypes.has(pChange.changeType) &&
|
37
|
+
pExtensions.has(extname(pChange.name)),
|
38
|
+
)
|
39
|
+
.map(({ name }) => name.replace(/\\/g, "\\\\").replace(/\./g, "[.]"))
|
38
40
|
.join("|");
|
39
41
|
return `^(${lChanges})$`;
|
40
42
|
}
|
package/dist/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const VERSION = "2.0.
|
1
|
+
export const VERSION = "2.0.4";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "watskeburt",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.4",
|
4
4
|
"description": "List files changed since a git revision",
|
5
5
|
"keywords": [
|
6
6
|
"git",
|
@@ -45,24 +45,24 @@
|
|
45
45
|
"README.md"
|
46
46
|
],
|
47
47
|
"devDependencies": {
|
48
|
-
"@types/node": "20.10.
|
49
|
-
"@typescript-eslint/eslint-plugin": "6.
|
48
|
+
"@types/node": "20.10.5",
|
49
|
+
"@typescript-eslint/eslint-plugin": "6.16.0",
|
50
50
|
"c8": "8.0.1",
|
51
51
|
"dependency-cruiser": "15.5.0",
|
52
|
-
"eslint": "8.
|
52
|
+
"eslint": "8.56.0",
|
53
53
|
"eslint-config-moving-meadow": "4.0.2",
|
54
|
-
"eslint-config-prettier": "9.
|
54
|
+
"eslint-config-prettier": "9.1.0",
|
55
55
|
"eslint-plugin-budapestian": "6.0.0",
|
56
56
|
"eslint-plugin-eslint-comments": "3.2.0",
|
57
|
-
"eslint-plugin-import": "2.29.
|
57
|
+
"eslint-plugin-import": "2.29.1",
|
58
58
|
"eslint-plugin-mocha": "10.2.0",
|
59
59
|
"eslint-plugin-node": "11.1.0",
|
60
|
-
"eslint-plugin-security": "1.
|
61
|
-
"eslint-plugin-unicorn": "
|
60
|
+
"eslint-plugin-security": "2.1.0",
|
61
|
+
"eslint-plugin-unicorn": "50.0.1",
|
62
62
|
"npm-run-all": "4.1.5",
|
63
|
-
"prettier": "3.1.
|
64
|
-
"tsx": "4.
|
65
|
-
"typescript": "5.3.
|
63
|
+
"prettier": "3.1.1",
|
64
|
+
"tsx": "4.7.0",
|
65
|
+
"typescript": "5.3.3",
|
66
66
|
"upem": "9.0.2"
|
67
67
|
},
|
68
68
|
"engines": {
|