@jeromefitz/conventional-gitmoji 5.0.0 → 5.0.2-canary.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.
Files changed (81) hide show
  1. package/changelog/config.d.mts.map +1 -1
  2. package/changelog/config.mjs +1 -1
  3. package/changelog/config.mjs.map +1 -1
  4. package/changelog/index.d.mts +33 -2
  5. package/changelog/index.d.mts.map +1 -1
  6. package/changelog/index.mjs +2 -1
  7. package/changelog/index.mjs.map +1 -0
  8. package/changelog/utils/conventionalChangelog.d.mts +18 -1
  9. package/changelog/utils/conventionalChangelog.d.mts.map +1 -1
  10. package/changelog/utils/conventionalChangelog.mjs +2 -1
  11. package/changelog/utils/conventionalChangelog.mjs.map +1 -0
  12. package/changelog/utils/conventionalRecommendedBump.mjs +1 -1
  13. package/changelog/utils/conventionalRecommendedBump.mjs.map +1 -1
  14. package/changelog/utils/gitRawCommit.mjs +1 -1
  15. package/changelog/utils/gitRawCommit.mjs.map +1 -1
  16. package/changelog/utils/parserOpts.mjs +1 -1
  17. package/changelog/utils/parserOpts.mjs.map +1 -1
  18. package/changelog/utils/transformer.d.mts +2 -5
  19. package/changelog/utils/transformer.mjs +2 -1
  20. package/changelog/utils/transformer.mjs.map +1 -0
  21. package/changelog/utils/writerOpts.d.mts +18 -1
  22. package/changelog/utils/writerOpts.d.mts.map +1 -1
  23. package/changelog/utils/writerOpts.mjs +2 -1
  24. package/changelog/utils/writerOpts.mjs.map +1 -0
  25. package/commit-DoYlYJa4.d.mts +7 -0
  26. package/commit-DoYlYJa4.d.mts.map +1 -0
  27. package/{commit.types-CwGP9mlg.d.mts → commit.types-DPyU2vsu.d.mts} +1 -1
  28. package/{commit.types-CwGP9mlg.d.mts.map → commit.types-DPyU2vsu.d.mts.map} +1 -1
  29. package/config/rewrites.d.mts.map +1 -1
  30. package/config/rewrites.mjs +1 -1
  31. package/config/rewrites.mjs.map +1 -1
  32. package/config/types.d.mts +1 -1
  33. package/config/types.d.mts.map +1 -1
  34. package/config/types.mjs +1 -1
  35. package/config/types.mjs.map +1 -1
  36. package/getGitmojiConventional--fq9z1BR.mjs +2 -0
  37. package/getGitmojiConventional--fq9z1BR.mjs.map +1 -0
  38. package/index.d.mts +4 -82
  39. package/index.mjs +2 -1
  40. package/index.mjs.map +1 -0
  41. package/package.json +5 -4
  42. package/{releaseRule-CBYQ7ZCz.d.mts → releaseRule-D6EOu-lK.d.mts} +2 -2
  43. package/releaseRule-D6EOu-lK.d.mts.map +1 -0
  44. package/{releaseRule.types-BKQjfcDG.d.mts → releaseRule.types-AZVO5a6m.d.mts} +2 -2
  45. package/{releaseRule.types-BKQjfcDG.d.mts.map → releaseRule.types-AZVO5a6m.d.mts.map} +1 -1
  46. package/transformer-CIjAkGw8.d.mts +155 -0
  47. package/transformer-CIjAkGw8.d.mts.map +1 -0
  48. package/types/commit.d.mts +1 -1
  49. package/types/commit.mjs +1 -1
  50. package/types/commit.mjs.map +1 -1
  51. package/types/commit.types.d.mts +2 -2
  52. package/types/commit.types.mjs +1 -1
  53. package/types/index.d.mts +5 -5
  54. package/types/index.mjs +1 -1
  55. package/types/releaseRule.d.mts +1 -1
  56. package/types/releaseRule.mjs +1 -1
  57. package/types/releaseRule.mjs.map +1 -1
  58. package/types/releaseRule.types.d.mts +2 -2
  59. package/types/releaseRule.types.mjs +1 -1
  60. package/utils/getGitmojiConventional.d.mts +1 -1
  61. package/utils/getGitmojiConventional.d.mts.map +1 -1
  62. package/utils/getGitmojiConventional.mjs +1 -1
  63. package/utils/getReleaseRules.d.mts +1 -1
  64. package/utils/getReleaseRules.d.mts.map +1 -1
  65. package/utils/getReleaseRules.mjs +1 -1
  66. package/utils/getReleaseRules.mjs.map +1 -1
  67. package/utils/getTypeSpecs.d.mts +3 -2
  68. package/utils/getTypeSpecs.d.mts.map +1 -1
  69. package/utils/getTypeSpecs.mjs +1 -1
  70. package/utils/getTypeSpecs.mjs.map +1 -1
  71. package/changelog/utils/transformer.d.mts.map +0 -1
  72. package/chunk-sEf7NbmF.mjs +0 -1
  73. package/commit-FQNQu-d7.d.mts +0 -7
  74. package/commit-FQNQu-d7.d.mts.map +0 -1
  75. package/getGitmojiConventional-aDc1od8Y.mjs +0 -2
  76. package/getGitmojiConventional-aDc1od8Y.mjs.map +0 -1
  77. package/index.d.mts.map +0 -1
  78. package/releaseRule-CBYQ7ZCz.d.mts.map +0 -1
  79. package/src-CkJZyMGZ.mjs +0 -2
  80. package/src-CkJZyMGZ.mjs.map +0 -1
  81. /package/{index-DvIJYkSC.d.mts → index-BVVgDSdq.d.mts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.mts","names":[],"sources":["../../src/changelog/config.ts"],"mappings":";;;;;;;;;;;;;;;cAeM,MAAA"}
1
+ {"version":3,"file":"config.d.mts","names":[],"sources":["../../src/changelog/config.ts"],"mappings":";;;;;;AAeiB;;;;;;;;;cAAX,MAAA"}
@@ -1,2 +1,2 @@
1
- import"../chunk-sEf7NbmF.mjs";const e={};export{e as default};
1
+ const e={};export{e as default};
2
2
  //# sourceMappingURL=config.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.mjs","names":[],"sources":["../../src/changelog/config.ts"],"sourcesContent":["/**\n * @todo pull this from `changelog.config`\n *\n * Search in the repo we are in for the following types of files:\n *\n * * - changelog.config.cs\n * * - changelog.config.js\n * * - changelog.config.ts\n *\n * Then use this to inform the writerOpts\n *\n * * For now we are going to put in the generic defaults\n *\n */\n\nconst config = {}\n\nexport default config\n"],"mappings":"8BAeA,MAAM,EAAS,EAAE"}
1
+ {"version":3,"file":"config.mjs","names":[],"sources":["../../src/changelog/config.ts"],"sourcesContent":["/**\n * @todo pull this from `changelog.config`\n *\n * Search in the repo we are in for the following types of files:\n *\n * * - changelog.config.cs\n * * - changelog.config.js\n * * - changelog.config.ts\n *\n * Then use this to inform the writerOpts\n *\n * * For now we are going to put in the generic defaults\n *\n */\n\nconst config = {}\n\nexport default config\n"],"mappings":"AAeA,MAAM,EAAS,CAAC"}
@@ -1,3 +1,6 @@
1
+ import { t as ICommit } from "../commit.types-DPyU2vsu.mjs";
2
+ import { t as TransformCommit } from "../transformer-CIjAkGw8.mjs";
3
+
1
4
  //#region src/changelog/index.d.ts
2
5
  declare const changelog: {
3
6
  conventionalChangelog: {
@@ -15,7 +18,21 @@ declare const changelog: {
15
18
  groupBy: string;
16
19
  noteGroupsSort: string[];
17
20
  notesSort: string[];
18
- transform: (commit: any, context: any) => any;
21
+ transform: (commit: TransformCommit, context: unknown) => {
22
+ hash: string | null | undefined;
23
+ subject: string;
24
+ type: string;
25
+ typeSpec: {
26
+ type?: ICommit | undefined;
27
+ code: string;
28
+ description: string;
29
+ emoji: string;
30
+ semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
31
+ value?: ICommit | undefined;
32
+ };
33
+ typeSpecIndex: number;
34
+ notes: unknown[];
35
+ } | undefined;
19
36
  };
20
37
  };
21
38
  gitRawCommitsOpts: {
@@ -49,7 +66,21 @@ declare const changelog: {
49
66
  groupBy: string;
50
67
  noteGroupsSort: string[];
51
68
  notesSort: string[];
52
- transform: (commit: any, context: any) => any;
69
+ transform: (commit: TransformCommit, context: unknown) => {
70
+ hash: string | null | undefined;
71
+ subject: string;
72
+ type: string;
73
+ typeSpec: {
74
+ type?: ICommit | undefined;
75
+ code: string;
76
+ description: string;
77
+ emoji: string;
78
+ semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
79
+ value?: ICommit | undefined;
80
+ };
81
+ typeSpecIndex: number;
82
+ notes: unknown[];
83
+ } | undefined;
53
84
  };
54
85
  };
55
86
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/changelog/index.ts"],"mappings":";cAMM,SAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/changelog/index.ts"],"mappings":";;;;cAMM,SAAA"}
@@ -1 +1,2 @@
1
- import"../chunk-sEf7NbmF.mjs";import{s as e}from"../src-CkJZyMGZ.mjs";import"../getGitmojiConventional-aDc1od8Y.mjs";export{e as default};
1
+ import e from"./utils/parserOpts.mjs";import t from"./utils/writerOpts.mjs";import n from"./utils/conventionalChangelog.mjs";import r from"./utils/conventionalRecommendedBump.mjs";import i from"./utils/gitRawCommit.mjs";const a={conventionalChangelog:n,gitRawCommitsOpts:i,parserOpts:e,recommendedBumpOpts:r,writerOpts:t};export{a as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/changelog/index.ts"],"sourcesContent":["import conventionalChangelog from './utils/conventionalChangelog'\nimport recommendedBumpOpts from './utils/conventionalRecommendedBump'\nimport gitRawCommitsOpts from './utils/gitRawCommit'\nimport parserOpts from './utils/parserOpts'\nimport writerOpts from './utils/writerOpts'\n\nconst changelog = {\n conventionalChangelog,\n gitRawCommitsOpts,\n parserOpts,\n recommendedBumpOpts,\n writerOpts,\n}\n\nexport default changelog\n"],"mappings":"4NAMA,MAAM,EAAY,CAChB,wBACA,kBAAA,EACA,aACA,oBAAA,EACA,YACF"}
@@ -1,3 +1,6 @@
1
+ import { t as ICommit } from "../../commit.types-DPyU2vsu.mjs";
2
+ import { t as TransformCommit } from "../../transformer-CIjAkGw8.mjs";
3
+
1
4
  //#region src/changelog/utils/conventionalChangelog.d.ts
2
5
  declare const conventionalChangelog: {
3
6
  parserOpts: {
@@ -14,7 +17,21 @@ declare const conventionalChangelog: {
14
17
  groupBy: string;
15
18
  noteGroupsSort: string[];
16
19
  notesSort: string[];
17
- transform: (commit: any, context: any) => any;
20
+ transform: (commit: TransformCommit, context: unknown) => {
21
+ hash: string | null | undefined;
22
+ subject: string;
23
+ type: string;
24
+ typeSpec: {
25
+ type?: ICommit | undefined;
26
+ code: string;
27
+ description: string;
28
+ emoji: string;
29
+ semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
30
+ value?: ICommit | undefined;
31
+ };
32
+ typeSpecIndex: number;
33
+ notes: unknown[];
34
+ } | undefined;
18
35
  };
19
36
  };
20
37
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"conventionalChangelog.d.mts","names":[],"sources":["../../../src/changelog/utils/conventionalChangelog.ts"],"mappings":";cAGM,qBAAA;;;mBAAkD,MAAA;;;;mBAAA,MAAA;EAAA"}
1
+ {"version":3,"file":"conventionalChangelog.d.mts","names":[],"sources":["../../../src/changelog/utils/conventionalChangelog.ts"],"mappings":";;;;cAGM,qBAAA"}
@@ -1 +1,2 @@
1
- import"../../chunk-sEf7NbmF.mjs";import{c as e}from"../../src-CkJZyMGZ.mjs";import"../../getGitmojiConventional-aDc1od8Y.mjs";export{e as default};
1
+ import e from"./parserOpts.mjs";import t from"./writerOpts.mjs";const n={parserOpts:e,writerOpts:t};export{n as default};
2
+ //# sourceMappingURL=conventionalChangelog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conventionalChangelog.mjs","names":[],"sources":["../../../src/changelog/utils/conventionalChangelog.ts"],"sourcesContent":["import parserOpts from './parserOpts'\nimport writerOpts from './writerOpts'\n\nconst conventionalChangelog = { parserOpts, writerOpts }\n\nexport default conventionalChangelog\n"],"mappings":"gEAGA,MAAM,EAAwB,CAAE,aAAY,YAAW"}
@@ -1,2 +1,2 @@
1
- import"../../chunk-sEf7NbmF.mjs";import e from"./parserOpts.mjs";const t={parserOpts:e,whatBump:e=>{let t=2,n=0,r=0;return e.forEach(e=>{e.notes.length>0?(n+=e.notes.length,t=0):e.type===`feat`&&(r+=1,t===2&&(t=1))}),{level:t,reason:n===1?`There is ${n} BREAKING CHANGE and ${r} features`:`There are ${n} BREAKING CHANGES and ${r} features`}}};export{t as default};
1
+ import e from"./parserOpts.mjs";const t={parserOpts:e,whatBump:e=>{let t=2,n=0,r=0;return e.forEach(e=>{e.notes.length>0?(n+=e.notes.length,t=0):e.type===`feat`&&(r+=1,t===2&&(t=1))}),{level:t,reason:n===1?`There is ${n} BREAKING CHANGE and ${r} features`:`There are ${n} BREAKING CHANGES and ${r} features`}}};export{t as default};
2
2
  //# sourceMappingURL=conventionalRecommendedBump.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"conventionalRecommendedBump.mjs","names":[],"sources":["../../../src/changelog/utils/conventionalRecommendedBump.ts"],"sourcesContent":["/**\n * @ref https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/conventional-recommended-bump.js\n */\nimport parserOpts from './parserOpts'\n\nconst conventionalRecommendedBump = {\n parserOpts,\n whatBump: (commits) => {\n let level = 2\n let breakings = 0\n let features = 0\n\n commits.forEach((commit) => {\n if (commit.notes.length > 0) {\n breakings += commit.notes.length\n level = 0\n } else if (commit.type === `feat`) {\n features += 1\n if (level === 2) {\n level = 1\n }\n }\n })\n\n return {\n level,\n reason:\n breakings === 1\n ? `There is ${breakings} BREAKING CHANGE and ${features} features`\n : `There are ${breakings} BREAKING CHANGES and ${features} features`,\n }\n },\n}\n\nexport default conventionalRecommendedBump\n"],"mappings":"iEAKA,MAAM,EAA8B,CAClC,aACA,SAAW,GAAY,CACrB,IAAI,EAAQ,EACR,EAAY,EACZ,EAAW,EAcf,OAZA,EAAQ,QAAS,GAAW,CACtB,EAAO,MAAM,OAAS,GACxB,GAAa,EAAO,MAAM,OAC1B,EAAQ,GACC,EAAO,OAAS,SACzB,GAAY,EACR,IAAU,IACZ,EAAQ,KAGZ,CAEK,CACL,QACA,OACE,IAAc,EACV,YAAY,EAAU,uBAAuB,EAAS,WACtD,aAAa,EAAU,wBAAwB,EAAS,WAC/D,EAEJ"}
1
+ {"version":3,"file":"conventionalRecommendedBump.mjs","names":[],"sources":["../../../src/changelog/utils/conventionalRecommendedBump.ts"],"sourcesContent":["/**\n * @ref https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/conventional-recommended-bump.js\n */\nimport parserOpts from './parserOpts'\n\nconst conventionalRecommendedBump = {\n parserOpts,\n whatBump: (commits) => {\n let level = 2\n let breakings = 0\n let features = 0\n\n commits.forEach((commit) => {\n if (commit.notes.length > 0) {\n breakings += commit.notes.length\n level = 0\n } else if (commit.type === `feat`) {\n features += 1\n if (level === 2) {\n level = 1\n }\n }\n })\n\n return {\n level,\n reason:\n breakings === 1\n ? `There is ${breakings} BREAKING CHANGE and ${features} features`\n : `There are ${breakings} BREAKING CHANGES and ${features} features`,\n }\n },\n}\n\nexport default conventionalRecommendedBump\n"],"mappings":"gCAKA,MAAM,EAA8B,CAClC,aACA,SAAW,GAAY,CACrB,IAAI,EAAQ,EACR,EAAY,EACZ,EAAW,EAcf,OAZA,EAAQ,QAAS,GAAW,CACtB,EAAO,MAAM,OAAS,GACxB,GAAa,EAAO,MAAM,OAC1B,EAAQ,GACC,EAAO,OAAS,SACzB,GAAY,EACR,IAAU,IACZ,EAAQ,GAGd,CAAC,EAEM,CACL,QACA,OACE,IAAc,EACV,YAAY,EAAU,uBAAuB,EAAS,WACtD,aAAa,EAAU,wBAAwB,EAAS,UAChE,CACF,CACF"}
@@ -1,2 +1,2 @@
1
- import"../../chunk-sEf7NbmF.mjs";const e={format:`%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae`};export{e as default};
1
+ const e={format:`%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae`};export{e as default};
2
2
  //# sourceMappingURL=gitRawCommit.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"gitRawCommit.mjs","names":[],"sources":["../../../src/changelog/utils/gitRawCommit.ts"],"sourcesContent":["/**\n * @ref https://github.com/conventional-changelog/conventional-changelog/issues/349#issuecomment-497686185\n */\n\nconst gitRawCommit = {\n format:\n '%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae',\n}\n\nexport default gitRawCommit\n"],"mappings":"iCAIA,MAAM,EAAe,CACnB,OACE,6FACH"}
1
+ {"version":3,"file":"gitRawCommit.mjs","names":[],"sources":["../../../src/changelog/utils/gitRawCommit.ts"],"sourcesContent":["/**\n * @ref https://github.com/conventional-changelog/conventional-changelog/issues/349#issuecomment-497686185\n */\n\nconst gitRawCommit = {\n format:\n '%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae',\n}\n\nexport default gitRawCommit\n"],"mappings":"AAIA,MAAM,EAAe,CACnB,OACE,4FACJ"}
@@ -1,2 +1,2 @@
1
- import"../../chunk-sEf7NbmF.mjs";const e={headerCorrespondence:[`type`,`scope`,`subject`,`ticket`],headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,issuePrefixes:[`1b9fe48b-292c-46e7-bfde-0599639d0ec0`],noteKeywords:[`BREAKING CHANGE`,`BREAKING CHANGES`],referenceActions:[`b6db85c1-4860-4275-88e3-bd9917a0b29f`],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./};export{e as default};
1
+ const e={headerCorrespondence:[`type`,`scope`,`subject`,`ticket`],headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,issuePrefixes:[`1b9fe48b-292c-46e7-bfde-0599639d0ec0`],noteKeywords:[`BREAKING CHANGE`,`BREAKING CHANGES`],referenceActions:[`b6db85c1-4860-4275-88e3-bd9917a0b29f`],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./};export{e as default};
2
2
  //# sourceMappingURL=parserOpts.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"parserOpts.mjs","names":[],"sources":["../../../src/changelog/utils/parserOpts.ts"],"sourcesContent":["const parserOpts = {\n headerCorrespondence: ['type', 'scope', 'subject', 'ticket'],\n headerPattern: /^(.*?)(?:\\((.*)\\))?:?\\s(.*)$/,\n // random uuid to ensure these will never get called\n issuePrefixes: ['1b9fe48b-292c-46e7-bfde-0599639d0ec0'],\n noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],\n //\n // @todo(conventional-commits-parser) can this be removed w/ renovate?\n // @hack(conventional-commits-parser) 🤖️ dependabot workaround\n referenceActions: ['b6db85c1-4860-4275-88e3-bd9917a0b29f'],\n // referenceActions: typeSpecs.map(({ type }) => type),\n revertPattern: /^Revert\\s\"([\\s\\S]*)\"\\s*This reverts commit (\\w*)\\./,\n}\n\nexport default parserOpts\n"],"mappings":"iCAAA,MAAM,EAAa,CACjB,qBAAsB,CAAC,OAAQ,QAAS,UAAW,SAAS,CAC5D,cAAe,+BAEf,cAAe,CAAC,uCAAuC,CACvD,aAAc,CAAC,kBAAmB,mBAAmB,CAIrD,iBAAkB,CAAC,uCAAuC,CAE1D,cAAe,qDAChB"}
1
+ {"version":3,"file":"parserOpts.mjs","names":[],"sources":["../../../src/changelog/utils/parserOpts.ts"],"sourcesContent":["const parserOpts = {\n headerCorrespondence: ['type', 'scope', 'subject', 'ticket'],\n headerPattern: /^(.*?)(?:\\((.*)\\))?:?\\s(.*)$/,\n // random uuid to ensure these will never get called\n issuePrefixes: ['1b9fe48b-292c-46e7-bfde-0599639d0ec0'],\n noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],\n //\n // @todo(conventional-commits-parser) can this be removed w/ renovate?\n // @hack(conventional-commits-parser) 🤖️ dependabot workaround\n referenceActions: ['b6db85c1-4860-4275-88e3-bd9917a0b29f'],\n // referenceActions: typeSpecs.map(({ type }) => type),\n revertPattern: /^Revert\\s\"([\\s\\S]*)\"\\s*This reverts commit (\\w*)\\./,\n}\n\nexport default parserOpts\n"],"mappings":"AAAA,MAAM,EAAa,CACjB,qBAAsB,CAAC,OAAQ,QAAS,UAAW,QAAQ,EAC3D,cAAe,+BAEf,cAAe,CAAC,sCAAsC,EACtD,aAAc,CAAC,kBAAmB,kBAAkB,EAIpD,iBAAkB,CAAC,sCAAsC,EAEzD,cAAe,oDACjB"}
@@ -1,5 +1,2 @@
1
- //#region src/changelog/utils/transformer.d.ts
2
- declare const transformer: (commit: any, _context: any) => any;
3
- //#endregion
4
- export { transformer as default };
5
- //# sourceMappingURL=transformer.d.mts.map
1
+ import { n as transformer, t as TransformCommit } from "../../transformer-CIjAkGw8.mjs";
2
+ export { TransformCommit, transformer as default };
@@ -1 +1,2 @@
1
- import"../../chunk-sEf7NbmF.mjs";import{u as e}from"../../src-CkJZyMGZ.mjs";import"../../getGitmojiConventional-aDc1od8Y.mjs";export{e as default};
1
+ import{t as e}from"../../getGitmojiConventional--fq9z1BR.mjs";import t from"../../utils/getTypeSpecs.mjs";import n from"grapheme-splitter";const r=t(e()),i=new n,a=e=>e.replace(/:/g,``),o=e=>{if(e===null)return-1;let t=r.findIndex(({code:t,emoji:n,type:r,value:i})=>a(e)===a(t)||e===r||e===i||e===n);if(t!==-1)return t;let n=i.splitGraphemes(e)[0];return r.findIndex(({emoji:e})=>n[0]===e[0]||n[0]===i.splitGraphemes(e)[0])},s=(e,t)=>{let n=o(e.type);if(n===-1||e.subject==null)return;let a=r[n],s=i.splitGraphemes(e.subject),c=(s[0]===a.emoji?s.slice(2).join(``):e.subject).trim();return{...e,hash:typeof e.hash==`string`?e.hash.substring(0,7):e.hash,subject:c,type:`${a.emoji} ${a.description}`,typeSpec:a,typeSpecIndex:n}};export{s as default};
2
+ //# sourceMappingURL=transformer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformer.mjs","names":["getGitmojiConventional"],"sources":["../../../src/changelog/utils/transformer.ts"],"sourcesContent":["import GraphemeSplitter from 'grapheme-splitter'\n\nimport getGitmojiConventional from '../../utils/getGitmojiConventional'\nimport getTypeSpecs from '../../utils/getTypeSpecs'\n\n// Derive typeSpecs from the utils directly (not the package barrel) to avoid a\n// circular import: index -> changelog -> writerOpts -> transformer -> index.\nconst typeSpecs = getTypeSpecs(getGitmojiConventional())\nconst splitter = new GraphemeSplitter()\n\nconst stripColons = (value: string) => value.replace(/:/g, '')\n\nconst findTypeSpecIndex = (type: null | string) => {\n if (type === null) return -1\n\n // Match against any known form: de-colon'd shortcode, conventional word,\n // value, or gitmoji.\n const direct = typeSpecs.findIndex(\n ({ code, emoji, type: word, value }) =>\n stripColons(type) === stripColons(code) ||\n type === word ||\n type === value ||\n type === emoji,\n )\n if (direct !== -1) return direct\n\n // Fallback: the type may be a gitmoji glued to other text — match on the\n // first grapheme.\n const first = splitter.splitGraphemes(type)[0]\n return typeSpecs.findIndex(\n ({ emoji }) =>\n first[0] === emoji[0] || first[0] === splitter.splitGraphemes(emoji)[0],\n )\n}\n\nexport interface TransformCommit {\n type: string | null\n hash?: string | null\n subject: string | null\n notes: unknown[]\n [key: string]: unknown\n}\n\nconst transformer = (commit: TransformCommit, _context: unknown) => {\n const typeSpecIndex = findTypeSpecIndex(commit.type)\n if (typeSpecIndex === -1) return\n if (commit.subject == null) return\n\n const typeSpec = typeSpecs[typeSpecIndex]\n\n // Drop the leading gitmoji (and the space after it) from the subject.\n const graphemes = splitter.splitGraphemes(commit.subject)\n const subject = (\n graphemes[0] === typeSpec.emoji ? graphemes.slice(2).join('') : commit.subject\n ).trim()\n\n return {\n ...commit,\n hash:\n typeof commit.hash === 'string' ? commit.hash.substring(0, 7) : commit.hash,\n subject,\n type: `${typeSpec.emoji} ${typeSpec.description}`,\n typeSpec,\n typeSpecIndex,\n }\n}\n\nexport default transformer\n"],"mappings":"2IAOA,MAAM,EAAY,EAAaA,EAAuB,CAAC,EACjD,EAAW,IAAI,EAEf,EAAe,GAAkB,EAAM,QAAQ,KAAM,EAAE,EAEvD,EAAqB,GAAwB,CACjD,GAAI,IAAS,KAAM,MAAO,GAI1B,IAAM,EAAS,EAAU,WACtB,CAAE,OAAM,QAAO,KAAM,EAAM,WAC1B,EAAY,CAAI,IAAM,EAAY,CAAI,GACtC,IAAS,GACT,IAAS,GACT,IAAS,CACb,EACA,GAAI,IAAW,GAAI,OAAO,EAI1B,IAAM,EAAQ,EAAS,eAAe,CAAI,EAAE,GAC5C,OAAO,EAAU,WACd,CAAE,WACD,EAAM,KAAO,EAAM,IAAM,EAAM,KAAO,EAAS,eAAe,CAAK,EAAE,EACzE,CACF,EAUM,GAAe,EAAyB,IAAsB,CAClE,IAAM,EAAgB,EAAkB,EAAO,IAAI,EAEnD,GADI,IAAkB,IAClB,EAAO,SAAW,KAAM,OAE5B,IAAM,EAAW,EAAU,GAGrB,EAAY,EAAS,eAAe,EAAO,OAAO,EAClD,GACJ,EAAU,KAAO,EAAS,MAAQ,EAAU,MAAM,CAAC,EAAE,KAAK,EAAE,EAAI,EAAO,SACvE,KAAK,EAEP,MAAO,CACL,GAAG,EACH,KACE,OAAO,EAAO,MAAS,SAAW,EAAO,KAAK,UAAU,EAAG,CAAC,EAAI,EAAO,KACzE,UACA,KAAM,GAAG,EAAS,MAAM,IAAI,EAAS,cACrC,WACA,eACF,CACF"}
@@ -1,3 +1,6 @@
1
+ import { t as ICommit } from "../../commit.types-DPyU2vsu.mjs";
2
+ import { t as TransformCommit } from "../../transformer-CIjAkGw8.mjs";
3
+
1
4
  //#region src/changelog/utils/writerOpts.d.ts
2
5
  /**
3
6
  * @note (semantic)
@@ -17,7 +20,21 @@ declare const writerOpts: {
17
20
  groupBy: string;
18
21
  noteGroupsSort: string[];
19
22
  notesSort: string[];
20
- transform: (commit: any, context: any) => any;
23
+ transform: (commit: TransformCommit, context: unknown) => {
24
+ hash: string | null | undefined;
25
+ subject: string;
26
+ type: string;
27
+ typeSpec: {
28
+ type?: ICommit | undefined;
29
+ code: string;
30
+ description: string;
31
+ emoji: string;
32
+ semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
33
+ value?: ICommit | undefined;
34
+ };
35
+ typeSpecIndex: number;
36
+ notes: unknown[];
37
+ } | undefined;
21
38
  };
22
39
  //#endregion
23
40
  export { writerOpts as default };
@@ -1 +1 @@
1
- {"version":3,"file":"writerOpts.d.mts","names":[],"sources":["../../../src/changelog/utils/writerOpts.ts"],"mappings":";;;;;;;;;;;;;cAgBM,UAAA;;;;;;2BAOmB,OAAA;AAAA"}
1
+ {"version":3,"file":"writerOpts.d.mts","names":[],"sources":["../../../src/changelog/utils/writerOpts.ts"],"mappings":";;;;;;;AAAoD;;;;;;;;;cAkB9C,UAAA;;;;;;sBAOgB,eAAA,EAAe,OAAA;;;;;aAAA,OAAA"}
@@ -1 +1,2 @@
1
- import"../../chunk-sEf7NbmF.mjs";import{l as e}from"../../src-CkJZyMGZ.mjs";import"../../getGitmojiConventional-aDc1od8Y.mjs";export{e as default};
1
+ import e from"./transformer.mjs";const t={commitGroupsSort:[`order`,`title`],commitsSort:[`scope`,`subject`],groupBy:`type`,noteGroupsSort:[`title`],notesSort:[`title`],transform:(t,n)=>e(t,n)};export{t as default};
2
+ //# sourceMappingURL=writerOpts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writerOpts.mjs","names":[],"sources":["../../../src/changelog/utils/writerOpts.ts"],"sourcesContent":["import type { TransformCommit } from './transformer'\n\nimport transformer from './transformer'\n\n/**\n * @note (semantic)\n * templates need to be redone away from handlebars\n * and will be replaced by remark or replace string\n */\n\n/**\n * @todo customize these configs\n *\n * - transform should receive config\n * - all writerOpts should be able to be overwritten\n * - i guess we are going _back_ to handlebars haha\n */\n\nconst writerOpts = {\n commitGroupsSort: ['order', 'title'],\n commitsSort: ['scope', 'subject'],\n groupBy: 'type',\n noteGroupsSort: ['title'],\n notesSort: ['title'],\n // @todo pass config from changelog here?\n transform: (commit: TransformCommit, context: unknown) =>\n transformer(commit, context),\n}\n\nexport default writerOpts\n"],"mappings":"iCAkBA,MAAM,EAAa,CACjB,iBAAkB,CAAC,QAAS,OAAO,EACnC,YAAa,CAAC,QAAS,SAAS,EAChC,QAAS,OACT,eAAgB,CAAC,OAAO,EACxB,UAAW,CAAC,OAAO,EAEnB,WAAY,EAAyB,IACnC,EAAY,EAAQ,CAAO,CAC/B"}
@@ -0,0 +1,7 @@
1
+ import { t as ICommit } from "./commit.types-DPyU2vsu.mjs";
2
+
3
+ //#region src/types/commit.d.ts
4
+ declare const commit: ICommit[];
5
+ //#endregion
6
+ export { commit as t };
7
+ //# sourceMappingURL=commit-DoYlYJa4.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commit-DoYlYJa4.d.mts","names":[],"sources":["../src/types/commit.ts"],"mappings":";;;cAEM,MAAA,EAAQ,OAAO"}
@@ -2,4 +2,4 @@
2
2
  type ICommit = 'access' | 'analytics' | 'animation' | 'arch' | 'assets' | 'backwards' | 'beer' | 'breaking' | 'build' | 'catch' | 'chore' | 'ci' | 'clean' | 'compat' | 'concurrency' | 'config' | 'contrib-add' | 'data' | 'db' | 'dep-add' | 'dep-rm' | 'dep-up' | 'deploy' | 'docs' | 'docs-code' | 'downgrade' | 'dx' | 'egg' | 'experiment' | 'feat' | 'fix' | 'fix-ci' | 'flags' | 'healthcheck' | 'hotfix' | 'i18n' | 'ignore' | 'inf' | 'init' | 'iphone' | 'license' | 'lint' | 'log-add' | 'log-rm' | 'logic' | 'merge' | 'mock' | 'mv' | 'offline' | 'patch' | 'perf' | 'poo' | 'prune' | 'pushpin' | 'refactor' | 'release' | 'revert' | 'rip' | 'roles' | 'rollforward' | 'run-build' | 'secrets' | 'security' | 'seed' | 'seo' | 'snapshot' | 'sponsor' | 'style' | 'test' | 'test-fail' | 'texts' | 'types' | 'typo' | 'ui' | 'upgrade' | 'ux' | 'validation' | 'wip';
3
3
  //#endregion
4
4
  export { ICommit as t };
5
- //# sourceMappingURL=commit.types-CwGP9mlg.d.mts.map
5
+ //# sourceMappingURL=commit.types-DPyU2vsu.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commit.types-CwGP9mlg.d.mts","names":[],"sources":["../src/types/commit.types.ts"],"mappings":";KAAK,OAAA"}
1
+ {"version":3,"file":"commit.types-DPyU2vsu.d.mts","names":[],"sources":["../src/types/commit.types.ts"],"mappings":";KAAK,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"rewrites.d.mts","names":[],"sources":["../../src/config/rewrites.ts"],"mappings":";;;;;KAOK,aAAA;EACH,MAAA;EACA,IAAA;EACA,MAAA;EACA,EAAA;AAAA;AAAA,cAGI,QAAA,EAAU,aAAA"}
1
+ {"version":3,"file":"rewrites.d.mts","names":[],"sources":["../../src/config/rewrites.ts"],"mappings":";;;;;KAOK,aAAA;EACH,MAAA;EACA,IAAA;EACA,MAAA;EACA,EAAA;AAAA;AAAA,cAGI,QAAA,EAAU,aAAa"}
@@ -1,2 +1,2 @@
1
- import"../chunk-sEf7NbmF.mjs";const e=[{from:`art`,to:`style`},{from:`zap`,to:`perf`},{from:`fire`,to:`prune`},{from:`bug`,to:`fix`,branch:`fix`},{from:`ambulance`,to:`hotfix`,branch:`hotfix`},{from:`sparkles`,to:`feat`,branch:`feature`},{from:`memo`,to:`docs`},{from:`rocket`,to:`deploy`},{from:`lipstick`,to:`ui`},{from:`tada`,to:`init`,semver:`patch`},{from:`white-check-mark`,to:`test`,branch:`test`},{from:`lock`,to:`security`},{from:`bookmark`,to:`release`,branch:`release`},{from:`rotating-light`,to:`lint`},{from:`construction`,to:`wip`},{from:`green-heart`,to:`fix-ci`},{from:`arrow-down`,to:`downgrade`},{from:`arrow-up`,to:`upgrade`},{from:`pushpin`,to:`pushpin`},{from:`construction-worker`,to:`ci`,branch:`ci`},{from:`chart-with-upwards-trend`,to:`analytics`},{from:`recycle`,to:`refactor`,branch:`refactor`},{from:`heavy-plus-sign`,to:`dep-add`},{from:`heavy-minus-sign`,to:`dep-rm`},{from:`wrench`,to:`config`},{from:`hammer`,to:`build`},{from:`globe-with-meridians`,to:`i18n`},{from:`pencil2`,to:`typo`},{from:`poop`,to:`poo`},{from:`rewind`,to:`revert`},{from:`twisted-rightwards-arrows`,to:`merge`},{from:`package`,to:`dep-up`},{from:`alien`,to:`compat`},{from:`truck`,to:`mv`},{from:`page-facing-up`,to:`license`},{from:`boom`,to:`breaking`,semver:`major`},{from:`bento`,to:`assets`},{from:`wheelchair`,to:`access`},{from:`bulb`,to:`docs-code`},{from:`beers`,to:`beer`},{from:`speech-balloon`,to:`texts`},{from:`card-file-box`,to:`db`},{from:`loud-sound`,to:`log-add`},{from:`mute`,to:`log-rm`},{from:`busts-in-silhouette`,to:`contrib-add`},{from:`children-crossing`,to:`ux`},{from:`building-construction`,to:`arch`},{from:`iphone`,to:`iphone`},{from:`clown-face`,to:`mock`},{from:`egg`,to:`egg`},{from:`see-no-evil`,to:`ignore`},{from:`camera-flash`,to:`snapshot`},{from:`alembic`,to:`experiment`},{from:`mag`,to:`seo`},{from:`label`,to:`types`},{from:`seedling`,to:`seed`},{from:`triangular-flag-on-post`,to:`flags`},{from:`goal-net`,to:`catch`},{from:`dizzy`,to:`animation`},{from:`wastebasket`,to:`clean`},{from:`passport-control`,to:`roles`},{from:`adhesive-bandage`,to:`patch`},{from:`monocle-face`,to:`data`},{from:`coffin`,to:`rip`},{from:`test-tube`,to:`test-fail`},{from:`necktie`,to:`logic`},{from:`stethoscope`,to:`healthcheck`},{from:`bricks`,to:`inf`},{from:`technologist`,to:`dx`},{from:`closed-lock-with-key`,to:`secrets`},{from:`money-with-wings`,to:`sponsor`},{from:`thread`,to:`concurrency`},{from:`safety-vest`,to:`validation`},{from:`t-rex`,to:`backwards`},{from:`airplane`,to:`offline`}];export{e as default};
1
+ const e=[{from:`art`,to:`style`},{from:`zap`,to:`perf`},{from:`fire`,to:`prune`},{from:`bug`,to:`fix`,branch:`fix`},{from:`ambulance`,to:`hotfix`,branch:`hotfix`},{from:`sparkles`,to:`feat`,branch:`feature`},{from:`memo`,to:`docs`},{from:`rocket`,to:`deploy`},{from:`lipstick`,to:`ui`},{from:`tada`,to:`init`,semver:`patch`},{from:`white-check-mark`,to:`test`,branch:`test`},{from:`lock`,to:`security`},{from:`bookmark`,to:`release`,branch:`release`},{from:`rotating-light`,to:`lint`},{from:`construction`,to:`wip`},{from:`green-heart`,to:`fix-ci`},{from:`arrow-down`,to:`downgrade`},{from:`arrow-up`,to:`upgrade`},{from:`pushpin`,to:`pushpin`},{from:`construction-worker`,to:`ci`,branch:`ci`},{from:`chart-with-upwards-trend`,to:`analytics`},{from:`recycle`,to:`refactor`,branch:`refactor`},{from:`heavy-plus-sign`,to:`dep-add`},{from:`heavy-minus-sign`,to:`dep-rm`},{from:`wrench`,to:`config`},{from:`hammer`,to:`build`},{from:`globe-with-meridians`,to:`i18n`},{from:`pencil2`,to:`typo`},{from:`poop`,to:`poo`},{from:`rewind`,to:`revert`},{from:`twisted-rightwards-arrows`,to:`merge`},{from:`package`,to:`dep-up`},{from:`alien`,to:`compat`},{from:`truck`,to:`mv`},{from:`page-facing-up`,to:`license`},{from:`boom`,to:`breaking`,semver:`major`},{from:`bento`,to:`assets`},{from:`wheelchair`,to:`access`},{from:`bulb`,to:`docs-code`},{from:`beers`,to:`beer`},{from:`speech-balloon`,to:`texts`},{from:`card-file-box`,to:`db`},{from:`loud-sound`,to:`log-add`},{from:`mute`,to:`log-rm`},{from:`busts-in-silhouette`,to:`contrib-add`},{from:`children-crossing`,to:`ux`},{from:`building-construction`,to:`arch`},{from:`iphone`,to:`iphone`},{from:`clown-face`,to:`mock`},{from:`egg`,to:`egg`},{from:`see-no-evil`,to:`ignore`},{from:`camera-flash`,to:`snapshot`},{from:`alembic`,to:`experiment`},{from:`mag`,to:`seo`},{from:`label`,to:`types`},{from:`seedling`,to:`seed`},{from:`triangular-flag-on-post`,to:`flags`},{from:`goal-net`,to:`catch`},{from:`dizzy`,to:`animation`},{from:`wastebasket`,to:`clean`},{from:`passport-control`,to:`roles`},{from:`adhesive-bandage`,to:`patch`},{from:`monocle-face`,to:`data`},{from:`coffin`,to:`rip`},{from:`test-tube`,to:`test-fail`},{from:`necktie`,to:`logic`},{from:`stethoscope`,to:`healthcheck`},{from:`bricks`,to:`inf`},{from:`technologist`,to:`dx`},{from:`closed-lock-with-key`,to:`secrets`},{from:`money-with-wings`,to:`sponsor`},{from:`thread`,to:`concurrency`},{from:`safety-vest`,to:`validation`},{from:`t-rex`,to:`backwards`},{from:`airplane`,to:`offline`}];export{e as default};
2
2
  //# sourceMappingURL=rewrites.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rewrites.mjs","names":[],"sources":["../../src/config/rewrites.ts"],"sourcesContent":["/** biome-ignore-all assist/source/useSortedKeys: migrate */\n\n/**\n * @note pseudo-map to conventional-commits\n */\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype RewritesProps = {\n branch?: null | string\n from: string\n semver?: 'breaking' | 'feature' | 'fix' | 'major' | 'minor' | 'patch' | null\n to: string\n}\n\nconst rewrites: RewritesProps[] = [\n { from: 'art', to: 'style' },\n { from: 'zap', to: 'perf' },\n { from: 'fire', to: 'prune' },\n { from: 'bug', to: 'fix', branch: 'fix' },\n { from: 'ambulance', to: 'hotfix', branch: 'hotfix' },\n { from: 'sparkles', to: 'feat', branch: 'feature' },\n { from: 'memo', to: 'docs' },\n { from: 'rocket', to: 'deploy' },\n { from: 'lipstick', to: 'ui' },\n { from: 'tada', to: 'init', semver: 'patch' },\n { from: 'white-check-mark', to: 'test', branch: 'test' },\n { from: 'lock', to: 'security' },\n { from: 'bookmark', to: 'release', branch: 'release' },\n { from: 'rotating-light', to: 'lint' },\n { from: 'construction', to: 'wip' },\n { from: 'green-heart', to: 'fix-ci' },\n { from: 'arrow-down', to: 'downgrade' },\n { from: 'arrow-up', to: 'upgrade' },\n { from: 'pushpin', to: 'pushpin' },\n { from: 'construction-worker', to: 'ci', branch: 'ci' },\n { from: 'chart-with-upwards-trend', to: 'analytics' },\n { from: 'recycle', to: 'refactor', branch: 'refactor' },\n { from: 'heavy-plus-sign', to: 'dep-add' },\n { from: 'heavy-minus-sign', to: 'dep-rm' },\n { from: 'wrench', to: 'config' },\n { from: 'hammer', to: 'build' },\n { from: 'globe-with-meridians', to: 'i18n' },\n { from: 'pencil2', to: 'typo' },\n { from: 'poop', to: 'poo' },\n { from: 'rewind', to: 'revert' },\n { from: 'twisted-rightwards-arrows', to: 'merge' },\n { from: 'package', to: 'dep-up' },\n { from: 'alien', to: 'compat' },\n { from: 'truck', to: 'mv' },\n { from: 'page-facing-up', to: 'license' },\n { from: 'boom', to: 'breaking', semver: 'major' },\n { from: 'bento', to: 'assets' },\n { from: 'wheelchair', to: 'access' },\n { from: 'bulb', to: 'docs-code' },\n { from: 'beers', to: 'beer' },\n { from: 'speech-balloon', to: 'texts' },\n { from: 'card-file-box', to: 'db' },\n { from: 'loud-sound', to: 'log-add' },\n { from: 'mute', to: 'log-rm' },\n { from: 'busts-in-silhouette', to: 'contrib-add' },\n { from: 'children-crossing', to: 'ux' },\n { from: 'building-construction', to: 'arch' },\n { from: 'iphone', to: 'iphone' },\n { from: 'clown-face', to: 'mock' },\n { from: 'egg', to: 'egg' },\n { from: 'see-no-evil', to: 'ignore' },\n { from: 'camera-flash', to: 'snapshot' },\n { from: 'alembic', to: 'experiment' },\n { from: 'mag', to: 'seo' },\n { from: 'label', to: 'types' },\n { from: 'seedling', to: 'seed' },\n { from: 'triangular-flag-on-post', to: 'flags' },\n { from: 'goal-net', to: 'catch' },\n { from: 'dizzy', to: 'animation' },\n { from: 'wastebasket', to: 'clean' },\n { from: 'passport-control', to: 'roles' },\n { from: 'adhesive-bandage', to: 'patch' },\n { from: 'monocle-face', to: 'data' },\n { from: 'coffin', to: 'rip' },\n { from: 'test-tube', to: 'test-fail' },\n { from: 'necktie', to: 'logic' },\n { from: 'stethoscope', to: 'healthcheck' },\n { from: 'bricks', to: 'inf' },\n { from: 'technologist', to: 'dx' },\n { from: 'closed-lock-with-key', to: 'secrets' },\n { from: 'money-with-wings', to: 'sponsor' },\n { from: 'thread', to: 'concurrency' },\n { from: 'safety-vest', to: 'validation' },\n { from: 't-rex', to: 'backwards' },\n { from: 'airplane', to: 'offline' },\n]\n\nexport default rewrites\n"],"mappings":"8BAcA,MAAM,EAA4B,CAChC,CAAE,KAAM,MAAO,GAAI,QAAS,CAC5B,CAAE,KAAM,MAAO,GAAI,OAAQ,CAC3B,CAAE,KAAM,OAAQ,GAAI,QAAS,CAC7B,CAAE,KAAM,MAAO,GAAI,MAAO,OAAQ,MAAO,CACzC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e,CAC1C,CAAE,KAAM,SAAU,GAAI,MAAO,CAC7B,CAAE,KAAM,eAAgB,GAAI,KAAM,CAClC,CAAE,KAAM,uBAAwB,GAAI,UAAW,CAC/C,CAAE,KAAM,mBAAoB,GAAI,UAAW,CAC3C,CAAE,KAAM,SAAU,GAAI,cAAe,CACrC,CAAE,KAAM,cAAe,GAAI,aAAc,CACzC,CAAE,KAAM,QAAS,GAAI,YAAa,CAClC,CAAE,KAAM,WAAY,GAAI,UAAW,CACpC"}
1
+ {"version":3,"file":"rewrites.mjs","names":[],"sources":["../../src/config/rewrites.ts"],"sourcesContent":["/** biome-ignore-all assist/source/useSortedKeys: migrate */\n\n/**\n * @note pseudo-map to conventional-commits\n */\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype RewritesProps = {\n branch?: null | string\n from: string\n semver?: 'breaking' | 'feature' | 'fix' | 'major' | 'minor' | 'patch' | null\n to: string\n}\n\nconst rewrites: RewritesProps[] = [\n { from: 'art', to: 'style' },\n { from: 'zap', to: 'perf' },\n { from: 'fire', to: 'prune' },\n { from: 'bug', to: 'fix', branch: 'fix' },\n { from: 'ambulance', to: 'hotfix', branch: 'hotfix' },\n { from: 'sparkles', to: 'feat', branch: 'feature' },\n { from: 'memo', to: 'docs' },\n { from: 'rocket', to: 'deploy' },\n { from: 'lipstick', to: 'ui' },\n { from: 'tada', to: 'init', semver: 'patch' },\n { from: 'white-check-mark', to: 'test', branch: 'test' },\n { from: 'lock', to: 'security' },\n { from: 'bookmark', to: 'release', branch: 'release' },\n { from: 'rotating-light', to: 'lint' },\n { from: 'construction', to: 'wip' },\n { from: 'green-heart', to: 'fix-ci' },\n { from: 'arrow-down', to: 'downgrade' },\n { from: 'arrow-up', to: 'upgrade' },\n { from: 'pushpin', to: 'pushpin' },\n { from: 'construction-worker', to: 'ci', branch: 'ci' },\n { from: 'chart-with-upwards-trend', to: 'analytics' },\n { from: 'recycle', to: 'refactor', branch: 'refactor' },\n { from: 'heavy-plus-sign', to: 'dep-add' },\n { from: 'heavy-minus-sign', to: 'dep-rm' },\n { from: 'wrench', to: 'config' },\n { from: 'hammer', to: 'build' },\n { from: 'globe-with-meridians', to: 'i18n' },\n { from: 'pencil2', to: 'typo' },\n { from: 'poop', to: 'poo' },\n { from: 'rewind', to: 'revert' },\n { from: 'twisted-rightwards-arrows', to: 'merge' },\n { from: 'package', to: 'dep-up' },\n { from: 'alien', to: 'compat' },\n { from: 'truck', to: 'mv' },\n { from: 'page-facing-up', to: 'license' },\n { from: 'boom', to: 'breaking', semver: 'major' },\n { from: 'bento', to: 'assets' },\n { from: 'wheelchair', to: 'access' },\n { from: 'bulb', to: 'docs-code' },\n { from: 'beers', to: 'beer' },\n { from: 'speech-balloon', to: 'texts' },\n { from: 'card-file-box', to: 'db' },\n { from: 'loud-sound', to: 'log-add' },\n { from: 'mute', to: 'log-rm' },\n { from: 'busts-in-silhouette', to: 'contrib-add' },\n { from: 'children-crossing', to: 'ux' },\n { from: 'building-construction', to: 'arch' },\n { from: 'iphone', to: 'iphone' },\n { from: 'clown-face', to: 'mock' },\n { from: 'egg', to: 'egg' },\n { from: 'see-no-evil', to: 'ignore' },\n { from: 'camera-flash', to: 'snapshot' },\n { from: 'alembic', to: 'experiment' },\n { from: 'mag', to: 'seo' },\n { from: 'label', to: 'types' },\n { from: 'seedling', to: 'seed' },\n { from: 'triangular-flag-on-post', to: 'flags' },\n { from: 'goal-net', to: 'catch' },\n { from: 'dizzy', to: 'animation' },\n { from: 'wastebasket', to: 'clean' },\n { from: 'passport-control', to: 'roles' },\n { from: 'adhesive-bandage', to: 'patch' },\n { from: 'monocle-face', to: 'data' },\n { from: 'coffin', to: 'rip' },\n { from: 'test-tube', to: 'test-fail' },\n { from: 'necktie', to: 'logic' },\n { from: 'stethoscope', to: 'healthcheck' },\n { from: 'bricks', to: 'inf' },\n { from: 'technologist', to: 'dx' },\n { from: 'closed-lock-with-key', to: 'secrets' },\n { from: 'money-with-wings', to: 'sponsor' },\n { from: 'th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GAAI,WAAY,EACjC,CAAE,KAAM,cAAe,GAAI,OAAQ,EACnC,CAAE,KAAM,mBAAoB,GAAI,OAAQ,EACxC,CAAE,KAAM,mBAAoB,GAAI,OAAQ,EACxC,CAAE,KAAM,eAAgB,GAAI,MAAO,EACnC,CAAE,KAAM,SAAU,GAAI,KAAM,EAC5B,CAAE,KAAM,YAAa,GAAI,WAAY,EACrC,CAAE,KAAM,UAAW,GAAI,OAAQ,EAC/B,CAAE,KAAM,cAAe,GAAI,aAAc,EACzC,CAAE,KAAM,SAAU,GAAI,KAAM,EAC5B,CAAE,KAAM,eAAgB,GAAI,IAAK,EACjC,CAAE,KAAM,uBAAwB,GAAI,SAAU,EAC9C,CAAE,KAAM,mBAAoB,GAAI,SAAU,EAC1C,CAAE,KAAM,SAAU,GAAI,aAAc,EACpC,CAAE,KAAM,cAAe,GAAI,YAAa,EACxC,CAAE,KAAM,QAAS,GAAI,WAAY,EACjC,CAAE,KAAM,WAAY,GAAI,SAAU,CACpC"}
@@ -1,4 +1,4 @@
1
- import { t as IReleaseRule } from "../releaseRule.types-BKQjfcDG.mjs";
1
+ import { t as IReleaseRule } from "../releaseRule.types-AZVO5a6m.mjs";
2
2
  //#region src/config/types.d.ts
3
3
  /**
4
4
  * @note
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../../src/config/types.ts"],"mappings":";;;;;;;;;AAAkD;;;;cAc5C,KAAA,EAAO,YAAA"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../../src/config/types.ts"],"mappings":";;;;;AAAkD;;;;AA6CjD;;;;cA/BK,KAAA,EAAO,YA+BZ"}
package/config/types.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import"../chunk-sEf7NbmF.mjs";const e={chore:{branch:`chore`,code:`:computer_disk:`,commit:`chore`,description:`Changes that don’t modify src or test files`,emoji:`💽️`,entity:`💽`,name:`computer-disk`,semver:null},rollforward:{branch:null,code:`:fast_forward:`,commit:`rollforward`,description:`Create rollforward version.`,emoji:`⏩️`,entity:`&#23E9;`,name:`rollforward`,semver:null},"run-build":{branch:null,code:`:rocket:`,commit:`run-build`,description:`Custom type for CI/CD to hook into run build override.`,emoji:`🚀️`,entity:`&#1F680;`,name:`run-build`,semver:`patch`}};export{e as default};
1
+ const e={chore:{branch:`chore`,code:`:computer_disk:`,commit:`chore`,description:`Changes that don’t modify src or test files`,emoji:`💽️`,entity:`💽`,name:`computer-disk`,semver:null},rollforward:{branch:null,code:`:fast_forward:`,commit:`rollforward`,description:`Create rollforward version.`,emoji:`⏩️`,entity:`&#23E9;`,name:`rollforward`,semver:null},"run-build":{branch:null,code:`:rocket:`,commit:`run-build`,description:`Custom type for CI/CD to hook into run build override.`,emoji:`🚀️`,entity:`&#1F680;`,name:`run-build`,semver:`patch`}};export{e as default};
2
2
  //# sourceMappingURL=types.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","names":[],"sources":["../../src/config/types.ts"],"sourcesContent":["import type { IReleaseRule } from '../types/index'\n\n/**\n * @note\n * These are _additional_ types on top of base Gitmoji\n *\n * @todo\n * - These should be accepted through a config for use by:\n * - @jeromefitz/ccommit\n * - @jeromefitz/semantic\n * - @jeromefitz/release-notes\n *\n */\n\nconst types: IReleaseRule = {\n chore: {\n branch: 'chore',\n code: ':computer_disk:',\n commit: 'chore',\n description: 'Changes that don’t modify src or test files',\n emoji: '💽️',\n entity: '💽',\n name: 'computer-disk',\n semver: null,\n },\n rollforward: {\n branch: null,\n code: ':fast_forward:',\n commit: 'rollforward',\n description: 'Create rollforward version.',\n emoji: '⏩️',\n entity: '&#23E9;',\n name: 'rollforward',\n semver: null,\n },\n 'run-build': {\n branch: null,\n code: ':rocket:',\n commit: 'run-build',\n description: 'Custom type for CI/CD to hook into run build override.',\n emoji: '🚀️',\n entity: '&#1F680;',\n name: 'run-build',\n semver: 'patch',\n },\n}\n\nexport default types\n"],"mappings":"8BAcA,MAAM,EAAsB,CAC1B,MAAO,CACL,OAAQ,QACR,KAAM,kBACN,OAAQ,QACR,YAAa,8CACb,MAAO,MACP,OAAQ,YACR,KAAM,gBACN,OAAQ,KACT,CACD,YAAa,CACX,OAAQ,KACR,KAAM,iBACN,OAAQ,cACR,YAAa,8BACb,MAAO,KACP,OAAQ,UACR,KAAM,cACN,OAAQ,KACT,CACD,YAAa,CACX,OAAQ,KACR,KAAM,WACN,OAAQ,YACR,YAAa,yDACb,MAAO,MACP,OAAQ,WACR,KAAM,YACN,OAAQ,QACT,CACF"}
1
+ {"version":3,"file":"types.mjs","names":[],"sources":["../../src/config/types.ts"],"sourcesContent":["import type { IReleaseRule } from '../types/index'\n\n/**\n * @note\n * These are _additional_ types on top of base Gitmoji\n *\n * @todo\n * - These should be accepted through a config for use by:\n * - @jeromefitz/ccommit\n * - @jeromefitz/semantic\n * - @jeromefitz/release-notes\n *\n */\n\nconst types: IReleaseRule = {\n chore: {\n branch: 'chore',\n code: ':computer_disk:',\n commit: 'chore',\n description: 'Changes that don’t modify src or test files',\n emoji: '💽️',\n entity: '💽',\n name: 'computer-disk',\n semver: null,\n },\n rollforward: {\n branch: null,\n code: ':fast_forward:',\n commit: 'rollforward',\n description: 'Create rollforward version.',\n emoji: '⏩️',\n entity: '&#23E9;',\n name: 'rollforward',\n semver: null,\n },\n 'run-build': {\n branch: null,\n code: ':rocket:',\n commit: 'run-build',\n description: 'Custom type for CI/CD to hook into run build override.',\n emoji: '🚀️',\n entity: '&#1F680;',\n name: 'run-build',\n semver: 'patch',\n },\n}\n\nexport default types\n"],"mappings":"AAcA,MAAM,EAAsB,CAC1B,MAAO,CACL,OAAQ,QACR,KAAM,kBACN,OAAQ,QACR,YAAa,8CACb,MAAO,MACP,OAAQ,YACR,KAAM,gBACN,OAAQ,IACV,EACA,YAAa,CACX,OAAQ,KACR,KAAM,iBACN,OAAQ,cACR,YAAa,8BACb,MAAO,KACP,OAAQ,UACR,KAAM,cACN,OAAQ,IACV,EACA,YAAa,CACX,OAAQ,KACR,KAAM,WACN,OAAQ,YACR,YAAa,yDACb,MAAO,MACP,OAAQ,WACR,KAAM,YACN,OAAQ,OACV,CACF"}
@@ -0,0 +1,2 @@
1
+ import e from"./config/rewrites.mjs";import t from"./config/types.mjs";const n={gitmojis:[{emoji:`🎨`,entity:`🎨`,code:`:art:`,description:`Improve structure / format of the code.`,name:`art`,semver:null},{emoji:`⚡️`,entity:`⚡`,code:`:zap:`,description:`Improve performance.`,name:`zap`,semver:`patch`},{emoji:`🔥`,entity:`🔥`,code:`:fire:`,description:`Remove code or files.`,name:`fire`,semver:null},{emoji:`🐛`,entity:`🐛`,code:`:bug:`,description:`Fix a bug.`,name:`bug`,semver:`patch`},{emoji:`🚑️`,entity:`🚑`,code:`:ambulance:`,description:`Critical hotfix.`,name:`ambulance`,semver:`patch`},{emoji:`✨`,entity:`✨`,code:`:sparkles:`,description:`Introduce new features.`,name:`sparkles`,semver:`minor`},{emoji:`📝`,entity:`📝`,code:`:memo:`,description:`Add or update documentation.`,name:`memo`,semver:null},{emoji:`🚀`,entity:`🚀`,code:`:rocket:`,description:`Deploy stuff.`,name:`rocket`,semver:null},{emoji:`💄`,entity:`&#ff99cc;`,code:`:lipstick:`,description:`Add or update the UI and style files.`,name:`lipstick`,semver:`patch`},{emoji:`🎉`,entity:`🎉`,code:`:tada:`,description:`Begin a project.`,name:`tada`,semver:null},{emoji:`✅`,entity:`✅`,code:`:white_check_mark:`,description:`Add, update, or pass tests.`,name:`white-check-mark`,semver:null},{emoji:`🔒️`,entity:`🔒`,code:`:lock:`,description:`Fix security or privacy issues.`,name:`lock`,semver:`patch`},{emoji:`🔐`,entity:`🔐`,code:`:closed_lock_with_key:`,description:`Add or update secrets.`,name:`closed-lock-with-key`,semver:null},{emoji:`🔖`,entity:`🔖`,code:`:bookmark:`,description:`Release / Version tags.`,name:`bookmark`,semver:null},{emoji:`🚨`,entity:`🚨`,code:`:rotating_light:`,description:`Fix compiler / linter warnings.`,name:`rotating-light`,semver:null},{emoji:`🚧`,entity:`🚧`,code:`:construction:`,description:`Work in progress.`,name:`construction`,semver:null},{emoji:`💚`,entity:`💚`,code:`:green_heart:`,description:`Fix CI Build.`,name:`green-heart`,semver:null},{emoji:`⬇️`,entity:`⬇️`,code:`:arrow_down:`,description:`Downgrade dependencies.`,name:`arrow-down`,semver:`patch`},{emoji:`⬆️`,entity:`⬆️`,code:`:arrow_up:`,description:`Upgrade dependencies.`,name:`arrow-up`,semver:`patch`},{emoji:`📌`,entity:`📌`,code:`:pushpin:`,description:`Pin dependencies to specific versions.`,name:`pushpin`,semver:`patch`},{emoji:`👷`,entity:`👷`,code:`:construction_worker:`,description:`Add or update CI build system.`,name:`construction-worker`,semver:null},{emoji:`📈`,entity:`📈`,code:`:chart_with_upwards_trend:`,description:`Add or update analytics or track code.`,name:`chart-with-upwards-trend`,semver:`patch`},{emoji:`♻️`,entity:`♻`,code:`:recycle:`,description:`Refactor code.`,name:`recycle`,semver:null},{emoji:`➕`,entity:`➕`,code:`:heavy_plus_sign:`,description:`Add a dependency.`,name:`heavy-plus-sign`,semver:`patch`},{emoji:`➖`,entity:`➖`,code:`:heavy_minus_sign:`,description:`Remove a dependency.`,name:`heavy-minus-sign`,semver:`patch`},{emoji:`🔧`,entity:`🔧`,code:`:wrench:`,description:`Add or update configuration files.`,name:`wrench`,semver:`patch`},{emoji:`🔨`,entity:`🔨`,code:`:hammer:`,description:`Add or update development scripts.`,name:`hammer`,semver:null},{emoji:`🌐`,entity:`🌐`,code:`:globe_with_meridians:`,description:`Internationalization and localization.`,name:`globe-with-meridians`,semver:`patch`},{emoji:`✏️`,entity:``,code:`:pencil2:`,description:`Fix typos.`,name:`pencil2`,semver:`patch`},{emoji:`💩`,entity:``,code:`:poop:`,description:`Write bad code that needs to be improved.`,name:`poop`,semver:null},{emoji:`⏪️`,entity:`⏪`,code:`:rewind:`,description:`Revert changes.`,name:`rewind`,semver:`patch`},{emoji:`🔀`,entity:`🔀`,code:`:twisted_rightwards_arrows:`,description:`Merge branches.`,name:`twisted-rightwards-arrows`,semver:null},{emoji:`📦️`,entity:`&#1F4E6;`,code:`:package:`,description:`Add or update compiled files or packages.`,name:`package`,semver:`patch`},{emoji:`👽️`,entity:`&#1F47D;`,code:`:alien:`,description:`Update code due to external API changes.`,name:`alien`,semver:`patch`},{emoji:`🚚`,entity:`&#1F69A;`,code:`:truck:`,description:`Move or rename resources (e.g.: files, paths, routes).`,name:`truck`,semver:null},{emoji:`📄`,entity:`&#1F4C4;`,code:`:page_facing_up:`,description:`Add or update license.`,name:`page-facing-up`,semver:null},{emoji:`💥`,entity:`💥`,code:`:boom:`,description:`Introduce breaking changes.`,name:`boom`,semver:`major`},{emoji:`🍱`,entity:`&#1F371`,code:`:bento:`,description:`Add or update assets.`,name:`bento`,semver:`patch`},{emoji:`♿️`,entity:`♿`,code:`:wheelchair:`,description:`Improve accessibility.`,name:`wheelchair`,semver:`patch`},{emoji:`💡`,entity:`💡`,code:`:bulb:`,description:`Add or update comments in source code.`,name:`bulb`,semver:null},{emoji:`🍻`,entity:`🍻`,code:`:beers:`,description:`Write code drunkenly.`,name:`beers`,semver:null},{emoji:`💬`,entity:`💬`,code:`:speech_balloon:`,description:`Add or update text and literals.`,name:`speech-balloon`,semver:`patch`},{emoji:`🗃️`,entity:`🗃`,code:`:card_file_box:`,description:`Perform database related changes.`,name:`card-file-box`,semver:`patch`},{emoji:`🔊`,entity:`🔊`,code:`:loud_sound:`,description:`Add or update logs.`,name:`loud-sound`,semver:null},{emoji:`🔇`,entity:`🔇`,code:`:mute:`,description:`Remove logs.`,name:`mute`,semver:null},{emoji:`👥`,entity:`👥`,code:`:busts_in_silhouette:`,description:`Add or update contributor(s).`,name:`busts-in-silhouette`,semver:null},{emoji:`🚸`,entity:`🚸`,code:`:children_crossing:`,description:`Improve user experience / usability.`,name:`children-crossing`,semver:`patch`},{emoji:`🏗️`,entity:`&#1f3d7;`,code:`:building_construction:`,description:`Make architectural changes.`,name:`building-construction`,semver:null},{emoji:`📱`,entity:`📱`,code:`:iphone:`,description:`Work on responsive design.`,name:`iphone`,semver:`patch`},{emoji:`🤡`,entity:`🤡`,code:`:clown_face:`,description:`Mock things.`,name:`clown-face`,semver:null},{emoji:`🥚`,entity:`🥚`,code:`:egg:`,description:`Add or update an easter egg.`,name:`egg`,semver:`patch`},{emoji:`🙈`,entity:`&#8bdfe7;`,code:`:see_no_evil:`,description:`Add or update a .gitignore file.`,name:`see-no-evil`,semver:null},{emoji:`📸`,entity:`📸`,code:`:camera_flash:`,description:`Add or update snapshots.`,name:`camera-flash`,semver:null},{emoji:`⚗️`,entity:`⚗`,code:`:alembic:`,description:`Perform experiments.`,name:`alembic`,semver:`patch`},{emoji:`🔍️`,entity:`🔍`,code:`:mag:`,description:`Improve SEO.`,name:`mag`,semver:`patch`},{emoji:`🏷️`,entity:`🏷`,code:`:label:`,description:`Add or update types.`,name:`label`,semver:`patch`},{emoji:`🌱`,entity:`🌱`,code:`:seedling:`,description:`Add or update seed files.`,name:`seedling`,semver:null},{emoji:`🚩`,entity:`🚩`,code:`:triangular_flag_on_post:`,description:`Add, update, or remove feature flags.`,name:`triangular-flag-on-post`,semver:`patch`},{emoji:`🥅`,entity:`🥅`,code:`:goal_net:`,description:`Catch errors.`,name:`goal-net`,semver:`patch`},{emoji:`💫`,entity:`💫`,code:`:dizzy:`,description:`Add or update animations and transitions.`,name:`dizzy`,semver:`patch`},{emoji:`🗑️`,entity:`🗑`,code:`:wastebasket:`,description:`Deprecate code that needs to be cleaned up.`,name:`wastebasket`,semver:`patch`},{emoji:`🛂`,entity:`🛂`,code:`:passport_control:`,description:`Work on code related to authorization, roles and permissions.`,name:`passport-control`,semver:`patch`},{emoji:`🩹`,entity:`🩹`,code:`:adhesive_bandage:`,description:`Simple fix for a non-critical issue.`,name:`adhesive-bandage`,semver:`patch`},{emoji:`🧐`,entity:`🧐`,code:`:monocle_face:`,description:`Data exploration/inspection.`,name:`monocle-face`,semver:null},{emoji:`⚰️`,entity:`⚰`,code:`:coffin:`,description:`Remove dead code.`,name:`coffin`,semver:null},{emoji:`🧪`,entity:`🧪`,code:`:test_tube:`,description:`Add a failing test.`,name:`test-tube`,semver:null},{emoji:`👔`,entity:`👔`,code:`:necktie:`,description:`Add or update business logic.`,name:`necktie`,semver:`patch`},{emoji:`🩺`,entity:`🩺`,code:`:stethoscope:`,description:`Add or update healthcheck.`,name:`stethoscope`,semver:null},{emoji:`🧱`,entity:`🧱`,code:`:bricks:`,description:`Infrastructure related changes.`,name:`bricks`,semver:null},{emoji:`🧑‍💻`,entity:`🧑‍💻`,code:`:technologist:`,description:`Improve developer experience.`,name:`technologist`,semver:null},{emoji:`💸`,entity:`💸`,code:`:money_with_wings:`,description:`Add sponsorships or money related infrastructure.`,name:`money-with-wings`,semver:null},{emoji:`🧵`,entity:`🧵`,code:`:thread:`,description:`Add or update code related to multithreading or concurrency.`,name:`thread`,semver:null},{emoji:`🦺`,entity:`🦺`,code:`:safety_vest:`,description:`Add or update code related to validation.`,name:`safety-vest`,semver:null},{emoji:`✈️`,entity:`✈`,code:`:airplane:`,description:`Improve offline support.`,name:`airplane`,semver:null}]}.gitmojis,r=()=>{let r={...t};for(let t of n){let n=e.find(e=>e?.from===t.name);if(!n){console.dir(`@todo(conventional-gitmoji) create rewrite for: ${t.name}`);continue}let i=n.semver===void 0?t.semver||null:n.semver||t.semver||null;r[n.to]={branch:n.branch||null,code:t.code,commit:n.to,description:t.description,emoji:t.emoji,entity:t.entity,name:t.name,semver:i?i.replace(`fix`,`patch`).replace(`feature`,`minor`).replace(`breaking`,`major`):null}}return Object.keys(r).sort().reduce((e,t)=>(e[t]=r[t],e),{})};export{r as t};
2
+ //# sourceMappingURL=getGitmojiConventional--fq9z1BR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGitmojiConventional--fq9z1BR.mjs","names":["types","_types","_rewrites"],"sources":["../../../node_modules/.pnpm/gitmojis@3.15.0/node_modules/gitmojis/dist/index.mjs","../src/utils/getGitmojiConventional.ts"],"sourcesContent":["const gitmojis$1 = [\n\t{\n\t\temoji: \"🎨\",\n\t\tentity: \"&#x1f3a8;\",\n\t\tcode: \":art:\",\n\t\tdescription: \"Improve structure / format of the code.\",\n\t\tname: \"art\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"⚡️\",\n\t\tentity: \"&#x26a1;\",\n\t\tcode: \":zap:\",\n\t\tdescription: \"Improve performance.\",\n\t\tname: \"zap\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🔥\",\n\t\tentity: \"&#x1f525;\",\n\t\tcode: \":fire:\",\n\t\tdescription: \"Remove code or files.\",\n\t\tname: \"fire\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🐛\",\n\t\tentity: \"&#x1f41b;\",\n\t\tcode: \":bug:\",\n\t\tdescription: \"Fix a bug.\",\n\t\tname: \"bug\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🚑️\",\n\t\tentity: \"&#128657;\",\n\t\tcode: \":ambulance:\",\n\t\tdescription: \"Critical hotfix.\",\n\t\tname: \"ambulance\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"✨\",\n\t\tentity: \"&#x2728;\",\n\t\tcode: \":sparkles:\",\n\t\tdescription: \"Introduce new features.\",\n\t\tname: \"sparkles\",\n\t\tsemver: \"minor\"\n\t},\n\t{\n\t\temoji: \"📝\",\n\t\tentity: \"&#x1f4dd;\",\n\t\tcode: \":memo:\",\n\t\tdescription: \"Add or update documentation.\",\n\t\tname: \"memo\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🚀\",\n\t\tentity: \"&#x1f680;\",\n\t\tcode: \":rocket:\",\n\t\tdescription: \"Deploy stuff.\",\n\t\tname: \"rocket\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"💄\",\n\t\tentity: \"&#ff99cc;\",\n\t\tcode: \":lipstick:\",\n\t\tdescription: \"Add or update the UI and style files.\",\n\t\tname: \"lipstick\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🎉\",\n\t\tentity: \"&#127881;\",\n\t\tcode: \":tada:\",\n\t\tdescription: \"Begin a project.\",\n\t\tname: \"tada\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"✅\",\n\t\tentity: \"&#x2705;\",\n\t\tcode: \":white_check_mark:\",\n\t\tdescription: \"Add, update, or pass tests.\",\n\t\tname: \"white-check-mark\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🔒️\",\n\t\tentity: \"&#x1f512;\",\n\t\tcode: \":lock:\",\n\t\tdescription: \"Fix security or privacy issues.\",\n\t\tname: \"lock\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🔐\",\n\t\tentity: \"&#x1f510;\",\n\t\tcode: \":closed_lock_with_key:\",\n\t\tdescription: \"Add or update secrets.\",\n\t\tname: \"closed-lock-with-key\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🔖\",\n\t\tentity: \"&#x1f516;\",\n\t\tcode: \":bookmark:\",\n\t\tdescription: \"Release / Version tags.\",\n\t\tname: \"bookmark\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🚨\",\n\t\tentity: \"&#x1f6a8;\",\n\t\tcode: \":rotating_light:\",\n\t\tdescription: \"Fix compiler / linter warnings.\",\n\t\tname: \"rotating-light\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🚧\",\n\t\tentity: \"&#x1f6a7;\",\n\t\tcode: \":construction:\",\n\t\tdescription: \"Work in progress.\",\n\t\tname: \"construction\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"💚\",\n\t\tentity: \"&#x1f49a;\",\n\t\tcode: \":green_heart:\",\n\t\tdescription: \"Fix CI Build.\",\n\t\tname: \"green-heart\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"⬇️\",\n\t\tentity: \"⬇️\",\n\t\tcode: \":arrow_down:\",\n\t\tdescription: \"Downgrade dependencies.\",\n\t\tname: \"arrow-down\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"⬆️\",\n\t\tentity: \"⬆️\",\n\t\tcode: \":arrow_up:\",\n\t\tdescription: \"Upgrade dependencies.\",\n\t\tname: \"arrow-up\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"📌\",\n\t\tentity: \"&#x1F4CC;\",\n\t\tcode: \":pushpin:\",\n\t\tdescription: \"Pin dependencies to specific versions.\",\n\t\tname: \"pushpin\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"👷\",\n\t\tentity: \"&#x1f477;\",\n\t\tcode: \":construction_worker:\",\n\t\tdescription: \"Add or update CI build system.\",\n\t\tname: \"construction-worker\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"📈\",\n\t\tentity: \"&#x1F4C8;\",\n\t\tcode: \":chart_with_upwards_trend:\",\n\t\tdescription: \"Add or update analytics or track code.\",\n\t\tname: \"chart-with-upwards-trend\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"♻️\",\n\t\tentity: \"&#x267b;\",\n\t\tcode: \":recycle:\",\n\t\tdescription: \"Refactor code.\",\n\t\tname: \"recycle\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"➕\",\n\t\tentity: \"&#10133;\",\n\t\tcode: \":heavy_plus_sign:\",\n\t\tdescription: \"Add a dependency.\",\n\t\tname: \"heavy-plus-sign\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"➖\",\n\t\tentity: \"&#10134;\",\n\t\tcode: \":heavy_minus_sign:\",\n\t\tdescription: \"Remove a dependency.\",\n\t\tname: \"heavy-minus-sign\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🔧\",\n\t\tentity: \"&#x1f527;\",\n\t\tcode: \":wrench:\",\n\t\tdescription: \"Add or update configuration files.\",\n\t\tname: \"wrench\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🔨\",\n\t\tentity: \"&#128296;\",\n\t\tcode: \":hammer:\",\n\t\tdescription: \"Add or update development scripts.\",\n\t\tname: \"hammer\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🌐\",\n\t\tentity: \"&#127760;\",\n\t\tcode: \":globe_with_meridians:\",\n\t\tdescription: \"Internationalization and localization.\",\n\t\tname: \"globe-with-meridians\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"✏️\",\n\t\tentity: \"&#59161;\",\n\t\tcode: \":pencil2:\",\n\t\tdescription: \"Fix typos.\",\n\t\tname: \"pencil2\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"💩\",\n\t\tentity: \"&#58613;\",\n\t\tcode: \":poop:\",\n\t\tdescription: \"Write bad code that needs to be improved.\",\n\t\tname: \"poop\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"⏪️\",\n\t\tentity: \"&#9194;\",\n\t\tcode: \":rewind:\",\n\t\tdescription: \"Revert changes.\",\n\t\tname: \"rewind\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🔀\",\n\t\tentity: \"&#128256;\",\n\t\tcode: \":twisted_rightwards_arrows:\",\n\t\tdescription: \"Merge branches.\",\n\t\tname: \"twisted-rightwards-arrows\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"📦️\",\n\t\tentity: \"&#1F4E6;\",\n\t\tcode: \":package:\",\n\t\tdescription: \"Add or update compiled files or packages.\",\n\t\tname: \"package\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"👽️\",\n\t\tentity: \"&#1F47D;\",\n\t\tcode: \":alien:\",\n\t\tdescription: \"Update code due to external API changes.\",\n\t\tname: \"alien\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🚚\",\n\t\tentity: \"&#1F69A;\",\n\t\tcode: \":truck:\",\n\t\tdescription: \"Move or rename resources (e.g.: files, paths, routes).\",\n\t\tname: \"truck\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"📄\",\n\t\tentity: \"&#1F4C4;\",\n\t\tcode: \":page_facing_up:\",\n\t\tdescription: \"Add or update license.\",\n\t\tname: \"page-facing-up\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"💥\",\n\t\tentity: \"&#x1f4a5;\",\n\t\tcode: \":boom:\",\n\t\tdescription: \"Introduce breaking changes.\",\n\t\tname: \"boom\",\n\t\tsemver: \"major\"\n\t},\n\t{\n\t\temoji: \"🍱\",\n\t\tentity: \"&#1F371\",\n\t\tcode: \":bento:\",\n\t\tdescription: \"Add or update assets.\",\n\t\tname: \"bento\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"♿️\",\n\t\tentity: \"&#9855;\",\n\t\tcode: \":wheelchair:\",\n\t\tdescription: \"Improve accessibility.\",\n\t\tname: \"wheelchair\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"💡\",\n\t\tentity: \"&#128161;\",\n\t\tcode: \":bulb:\",\n\t\tdescription: \"Add or update comments in source code.\",\n\t\tname: \"bulb\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🍻\",\n\t\tentity: \"&#x1f37b;\",\n\t\tcode: \":beers:\",\n\t\tdescription: \"Write code drunkenly.\",\n\t\tname: \"beers\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"💬\",\n\t\tentity: \"&#128172;\",\n\t\tcode: \":speech_balloon:\",\n\t\tdescription: \"Add or update text and literals.\",\n\t\tname: \"speech-balloon\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🗃️\",\n\t\tentity: \"&#128451;\",\n\t\tcode: \":card_file_box:\",\n\t\tdescription: \"Perform database related changes.\",\n\t\tname: \"card-file-box\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🔊\",\n\t\tentity: \"&#128266;\",\n\t\tcode: \":loud_sound:\",\n\t\tdescription: \"Add or update logs.\",\n\t\tname: \"loud-sound\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🔇\",\n\t\tentity: \"&#128263;\",\n\t\tcode: \":mute:\",\n\t\tdescription: \"Remove logs.\",\n\t\tname: \"mute\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"👥\",\n\t\tentity: \"&#128101;\",\n\t\tcode: \":busts_in_silhouette:\",\n\t\tdescription: \"Add or update contributor(s).\",\n\t\tname: \"busts-in-silhouette\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🚸\",\n\t\tentity: \"&#128696;\",\n\t\tcode: \":children_crossing:\",\n\t\tdescription: \"Improve user experience / usability.\",\n\t\tname: \"children-crossing\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🏗️\",\n\t\tentity: \"&#1f3d7;\",\n\t\tcode: \":building_construction:\",\n\t\tdescription: \"Make architectural changes.\",\n\t\tname: \"building-construction\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"📱\",\n\t\tentity: \"&#128241;\",\n\t\tcode: \":iphone:\",\n\t\tdescription: \"Work on responsive design.\",\n\t\tname: \"iphone\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🤡\",\n\t\tentity: \"&#129313;\",\n\t\tcode: \":clown_face:\",\n\t\tdescription: \"Mock things.\",\n\t\tname: \"clown-face\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🥚\",\n\t\tentity: \"&#129370;\",\n\t\tcode: \":egg:\",\n\t\tdescription: \"Add or update an easter egg.\",\n\t\tname: \"egg\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🙈\",\n\t\tentity: \"&#8bdfe7;\",\n\t\tcode: \":see_no_evil:\",\n\t\tdescription: \"Add or update a .gitignore file.\",\n\t\tname: \"see-no-evil\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"📸\",\n\t\tentity: \"&#128248;\",\n\t\tcode: \":camera_flash:\",\n\t\tdescription: \"Add or update snapshots.\",\n\t\tname: \"camera-flash\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"⚗️\",\n\t\tentity: \"&#x2697;\",\n\t\tcode: \":alembic:\",\n\t\tdescription: \"Perform experiments.\",\n\t\tname: \"alembic\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🔍️\",\n\t\tentity: \"&#128269;\",\n\t\tcode: \":mag:\",\n\t\tdescription: \"Improve SEO.\",\n\t\tname: \"mag\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🏷️\",\n\t\tentity: \"&#127991;\",\n\t\tcode: \":label:\",\n\t\tdescription: \"Add or update types.\",\n\t\tname: \"label\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🌱\",\n\t\tentity: \"&#127793;\",\n\t\tcode: \":seedling:\",\n\t\tdescription: \"Add or update seed files.\",\n\t\tname: \"seedling\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🚩\",\n\t\tentity: \"&#x1F6A9;\",\n\t\tcode: \":triangular_flag_on_post:\",\n\t\tdescription: \"Add, update, or remove feature flags.\",\n\t\tname: \"triangular-flag-on-post\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🥅\",\n\t\tentity: \"&#x1F945;\",\n\t\tcode: \":goal_net:\",\n\t\tdescription: \"Catch errors.\",\n\t\tname: \"goal-net\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"💫\",\n\t\tentity: \"&#x1f4ab;\",\n\t\tcode: \":dizzy:\",\n\t\tdescription: \"Add or update animations and transitions.\",\n\t\tname: \"dizzy\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🗑️\",\n\t\tentity: \"&#x1F5D1;\",\n\t\tcode: \":wastebasket:\",\n\t\tdescription: \"Deprecate code that needs to be cleaned up.\",\n\t\tname: \"wastebasket\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🛂\",\n\t\tentity: \"&#x1F6C2;\",\n\t\tcode: \":passport_control:\",\n\t\tdescription: \"Work on code related to authorization, roles and permissions.\",\n\t\tname: \"passport-control\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🩹\",\n\t\tentity: \"&#x1FA79;\",\n\t\tcode: \":adhesive_bandage:\",\n\t\tdescription: \"Simple fix for a non-critical issue.\",\n\t\tname: \"adhesive-bandage\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🧐\",\n\t\tentity: \"&#x1F9D0;\",\n\t\tcode: \":monocle_face:\",\n\t\tdescription: \"Data exploration/inspection.\",\n\t\tname: \"monocle-face\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"⚰️\",\n\t\tentity: \"&#x26B0;\",\n\t\tcode: \":coffin:\",\n\t\tdescription: \"Remove dead code.\",\n\t\tname: \"coffin\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🧪\",\n\t\tentity: \"&#x1F9EA;\",\n\t\tcode: \":test_tube:\",\n\t\tdescription: \"Add a failing test.\",\n\t\tname: \"test-tube\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"👔\",\n\t\tentity: \"&#128084;\",\n\t\tcode: \":necktie:\",\n\t\tdescription: \"Add or update business logic.\",\n\t\tname: \"necktie\",\n\t\tsemver: \"patch\"\n\t},\n\t{\n\t\temoji: \"🩺\",\n\t\tentity: \"&#x1FA7A;\",\n\t\tcode: \":stethoscope:\",\n\t\tdescription: \"Add or update healthcheck.\",\n\t\tname: \"stethoscope\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🧱\",\n\t\tentity: \"&#x1f9f1;\",\n\t\tcode: \":bricks:\",\n\t\tdescription: \"Infrastructure related changes.\",\n\t\tname: \"bricks\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🧑‍💻\",\n\t\tentity: \"&#129489;&#8205;&#128187;\",\n\t\tcode: \":technologist:\",\n\t\tdescription: \"Improve developer experience.\",\n\t\tname: \"technologist\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"💸\",\n\t\tentity: \"&#x1F4B8;\",\n\t\tcode: \":money_with_wings:\",\n\t\tdescription: \"Add sponsorships or money related infrastructure.\",\n\t\tname: \"money-with-wings\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🧵\",\n\t\tentity: \"&#x1F9F5;\",\n\t\tcode: \":thread:\",\n\t\tdescription: \"Add or update code related to multithreading or concurrency.\",\n\t\tname: \"thread\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"🦺\",\n\t\tentity: \"&#x1F9BA;\",\n\t\tcode: \":safety_vest:\",\n\t\tdescription: \"Add or update code related to validation.\",\n\t\tname: \"safety-vest\",\n\t\tsemver: null\n\t},\n\t{\n\t\temoji: \"✈️\",\n\t\tentity: \"&#x2708;\",\n\t\tcode: \":airplane:\",\n\t\tdescription: \"Improve offline support.\",\n\t\tname: \"airplane\",\n\t\tsemver: null\n\t}\n];\nconst gitmojisJson = {\n\tgitmojis: gitmojis$1\n};\n\nconst type = \"object\";\nconst $schema = \"https://json-schema.org/draft/2020-12/schema\";\nconst required = [\n\t\"gitmojis\"\n];\nconst properties = {\n\tgitmojis: {\n\t\ttype: \"array\",\n\t\tminItems: 1,\n\t\tuniqueItems: true,\n\t\titems: {\n\t\t\ttype: \"object\",\n\t\t\trequired: [\n\t\t\t\t\"emoji\",\n\t\t\t\t\"entity\",\n\t\t\t\t\"code\",\n\t\t\t\t\"description\",\n\t\t\t\t\"name\",\n\t\t\t\t\"semver\"\n\t\t\t],\n\t\t\tproperties: {\n\t\t\t\tcode: {\n\t\t\t\t\ttype: \"string\"\n\t\t\t\t},\n\t\t\t\tentity: {\n\t\t\t\t\ttype: \"string\"\n\t\t\t\t},\n\t\t\t\tdescription: {\n\t\t\t\t\ttype: \"string\"\n\t\t\t\t},\n\t\t\t\temoji: {\n\t\t\t\t\ttype: \"string\"\n\t\t\t\t},\n\t\t\t\tname: {\n\t\t\t\t\ttype: \"string\"\n\t\t\t\t},\n\t\t\t\tsemver: {\n\t\t\t\t\t\"enum\": [\n\t\t\t\t\t\t\"major\",\n\t\t\t\t\t\t\"minor\",\n\t\t\t\t\t\t\"patch\",\n\t\t\t\t\t\tnull\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nconst schema = {\n\ttype: type,\n\t$schema: $schema,\n\trequired: required,\n\tproperties: properties\n};\n\nconst gitmojis = gitmojisJson.gitmojis;\n\nexport { gitmojis, schema };\n","/** biome-ignore-all lint/suspicious/noConsole: migrate */\nimport type { IReleaseRule } from '../types/index'\n\nimport { gitmojis } from 'gitmojis'\n\nimport _rewrites from '../config/rewrites'\nimport _types from '../config/types'\n\nconst getGitmoji = (): IReleaseRule => {\n const types: IReleaseRule = { ..._types }\n\n for (const gitmoji of gitmojis) {\n const rewrite = _rewrites.find((r) => r?.from === gitmoji.name)\n\n if (!rewrite) {\n console.dir(`@todo(conventional-gitmoji) create rewrite for: ${gitmoji.name}`)\n continue\n }\n\n const semver =\n rewrite.semver === undefined\n ? gitmoji.semver || null\n : rewrite.semver || gitmoji.semver || null\n\n types[rewrite.to] = {\n branch: rewrite.branch || null,\n code: gitmoji.code,\n commit: rewrite.to,\n description: gitmoji.description,\n emoji: gitmoji.emoji,\n entity: gitmoji.entity,\n name: gitmoji.name,\n semver: semver\n ? semver\n .replace('fix', 'patch')\n .replace('feature', 'minor')\n .replace('breaking', 'major')\n : null,\n }\n }\n\n return Object.keys(types)\n .sort()\n .reduce<IReleaseRule>((sorted, key) => {\n sorted[key] = types[key]\n\n return sorted\n }, {})\n}\n\nexport default getGitmoji\n"],"x_google_ignoreList":[0],"mappings":"uEAklBA,MA2DM,EAAW,CA1DhB,SAAU,CAllBV,CACC,MAAO,KACP,OAAQ,YACR,KAAM,QACN,YAAa,0CACb,KAAM,MACN,OAAQ,IACT,EACA,CACC,MAAO,KACP,OAAQ,WACR,KAAM,QACN,YAAa,uBACb,KAAM,MACN,OAAQ,OACT,EACA,CACC,MAAO,KACP,OAAQ,YACR,KAAM,S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ACG,QAAQ,MAAO,OAAO,EACtB,QAAQ,UAAW,OAAO,EAC1B,QAAQ,WAAY,OAAO,EAC9B,IACN,CACF,CAEA,OAAO,OAAO,KAAKF,CAAK,EACrB,KAAK,EACL,QAAsB,EAAQ,KAC7B,EAAO,GAAOA,EAAM,GAEb,GACN,CAAC,CAAC,CACT"}
package/index.d.mts CHANGED
@@ -1,82 +1,4 @@
1
- import { t as ICommit } from "./commit.types-CwGP9mlg.mjs";
2
- import { n as IReleaseRuleProps, t as IReleaseRule } from "./releaseRule.types-BKQjfcDG.mjs";
3
- //#region src/index.d.ts
4
- declare const parserOpts: {
5
- headerCorrespondence: string[];
6
- headerPattern: RegExp;
7
- issuePrefixes: string[];
8
- noteKeywords: string[];
9
- referenceActions: string[];
10
- revertPattern: RegExp;
11
- }, writerOpts: {
12
- commitGroupsSort: string[];
13
- commitsSort: string[];
14
- groupBy: string;
15
- noteGroupsSort: string[];
16
- notesSort: string[];
17
- transform: (commit: any, context: any) => any;
18
- };
19
- declare const types: Partial<Record<ICommit, IReleaseRuleProps>>;
20
- declare const releaseRules: {
21
- message?: null | string;
22
- release?: null | string;
23
- tag?: null | string;
24
- type?: null | string;
25
- }[];
26
- declare const typeSpecs: Omit<IReleaseRuleProps, "branch" | "commit" | "entity" | "name">[];
27
- declare const _default: () => {
28
- conventionalChangelog: {
29
- parserOpts: {
30
- headerCorrespondence: string[];
31
- headerPattern: RegExp;
32
- issuePrefixes: string[];
33
- noteKeywords: string[];
34
- referenceActions: string[];
35
- revertPattern: RegExp;
36
- };
37
- writerOpts: {
38
- commitGroupsSort: string[];
39
- commitsSort: string[];
40
- groupBy: string;
41
- noteGroupsSort: string[];
42
- notesSort: string[];
43
- transform: (commit: any, context: any) => any;
44
- };
45
- };
46
- gitRawCommitsOpts: {
47
- format: string;
48
- };
49
- parserOpts: {
50
- headerCorrespondence: string[];
51
- headerPattern: RegExp;
52
- issuePrefixes: string[];
53
- noteKeywords: string[];
54
- referenceActions: string[];
55
- revertPattern: RegExp;
56
- };
57
- recommendedBumpOpts: {
58
- parserOpts: {
59
- headerCorrespondence: string[];
60
- headerPattern: RegExp;
61
- issuePrefixes: string[];
62
- noteKeywords: string[];
63
- referenceActions: string[];
64
- revertPattern: RegExp;
65
- };
66
- whatBump: (commits: any) => {
67
- level: number;
68
- reason: string;
69
- };
70
- };
71
- writerOpts: {
72
- commitGroupsSort: string[];
73
- commitsSort: string[];
74
- groupBy: string;
75
- noteGroupsSort: string[];
76
- notesSort: string[];
77
- transform: (commit: any, context: any) => any;
78
- };
79
- };
80
- //#endregion
81
- export { type ICommit, type IReleaseRule, type IReleaseRuleProps, _default as default, parserOpts, releaseRules, typeSpecs, types, writerOpts };
82
- //# sourceMappingURL=index.d.mts.map
1
+ import { t as ICommit } from "./commit.types-DPyU2vsu.mjs";
2
+ import { n as IReleaseRuleProps, t as IReleaseRule } from "./releaseRule.types-AZVO5a6m.mjs";
3
+ import { a as releaseRules, c as writerOpts, i as parserOpts, o as typeSpecs, r as _default, s as types } from "./transformer-CIjAkGw8.mjs";
4
+ export { type ICommit, type IReleaseRule, type IReleaseRuleProps, _default as default, parserOpts, releaseRules, typeSpecs, types, writerOpts };
package/index.mjs CHANGED
@@ -1 +1,2 @@
1
- import"./chunk-sEf7NbmF.mjs";import{a as e,i as t,n,o as r,r as i,t as a}from"./src-CkJZyMGZ.mjs";import"./getGitmojiConventional-aDc1od8Y.mjs";export{i as default,a as parserOpts,n as releaseRules,t as typeSpecs,e as types,r as writerOpts};
1
+ import{t as e}from"./getGitmojiConventional--fq9z1BR.mjs";import t from"./utils/getTypeSpecs.mjs";import n from"./changelog/index.mjs";import r from"./utils/getReleaseRules.mjs";const{parserOpts:i,writerOpts:a}=n,o=e(),s=r(o),c=t(o);var l=()=>n;export{l as default,i as parserOpts,s as releaseRules,c as typeSpecs,o as types,a as writerOpts};
2
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["conventionalChangelog","getGitmojiConventional"],"sources":["../src/index.ts"],"sourcesContent":["import type { ICommit, IReleaseRule, IReleaseRuleProps } from './types/index'\n\nimport conventionalChangelog from './changelog/index'\nimport getGitmojiConventional from './utils/getGitmojiConventional'\nimport getReleaseRules from './utils/getReleaseRules'\nimport getTypeSpecs from './utils/getTypeSpecs'\n\nconst { parserOpts, writerOpts } = conventionalChangelog\nconst types = getGitmojiConventional()\nconst releaseRules = getReleaseRules(types)\nconst typeSpecs = getTypeSpecs(types)\n\nexport type { ICommit, IReleaseRule, IReleaseRuleProps }\nexport { parserOpts, releaseRules, typeSpecs, types, writerOpts }\nexport default () => conventionalChangelog\n"],"mappings":"kLAOA,KAAM,CAAE,aAAY,cAAeA,EAC7B,EAAQC,EAAuB,EAC/B,EAAe,EAAgB,CAAK,EACpC,EAAY,EAAa,CAAK,EAIpC,IAAA,MAAqBD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeromefitz/conventional-gitmoji",
3
- "version": "5.0.0",
3
+ "version": "5.0.2-canary.1",
4
4
  "type": "module",
5
5
  "description": "Helper package for dual gitmoji / conventional commits",
6
6
  "repository": {
@@ -50,10 +50,11 @@
50
50
  "lint": "pnpm run lint:typescript",
51
51
  "lint:typescript": "tsc --noEmit --declaration",
52
52
  "semantic-release": "semantic-release",
53
- "semantic-release:dry": "semantic-release --dry-run"
53
+ "semantic-release:dry": "semantic-release --dry-run",
54
+ "test": "vitest run"
54
55
  },
55
56
  "peerDependencies": {
56
- "lodash-es": "^4.17.21"
57
+ "lodash-es": "^4.18.0"
57
58
  },
58
59
  "dependencies": {
59
60
  "fast-json-stable-stringify": "2.1.0",
@@ -63,7 +64,7 @@
63
64
  "devDependencies": {
64
65
  "@types/lodash-es": "4.17.12",
65
66
  "gitmojis": "3.15.0",
66
- "lodash-es": "4.17.23"
67
+ "lodash-es": "4.18.0"
67
68
  },
68
69
  "publishConfig": {
69
70
  "registry": "https://registry.npmjs.org/",