@w5s/commitlint-config 1.0.27 → 1.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.gitmojiPlugin = exports.typeValidGitmoji = exports.typeGitmojiStyle = void 0;
4
- const gitmoji_js_1 = require("@w5s/conventional-changelog/lib/gitmoji.js");
4
+ const gitmoji_js_1 = require("@w5s/conventional-changelog/dist/gitmoji.js");
5
5
  const $if = (when = 'always') => (cond) => when === 'always' ? cond : !cond;
6
6
  const typeGitmojiStyle = (parsed, when = 'always', value = 'unicode') => {
7
7
  const isUnicode = parsed.type != null && gitmoji_js_1.Emoji.isUnicode(parsed.type);
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import Config from './lib/index.js';
1
+ import Config from './dist/index.js';
2
2
 
3
3
  export = Config;
package/index.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./lib/index.js').default;
1
+ module.exports = require('./dist/index.js').default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/commitlint-config",
3
- "version": "1.0.27",
3
+ "version": "1.1.0",
4
4
  "description": "Commitlint configuration presets",
5
5
  "keywords": [
6
6
  "commitlint",
@@ -21,23 +21,22 @@
21
21
  "type": "commonjs",
22
22
  "exports": {
23
23
  ".": "./index.js",
24
- "./lib/*": "./lib/*"
24
+ "./dist/*": "./dist/*"
25
25
  },
26
26
  "typings": "./index.d.ts",
27
27
  "files": [
28
- "lib/**/!(*.spec).d.ts",
29
- "lib/**/!(*.spec).d.ts.map",
30
- "lib/**/!(*.spec).js.map",
31
- "lib/**/!(*.spec).js",
32
- "src/**/!(*.spec).ts",
28
+ "dist/",
29
+ "src/",
33
30
  "index.js",
34
- "index.d.ts"
31
+ "index.d.ts",
32
+ "!**/*.spec.*",
33
+ "!**/__tests__/**"
35
34
  ],
36
35
  "scripts": {
37
36
  "build": "concurrently \"npm:build:*\" \":\"",
38
37
  "build:tsc": "tsc -b tsconfig.build.json",
39
38
  "clean": "concurrently \"npm:clean:*\" \":\"",
40
- "clean:tsc": "rm -rf lib",
39
+ "clean:tsc": "rm -rf dist",
41
40
  "docs": "node ../../markdown.mjs",
42
41
  "format": "concurrently \"npm:format:*\" \":\"",
43
42
  "format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
@@ -51,12 +50,12 @@
51
50
  },
52
51
  "dependencies": {
53
52
  "@commitlint/types": "^17.0.0",
54
- "@w5s/conventional-changelog": "^1.0.13"
53
+ "@w5s/conventional-changelog": "^1.1.0"
55
54
  },
56
55
  "devDependencies": {
57
- "@commitlint/lint": "17.6.5",
56
+ "@commitlint/lint": "17.6.6",
58
57
  "vite": "4.3.9",
59
- "vitest": "0.31.2"
58
+ "vitest": "0.32.4"
60
59
  },
61
60
  "peerDependencies": {
62
61
  "@commitlint/cli": "^16.0.0 || ^17.0.0"
@@ -72,5 +71,5 @@
72
71
  "publishConfig": {
73
72
  "access": "public"
74
73
  },
75
- "gitHead": "7e5cf7f6b4725b79da890724f6377c2893e6daf4"
74
+ "gitHead": "d1f8476f515b7be923ace0dba9ef86571f08747b"
76
75
  }
package/src/plugin.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Plugin, Rule, RuleConfigCondition } from '@commitlint/types';
2
- import { Emoji, GitmojiCode } from '@w5s/conventional-changelog/lib/gitmoji.js';
2
+ import { Emoji, GitmojiCode } from '@w5s/conventional-changelog/dist/gitmoji.js';
3
3
 
4
4
  const $if =
5
5
  (when: RuleConfigCondition | undefined = 'always') =>
File without changes
File without changes
File without changes