@jeromefitz/conventional-gitmoji 5.0.1 โ 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.
- package/changelog/index.d.mts +33 -2
- package/changelog/index.d.mts.map +1 -1
- package/changelog/index.mjs +2 -1
- package/changelog/index.mjs.map +1 -0
- package/changelog/utils/conventionalChangelog.d.mts +18 -1
- package/changelog/utils/conventionalChangelog.d.mts.map +1 -1
- package/changelog/utils/conventionalChangelog.mjs +2 -1
- package/changelog/utils/conventionalChangelog.mjs.map +1 -0
- package/changelog/utils/transformer.d.mts +2 -5
- package/changelog/utils/transformer.mjs +2 -1
- package/changelog/utils/transformer.mjs.map +1 -0
- package/changelog/utils/writerOpts.d.mts +18 -1
- package/changelog/utils/writerOpts.d.mts.map +1 -1
- package/changelog/utils/writerOpts.mjs +2 -1
- package/changelog/utils/writerOpts.mjs.map +1 -0
- package/getGitmojiConventional--fq9z1BR.mjs +2 -0
- package/getGitmojiConventional--fq9z1BR.mjs.map +1 -0
- package/index.d.mts +2 -80
- package/index.mjs +2 -1
- package/index.mjs.map +1 -0
- package/package.json +3 -2
- package/transformer-CIjAkGw8.d.mts +155 -0
- package/transformer-CIjAkGw8.d.mts.map +1 -0
- package/utils/getGitmojiConventional.d.mts.map +1 -1
- package/utils/getGitmojiConventional.mjs +1 -1
- package/utils/getReleaseRules.d.mts.map +1 -1
- package/utils/getReleaseRules.mjs +1 -1
- package/utils/getReleaseRules.mjs.map +1 -1
- package/utils/getTypeSpecs.d.mts +2 -1
- package/utils/getTypeSpecs.d.mts.map +1 -1
- package/utils/getTypeSpecs.mjs +1 -1
- package/utils/getTypeSpecs.mjs.map +1 -1
- package/changelog/utils/transformer.d.mts.map +0 -1
- package/getGitmojiConventional-CcDLqlOb.mjs +0 -2
- package/getGitmojiConventional-CcDLqlOb.mjs.map +0 -1
- package/index.d.mts.map +0 -1
- package/src-DACkiZ3x.mjs +0 -2
- package/src-DACkiZ3x.mjs.map +0 -1
package/changelog/index.d.mts
CHANGED
|
@@ -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:
|
|
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:
|
|
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":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/changelog/index.ts"],"mappings":";;;;cAMM,SAAA"}
|
package/changelog/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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":"
|
|
1
|
+
{"version":3,"file":"conventionalChangelog.d.mts","names":[],"sources":["../../../src/changelog/utils/conventionalChangelog.ts"],"mappings":";;;;cAGM,qBAAA"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
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,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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{
|
|
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:
|
|
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":"
|
|
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
|
|
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,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:`F4E6;`,code:`:package:`,description:`Add or update compiled files or packages.`,name:`package`,semver:`patch`},{emoji:`๐ฝ๏ธ`,entity:`F47D;`,code:`:alien:`,description:`Update code due to external API changes.`,name:`alien`,semver:`patch`},{emoji:`๐`,entity:`F69A;`,code:`:truck:`,description:`Move or rename resources (e.g.: files, paths, routes).`,name:`truck`,semver:null},{emoji:`๐`,entity:`F4C4;`,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:`F371`,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:`f3d7;`,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:`bdfe7;`,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: \"🎨\",\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: \"⚡\",\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: \"🔥\",\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: \"🐛\",\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: \"🚑\",\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: \"✨\",\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: \"📝\",\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: \"🚀\",\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: \"🎉\",\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: \"✅\",\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: \"🔒\",\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: \"🔐\",\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: \"🔖\",\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: \"🚨\",\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: \"🚧\",\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: \"💚\",\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: \"📌\",\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: \"👷\",\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: \"📈\",\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: \"♻\",\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: \"➕\",\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: \"➖\",\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: \"🔧\",\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: \"🔨\",\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: \"🌐\",\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: \"\",\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: \"\",\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: \"⏪\",\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: \"🔀\",\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: \"F4E6;\",\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: \"F47D;\",\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: \"F69A;\",\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: \"F4C4;\",\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: \"💥\",\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: \"F371\",\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: \"♿\",\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: \"💡\",\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: \"🍻\",\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: \"💬\",\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: \"🗃\",\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: \"🔊\",\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: \"🔇\",\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: \"👥\",\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: \"🚸\",\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: \"f3d7;\",\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: \"📱\",\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: \"🤡\",\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: \"🥚\",\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: \"bdfe7;\",\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: \"📸\",\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: \"⚗\",\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: \"🔍\",\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: \"🏷\",\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: \"🌱\",\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: \"🚩\",\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: \"🥅\",\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: \"💫\",\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: \"🗑\",\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: \"🛂\",\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: \"🩹\",\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: \"🧐\",\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: \"⚰\",\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: \"🧪\",\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: \"👔\",\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: \"🩺\",\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: \"🧱\",\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: \"🧑‍💻\",\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: \"💸\",\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: \"🧵\",\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: \"🦺\",\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: \"✈\",\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,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KACd,OAAQ,EACJ,EACG,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
1
|
import { t as ICommit } from "./commit.types-DPyU2vsu.mjs";
|
|
2
2
|
import { n as IReleaseRuleProps, t as IReleaseRule } from "./releaseRule.types-AZVO5a6m.mjs";
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
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{
|
|
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.1",
|
|
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,7 +50,8 @@
|
|
|
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
57
|
"lodash-es": "^4.18.0"
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { t as ICommit } from "./commit.types-DPyU2vsu.mjs";
|
|
2
|
+
import { n as IReleaseRuleProps, t as IReleaseRule } from "./releaseRule.types-AZVO5a6m.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: TransformCommit, context: unknown) => {
|
|
18
|
+
hash: string | null | undefined;
|
|
19
|
+
subject: string;
|
|
20
|
+
type: string;
|
|
21
|
+
typeSpec: {
|
|
22
|
+
type?: ICommit | undefined;
|
|
23
|
+
code: string;
|
|
24
|
+
description: string;
|
|
25
|
+
emoji: string;
|
|
26
|
+
semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
|
|
27
|
+
value?: ICommit | undefined;
|
|
28
|
+
};
|
|
29
|
+
typeSpecIndex: number;
|
|
30
|
+
notes: unknown[];
|
|
31
|
+
} | undefined;
|
|
32
|
+
};
|
|
33
|
+
declare const types: Partial<Record<ICommit, IReleaseRuleProps>>;
|
|
34
|
+
declare const releaseRules: {
|
|
35
|
+
message?: null | string;
|
|
36
|
+
release?: null | string;
|
|
37
|
+
tag?: null | string;
|
|
38
|
+
type?: null | string;
|
|
39
|
+
}[];
|
|
40
|
+
declare const typeSpecs: {
|
|
41
|
+
type?: ICommit | undefined;
|
|
42
|
+
code: string;
|
|
43
|
+
description: string;
|
|
44
|
+
emoji: string;
|
|
45
|
+
semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
|
|
46
|
+
value?: ICommit | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
declare const _default: () => {
|
|
49
|
+
conventionalChangelog: {
|
|
50
|
+
parserOpts: {
|
|
51
|
+
headerCorrespondence: string[];
|
|
52
|
+
headerPattern: RegExp;
|
|
53
|
+
issuePrefixes: string[];
|
|
54
|
+
noteKeywords: string[];
|
|
55
|
+
referenceActions: string[];
|
|
56
|
+
revertPattern: RegExp;
|
|
57
|
+
};
|
|
58
|
+
writerOpts: {
|
|
59
|
+
commitGroupsSort: string[];
|
|
60
|
+
commitsSort: string[];
|
|
61
|
+
groupBy: string;
|
|
62
|
+
noteGroupsSort: string[];
|
|
63
|
+
notesSort: string[];
|
|
64
|
+
transform: (commit: TransformCommit, context: unknown) => {
|
|
65
|
+
hash: string | null | undefined;
|
|
66
|
+
subject: string;
|
|
67
|
+
type: string;
|
|
68
|
+
typeSpec: {
|
|
69
|
+
type?: ICommit | undefined;
|
|
70
|
+
code: string;
|
|
71
|
+
description: string;
|
|
72
|
+
emoji: string;
|
|
73
|
+
semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
|
|
74
|
+
value?: ICommit | undefined;
|
|
75
|
+
};
|
|
76
|
+
typeSpecIndex: number;
|
|
77
|
+
notes: unknown[];
|
|
78
|
+
} | undefined;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
gitRawCommitsOpts: {
|
|
82
|
+
format: string;
|
|
83
|
+
};
|
|
84
|
+
parserOpts: {
|
|
85
|
+
headerCorrespondence: string[];
|
|
86
|
+
headerPattern: RegExp;
|
|
87
|
+
issuePrefixes: string[];
|
|
88
|
+
noteKeywords: string[];
|
|
89
|
+
referenceActions: string[];
|
|
90
|
+
revertPattern: RegExp;
|
|
91
|
+
};
|
|
92
|
+
recommendedBumpOpts: {
|
|
93
|
+
parserOpts: {
|
|
94
|
+
headerCorrespondence: string[];
|
|
95
|
+
headerPattern: RegExp;
|
|
96
|
+
issuePrefixes: string[];
|
|
97
|
+
noteKeywords: string[];
|
|
98
|
+
referenceActions: string[];
|
|
99
|
+
revertPattern: RegExp;
|
|
100
|
+
};
|
|
101
|
+
whatBump: (commits: any) => {
|
|
102
|
+
level: number;
|
|
103
|
+
reason: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
writerOpts: {
|
|
107
|
+
commitGroupsSort: string[];
|
|
108
|
+
commitsSort: string[];
|
|
109
|
+
groupBy: string;
|
|
110
|
+
noteGroupsSort: string[];
|
|
111
|
+
notesSort: string[];
|
|
112
|
+
transform: (commit: TransformCommit, context: unknown) => {
|
|
113
|
+
hash: string | null | undefined;
|
|
114
|
+
subject: string;
|
|
115
|
+
type: string;
|
|
116
|
+
typeSpec: {
|
|
117
|
+
type?: ICommit | undefined;
|
|
118
|
+
code: string;
|
|
119
|
+
description: string;
|
|
120
|
+
emoji: string;
|
|
121
|
+
semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
|
|
122
|
+
value?: ICommit | undefined;
|
|
123
|
+
};
|
|
124
|
+
typeSpecIndex: number;
|
|
125
|
+
notes: unknown[];
|
|
126
|
+
} | undefined;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/changelog/utils/transformer.d.ts
|
|
131
|
+
interface TransformCommit {
|
|
132
|
+
type: string | null;
|
|
133
|
+
hash?: string | null;
|
|
134
|
+
subject: string | null;
|
|
135
|
+
notes: unknown[];
|
|
136
|
+
[key: string]: unknown;
|
|
137
|
+
}
|
|
138
|
+
declare const transformer: (commit: TransformCommit, _context: unknown) => {
|
|
139
|
+
hash: string | null | undefined;
|
|
140
|
+
subject: string;
|
|
141
|
+
type: string;
|
|
142
|
+
typeSpec: {
|
|
143
|
+
type?: ICommit | undefined;
|
|
144
|
+
code: string;
|
|
145
|
+
description: string;
|
|
146
|
+
emoji: string;
|
|
147
|
+
semver: "breaking" | "feature" | "fix" | "major" | "minor" | "patch" | null;
|
|
148
|
+
value?: ICommit | undefined;
|
|
149
|
+
};
|
|
150
|
+
typeSpecIndex: number;
|
|
151
|
+
notes: unknown[];
|
|
152
|
+
} | undefined;
|
|
153
|
+
//#endregion
|
|
154
|
+
export { releaseRules as a, writerOpts as c, parserOpts as i, transformer as n, typeSpecs as o, _default as r, types as s, TransformCommit as t };
|
|
155
|
+
//# sourceMappingURL=transformer-CIjAkGw8.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformer-CIjAkGw8.d.mts","names":[],"sources":["../src/index.ts","../src/changelog/utils/transformer.ts"],"mappings":";;;cAOQ,UAAA;;;;;;;KAAY,UAAA;;;;;;;;;;;;;;;;;;;;;;cACd,KAAA,EAAK,OAAA,CAAA,MAAA,CAAA,OAAA,EAAA,iBAAA;AAAA,cACL,YAAA;;;;;;cACA,SAAA;SAA+B,OAAA;;;;;UAAA,OAAA;AAAA;AAAA,cAG4B,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UCsBhD,eAAA;EACf,IAAA;EACA,IAAA;EACA,OAAA;EACA,KAAA;EAAA,CACC,GAAA;AAAA;AAAA,cAGG,WAAA,GAAe,MAAA,EAAQ,eAAA,EAAiB,QAAA;;;;;WAAF,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGitmojiConventional.d.mts","names":[],"sources":["../../src/utils/getGitmojiConventional.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getGitmojiConventional.d.mts","names":[],"sources":["../../src/utils/getGitmojiConventional.ts"],"mappings":";;cAQM,UAAA,QAAiB,YAwCtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../getGitmojiConventional
|
|
1
|
+
import{t as e}from"../getGitmojiConventional--fq9z1BR.mjs";export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getReleaseRules.d.mts","names":[],"sources":["../../src/utils/getReleaseRules.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getReleaseRules.d.mts","names":[],"sources":["../../src/utils/getReleaseRules.ts"],"mappings":";;KAGK,uBAAA;EACH,OAAA;EACA,OAAA;EACA,GAAA;EACA,IAAA;AAAA;AAAA,cAGI,eAAA,GAAmB,KAAA,EAAO,YAAA,KAAe,uBAAuB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=
|
|
1
|
+
const e=e=>Object.keys(e).flatMap(t=>{let n=e[t];if(!n?.semver)return[];let{semver:r}=n;return[{release:r,type:n.commit},{release:r,type:n.emoji}]});export{e as default};
|
|
2
2
|
//# sourceMappingURL=getReleaseRules.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getReleaseRules.mjs","names":[],"sources":["../../src/utils/getReleaseRules.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"getReleaseRules.mjs","names":[],"sources":["../../src/utils/getReleaseRules.ts"],"sourcesContent":["import type { IReleaseRule, IReleaseRuleProps } from '../index'\n\n// biome-ignore lint/style/useConsistentTypeDefinitions: migrate\ntype CustomReleaseRulesProps = {\n message?: null | string\n release?: null | string\n tag?: null | string\n type?: null | string\n}\n\nconst getReleaseRules = (types: IReleaseRule): CustomReleaseRulesProps[] =>\n Object.keys(types).flatMap((type) => {\n const releaseRule: IReleaseRuleProps = types[type]\n if (!releaseRule?.semver) return []\n\n const { semver: release } = releaseRule\n\n // Two input forms per type โ the conventional word and the gitmoji โ both\n // mapping to the same bump, so a commit written either way is matched.\n return [\n { release, type: releaseRule.commit },\n { release, type: releaseRule.emoji },\n ]\n })\n\nexport default getReleaseRules\n"],"mappings":"AAUA,MAAM,EAAmB,GACvB,OAAO,KAAK,CAAK,EAAE,QAAS,GAAS,CACnC,IAAM,EAAiC,EAAM,GAC7C,GAAI,CAAC,GAAa,OAAQ,MAAO,CAAC,EAElC,GAAM,CAAE,OAAQ,GAAY,EAI5B,MAAO,CACL,CAAE,UAAS,KAAM,EAAY,MAAO,EACpC,CAAE,UAAS,KAAM,EAAY,KAAM,CACrC,CACF,CAAC"}
|
package/utils/getTypeSpecs.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as IReleaseRuleProps, t as IReleaseRule } from "../releaseRule.types-AZVO5a6m.mjs";
|
|
2
2
|
//#region src/utils/getTypeSpecs.d.ts
|
|
3
|
-
|
|
3
|
+
type TypeSpec = Omit<IReleaseRuleProps, 'branch' | 'commit' | 'entity' | 'name'>;
|
|
4
|
+
declare const getTypeSpecs: (types: IReleaseRule) => TypeSpec[];
|
|
4
5
|
//#endregion
|
|
5
6
|
export { getTypeSpecs as default };
|
|
6
7
|
//# sourceMappingURL=getTypeSpecs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTypeSpecs.d.mts","names":[],"sources":["../../src/utils/getTypeSpecs.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getTypeSpecs.d.mts","names":[],"sources":["../../src/utils/getTypeSpecs.ts"],"mappings":";;KAIK,QAAA,GAAW,IAAI,CAAC,iBAAA;AAAA,cAEf,YAAA,GAAgB,KAAA,EAAO,YAAA,KAAe,QAAQ"}
|
package/utils/getTypeSpecs.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"title";const t=
|
|
1
|
+
import e from"title";const t=t=>Object.keys(t).map(n=>({code:t[n].code,description:e(t[n].description.replace(`.`,``)),emoji:t[n].emoji,semver:t[n].semver,type:t[n].commit,value:t[n].commit}));export{t as default};
|
|
2
2
|
//# sourceMappingURL=getTypeSpecs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTypeSpecs.mjs","names":[],"sources":["../../src/utils/getTypeSpecs.ts"],"sourcesContent":["import type { IReleaseRule, IReleaseRuleProps } from '../index'\n\nimport title from 'title'\n\
|
|
1
|
+
{"version":3,"file":"getTypeSpecs.mjs","names":[],"sources":["../../src/utils/getTypeSpecs.ts"],"sourcesContent":["import type { IReleaseRule, IReleaseRuleProps } from '../index'\n\nimport title from 'title'\n\ntype TypeSpec = Omit<IReleaseRuleProps, 'branch' | 'commit' | 'entity' | 'name'>\n\nconst getTypeSpecs = (types: IReleaseRule): TypeSpec[] =>\n Object.keys(types).map((type) => ({\n code: types[type].code,\n description: title(types[type].description.replace('.', '')),\n emoji: types[type].emoji,\n semver: types[type].semver,\n type: types[type].commit,\n value: types[type].commit,\n }))\n\nexport default getTypeSpecs\n"],"mappings":"qBAMA,MAAM,EAAgB,GACpB,OAAO,KAAK,CAAK,EAAE,IAAK,IAAU,CAChC,KAAM,EAAM,GAAM,KAClB,YAAa,EAAM,EAAM,GAAM,YAAY,QAAQ,IAAK,EAAE,CAAC,EAC3D,MAAO,EAAM,GAAM,MACnB,OAAQ,EAAM,GAAM,OACpB,KAAM,EAAM,GAAM,OAClB,MAAO,EAAM,GAAM,MACrB,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transformer.d.mts","names":[],"sources":["../../../src/changelog/utils/transformer.ts"],"mappings":";cAOM,WAAA,GAAe,MAAA,OAAa,QAAa"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import e from"./config/rewrites.mjs";import t from"./config/types.mjs";const{gitmojis:n}=((e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports))((e=>{e.gitmojis={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:`F4E6;`,code:`:package:`,description:`Add or update compiled files or packages.`,name:`package`,semver:`patch`},{emoji:`๐ฝ๏ธ`,entity:`F47D;`,code:`:alien:`,description:`Update code due to external API changes.`,name:`alien`,semver:`patch`},{emoji:`๐`,entity:`F69A;`,code:`:truck:`,description:`Move or rename resources (e.g.: files, paths, routes).`,name:`truck`,semver:null},{emoji:`๐`,entity:`F4C4;`,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:`F371`,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:`f3d7;`,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:`bdfe7;`,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,e.schema={type:`object`,$schema:`https://json-schema.org/draft/2020-12/schema`,required:[`gitmojis`],properties:{gitmojis:{type:`array`,minItems:1,uniqueItems:!0,items:{type:`object`,required:[`emoji`,`entity`,`code`,`description`,`name`,`semver`],properties:{code:{type:`string`},entity:{type:`string`},description:{type:`string`},emoji:{type:`string`},name:{type:`string`},semver:{enum:[`major`,`minor`,`patch`,null]}}}}}}}))(),r=()=>(n.map(n=>{let r=e.find(e=>e?.from===n.name);if(r){let e=r.semver===void 0?n?.semver||null:r.semver||n?.semver||null;t[r.to]={branch:r?.branch?r.branch:null,code:n?.code,commit:r.to,description:n?.description,emoji:n?.emoji,entity:n?.entity,name:n?.name,semver:e?e.replace(`fix`,`patch`).replace(`feature`,`minor`).replace(`breaking`,`major`):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${n.name}`)}),Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}));export{r as t};
|
|
2
|
-
//# sourceMappingURL=getGitmojiConventional-CcDLqlOb.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getGitmojiConventional-CcDLqlOb.mjs","names":["_rewrites","_types"],"sources":["../../../node_modules/.pnpm/gitmojis@3.15.0/node_modules/gitmojis/dist/index.cjs","../src/utils/getGitmojiConventional.ts"],"sourcesContent":["'use strict';\n\nconst gitmojis$1 = [\n\t{\n\t\temoji: \"๐จ\",\n\t\tentity: \"🎨\",\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: \"⚡\",\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: \"🔥\",\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: \"🐛\",\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: \"🚑\",\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: \"✨\",\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: \"📝\",\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: \"🚀\",\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: \"🎉\",\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: \"✅\",\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: \"🔒\",\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: \"🔐\",\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: \"🔖\",\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: \"🚨\",\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: \"🚧\",\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: \"💚\",\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: \"📌\",\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: \"👷\",\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: \"📈\",\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: \"♻\",\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: \"➕\",\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: \"➖\",\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: \"🔧\",\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: \"🔨\",\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: \"🌐\",\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: \"\",\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: \"\",\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: \"⏪\",\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: \"🔀\",\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: \"F4E6;\",\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: \"F47D;\",\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: \"F69A;\",\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: \"F4C4;\",\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: \"💥\",\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: \"F371\",\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: \"♿\",\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: \"💡\",\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: \"🍻\",\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: \"💬\",\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: \"🗃\",\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: \"🔊\",\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: \"🔇\",\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: \"👥\",\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: \"🚸\",\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: \"f3d7;\",\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: \"📱\",\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: \"🤡\",\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: \"🥚\",\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: \"bdfe7;\",\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: \"📸\",\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: \"⚗\",\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: \"🔍\",\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: \"🏷\",\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: \"🌱\",\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: \"🚩\",\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: \"🥅\",\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: \"💫\",\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: \"🗑\",\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: \"🛂\",\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: \"🩹\",\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: \"🧐\",\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: \"⚰\",\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: \"🧪\",\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: \"👔\",\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: \"🩺\",\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: \"🧱\",\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: \"🧑‍💻\",\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: \"💸\",\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: \"🧵\",\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: \"🦺\",\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: \"✈\",\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\nexports.gitmojis = gitmojis;\nexports.schema = schema;\n","/** biome-ignore-all lint/suspicious/noConsole: migrate */\nconst data = require('gitmojis')\n\nimport type { IReleaseRule } from '../types/index'\n\nimport _rewrites from '../config/rewrites'\nimport _types from '../config/types'\n\nconst { gitmojis } = data\n\nconst getGitmoji = (): IReleaseRule => {\n // @todo(complexity) 16\n // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: migrate\n gitmojis.map((gitmoji: any) => {\n const rewrite = _rewrites.find((r) => r?.from === gitmoji.name)\n\n // biome-ignore lint/complexity/noExtraBooleanCast: migrate\n if (!!rewrite) {\n const semver =\n rewrite.semver === undefined\n ? gitmoji?.semver || null\n : rewrite.semver || gitmoji?.semver || null\n\n _types[rewrite.to] = {\n // biome-ignore lint/complexity/noExtraBooleanCast: migrate\n branch: Boolean(rewrite?.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 /**\n * @note\n * (semantic)\n * big lol, README does not meet requirements:\n * ref: https://github.com/semantic-release/semantic-release#commit-message-format\n *\n * [\"major\",\"premajor\",\"minor\",\"preminor\",\"patch\",\"prepatch\",\"prerelease\"]\n **/\n\n // biome-ignore lint/complexity/noExtraBooleanCast: migrate\n semver: !!semver\n ? semver\n .replace('fix', 'patch')\n .replace('feature', 'minor')\n .replace('breaking', 'major')\n : null,\n }\n } else {\n console.dir(`@todo(conventional-gitmoji) create rewrite for: ${gitmoji.name}`)\n }\n })\n\n const items = Object.keys(_types)\n .sort()\n .reduce((type, key) => {\n type[key] = _types[key]\n\n return type\n }, {})\n\n return items\n}\n\nexport default getGitmoji\n"],"x_google_ignoreList":[0],"mappings":"uECQA,KAAM,CAAE,oFDyoBR,EAAQ,SAFS,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,SACN,YAAa,wBACb,KAAM,OACN,OAAQ,IACT,EACA,CACC,MAAO,KACP,OAAQ,YACR,KAAM,QACN,YAAa,aACb,KAAM,MACN,OAAQ,OACT,EACA,CACC,MAAO,MACP,OAAQ,YACR,KAAM,cACN,YAAa,mBACb,KAAM,YACN,OAAQ,OACT,EACA,CACC,MAAO,IACP,OAAQ,WACR,KAAM,aACN,YAAa,0BACb,KAAM,WACN,OAAQ,OACT,EACA,CACC,MAAO,KACP,OAAQ,YACR,KAAM,SACN,YAAa,+BACb,KAAM,OACN,OAAQ,IACT,EACA,CACC,MAAO,KACP,OAAQ,YACR,KAAM,WACN,YAAa,gBACb,KAAM,SACN,OAAQ,IACT,EACA,CACC,MAAO,KACP,OAAQ,YACR,KAAM,aACN,YAAa,wCACb,KAAM,WACN,OAAQ,OACT,EACA,CACC,MAAO,KACP,OAAQ,YACR,KAAM,SACN,YAAa,mBACb,KAAM,OACN,OAAQ,IACT,EACA,CACC,MAAO,IACP,OAAQ,WACR,KAAM,qBACN,YAAa,8BACb,KAAM,mBACN,OAAQ,IACT,EACA,CACC,MAAO,MACP,O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BACb,KAAM,WACN,OAAQ,IACT,CAGU,CA0DM,EAAa,SAG9B,EAAQ,OAAS,CATV,cACG,uDACC,UAhDV,UAgDU,EACE,YA9CZ,SAAU,CACT,KAAM,QACN,SAAU,EACV,YAAa,GACb,MAAO,CACN,KAAM,SACN,SAAU,CACT,QACA,SACA,OACA,cACA,OACA,QACD,EACA,WAAY,CACX,KAAM,CACL,KAAM,QACP,EACA,OAAQ,CACP,KAAM,QACP,EACA,YAAa,CACZ,KAAM,QACP,EACA,MAAO,CACN,KAAM,QACP,EACA,KAAM,CACL,KAAM,QACP,EACA,OAAQ,CACP,KAAQ,CACP,QACA,QACA,QACA,IACD,CACD,CACD,CACD,CACD,CAMY,CAMI,GCjpBX,EAOe,EAEf,OAGJ,EAAS,IAAK,GAAiB,CAC7B,IAAM,EAAUA,EAAU,KAAM,GAAM,GAAG,OAAS,EAAQ,IAAI,EAG9D,GAAM,EAAS,CACb,IAAM,EACJ,EAAQ,SAAW,OACf,GAAS,QAAU,KACnB,EAAQ,QAAU,GAAS,QAAU,KAE3C,EAAO,EAAQ,IAAM,CAEnB,OAAgB,GAAS,OAAU,EAAQ,OAAS,KACpD,KAAM,GAAS,KACf,OAAQ,EAAQ,GAChB,YAAa,GAAS,YACtB,MAAO,GAAS,MAChB,OAAQ,GAAS,OACjB,KAAM,GAAS,KAWf,OAAU,EACN,EACG,QAAQ,MAAO,OAAO,EACtB,QAAQ,UAAW,OAAO,EAC1B,QAAQ,WAAY,OAAO,EAC9B,IACN,CACF,MACE,QAAQ,IAAI,mDAAmD,EAAQ,MAAM,CAEjF,CAAC,EAEa,OAAO,KAAKC,CAAM,EAC7B,KAAK,EACL,QAAQ,EAAM,KACb,EAAK,GAAOA,EAAO,GAEZ,GACN,CAAC,CAEC"}
|
package/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAOQ,UAAA;;;;;;;KAAY,UAAA;;;;;;;;cACd,KAAA,EAAK,OAAA,CAAA,MAAA,CAAA,OAAA,EAAA,iBAAA;AAAA,cACL,YAAA;;;;;;cACA,SAAA,EAAS,IAAA,CAAA,iBAAA;AAAA,cAGkD,QAAA"}
|
package/src-DACkiZ3x.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./getGitmojiConventional-CcDLqlOb.mjs";import t from"./changelog/utils/parserOpts.mjs";import n from"./changelog/utils/conventionalRecommendedBump.mjs";import r from"./changelog/utils/gitRawCommit.mjs";import i from"./utils/getReleaseRules.mjs";import a from"./utils/getTypeSpecs.mjs";import o from"grapheme-splitter";import{pullAt as s}from"lodash-es";const c=new o,l=(e,t)=>{let{type:n}=e,r=n,i=_.findIndex(({code:e,emoji:t,type:n,value:i})=>{if(r!==null)return r.replace(/\:/g,``)===e.replace(/\:/g,``)||r===n||r===i||r===t});if(i===-1&&(r=c.splitGraphemes(n)[0],i=_.findIndex(({emoji:e})=>{if(r!==null)return r[0]===e[0]||r[0]===c.splitGraphemes(e)[0]})),i===-1)return;let a=_[i];e.type=`${a.emoji} ${a.description}`,e.typeSpecIndex=i,e.typeSpec=a,typeof e.hash==`string`&&(e.hash=e.hash.substring(0,7));let o=c.splitGraphemes(e.subject);return e.subject=(o[0]===a.emoji?e.subject.replace(s(o,[0]),``).replace(s(o,[0]),``):e.subject).trim(),e},u={commitGroupsSort:[`order`,`title`],commitsSort:[`scope`,`subject`],groupBy:`type`,noteGroupsSort:[`title`],notesSort:[`title`],transform:(e,t)=>l(e,t)},d={parserOpts:t,writerOpts:u},f={conventionalChangelog:d,gitRawCommitsOpts:r,parserOpts:t,recommendedBumpOpts:n,writerOpts:u},{parserOpts:p,writerOpts:m}=f,h=e(),g=i(h),_=a(h);var v=()=>f;export{h as a,d as c,_ as i,u as l,g as n,m as o,v as r,f as s,p as t,l as u};
|
|
2
|
-
//# sourceMappingURL=src-DACkiZ3x.mjs.map
|
package/src-DACkiZ3x.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"src-DACkiZ3x.mjs","names":["_pullAt","writerOpts","conventionalChangelog","getGitmojiConventional"],"sources":["../src/changelog/utils/transformer.ts","../src/changelog/utils/writerOpts.ts","../src/changelog/utils/conventionalChangelog.ts","../src/changelog/index.ts","../src/index.ts"],"sourcesContent":["import GraphemeSplitter from 'grapheme-splitter'\nimport { pullAt as _pullAt } from 'lodash-es'\n\nimport { typeSpecs } from '../../index'\n\nconst splitter = new GraphemeSplitter()\n\nconst transformer = (commit: any, _context: any) => {\n // console.dir(`~~> transformer`)\n // console.dir(commit)\n const { type: _type } = commit\n let type = _type\n /**\n * @note rewrite types\n */\n let typeSpecIndex = typeSpecs.findIndex(\n ({ code: c, emoji: e, type: t, value: v }) => {\n if (type === null) return\n return (\n // @hack(semantic) strip colon from :type: for stricter comparison\n // biome-ignore lint/complexity/noUselessEscapeInRegex: migrate\n type.replace(/\\:/g, '') === c.replace(/\\:/g, '') ||\n type === t ||\n type === v ||\n type === e\n )\n },\n )\n\n /**\n * @hack\n * - if type is not present, attempt fallback\n * - if type is not present or fallback\n * => typeSpecIndex => exit\n */\n if (typeSpecIndex === -1) {\n type = splitter.splitGraphemes(_type)[0]\n typeSpecIndex = typeSpecs.findIndex(({ emoji: e }) => {\n if (type === null) return\n return type[0] === e[0] || type[0] === splitter.splitGraphemes(e)[0]\n })\n }\n\n if (typeSpecIndex === -1) return\n const typeSpec = typeSpecs[typeSpecIndex]\n\n /**\n * @todo put this into configuration\n * - array of types to check against\n * - check against title? [skip notes]\n *\n * @note if typeSpec does not have releaseNotes => exit\n * this could mean they are not for public consumption\n */\n // if (!typeSpec.releaseNotes) return\n\n /**\n * @note type\n * @todo turn on/off emoji, \"section\" descriptive enough?\n */\n commit.type = `${typeSpec.emoji} ${typeSpec.description}`\n commit.typeSpecIndex = typeSpecIndex\n commit.typeSpec = typeSpec\n\n /**\n * @todo can only `groupBy` one field (type) at the moment\n * below is pre-work to `groupBy` order => type\n * so that we could further group in the release notes\n */\n // // @note(semver) semantic-versioning future-proofing\n // // moving to => breaking | feature | fix\n // if (typeSpec.semver === 'breaking' || typeSpec.semver === 'major') {\n // commit.order = 1\n // }\n // if (typeSpec.semver === 'feature' || typeSpec.semver === 'minor') {\n // commit.order = 3\n // }\n // if (typeSpec.semver === 'fix' || typeSpec.semver === 'patch') {\n // commit.order = 5\n // }\n // if (typeSpec.semver === null) {\n // commit.order = 7\n // }\n // if (!Boolean(typeSpec.semver)) {\n // commit.order = 9\n // }\n\n /**\n * @note hash\n */\n if (typeof commit.hash === 'string') {\n commit.hash = commit.hash.substring(0, 7)\n }\n\n /**\n * @note subject\n */\n const subjectTemp = splitter.splitGraphemes(commit.subject)\n const isEmojiMatch = subjectTemp[0] === typeSpec.emoji\n const subject = isEmojiMatch\n ? commit.subject\n .replace(_pullAt(subjectTemp, [0]), '')\n .replace(_pullAt(subjectTemp, [0]), '')\n : commit.subject\n\n commit.subject = subject.trim()\n\n /**\n * @note return the new mutated `commit`\n */\n // console.dir(`> transformer: end`)\n // console.dir(commit)\n return commit\n}\n\nexport default transformer\n","import 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: any, context: any) => transformer(commit, context),\n}\n\nexport default writerOpts\n","import parserOpts from './parserOpts'\nimport writerOpts from './writerOpts'\n\nconst conventionalChangelog = { parserOpts, writerOpts }\n\nexport default conventionalChangelog\n","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","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":"oXAKA,MAAM,EAAW,IAAI,EAEf,GAAe,EAAa,IAAkB,CAGlD,GAAM,CAAE,KAAM,GAAU,EACpB,EAAO,EAIP,EAAgB,EAAU,WAC3B,CAAE,KAAM,EAAG,MAAO,EAAG,KAAM,EAAG,MAAO,KAAQ,CACxC,OAAS,KACb,OAGE,EAAK,QAAQ,MAAO,EAAE,IAAM,EAAE,QAAQ,MAAO,EAAE,GAC/C,IAAS,GACT,IAAS,GACT,IAAS,CAEb,CACF,EAgBA,GARI,IAAkB,KACpB,EAAO,EAAS,eAAe,CAAK,EAAE,GACtC,EAAgB,EAAU,WAAW,CAAE,MAAO,KAAQ,CAChD,OAAS,KACb,OAAO,EAAK,KAAO,EAAE,IAAM,EAAK,KAAO,EAAS,eAAe,CAAC,EAAE,EACpE,CAAC,GAGC,IAAkB,GAAI,OAC1B,IAAM,EAAW,EAAU,GAgB3B,EAAO,KAAO,GAAG,EAAS,MAAM,IAAI,EAAS,cAC7C,EAAO,cAAgB,EACvB,EAAO,SAAW,EA4Bd,OAAO,EAAO,MAAS,WACzB,EAAO,KAAO,EAAO,KAAK,UAAU,EAAG,CAAC,GAM1C,IA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