@commitlint/config-nx-scopes 21.0.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.
Files changed (3) hide show
  1. package/index.js +1 -2
  2. package/package.json +27 -27
  3. package/readme.md +2 -8
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
- "type": "module",
4
- "version": "21.0.0",
3
+ "version": "21.0.1",
4
+ "gitHead": "db8d7d6461d721fe2561ce4307e4069eaf6dcc8c",
5
5
  "description": "Shareable commitlint config enforcing nx project names as scopes",
6
- "main": "index.js",
7
- "files": [
8
- "index.js"
6
+ "keywords": [
7
+ "commitlint",
8
+ "commitlint-config",
9
+ "conventional-changelog",
10
+ "nx"
9
11
  ],
10
- "scripts": {
11
- "deps": "dep-check",
12
- "pkg": "pkg-check"
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
- "keywords": [
20
- "conventional-changelog",
21
- "commitlint",
22
- "commitlint-config",
23
- "nx"
23
+ "files": [
24
+ "index.js"
24
25
  ],
25
- "author": "Florian Guitton <florian@secretarium.com>",
26
- "license": "MIT",
27
- "bugs": {
28
- "url": "https://github.com/conventional-changelog/commitlint/issues"
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
  },
@@ -38,13 +46,5 @@
38
46
  },
39
47
  "engines": {
40
48
  "node": ">=22.12.0"
41
- },
42
- "dependencies": {
43
- "@commitlint/types": "^21.0.0"
44
- },
45
- "devDependencies": {
46
- "@commitlint/test": "^21.0.0",
47
- "@commitlint/utils": "^21.0.0"
48
- },
49
- "gitHead": "f081a8ef93019bb8b07f39c756f6d4a052020d3b"
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
  // . . .