@w5s/conventional-changelog 1.0.0-alpha.2 โ†’ 1.0.0-alpha.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/lib/gitmoji.js CHANGED
@@ -51,13 +51,13 @@ var GitmojiCode;
51
51
  docs: ['๐Ÿ“'],
52
52
  style: ['๐ŸŽจ', '๐Ÿšจ'],
53
53
  refactor: ['โ™ป๏ธ', '๐Ÿ—๏ธ'],
54
- test: ['โœ…'],
54
+ test: ['โœ…', '๐Ÿงช'],
55
55
  perf: ['โšก๏ธ'],
56
56
  revert: ['โช๏ธ'],
57
57
  ci: ['๐Ÿ‘ท', '๐Ÿ’š'],
58
58
  wip: ['๐Ÿšง'],
59
59
  build: [],
60
- chore: [],
60
+ chore: ['๐Ÿ”ง'],
61
61
  };
62
62
  const entries = Array.from(
63
63
  // @ts-ignore entries are not well typed
@@ -10,7 +10,7 @@ export interface TransformConfig {
10
10
  language?: Language;
11
11
  }
12
12
  export declare function displayScope(scope: string | null | undefined, scopeDisplayNameMap: Record<string, string>): string | undefined;
13
- export declare function displayType(type: CommitConventionalType, options?: displayType.Options): string;
13
+ export declare function displayType(type: CommitConventionalType | string, options?: displayType.Options): string;
14
14
  export declare namespace displayType {
15
15
  interface Options {
16
16
  readonly withEmoji?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/conventional-changelog",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "Conventional changelog plugin for @w5s",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/w5s/project-config/blob/main/packages/conventional-changelog#readme",
@@ -31,9 +31,9 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "build": "concurrently \"npm:build:*\" \":\"",
34
- "build:src": "tsc -b tsconfig.build.json",
34
+ "build:tsc": "tsc -b tsconfig.build.json",
35
35
  "clean": "concurrently \"npm:clean:*\" \":\"",
36
- "clean:src": "rm -rf lib/*",
36
+ "clean:tsc": "rm -rf lib",
37
37
  "docs": "node ../../markdown.mjs",
38
38
  "format": "concurrently \"npm:format:*\" \":\"",
39
39
  "format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
@@ -65,7 +65,7 @@
65
65
  "gitmojis": "^3.13.4"
66
66
  },
67
67
  "devDependencies": {
68
- "@jest/globals": "29.4.1",
68
+ "@jest/globals": "29.4.2",
69
69
  "@types/conventional-changelog-writer": "4.0.2",
70
70
  "@types/conventional-commits-parser": "3.0.3"
71
71
  },
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "cdb08978935c78ac2303b9a00f42f791e6361306"
78
+ "gitHead": "918c1157da6808ff19124ee96a4fe499f0da1877"
79
79
  }
package/src/gitmoji.ts CHANGED
@@ -61,13 +61,13 @@ export namespace GitmojiCode {
61
61
  docs: ['๐Ÿ“'] as GitmojiCode.Unicode[],
62
62
  style: ['๐ŸŽจ', '๐Ÿšจ'] as GitmojiCode.Unicode[],
63
63
  refactor: ['โ™ป๏ธ', '๐Ÿ—๏ธ'] as GitmojiCode.Unicode[],
64
- test: ['โœ…'] as GitmojiCode.Unicode[],
64
+ test: ['โœ…', '๐Ÿงช'] as GitmojiCode.Unicode[],
65
65
  perf: ['โšก๏ธ'] as GitmojiCode.Unicode[],
66
66
  revert: ['โช๏ธ'] as GitmojiCode.Unicode[],
67
67
  ci: ['๐Ÿ‘ท', '๐Ÿ’š'] as GitmojiCode.Unicode[],
68
68
  wip: ['๐Ÿšง'] as GitmojiCode.Unicode[],
69
69
  build: [] as GitmojiCode.Unicode[],
70
- chore: [] as GitmojiCode.Unicode[],
70
+ chore: ['๐Ÿ”ง'] as GitmojiCode.Unicode[],
71
71
  };
72
72
 
73
73
  const entries = Array.from<[CommitConventionalType, GitmojiCode.Unicode[]]>(
package/src/transform.ts CHANGED
@@ -21,7 +21,7 @@ export function displayScope(scope: string | null | undefined, scopeDisplayNameM
21
21
  : scopeDisplayNameMap[scope];
22
22
  }
23
23
 
24
- export function displayType(type: CommitConventionalType, options: displayType.Options = {}): string {
24
+ export function displayType(type: CommitConventionalType | string, options: displayType.Options = {}): string {
25
25
  const { withEmoji = true, language = 'en-US' } = options;
26
26
 
27
27
  if (CommitConventionalType.hasInstance(type)) {