@abelspithost/commitlint 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @abelspithost/commitlint
2
2
 
3
- A shared [commitlint](https://commitlint.js.org/) preset that extends `@commitlint/config-conventional` with stricter defaults, plus a CLI to set everything up in one command.
3
+ A shared [commitlint](https://commitlint.js.org/) preset that extends `@commitlint/config-conventional` with stricter defaults, plus a CLI to set everything up with one command.
4
4
 
5
5
  ## What's included
6
6
 
7
7
  - Commitlint configuration that extends `@commitlint/config-conventional`
8
8
  - Scope is optional by default
9
- - A `createConfig` helper to customize allowed types and scopes (providing scopes makes them mandatory)
9
+ - A `createConfig` helper to customize allowed types and scopes (when you provide scopes, they become mandatory)
10
10
  - An `init` CLI that installs and configures commitlint + husky automatically
11
11
  - Automatic package manager detection (npm, yarn, pnpm, bun)
12
12
 
@@ -18,17 +18,17 @@ Run the init command in your project root:
18
18
  npx -p @abelspithost/commitlint init
19
19
  ```
20
20
 
21
- The CLI automatically detects your package manager by looking for `bun.lockb`/`bun.lock`, `pnpm-lock.yaml`, `yarn.lock`, or falling back to npm. It will:
21
+ The CLI detects your package manager by looking for `bun.lockb`/`bun.lock`, `pnpm-lock.yaml`, `yarn.lock`, or falling back to npm. It will:
22
22
 
23
23
  1. Install `husky`, `@commitlint/cli`, and `@abelspithost/commitlint` as dev dependencies
24
24
  2. Initialize husky
25
- 3. Remove the default `pre-commit` hook created by husky
25
+ 3. Remove the default `pre-commit` hook that husky creates
26
26
  4. Create a `.husky/commit-msg` hook (using the correct runner for your package manager)
27
- 5. Generate a `commitlint.config.ts` that re-exports the preset (skipped if one already exists)
27
+ 5. Generate a `commitlint.config.ts` that re-exports the preset (skip if one already exists)
28
28
 
29
29
  ## Manual setup (npm)
30
30
 
31
- Install the dependencies:
31
+ Install the required dependencies:
32
32
 
33
33
  ```sh
34
34
  npm install --save-dev husky @commitlint/cli @abelspithost/commitlint
@@ -71,7 +71,7 @@ export default createConfig({
71
71
  | `scopes` | `string[]` | — | Restrict commits to these scopes (makes scope mandatory) |
72
72
  | `types` | `string[]` | `COMMIT_TYPES` | Override the allowed commit types |
73
73
 
74
- When `scopes` is omitted, scope is optional and any value is accepted. When `scopes` is provided, a scope becomes **required** and must be one of the listed values. When `types` is omitted, it defaults to the built-in `COMMIT_TYPES`.
74
+ When you omit `scopes`, scope is optional and you can use any value. When you provide `scopes`, scope becomes **required** and must match one of the listed values. When you omit `types`, it defaults to the built-in `COMMIT_TYPES`.
75
75
 
76
76
  ### Examples
77
77
 
@@ -113,11 +113,11 @@ const configuration: UserConfig = {
113
113
  export default configuration;
114
114
  ```
115
115
 
116
- `RuleConfigSeverity` and `UserConfig` are re-exported from this package so you don't need to install `@commitlint/types` separately.
116
+ This package re-exports `RuleConfigSeverity` and `UserConfig`, so you don't need to install `@commitlint/types` separately.
117
117
 
118
118
  ## Commit message format
119
119
 
120
- Commits must follow the [Conventional Commits](https://www.conventionalcommits.org/) format:
120
+ Write your commits in the [Conventional Commits](https://www.conventionalcommits.org/) format:
121
121
 
122
122
  ```
123
123
  type: description
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { RuleConfigSeverity, type UserConfig } from '@commitlint/types';
2
- export { COMMIT_TYPES } from './constants/commitTypes.js';
3
2
  export { configuration, configuration as default, createConfig } from './config/config.js';
3
+ export { COMMIT_TYPES } from './constants/commitTypes.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { RuleConfigSeverity } from '@commitlint/types';
2
- export { COMMIT_TYPES } from './constants/commitTypes.js';
3
2
  export { configuration, configuration as default, createConfig } from './config/config.js';
3
+ export { COMMIT_TYPES } from './constants/commitTypes.js';
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abelspithost/commitlint",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Shared commitlint preset extending @commitlint/config-conventional with stricter defaults",
5
5
  "keywords": [
6
6
  "commitlint",
@@ -48,22 +48,22 @@
48
48
  "prepare": "husky || true"
49
49
  },
50
50
  "dependencies": {
51
- "@commitlint/config-conventional": "^20.4.1",
52
- "@commitlint/format": "^20.4.0",
53
- "@commitlint/types": "^20.4.0"
51
+ "@commitlint/config-conventional": "^20.5.0",
52
+ "@commitlint/format": "^20.5.0",
53
+ "@commitlint/types": "^20.5.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@abelspithost/eslint-config-ts": "^0.1.3",
57
- "@abelspithost/tsconfig-node": "^0.0.4",
58
- "@commitlint/cli": "^20.4.1",
59
- "@types/node": "^24.10.11",
60
- "@vitest/coverage-v8": "^4.0.18",
61
- "commitlint": "^20.4.1",
62
- "eslint": "^9.39.2",
56
+ "@abelspithost/eslint-config-ts": "^1.0.3",
57
+ "@abelspithost/tsconfig-node": "^0.0.5",
58
+ "@commitlint/cli": "^20.5.0",
59
+ "@types/node": "^24.12.2",
60
+ "@vitest/coverage-v8": "^4.1.4",
61
+ "commitlint": "^20.5.0",
62
+ "eslint": "^10.2.0",
63
63
  "husky": "^9.1.7",
64
64
  "jiti": "^2.6.1",
65
- "rimraf": "^6.1.2",
66
- "typescript": "^5.9.3",
67
- "vitest": "^4.0.18"
65
+ "rimraf": "^6.1.3",
66
+ "typescript": "^6.0.2",
67
+ "vitest": "^4.1.4"
68
68
  }
69
69
  }