@commitlint/config-pnpm-scopes 18.6.1 → 19.1.0
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 +6 -5
- package/package.json +7 -5
- package/readme.md +3 -3
package/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const readYamlFile = require('read-yaml-file');
|
|
3
|
-
const fg = require('fast-glob');
|
|
4
|
-
const {readExactProjectManifest} = require('@pnpm/read-project-manifest');
|
|
1
|
+
import path from 'path';
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
import fg from 'fast-glob';
|
|
4
|
+
import readYamlFile from 'read-yaml-file';
|
|
5
|
+
import {readExactProjectManifest} from '@pnpm/read-project-manifest';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
7
8
|
utils: {getProjects},
|
|
8
9
|
rules: {
|
|
9
10
|
'scope-enum': (ctx) =>
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/config-pnpm-scopes",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "19.1.0",
|
|
4
5
|
"description": "Shareable commitlint config enforcing pnpm workspaces names as scopes",
|
|
6
|
+
"main": "index.js",
|
|
5
7
|
"files": [
|
|
6
8
|
"index.js"
|
|
7
9
|
],
|
|
@@ -30,13 +32,13 @@
|
|
|
30
32
|
"node": ">=v18"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
33
|
-
"@pnpm/read-project-manifest": "^
|
|
35
|
+
"@pnpm/read-project-manifest": "^5.0.10",
|
|
34
36
|
"fast-glob": "^3.3.1",
|
|
35
37
|
"read-yaml-file": "^2.1.0"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
|
-
"@commitlint/test": "^
|
|
39
|
-
"@commitlint/utils": "^
|
|
40
|
+
"@commitlint/test": "^19.0.0",
|
|
41
|
+
"@commitlint/utils": "^19.0.0"
|
|
40
42
|
},
|
|
41
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "8d7a3d5d49ab77733e166cb5f195b1b7f277b4a7"
|
|
42
44
|
}
|
package/readme.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
> Lint your pnpm workspaces project commits
|
|
2
|
-
|
|
3
1
|
# @commitlint/config-pnpm-scopes
|
|
4
2
|
|
|
3
|
+
Lint your pnpm workspaces project commits
|
|
4
|
+
|
|
5
5
|
Shareable `commitlint` config enforcing pnpm workspaces names as scopes.
|
|
6
6
|
Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).
|
|
7
7
|
|
|
@@ -41,4 +41,4 @@ packages
|
|
|
41
41
|
✔ found 0 problems, 0 warnings
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
Consult [
|
|
44
|
+
Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules.
|