@commitlint/config-lerna-scopes 21.0.0 → 21.0.2

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 (2) hide show
  1. package/index.js +4 -6
  2. package/package.json +27 -27
package/index.js CHANGED
@@ -6,8 +6,7 @@ import configWorkspaceScopes from "@commitlint/config-workspace-scopes";
6
6
  export default {
7
7
  utils: { getProjects },
8
8
  rules: {
9
- "scope-enum": (ctx) =>
10
- getProjects(ctx).then((packages) => [2, "always", packages]),
9
+ "scope-enum": (ctx) => getProjects(ctx).then((packages) => [2, "always", packages]),
11
10
  },
12
11
  };
13
12
 
@@ -45,16 +44,15 @@ async function findPackages(cwd) {
45
44
  for (const pattern of patterns) {
46
45
  for await (const entry of glob(pattern, {
47
46
  cwd,
48
- exclude: (p) =>
49
- p.includes("node_modules") || p.includes("bower_components"),
47
+ exclude: (p) => p.includes("node_modules") || p.includes("bower_components"),
50
48
  })) {
51
49
  entries.push(entry);
52
50
  }
53
51
  }
54
52
 
55
53
  const pkgJsons = await Promise.all(
56
- Array.from(new Set(entries.map((entry) => path.join(cwd, entry)))).map(
57
- (pkgPath) => fs.readFile(pkgPath, { encoding: "utf-8" }),
54
+ Array.from(new Set(entries.map((entry) => path.join(cwd, entry)))).map((pkgPath) =>
55
+ fs.readFile(pkgPath, { encoding: "utf-8" }),
58
56
  ),
59
57
  );
60
58
 
package/package.json CHANGED
@@ -1,33 +1,41 @@
1
1
  {
2
2
  "name": "@commitlint/config-lerna-scopes",
3
- "type": "module",
4
- "version": "21.0.0",
3
+ "version": "21.0.2",
4
+ "gitHead": "806904829c497cdfedeebfbac573bd1c8ee66b2b",
5
5
  "description": "Shareable commitlint config enforcing lerna package and workspace names as scopes",
6
- "main": "index.js",
7
- "files": [
8
- "index.js"
6
+ "keywords": [
7
+ "commitlint",
8
+ "commitlint-config",
9
+ "conventional-changelog",
10
+ "lerna"
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": "Jan Biasi (https://github.com/janbiasi)",
14
18
  "repository": {
15
19
  "type": "git",
16
20
  "url": "https://github.com/conventional-changelog/commitlint.git",
17
21
  "directory": "@commitlint/config-lerna-scopes"
18
22
  },
19
- "keywords": [
20
- "conventional-changelog",
21
- "commitlint",
22
- "commitlint-config",
23
- "lerna"
23
+ "files": [
24
+ "index.js"
24
25
  ],
25
- "author": "Jan Biasi (https://github.com/janbiasi)",
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/config-workspace-scopes": "^21.0.2"
34
+ },
35
+ "devDependencies": {
36
+ "@commitlint/test": "^21.0.2",
37
+ "@commitlint/utils": "^21.0.1"
29
38
  },
30
- "homepage": "https://commitlint.js.org/",
31
39
  "peerDependencies": {
32
40
  "lerna": "*"
33
41
  },
@@ -38,13 +46,5 @@
38
46
  },
39
47
  "engines": {
40
48
  "node": ">=22.12.0"
41
- },
42
- "dependencies": {
43
- "@commitlint/config-workspace-scopes": "^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
  }