@map-colonies/commitlint-config 1.1.1 → 2.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.
@@ -0,0 +1,4 @@
1
+ import type { UserConfig } from '@commitlint/types';
2
+ declare const commitlintConfig: UserConfig;
3
+ export = commitlintConfig;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,QAAA,MAAM,gBAAgB,EAAI,UASzB,CAAC;AAEF,SAAS,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ const ERROR = 2;
3
+ const commitlintConfig = {
4
+ extends: ['@commitlint/config-conventional'],
5
+ rules: {
6
+ 'type-enum': [
7
+ ERROR,
8
+ 'always',
9
+ ['deps', 'devdeps', 'helm', 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
10
+ ],
11
+ },
12
+ };
13
+ module.exports = commitlintConfig;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,MAAM,KAAK,GAAG,CAAC,CAAC;AAEhB,MAAM,gBAAgB,GAAe;IACnC,OAAO,EAAE,CAAC,iCAAiC,CAAC;IAC5C,KAAK,EAAE;QACL,WAAW,EAAE;YACX,KAAK;YACL,QAAQ;YACR,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC;SAC1H;KACF;CACF,CAAC;AAEF,iBAAS,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,53 +1,44 @@
1
1
  {
2
2
  "name": "@map-colonies/commitlint-config",
3
- "version": "1.1.1",
3
+ "version": "2.0.0",
4
4
  "description": "Commitlint configuration for MapColonies projects",
5
- "main": "./index.js",
5
+ "repository": "github:MapColonies/infra-packages",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "type": "commonjs",
6
10
  "exports": {
7
11
  ".": {
8
- "require": "./index.js"
12
+ "types": "./dist/index.d.ts",
13
+ "require": "./dist/index.js"
9
14
  }
10
15
  },
11
- "scripts": {
12
- "test": "jest --config=./tests/configurations/jest.config.js",
13
- "format": "prettier --check .",
14
- "format:fix": "prettier --write .",
15
- "clean": "rimraf dist",
16
- "prepare": "husky"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/MapColonies/commitlint-config.git"
21
- },
22
- "author": "MapColonies",
23
- "license": "ISC",
24
- "bugs": {
25
- "url": "https://github.com/MapColonies/commitlint-config/issues"
26
- },
27
16
  "files": [
28
- "index.js"
17
+ "dist/**"
29
18
  ],
30
- "homepage": "https://github.com/MapColonies/commitlint-config#readme",
31
- "publishConfig": {
32
- "access": "public"
33
- },
34
19
  "engines": {
35
- "node": ">=20"
20
+ "node": ">=24"
36
21
  },
37
22
  "dependencies": {
38
- "@commitlint/config-conventional": "^19.6.0"
23
+ "@commitlint/config-conventional": "^20.2.0"
39
24
  },
40
25
  "devDependencies": {
41
- "@commitlint/cli": "^19.6.1",
42
- "@map-colonies/prettier-config": "^0.0.1",
43
- "@types/jest": "^29.4.0",
44
- "commitlint": "^19.6.1",
45
- "husky": "^9.1.7",
46
- "jest": "^29.7.0",
47
- "jest-html-reporters": "^3.1.4",
48
- "prettier": "^3.4.2",
49
- "pretty-quick": "^4.0.0",
50
- "@commitlint/types": "^19.5.0",
51
- "zx": "^8.3.0"
26
+ "vitest": "^4.0.15",
27
+ "@commitlint/types": "20.2.0",
28
+ "zx": "8.8.5",
29
+ "typescript": "5.9.3",
30
+ "eslint": "^9.39.1",
31
+ "vitest-config": "^0.0.0",
32
+ "@map-colonies/tsconfig": "^2.0.0",
33
+ "@map-colonies/eslint-config": "^7.0.0"
34
+ },
35
+ "scripts": {
36
+ "test": "vitest run",
37
+ "build": "tsc --project tsconfig.build.json",
38
+ "lint": "eslint .",
39
+ "prebuild": "pnpm run clean",
40
+ "clean": "rimraf dist",
41
+ "check-dist": "publint && attw --profile=node16 --pack .",
42
+ "knip": "knip --directory ../.. --workspace packages/commitlint-config"
52
43
  }
53
- }
44
+ }
package/index.js DELETED
@@ -1,13 +0,0 @@
1
- /**
2
- * @type {import('@commitlint/types').UserConfig}
3
- */
4
- module.exports = {
5
- extends: ['@commitlint/config-conventional'],
6
- rules: {
7
- 'type-enum': [
8
- 2,
9
- 'always',
10
- ['deps', 'devdeps', 'helm', 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
11
- ],
12
- },
13
- };