@commencis/commitlint-config 2.1.0 → 3.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @commencis/commitlint-config
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: export paths ([#416](https://github.com/Commencis/js-toolkit/pull/416))
8
+
9
+ ## 3.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [BreakingChange]: Introducing v3 - With cleaner dependencies and structure. Check readme files for implementations. ([#414](https://github.com/Commencis/js-toolkit/pull/414))
14
+
3
15
  ## 2.1.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1,65 +1,55 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
1
 
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- default: () => index_default
24
- });
25
- module.exports = __toCommonJS(index_exports);
26
-
27
- // ../../node_modules/.pnpm/@commitlint+types@20.2.0/node_modules/@commitlint/types/lib/rules.js
2
+ //#region ../../node_modules/.pnpm/@commitlint+types@20.2.0/node_modules/@commitlint/types/lib/rules.js
3
+ /**
4
+ * Rules always have a severity.
5
+ * Severity indicates what to do if the rule is found to be broken
6
+ * 0 - Disable this rule
7
+ * 1 - Warn for violations
8
+ * 2 - Error for violations
9
+ */
28
10
  var RuleConfigSeverity;
29
- (function(RuleConfigSeverity2) {
30
- RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
31
- RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
32
- RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
11
+ (function(RuleConfigSeverity$1) {
12
+ RuleConfigSeverity$1[RuleConfigSeverity$1["Disabled"] = 0] = "Disabled";
13
+ RuleConfigSeverity$1[RuleConfigSeverity$1["Warning"] = 1] = "Warning";
14
+ RuleConfigSeverity$1[RuleConfigSeverity$1["Error"] = 2] = "Error";
33
15
  })(RuleConfigSeverity || (RuleConfigSeverity = {}));
34
16
  var RuleConfigQuality;
35
- (function(RuleConfigQuality2) {
36
- RuleConfigQuality2[RuleConfigQuality2["User"] = 0] = "User";
37
- RuleConfigQuality2[RuleConfigQuality2["Qualified"] = 1] = "Qualified";
17
+ (function(RuleConfigQuality$1) {
18
+ RuleConfigQuality$1[RuleConfigQuality$1["User"] = 0] = "User";
19
+ RuleConfigQuality$1[RuleConfigQuality$1["Qualified"] = 1] = "Qualified";
38
20
  })(RuleConfigQuality || (RuleConfigQuality = {}));
39
21
 
40
- // src/index.ts
41
- var config = {
42
- extends: ["@commitlint/config-conventional"],
43
- rules: {
44
- "scope-case": [RuleConfigSeverity.Error, "always", "lower-case"],
45
- "type-enum": [
46
- RuleConfigSeverity.Error,
47
- "always",
48
- [
49
- "build",
50
- "chore",
51
- "ci",
52
- "docs",
53
- "feat",
54
- "fix",
55
- "perf",
56
- "refactor",
57
- "release",
58
- "revert",
59
- "style",
60
- "test"
61
- ]
62
- ]
63
- }
22
+ //#endregion
23
+ //#region src/index.ts
24
+ const config = {
25
+ extends: ["@commitlint/config-conventional"],
26
+ rules: {
27
+ "scope-case": [
28
+ RuleConfigSeverity.Error,
29
+ "always",
30
+ "lower-case"
31
+ ],
32
+ "type-enum": [
33
+ RuleConfigSeverity.Error,
34
+ "always",
35
+ [
36
+ "build",
37
+ "chore",
38
+ "ci",
39
+ "docs",
40
+ "feat",
41
+ "fix",
42
+ "perf",
43
+ "refactor",
44
+ "release",
45
+ "revert",
46
+ "style",
47
+ "test"
48
+ ]
49
+ ]
50
+ }
64
51
  };
65
- var index_default = config;
52
+ var src_default = config;
53
+
54
+ //#endregion
55
+ module.exports = src_default;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { UserConfig } from '@commitlint/types';
1
+ import { UserConfig } from "@commitlint/types";
2
2
 
3
+ //#region src/index.d.ts
3
4
  declare const config: UserConfig;
4
-
5
- export { config as default };
5
+ export = config;
@@ -0,0 +1,6 @@
1
+ import { UserConfig } from "@commitlint/types";
2
+
3
+ //#region src/index.d.ts
4
+ declare const config: UserConfig;
5
+ //#endregion
6
+ export { config as default };
package/dist/index.mjs ADDED
@@ -0,0 +1,54 @@
1
+ //#region ../../node_modules/.pnpm/@commitlint+types@20.2.0/node_modules/@commitlint/types/lib/rules.js
2
+ /**
3
+ * Rules always have a severity.
4
+ * Severity indicates what to do if the rule is found to be broken
5
+ * 0 - Disable this rule
6
+ * 1 - Warn for violations
7
+ * 2 - Error for violations
8
+ */
9
+ var RuleConfigSeverity;
10
+ (function(RuleConfigSeverity$1) {
11
+ RuleConfigSeverity$1[RuleConfigSeverity$1["Disabled"] = 0] = "Disabled";
12
+ RuleConfigSeverity$1[RuleConfigSeverity$1["Warning"] = 1] = "Warning";
13
+ RuleConfigSeverity$1[RuleConfigSeverity$1["Error"] = 2] = "Error";
14
+ })(RuleConfigSeverity || (RuleConfigSeverity = {}));
15
+ var RuleConfigQuality;
16
+ (function(RuleConfigQuality$1) {
17
+ RuleConfigQuality$1[RuleConfigQuality$1["User"] = 0] = "User";
18
+ RuleConfigQuality$1[RuleConfigQuality$1["Qualified"] = 1] = "Qualified";
19
+ })(RuleConfigQuality || (RuleConfigQuality = {}));
20
+
21
+ //#endregion
22
+ //#region src/index.ts
23
+ const config = {
24
+ extends: ["@commitlint/config-conventional"],
25
+ rules: {
26
+ "scope-case": [
27
+ RuleConfigSeverity.Error,
28
+ "always",
29
+ "lower-case"
30
+ ],
31
+ "type-enum": [
32
+ RuleConfigSeverity.Error,
33
+ "always",
34
+ [
35
+ "build",
36
+ "chore",
37
+ "ci",
38
+ "docs",
39
+ "feat",
40
+ "fix",
41
+ "perf",
42
+ "refactor",
43
+ "release",
44
+ "revert",
45
+ "style",
46
+ "test"
47
+ ]
48
+ ]
49
+ }
50
+ };
51
+ var src_default = config;
52
+
53
+ //#endregion
54
+ export { src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commencis/commitlint-config",
3
- "version": "2.1.0",
3
+ "version": "3.0.1",
4
4
  "description": "Commencis Commitlint config",
5
5
  "author": "Commencis WEB Team",
6
6
  "license": "Apache-2.0",
@@ -24,22 +24,20 @@
24
24
  "LICENSE"
25
25
  ],
26
26
  "exports": {
27
- "types": "./dist/index.d.ts",
28
- "import": "./dist/index.js",
27
+ "types": "./dist/index.d.mts",
28
+ "import": "./dist/index.mjs",
29
29
  "require": "./dist/index.cjs"
30
30
  },
31
31
  "dependencies": {
32
- "@commitlint/config-conventional": "20.2.0"
32
+ "@commitlint/config-conventional": "20.3.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@commencis/ts-config": "1.0.0",
36
- "@commitlint/types": "20.2.0",
37
- "tsup": "8.5.1",
38
- "typescript": "5.9.3"
36
+ "@commitlint/types": "20.2.0"
39
37
  },
40
38
  "scripts": {
41
- "dev": "tsup --watch",
42
- "build": "tsup",
39
+ "dev": "tsdown --watch",
40
+ "build": "tsdown",
43
41
  "test": "vitest",
44
42
  "lint:types": "tsc --noEmit"
45
43
  }
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { UserConfig } from '@commitlint/types';
2
-
3
- declare const config: UserConfig;
4
-
5
- export { config as default };
package/dist/index.js DELETED
@@ -1,42 +0,0 @@
1
- // ../../node_modules/.pnpm/@commitlint+types@20.2.0/node_modules/@commitlint/types/lib/rules.js
2
- var RuleConfigSeverity;
3
- (function(RuleConfigSeverity2) {
4
- RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
5
- RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
6
- RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
7
- })(RuleConfigSeverity || (RuleConfigSeverity = {}));
8
- var RuleConfigQuality;
9
- (function(RuleConfigQuality2) {
10
- RuleConfigQuality2[RuleConfigQuality2["User"] = 0] = "User";
11
- RuleConfigQuality2[RuleConfigQuality2["Qualified"] = 1] = "Qualified";
12
- })(RuleConfigQuality || (RuleConfigQuality = {}));
13
-
14
- // src/index.ts
15
- var config = {
16
- extends: ["@commitlint/config-conventional"],
17
- rules: {
18
- "scope-case": [RuleConfigSeverity.Error, "always", "lower-case"],
19
- "type-enum": [
20
- RuleConfigSeverity.Error,
21
- "always",
22
- [
23
- "build",
24
- "chore",
25
- "ci",
26
- "docs",
27
- "feat",
28
- "fix",
29
- "perf",
30
- "refactor",
31
- "release",
32
- "revert",
33
- "style",
34
- "test"
35
- ]
36
- ]
37
- }
38
- };
39
- var index_default = config;
40
- export {
41
- index_default as default
42
- };