@commitlint/config-pnpm-scopes 18.6.1 → 19.0.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.
Files changed (3) hide show
  1. package/index.js +6 -5
  2. package/package.json +6 -5
  3. package/readme.md +3 -3
package/index.js CHANGED
@@ -1,9 +1,10 @@
1
- const path = require('path');
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
- module.exports = {
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,6 +1,7 @@
1
1
  {
2
2
  "name": "@commitlint/config-pnpm-scopes",
3
- "version": "18.6.1",
3
+ "type": "module",
4
+ "version": "19.0.0",
4
5
  "description": "Shareable commitlint config enforcing pnpm workspaces names as scopes",
5
6
  "files": [
6
7
  "index.js"
@@ -30,13 +31,13 @@
30
31
  "node": ">=v18"
31
32
  },
32
33
  "dependencies": {
33
- "@pnpm/read-project-manifest": "^4.1.4",
34
+ "@pnpm/read-project-manifest": "^5.0.10",
34
35
  "fast-glob": "^3.3.1",
35
36
  "read-yaml-file": "^2.1.0"
36
37
  },
37
38
  "devDependencies": {
38
- "@commitlint/test": "^18.0.0",
39
- "@commitlint/utils": "^18.6.1"
39
+ "@commitlint/test": "^19.0.0",
40
+ "@commitlint/utils": "^19.0.0"
40
41
  },
41
- "gitHead": "89f5bf91d1c11b1f457a6f0d99b8ea34583a9311"
42
+ "gitHead": "f1ff12159d627ee63bf8982ab02e6cca8f10b09f"
42
43
  }
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 [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules.
44
+ Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules.