@commitlint/config-nx-scopes 20.5.0 → 21.0.1
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/index.js +1 -2
- package/package.json +28 -28
- package/readme.md +4 -13
package/index.js
CHANGED
|
@@ -5,8 +5,7 @@ import { FsTree } from "nx/src/generators/tree.js";
|
|
|
5
5
|
export default {
|
|
6
6
|
utils: { getProjects },
|
|
7
7
|
rules: {
|
|
8
|
-
"scope-enum": (ctx) =>
|
|
9
|
-
Promise.resolve([RuleConfigSeverity.Error, "always", getProjects(ctx)]),
|
|
8
|
+
"scope-enum": (ctx) => Promise.resolve([RuleConfigSeverity.Error, "always", getProjects(ctx)]),
|
|
10
9
|
},
|
|
11
10
|
};
|
|
12
11
|
|
package/package.json
CHANGED
|
@@ -1,33 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/config-nx-scopes",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"version": "21.0.1",
|
|
4
|
+
"gitHead": "db8d7d6461d721fe2561ce4307e4069eaf6dcc8c",
|
|
5
5
|
"description": "Shareable commitlint config enforcing nx project names as scopes",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
6
|
+
"keywords": [
|
|
7
|
+
"commitlint",
|
|
8
|
+
"commitlint-config",
|
|
9
|
+
"conventional-changelog",
|
|
10
|
+
"nx"
|
|
9
11
|
],
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
"
|
|
12
|
+
"homepage": "https://commitlint.js.org/",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/conventional-changelog/commitlint/issues"
|
|
13
15
|
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "Florian Guitton <florian@secretarium.com>",
|
|
14
18
|
"repository": {
|
|
15
19
|
"type": "git",
|
|
16
20
|
"url": "https://github.com/conventional-changelog/commitlint.git",
|
|
17
21
|
"directory": "@commitlint/config-nx-scopes"
|
|
18
22
|
},
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"commitlint",
|
|
22
|
-
"commitlint-config",
|
|
23
|
-
"nx"
|
|
23
|
+
"files": [
|
|
24
|
+
"index.js"
|
|
24
25
|
],
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
26
|
+
"type": "module",
|
|
27
|
+
"main": "index.js",
|
|
28
|
+
"scripts": {
|
|
29
|
+
"deps": "dep-check",
|
|
30
|
+
"pkg": "pkg-check"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@commitlint/types": "^21.0.1"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@commitlint/test": "^21.0.1",
|
|
37
|
+
"@commitlint/utils": "^21.0.1"
|
|
29
38
|
},
|
|
30
|
-
"homepage": "https://commitlint.js.org/",
|
|
31
39
|
"peerDependencies": {
|
|
32
40
|
"nx": ">=14.0.0"
|
|
33
41
|
},
|
|
@@ -37,14 +45,6 @@
|
|
|
37
45
|
}
|
|
38
46
|
},
|
|
39
47
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
41
|
-
}
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@commitlint/types": "^20.5.0"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@commitlint/test": "^20.4.3",
|
|
47
|
-
"@commitlint/utils": "^20.0.0"
|
|
48
|
-
},
|
|
49
|
-
"gitHead": "a7918e9cf70f822505cb4422c03150a86f802627"
|
|
48
|
+
"node": ">=22.12.0"
|
|
49
|
+
}
|
|
50
50
|
}
|
package/readme.md
CHANGED
|
@@ -36,8 +36,7 @@ async function getConfig() {
|
|
|
36
36
|
[
|
|
37
37
|
...(await getProjects(
|
|
38
38
|
ctx,
|
|
39
|
-
({ name, projectType }) =>
|
|
40
|
-
!name.includes("e2e") && projectType == "application",
|
|
39
|
+
({ name, projectType }) => !name.includes("e2e") && projectType == "application",
|
|
41
40
|
)),
|
|
42
41
|
],
|
|
43
42
|
],
|
|
@@ -66,12 +65,7 @@ async function getConfig() {
|
|
|
66
65
|
"scope-enum": async (ctx) => [
|
|
67
66
|
2,
|
|
68
67
|
"always",
|
|
69
|
-
[
|
|
70
|
-
...(await getProjects(
|
|
71
|
-
ctx,
|
|
72
|
-
({ tags }) => !tags.includes("stage:end-of-life"),
|
|
73
|
-
)),
|
|
74
|
-
],
|
|
68
|
+
[...(await getProjects(ctx, ({ tags }) => !tags.includes("stage:end-of-life")))],
|
|
75
69
|
],
|
|
76
70
|
},
|
|
77
71
|
// . . .
|
|
@@ -97,17 +91,14 @@ packages
|
|
|
97
91
|
└── web
|
|
98
92
|
|
|
99
93
|
❯ echo "build(api): change something in api's build" | commitlint
|
|
100
|
-
⧗ input: build(api): change something in api's build
|
|
101
|
-
✔ found 0 problems, 0 warnings
|
|
102
94
|
|
|
103
95
|
❯ echo "test(foo): this won't pass" | commitlint
|
|
104
|
-
⧗ input
|
|
96
|
+
⧗ --- input ---
|
|
97
|
+
test(foo): this won't pass
|
|
105
98
|
✖ scope must be one of [api, app, web] [scope-enum]
|
|
106
99
|
✖ found 1 problems, 0 warnings
|
|
107
100
|
|
|
108
101
|
❯ echo "ci: do some general maintenance" | commitlint
|
|
109
|
-
⧗ input: ci: do some general maintenance
|
|
110
|
-
✔ found 0 problems, 0 warnings
|
|
111
102
|
```
|
|
112
103
|
|
|
113
104
|
Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules.
|