@jeromefitz/conventional-gitmoji 4.0.20 → 4.0.21-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/LICENSE +1 -1
  2. package/changelog/{config.d.ts → config.d.mts} +3 -1
  3. package/changelog/config.d.mts.map +1 -0
  4. package/changelog/config.mjs +2 -0
  5. package/changelog/config.mjs.map +1 -0
  6. package/changelog/index.d.mts +57 -0
  7. package/changelog/index.d.mts.map +1 -0
  8. package/changelog/index.mjs +1 -0
  9. package/changelog/utils/conventionalChangelog.d.mts +22 -0
  10. package/changelog/utils/conventionalChangelog.d.mts.map +1 -0
  11. package/changelog/utils/conventionalChangelog.mjs +1 -0
  12. package/changelog/utils/conventionalRecommendedBump.d.mts +18 -0
  13. package/changelog/utils/conventionalRecommendedBump.d.mts.map +1 -0
  14. package/changelog/utils/conventionalRecommendedBump.mjs +2 -0
  15. package/changelog/utils/conventionalRecommendedBump.mjs.map +1 -0
  16. package/changelog/utils/{gitRawCommit.d.ts → gitRawCommit.d.mts} +4 -2
  17. package/changelog/utils/gitRawCommit.d.mts.map +1 -0
  18. package/changelog/utils/gitRawCommit.mjs +2 -0
  19. package/changelog/utils/gitRawCommit.mjs.map +1 -0
  20. package/changelog/utils/parserOpts.d.mts +12 -0
  21. package/changelog/utils/parserOpts.d.mts.map +1 -0
  22. package/changelog/utils/parserOpts.mjs +2 -0
  23. package/changelog/utils/parserOpts.mjs.map +1 -0
  24. package/changelog/utils/transformer.d.mts +5 -0
  25. package/changelog/utils/transformer.d.mts.map +1 -0
  26. package/changelog/utils/transformer.mjs +1 -0
  27. package/changelog/utils/{writerOpts.d.ts → writerOpts.d.mts} +9 -7
  28. package/changelog/utils/writerOpts.d.mts.map +1 -0
  29. package/changelog/utils/writerOpts.mjs +1 -0
  30. package/chunk-sEf7NbmF.mjs +1 -0
  31. package/commit-FQNQu-d7.d.mts +7 -0
  32. package/commit-FQNQu-d7.d.mts.map +1 -0
  33. package/commit.types-CwGP9mlg.d.mts +5 -0
  34. package/commit.types-CwGP9mlg.d.mts.map +1 -0
  35. package/config/rewrites.d.mts +15 -0
  36. package/config/rewrites.d.mts.map +1 -0
  37. package/config/rewrites.mjs +2 -0
  38. package/config/rewrites.mjs.map +1 -0
  39. package/config/{types.d.ts → types.d.mts} +4 -4
  40. package/config/types.d.mts.map +1 -0
  41. package/config/types.mjs +2 -0
  42. package/config/types.mjs.map +1 -0
  43. package/getGitmojiConventional-aDc1od8Y.mjs +2 -0
  44. package/getGitmojiConventional-aDc1od8Y.mjs.map +1 -0
  45. package/index-DvIJYkSC.d.mts +1 -0
  46. package/index.d.mts +82 -0
  47. package/index.d.mts.map +1 -0
  48. package/index.mjs +1 -0
  49. package/package.json +39 -16
  50. package/releaseRule-CBYQ7ZCz.d.mts +7 -0
  51. package/releaseRule-CBYQ7ZCz.d.mts.map +1 -0
  52. package/releaseRule.types-BKQjfcDG.d.mts +19 -0
  53. package/releaseRule.types-BKQjfcDG.d.mts.map +1 -0
  54. package/src-DEKB35ZR.mjs +2 -0
  55. package/src-DEKB35ZR.mjs.map +1 -0
  56. package/types/commit.d.mts +2 -0
  57. package/types/commit.mjs +2 -0
  58. package/types/commit.mjs.map +1 -0
  59. package/types/commit.types.d.mts +2 -0
  60. package/types/commit.types.mjs +1 -0
  61. package/types/index.d.mts +5 -0
  62. package/types/index.mjs +1 -0
  63. package/types/releaseRule.d.mts +2 -0
  64. package/types/releaseRule.mjs +2 -0
  65. package/types/releaseRule.mjs.map +1 -0
  66. package/types/releaseRule.types.d.mts +2 -0
  67. package/types/releaseRule.types.mjs +1 -0
  68. package/utils/getGitmojiConventional.d.mts +6 -0
  69. package/utils/getGitmojiConventional.d.mts.map +1 -0
  70. package/utils/getGitmojiConventional.mjs +1 -0
  71. package/utils/getReleaseRules.d.mts +12 -0
  72. package/utils/getReleaseRules.d.mts.map +1 -0
  73. package/utils/getReleaseRules.mjs +2 -0
  74. package/utils/getReleaseRules.mjs.map +1 -0
  75. package/utils/getTypeSpecs.d.mts +6 -0
  76. package/utils/getTypeSpecs.d.mts.map +1 -0
  77. package/utils/getTypeSpecs.mjs +2 -0
  78. package/utils/getTypeSpecs.mjs.map +1 -0
  79. package/changelog/config.js +0 -1
  80. package/changelog/index.d.ts +0 -55
  81. package/changelog/index.js +0 -1
  82. package/changelog/utils/conventionalChangelog.d.ts +0 -20
  83. package/changelog/utils/conventionalChangelog.js +0 -1
  84. package/changelog/utils/conventionalRecommendedBump.d.ts +0 -16
  85. package/changelog/utils/conventionalRecommendedBump.js +0 -1
  86. package/changelog/utils/gitRawCommit.js +0 -1
  87. package/changelog/utils/parserOpts.d.ts +0 -10
  88. package/changelog/utils/parserOpts.js +0 -1
  89. package/changelog/utils/transformer.d.ts +0 -3
  90. package/changelog/utils/transformer.js +0 -1
  91. package/changelog/utils/writerOpts.js +0 -1
  92. package/config/rewrites.d.ts +0 -12
  93. package/config/rewrites.js +0 -1
  94. package/config/types.js +0 -1
  95. package/index.d.ts +0 -84
  96. package/index.js +0 -1
  97. package/types/commit.d.ts +0 -5
  98. package/types/commit.js +0 -1
  99. package/types/commit.types.d.ts +0 -3
  100. package/types/commit.types.js +0 -0
  101. package/types/index.d.ts +0 -4
  102. package/types/index.js +0 -1
  103. package/types/releaseRule.d.ts +0 -6
  104. package/types/releaseRule.js +0 -1
  105. package/types/releaseRule.types.d.ts +0 -17
  106. package/types/releaseRule.types.js +0 -0
  107. package/utils/getGitmojiConventional.d.ts +0 -6
  108. package/utils/getGitmojiConventional.js +0 -1
  109. package/utils/getReleaseRules.d.ts +0 -12
  110. package/utils/getReleaseRules.js +0 -1
  111. package/utils/getTypeSpecs.d.ts +0 -6
  112. package/utils/getTypeSpecs.js +0 -1
@@ -1,3 +0,0 @@
1
- declare const transformer: (commit: any, context: any) => any;
2
-
3
- export { transformer as default };
@@ -1 +0,0 @@
1
- var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var x=E(u=>{"use strict";var M=[{emoji:"\u{1F3A8}",entity:"🎨",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"⚡",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"🔥",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"🐛",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"🚑",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"✨",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"📝",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"🚀",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"🎉",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"✅",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"🔒",code:":lock:",description:"Fix security or privacy issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"🔐",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"🔖",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"🚨",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"🚧",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"💚",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"📌",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"👷",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"📈",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"♻",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"➕",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"➖",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"🔧",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"🔨",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"🌐",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"⏪",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"🔀",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"💥",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"♿",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"💡",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"🍻",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"💬",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"🗃",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"🔊",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"🔇",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"👥",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"🚸",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"📱",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"🤡",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"🥚",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"📸",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"⚗",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"🔍",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"🏷",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"🌱",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"🚩",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"🥅",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"💫",code:":dizzy:",description:"Add or update animations and transitions.",name:"dizzy",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"🗑",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"🛂",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"🩹",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"🧐",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"⚰",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"🧪",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"👔",code:":necktie:",description:"Add or update business logic.",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"🩺",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"🧱",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"🧑‍💻",code:":technologist:",description:"Improve developer experience.",name:"technologist",semver:null},{emoji:"\u{1F4B8}",entity:"💸",code:":money_with_wings:",description:"Add sponsorships or money related infrastructure.",name:"money-with-wings",semver:null},{emoji:"\u{1F9F5}",entity:"🧵",code:":thread:",description:"Add or update code related to multithreading or concurrency.",name:"thread",semver:null},{emoji:"\u{1F9BA}",entity:"🦺",code:":safety_vest:",description:"Add or update code related to validation.",name:"safety-vest",semver:null},{emoji:"\u2708\uFE0F",entity:"✈",code:":airplane:",description:"Improve offline support.",name:"airplane",semver:null}],q={gitmojis:M},H="object",K="https://json-schema.org/draft/2020-12/schema",W=["gitmojis"],U={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]}}}}},J={type:H,$schema:K,required:W,properties:U},V=q.gitmojis;u.gitmojis=V;u.schema=J});import te from"grapheme-splitter";import I from"lodash/pullAt.js";var G={headerCorrespondence:["type","scope","subject","ticket"],headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,issuePrefixes:["1b9fe48b-292c-46e7-bfde-0599639d0ec0"],noteKeywords:["BREAKING CHANGE","BREAKING CHANGES"],referenceActions:["b6db85c1-4860-4275-88e3-bd9917a0b29f"],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./},n=G;var O={commitGroupsSort:["order","title"],commitsSort:["scope","subject"],groupBy:"type",noteGroupsSort:["title"],notesSort:["title"],transform:(t,e)=>h(t,e)},m=O;var B={parserOpts:n,writerOpts:m},y=B;var z={parserOpts:n,whatBump:t=>{let e=2,o=0,r=0;return t.forEach(i=>{i.notes.length>0?(o+=i.notes.length,e=0):i.type==="feat"&&(r+=1,e===2&&(e=1))}),{level:e,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},g=z;var $={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},v=$;var D={conventionalChangelog:y,gitRawCommitsOpts:v,parserOpts:n,recommendedBumpOpts:g,writerOpts:m},b=D;var N=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"dizzy",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"},{from:"money-with-wings",to:"sponsor"},{from:"thread",to:"concurrency"},{from:"safety-vest",to:"validation"}],j=N;var T={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},d=T;var L=x(),{gitmojis:Q}=L,X=()=>(Q.map(e=>{let o=j.find(r=>r?.from===e.name);if(o){let r=o.semver===void 0?e?.semver||null:o.semver||e?.semver||null;d[o.to]={branch:o?.branch?o.branch:null,code:e?.code,commit:o.to,description:e?.description,emoji:e?.emoji,entity:e?.entity,name:e?.name,semver:r?r.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(d).sort().reduce((e,o)=>(e[o]=d[o],e),{})),w=X;var s=[],Y=t=>(Object.keys(t).map(e=>{let o=t[e];o&&o.semver&&(s.push({release:o.semver,type:o?.code.replace(/(:[^:]*):/g,"$1")}),s.push({release:o.semver,type:o?.code}),s.push({release:o.semver,type:o.commit}),s.push({release:o.semver,type:o.emoji}))}),s),k=Y;import Z from"title";var R=[],ee=t=>(Object.keys(t).map(e=>{R.push({code:t[e].code,description:Z(t[e].description.replace(".","")),emoji:t[e].emoji,semver:t[e].semver,type:t[e].commit,value:t[e].commit})}),R),_=ee;var{parserOpts:Ge,writerOpts:Oe}=b,A=w(),Be=k(A),p=_(A);var f=new te,oe=(t,e)=>{let{type:o}=t,r=o,i=p.findIndex(({code:c,emoji:F,type:S,value:P})=>{if(r!==null)return r.replace(/\:/g,"")===c.replace(/\:/g,"")||r===S||r===P||r===F});if(i===-1&&(r=f.splitGraphemes(o)[0],i=p.findIndex(({emoji:c})=>{if(r!==null)return r[0]===c[0]||r[0]===f.splitGraphemes(c)[0]})),i===-1)return;let a=p[i];t.type=`${a.emoji} ${a.description}`,t.typeSpecIndex=i,t.typeSpec=a,typeof t.hash=="string"&&(t.hash=t.hash.substring(0,7));let l=f.splitGraphemes(t.subject),C=l[0]===a.emoji?t.subject.replace(I(l,[0]),"").replace(I(l,[0]),""):t.subject;return t.subject=C.trim(),t},h=oe;export{h as default};
@@ -1 +0,0 @@
1
- var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var j=E(u=>{"use strict";var T=[{emoji:"\u{1F3A8}",entity:"🎨",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"⚡",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"🔥",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"🐛",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"🚑",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"✨",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"📝",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"🚀",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"🎉",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"✅",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"🔒",code:":lock:",description:"Fix security or privacy issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"🔐",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"🔖",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"🚨",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"🚧",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"💚",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"📌",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"👷",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"📈",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"♻",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"➕",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"➖",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"🔧",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"🔨",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"🌐",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"⏪",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"🔀",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"💥",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"♿",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"💡",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"🍻",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"💬",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"🗃",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"🔊",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"🔇",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"👥",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"🚸",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"📱",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"🤡",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"🥚",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"📸",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"⚗",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"🔍",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"🏷",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"🌱",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"🚩",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"🥅",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"💫",code:":dizzy:",description:"Add or update animations and transitions.",name:"dizzy",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"🗑",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"🛂",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"🩹",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"🧐",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"⚰",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"🧪",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"👔",code:":necktie:",description:"Add or update business logic.",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"🩺",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"🧱",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"🧑‍💻",code:":technologist:",description:"Improve developer experience.",name:"technologist",semver:null},{emoji:"\u{1F4B8}",entity:"💸",code:":money_with_wings:",description:"Add sponsorships or money related infrastructure.",name:"money-with-wings",semver:null},{emoji:"\u{1F9F5}",entity:"🧵",code:":thread:",description:"Add or update code related to multithreading or concurrency.",name:"thread",semver:null},{emoji:"\u{1F9BA}",entity:"🦺",code:":safety_vest:",description:"Add or update code related to validation.",name:"safety-vest",semver:null},{emoji:"\u2708\uFE0F",entity:"✈",code:":airplane:",description:"Improve offline support.",name:"airplane",semver:null}],M={gitmojis:T},q="object",H="https://json-schema.org/draft/2020-12/schema",K=["gitmojis"],W={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]}}}}},U={type:q,$schema:H,required:K,properties:W},J=M.gitmojis;u.gitmojis=J;u.schema=U});import ee from"grapheme-splitter";import A from"lodash/pullAt.js";var G={headerCorrespondence:["type","scope","subject","ticket"],headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,issuePrefixes:["1b9fe48b-292c-46e7-bfde-0599639d0ec0"],noteKeywords:["BREAKING CHANGE","BREAKING CHANGES"],referenceActions:["b6db85c1-4860-4275-88e3-bd9917a0b29f"],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./},n=G;var O={parserOpts:n,writerOpts:m},h=O;var B={parserOpts:n,whatBump:t=>{let e=2,o=0,r=0;return t.forEach(i=>{i.notes.length>0?(o+=i.notes.length,e=0):i.type==="feat"&&(r+=1,e===2&&(e=1))}),{level:e,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},y=B;var z={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},g=z;var $={conventionalChangelog:h,gitRawCommitsOpts:g,parserOpts:n,recommendedBumpOpts:y,writerOpts:m},v=$;var D=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"dizzy",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"},{from:"money-with-wings",to:"sponsor"},{from:"thread",to:"concurrency"},{from:"safety-vest",to:"validation"}],b=D;var N={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},d=N;var V=j(),{gitmojis:L}=V,Q=()=>(L.map(e=>{let o=b.find(r=>r?.from===e.name);if(o){let r=o.semver===void 0?e?.semver||null:o.semver||e?.semver||null;d[o.to]={branch:o?.branch?o.branch:null,code:e?.code,commit:o.to,description:e?.description,emoji:e?.emoji,entity:e?.entity,name:e?.name,semver:r?r.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(d).sort().reduce((e,o)=>(e[o]=d[o],e),{})),x=Q;var s=[],X=t=>(Object.keys(t).map(e=>{let o=t[e];o&&o.semver&&(s.push({release:o.semver,type:o?.code.replace(/(:[^:]*):/g,"$1")}),s.push({release:o.semver,type:o?.code}),s.push({release:o.semver,type:o.commit}),s.push({release:o.semver,type:o.emoji}))}),s),w=X;import Y from"title";var k=[],Z=t=>(Object.keys(t).map(e=>{k.push({code:t[e].code,description:Y(t[e].description.replace(".","")),emoji:t[e].emoji,semver:t[e].semver,type:t[e].commit,value:t[e].commit})}),k),R=Z;var{parserOpts:Pe,writerOpts:Ee}=v,_=x(),Ge=w(_),p=R(_);var f=new ee,te=(t,e)=>{let{type:o}=t,r=o,i=p.findIndex(({code:c,emoji:F,type:S,value:P})=>{if(r!==null)return r.replace(/\:/g,"")===c.replace(/\:/g,"")||r===S||r===P||r===F});if(i===-1&&(r=f.splitGraphemes(o)[0],i=p.findIndex(({emoji:c})=>{if(r!==null)return r[0]===c[0]||r[0]===f.splitGraphemes(c)[0]})),i===-1)return;let a=p[i];t.type=`${a.emoji} ${a.description}`,t.typeSpecIndex=i,t.typeSpec=a,typeof t.hash=="string"&&(t.hash=t.hash.substring(0,7));let l=f.splitGraphemes(t.subject),C=l[0]===a.emoji?t.subject.replace(A(l,[0]),"").replace(A(l,[0]),""):t.subject;return t.subject=C.trim(),t},I=te;var oe={commitGroupsSort:["order","title"],commitsSort:["scope","subject"],groupBy:"type",noteGroupsSort:["title"],notesSort:["title"],transform:(t,e)=>I(t,e)},m=oe;export{m as default};
@@ -1,12 +0,0 @@
1
- /**
2
- * @note pseudo-map to conventional-commits
3
- */
4
- type RewritesProps = {
5
- branch?: null | string;
6
- from: string;
7
- semver?: 'breaking' | 'feature' | 'fix' | 'major' | 'minor' | 'patch' | null;
8
- to: string;
9
- };
10
- declare const rewrites: RewritesProps[];
11
-
12
- export { rewrites as default };
@@ -1 +0,0 @@
1
- var o=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"dizzy",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"},{from:"money-with-wings",to:"sponsor"},{from:"thread",to:"concurrency"},{from:"safety-vest",to:"validation"}],r=o;export{r as default};
package/config/types.js DELETED
@@ -1 +0,0 @@
1
- var e={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},r=e;export{r as default};
package/index.d.ts DELETED
@@ -1,84 +0,0 @@
1
- import { ICommit } from './types/commit.types.js';
2
- import { IReleaseRuleProps } from './types/releaseRule.types.js';
3
- export { IReleaseRule } from './types/releaseRule.types.js';
4
-
5
- declare const parserOpts: {
6
- headerCorrespondence: string[];
7
- headerPattern: RegExp;
8
- issuePrefixes: string[];
9
- noteKeywords: string[];
10
- referenceActions: string[];
11
- revertPattern: RegExp;
12
- };
13
- declare const writerOpts: {
14
- commitGroupsSort: string[];
15
- commitsSort: string[];
16
- groupBy: string;
17
- noteGroupsSort: string[];
18
- notesSort: string[];
19
- transform: (commit: any, context: any) => any;
20
- };
21
- declare const types: Partial<Record<ICommit, IReleaseRuleProps>>;
22
- declare const releaseRules: {
23
- message?: null | string;
24
- release?: null | string;
25
- tag?: null | string;
26
- type?: null | string;
27
- }[];
28
- declare const typeSpecs: Omit<IReleaseRuleProps, "branch" | "commit" | "entity" | "name">[];
29
-
30
- declare const _default: () => {
31
- conventionalChangelog: {
32
- parserOpts: {
33
- headerCorrespondence: string[];
34
- headerPattern: RegExp;
35
- issuePrefixes: string[];
36
- noteKeywords: string[];
37
- referenceActions: string[];
38
- revertPattern: RegExp;
39
- };
40
- writerOpts: {
41
- commitGroupsSort: string[];
42
- commitsSort: string[];
43
- groupBy: string;
44
- noteGroupsSort: string[];
45
- notesSort: string[];
46
- transform: (commit: any, context: any) => any;
47
- };
48
- };
49
- gitRawCommitsOpts: {
50
- format: string;
51
- };
52
- parserOpts: {
53
- headerCorrespondence: string[];
54
- headerPattern: RegExp;
55
- issuePrefixes: string[];
56
- noteKeywords: string[];
57
- referenceActions: string[];
58
- revertPattern: RegExp;
59
- };
60
- recommendedBumpOpts: {
61
- parserOpts: {
62
- headerCorrespondence: string[];
63
- headerPattern: RegExp;
64
- issuePrefixes: string[];
65
- noteKeywords: string[];
66
- referenceActions: string[];
67
- revertPattern: RegExp;
68
- };
69
- whatBump: (commits: any) => {
70
- level: number;
71
- reason: string;
72
- };
73
- };
74
- writerOpts: {
75
- commitGroupsSort: string[];
76
- commitsSort: string[];
77
- groupBy: string;
78
- noteGroupsSort: string[];
79
- notesSort: string[];
80
- transform: (commit: any, context: any) => any;
81
- };
82
- };
83
-
84
- export { ICommit, IReleaseRuleProps, _default as default, parserOpts, releaseRules, typeSpecs, types, writerOpts };
package/index.js DELETED
@@ -1 +0,0 @@
1
- var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var w=E(h=>{"use strict";var H=[{emoji:"\u{1F3A8}",entity:"&#x1f3a8;",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"&#x26a1;",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"&#x1f525;",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"&#x1f41b;",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"&#128657;",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"&#x2728;",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"&#x1f4dd;",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"&#x1f680;",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"&#127881;",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"&#x2705;",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"&#x1f512;",code:":lock:",description:"Fix security or privacy issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"&#x1f510;",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"&#x1f516;",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"&#x1f6a8;",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"&#x1f6a7;",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"&#x1f49a;",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"&#x1F4CC;",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"&#x1f477;",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"&#x1F4C8;",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"&#x267b;",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"&#10133;",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"&#10134;",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"&#x1f527;",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"&#128296;",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"&#127760;",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"&#59161;",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"&#58613;",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"&#9194;",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"&#128256;",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"&#x1f4a5;",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"&#9855;",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"&#128161;",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"&#x1f37b;",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"&#128172;",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"&#128451;",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"&#128266;",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"&#128263;",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"&#128101;",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"&#128696;",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"&#128241;",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"&#129313;",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"&#129370;",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"&#128248;",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"&#x2697;",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"&#128269;",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"&#127991;",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"&#127793;",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"&#x1F6A9;",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"&#x1F945;",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"&#x1f4ab;",code:":dizzy:",description:"Add or update animations and transitions.",name:"dizzy",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"&#x1F5D1;",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"&#x1F6C2;",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"&#x1FA79;",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"&#x1F9D0;",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"&#x26B0;",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"&#x1F9EA;",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"&#128084;",code:":necktie:",description:"Add or update business logic.",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"&#x1FA7A;",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"&#x1f9f1;",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"&#129489;&#8205;&#128187;",code:":technologist:",description:"Improve developer experience.",name:"technologist",semver:null},{emoji:"\u{1F4B8}",entity:"&#x1F4B8;",code:":money_with_wings:",description:"Add sponsorships or money related infrastructure.",name:"money-with-wings",semver:null},{emoji:"\u{1F9F5}",entity:"&#x1F9F5;",code:":thread:",description:"Add or update code related to multithreading or concurrency.",name:"thread",semver:null},{emoji:"\u{1F9BA}",entity:"&#x1F9BA;",code:":safety_vest:",description:"Add or update code related to validation.",name:"safety-vest",semver:null},{emoji:"\u2708\uFE0F",entity:"&#x2708;",code:":airplane:",description:"Improve offline support.",name:"airplane",semver:null}],K={gitmojis:H},W="object",U="https://json-schema.org/draft/2020-12/schema",J=["gitmojis"],V={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]}}}}},L={type:W,$schema:U,required:J,properties:V},Q=K.gitmojis;h.gitmojis=Q;h.schema=L});var G={headerCorrespondence:["type","scope","subject","ticket"],headerPattern:/^(.*?)(?:\((.*)\))?:?\s(.*)$/,issuePrefixes:["1b9fe48b-292c-46e7-bfde-0599639d0ec0"],noteKeywords:["BREAKING CHANGE","BREAKING CHANGES"],referenceActions:["b6db85c1-4860-4275-88e3-bd9917a0b29f"],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./},n=G;import O from"grapheme-splitter";import y from"lodash/pullAt.js";var u=new O,B=(t,e)=>{let{type:o}=t,r=o,i=m.findIndex(({code:c,emoji:F,type:S,value:P})=>{if(r!==null)return r.replace(/\:/g,"")===c.replace(/\:/g,"")||r===S||r===P||r===F});if(i===-1&&(r=u.splitGraphemes(o)[0],i=m.findIndex(({emoji:c})=>{if(r!==null)return r[0]===c[0]||r[0]===u.splitGraphemes(c)[0]})),i===-1)return;let a=m[i];t.type=`${a.emoji} ${a.description}`,t.typeSpecIndex=i,t.typeSpec=a,typeof t.hash=="string"&&(t.hash=t.hash.substring(0,7));let l=u.splitGraphemes(t.subject),C=l[0]===a.emoji?t.subject.replace(y(l,[0]),"").replace(y(l,[0]),""):t.subject;return t.subject=C.trim(),t},g=B;var z={commitGroupsSort:["order","title"],commitsSort:["scope","subject"],groupBy:"type",noteGroupsSort:["title"],notesSort:["title"],transform:(t,e)=>g(t,e)},d=z;var $={parserOpts:n,writerOpts:d},v=$;var D={parserOpts:n,whatBump:t=>{let e=2,o=0,r=0;return t.forEach(i=>{i.notes.length>0?(o+=i.notes.length,e=0):i.type==="feat"&&(r+=1,e===2&&(e=1))}),{level:e,reason:o===1?`There is ${o} BREAKING CHANGE and ${r} features`:`There are ${o} BREAKING CHANGES and ${r} features`}}},b=D;var N={format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae"},j=N;var T={conventionalChangelog:v,gitRawCommitsOpts:j,parserOpts:n,recommendedBumpOpts:b,writerOpts:d},f=T;var M=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"dizzy",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"},{from:"money-with-wings",to:"sponsor"},{from:"thread",to:"concurrency"},{from:"safety-vest",to:"validation"}],x=M;var q={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"&#x1f4bd;",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},p=q;var X=w(),{gitmojis:Y}=X,Z=()=>(Y.map(e=>{let o=x.find(r=>r?.from===e.name);if(o){let r=o.semver===void 0?e?.semver||null:o.semver||e?.semver||null;p[o.to]={branch:o?.branch?o.branch:null,code:e?.code,commit:o.to,description:e?.description,emoji:e?.emoji,entity:e?.entity,name:e?.name,semver:r?r.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(p).sort().reduce((e,o)=>(e[o]=p[o],e),{})),k=Z;var s=[],ee=t=>(Object.keys(t).map(e=>{let o=t[e];o&&o.semver&&(s.push({release:o.semver,type:o?.code.replace(/(:[^:]*):/g,"$1")}),s.push({release:o.semver,type:o?.code}),s.push({release:o.semver,type:o.commit}),s.push({release:o.semver,type:o.emoji}))}),s),R=ee;import te from"title";var _=[],oe=t=>(Object.keys(t).map(e=>{_.push({code:t[e].code,description:te(t[e].description.replace(".","")),emoji:t[e].emoji,semver:t[e].semver,type:t[e].commit,value:t[e].commit})}),_),A=oe;var{parserOpts:$e,writerOpts:De}=f,I=k(),Ne=R(I),m=A(I);var Te=()=>f;export{Te as default,$e as parserOpts,Ne as releaseRules,m as typeSpecs,I as types,De as writerOpts};
package/types/commit.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { ICommit } from './commit.types.js';
2
-
3
- declare const commit: ICommit[];
4
-
5
- export { commit };
package/types/commit.js DELETED
@@ -1 +0,0 @@
1
- var e=["access","analytics","animation","arch","assets","beer","breaking","build","catch","chore","ci","clean","compat","concurrency","config","contrib-add","data","db","dep-add","dep-rm","dep-up","deploy","docs","docs-code","downgrade","dx","egg","experiment","feat","fix","fix-ci","flags","healthcheck","hotfix","i18n","ignore","inf","init","iphone","license","lint","log-add","log-rm","logic","merge","mock","mv","patch","perf","poo","prune","pushpin","refactor","release","revert","rip","roles","rollforward","run-build","secrets","security","seed","seo","snapshot","sponsor","style","test","test-fail","texts","types","typo","ui","upgrade","ux","validation","wip"];export{e as commit};
@@ -1,3 +0,0 @@
1
- type ICommit = 'access' | 'analytics' | 'animation' | 'arch' | 'assets' | 'beer' | 'breaking' | 'build' | 'catch' | 'chore' | 'ci' | 'clean' | 'compat' | 'concurrency' | 'config' | 'contrib-add' | 'data' | 'db' | 'dep-add' | 'dep-rm' | 'dep-up' | 'deploy' | 'docs' | 'docs-code' | 'downgrade' | 'dx' | 'egg' | 'experiment' | 'feat' | 'fix' | 'fix-ci' | 'flags' | 'healthcheck' | 'hotfix' | 'i18n' | 'ignore' | 'inf' | 'init' | 'iphone' | 'license' | 'lint' | 'log-add' | 'log-rm' | 'logic' | 'merge' | 'mock' | 'mv' | 'patch' | 'perf' | 'poo' | 'prune' | 'pushpin' | 'refactor' | 'release' | 'revert' | 'rip' | 'roles' | 'rollforward' | 'run-build' | 'secrets' | 'security' | 'seed' | 'seo' | 'snapshot' | 'sponsor' | 'style' | 'test' | 'test-fail' | 'texts' | 'types' | 'typo' | 'ui' | 'upgrade' | 'ux' | 'validation' | 'wip';
2
-
3
- export type { ICommit };
File without changes
package/types/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { commit as commitTypes } from './commit.js';
2
- export { ICommit } from './commit.types.js';
3
- export { releaseRule as releaseRuleTypes } from './releaseRule.js';
4
- export { IReleaseRule, IReleaseRuleProps } from './releaseRule.types.js';
package/types/index.js DELETED
@@ -1 +0,0 @@
1
- var e=["access","analytics","animation","arch","assets","beer","breaking","build","catch","chore","ci","clean","compat","concurrency","config","contrib-add","data","db","dep-add","dep-rm","dep-up","deploy","docs","docs-code","downgrade","dx","egg","experiment","feat","fix","fix-ci","flags","healthcheck","hotfix","i18n","ignore","inf","init","iphone","license","lint","log-add","log-rm","logic","merge","mock","mv","patch","perf","poo","prune","pushpin","refactor","release","revert","rip","roles","rollforward","run-build","secrets","security","seed","seo","snapshot","sponsor","style","test","test-fail","texts","types","typo","ui","upgrade","ux","validation","wip"];var t={access:{branch:null,code:":wheelchair:",commit:"access",description:"Improve accessibility.",emoji:"\u267F\uFE0F",entity:"&#9855;",name:"wheelchair",semver:"patch"},analytics:{branch:null,code:":chart_with_upwards_trend:",commit:"analytics",description:"Add or update analytics or track code.",emoji:"\u{1F4C8}",entity:"&#x1F4C8;",name:"chart-with-upwards-trend",semver:"patch"},animation:{branch:null,code:":dizzy:",commit:"animation",description:"Add or update animations and transitions.",emoji:"\u{1F4AB}",entity:"&#x1f4ab;",name:"animation",semver:"patch"},arch:{branch:null,code:":building_construction:",commit:"arch",description:"Make architectural changes.",emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",name:"building-construction",semver:null},assets:{branch:null,code:":bento:",commit:"assets",description:"Add or update assets.",emoji:"\u{1F371}",entity:"&#1F371",name:"bento",semver:"patch"},beer:{branch:null,code:":beers:",commit:"beer",description:"Write code drunkenly.",emoji:"\u{1F37B}",entity:"&#x1f37b;",name:"beers",semver:null},breaking:{branch:null,code:":boom:",commit:"breaking",description:"Introduce breaking changes.",emoji:"\u{1F4A5}",entity:"&#x1f4a5;",name:"boom",semver:"major"},build:{branch:null,code:":hammer:",commit:"build",description:"Add or update development scripts.",emoji:"\u{1F528}",entity:"&#128296;",name:"hammer",semver:null},catch:{branch:null,code:":goal_net:",commit:"catch",description:"Catch errors.",emoji:"\u{1F945}",entity:"&#x1F945;",name:"goal-net",semver:"patch"},chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"&#x1f4bd;",name:"computer-disk",semver:null},ci:{branch:"ci",code:":construction_worker:",commit:"ci",description:"Add or update CI build system.",emoji:"\u{1F477}",entity:"&#x1f477;",name:"construction-worker",semver:null},clean:{branch:null,code:":wastebasket:",commit:"clean",description:"Deprecate code that needs to be cleaned up.",emoji:"\u{1F5D1}\uFE0F",entity:"&#x1F5D1;",name:"wastebasket",semver:"patch"},compat:{branch:null,code:":alien:",commit:"compat",description:"Update code due to external API changes.",emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",name:"alien",semver:"patch"},concurrency:{branch:null,code:":thread:",commit:"concurrency",description:"Add or update code related to multithreading or concurrency.",emoji:"\u{1F9F5}",entity:"&#x1F9F5;",name:"thread",semver:"patch"},config:{branch:null,code:":wrench:",commit:"config",description:"Add or update configuration files.",emoji:"\u{1F527}",entity:"&#x1f527;",name:"wrench",semver:"patch"},"contrib-add":{branch:null,code:":busts_in_silhouette:",commit:"contrib-add",description:"Add or update contributor(s).",emoji:"\u{1F465}",entity:"&#128101;",name:"busts-in-silhouette",semver:null},data:{branch:null,code:":monocle_face:",commit:"data",description:"Data exploration/inspection.",emoji:"\u{1F9D0}",entity:"&#x1F9D0;",name:"monocle-face",semver:null},db:{branch:null,code:":card_file_box:",commit:"db",description:"Perform database related changes.",emoji:"\u{1F5C3}\uFE0F",entity:"&#128451;",name:"card-file-box",semver:"patch"},"dep-add":{branch:null,code:":heavy_plus_sign:",commit:"dep-add",description:"Add a dependency.",emoji:"\u2795",entity:"&#10133;",name:"heavy-plus-sign",semver:"patch"},"dep-rm":{branch:null,code:":heavy_minus_sign:",commit:"dep-rm",description:"Remove a dependency.",emoji:"\u2796",entity:"&#10134;",name:"heavy-minus-sign",semver:"patch"},"dep-up":{branch:null,code:":package:",commit:"dep-up",description:"Add or update compiled files or packages.",emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",name:"package",semver:"patch"},deploy:{branch:null,code:":rocket:",commit:"deploy",description:"Deploy stuff.",emoji:"\u{1F680}",entity:"&#x1f680;",name:"rocket",semver:null},docs:{branch:null,code:":memo:",commit:"docs",description:"Add or update documentation.",emoji:"\u{1F4DD}",entity:"&#x1f4dd;",name:"memo",semver:null},"docs-code":{branch:null,code:":bulb:",commit:"docs-code",description:"Add or update comments in source code.",emoji:"\u{1F4A1}",entity:"&#128161;",name:"bulb",semver:null},downgrade:{branch:null,code:":arrow_down:",commit:"downgrade",description:"Downgrade dependencies.",emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",name:"arrow-down",semver:"patch"},dx:{branch:null,code:":technologist:",commit:"dx",description:"Improve developer experience",emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"&#129489;&#8205;&#128187;",name:"dx",semver:null},egg:{branch:null,code:":egg:",commit:"egg",description:"Add or update an easter egg.",emoji:"\u{1F95A}",entity:"&#129370;",name:"egg",semver:"patch"},experiment:{branch:null,code:":alembic:",commit:"experiment",description:"Perform experiments.",emoji:"\u2697\uFE0F",entity:"&#128248;",name:"alembic",semver:"patch"},feat:{branch:"feature",code:":sparkles:",commit:"feat",description:"Introduce new features.",emoji:"\u2728",entity:"&#x2728;",name:"sparkles",semver:"minor"},fix:{branch:"fix",code:":bug:",commit:"fix",description:"Fix a bug.",emoji:"\u{1F41B}",entity:"&#x1f41b;",name:"bug",semver:"patch"},"fix-ci":{branch:null,code:":green_heart:",commit:"fix-ci",description:"Fix CI Build.",emoji:"\u{1F49A}",entity:"&#x1f49a;",name:"green-heart",semver:null},flags:{branch:null,code:":triangular_flag_on_post:",commit:"flags",description:"Add, update, or remove feature flags.",emoji:"\u{1F6A9}",entity:"&#x1F6A9;",name:"triangular-flag-on-post",semver:"patch"},healthcheck:{branch:null,code:":stethoscope:",commit:"healthcheck",description:"Add or update healthcheck.",emoji:"\u{1FA7A}",entity:"&#x1FA7A;",name:"stethoscope",semver:null},hotfix:{branch:"hotfix",code:":ambulance:",commit:"hotfix",description:"Critical hotfix.",emoji:"\u{1F691}\uFE0F",entity:"&#128657;",name:"ambulance",semver:"patch"},i18n:{branch:null,code:":globe_with_meridians:",commit:"i18n",description:"Internationalization and localization.",emoji:"\u{1F310}",entity:"&#127760;",name:"globe-with-meridians",semver:"patch"},ignore:{branch:null,code:":see_no_evil:",commit:"ignore",description:"Add or update a .gitignore file.",emoji:"\u{1F648}",entity:"&#8bdfe7;",name:"see-no-evil",semver:null},inf:{branch:null,code:":bricks:",commit:"inf",description:"Infrastructure related changes.",emoji:"\u{1F9F1}",entity:"&#x1f9f1;",name:"bricks",semver:null},init:{branch:null,code:":tada:",commit:"init",description:"Begin a project.",emoji:"\u{1F389}",entity:"&#127881;",name:"tada",semver:"patch"},iphone:{branch:null,code:":iphone:",commit:"iphone",description:"Work on responsive design.",emoji:"\u{1F4F1}",entity:"&#128241;",name:"iphone",semver:"patch"},license:{branch:null,code:":page_facing_up:",commit:"license",description:"Add or update license.",emoji:"\u{1F4C4}",entity:"&#1F4C4;",name:"page-facing-up",semver:null},lint:{branch:null,code:":rotating_light:",commit:"lint",description:"Fix compiler / linter warnings.",emoji:"\u{1F6A8}",entity:"&#x1f6a8;",name:"rotating-light",semver:null},"log-add":{branch:null,code:":loud_sound:",commit:"log-add",description:"Add or update logs.",emoji:"\u{1F50A}",entity:"&#128266;",name:"loud-sound",semver:null},"log-rm":{branch:null,code:":mute:",commit:"log-rm",description:"Remove logs.",emoji:"\u{1F507}",entity:"&#128263;",name:"mute",semver:null},logic:{branch:null,code:":necktie:",commit:"logic",description:"Add or update business logic",emoji:"\u{1F454}",entity:"&#128084;",name:"necktie",semver:"patch"},merge:{branch:null,code:":twisted_rightwards_arrows:",commit:"merge",description:"Merge branches.",emoji:"\u{1F500}",entity:"&#128256;",name:"twisted-rightwards-arrows",semver:null},mock:{branch:null,code:":clown_face:",commit:"mock",description:"Mock things.",emoji:"\u{1F921}",entity:"&#129313;",name:"clown-face",semver:null},mv:{branch:null,code:":truck:",commit:"mv",description:"Move or rename resources (e.g.: files, paths, routes).",emoji:"\u{1F69A}",entity:"&#1F69A;",name:"truck",semver:null},patch:{branch:null,code:":adhesive_bandage:",commit:"patch",description:"Simple fix for a non-critical issue.",emoji:"\u{1FA79}",entity:"&#x1FA79;",name:"adhesive-bandage",semver:"patch"},perf:{branch:null,code:":zap:",commit:"perf",description:"Improve performance.",emoji:"\u26A1\uFE0F",entity:"&#x26a1;",name:"zap",semver:"patch"},poo:{branch:null,code:":poop:",commit:"poo",description:"Write bad code that needs to be improved.",emoji:"\u{1F4A9}",entity:"&#58613;",name:"poop",semver:null},prune:{branch:null,code:":fire:",commit:"prune",description:"Remove code or files.",emoji:"\u{1F525}",entity:"&#x1f525;",name:"fire",semver:null},pushpin:{branch:null,code:":pushpin:",commit:"pushpin",description:"Pin dependencies to specific versions.",emoji:"\u{1F4CC}",entity:"&#x1F4CC;",name:"pushpin",semver:"patch"},refactor:{branch:"refactor",code:":recycle:",commit:"refactor",description:"Refactor code.",emoji:"\u267B\uFE0F",entity:"&#x2672;",name:"recycle",semver:null},release:{branch:"release",code:":bookmark:",commit:"release",description:"Release / Version tags.",emoji:"\u{1F516}",entity:"&#x1f516;",name:"bookmark",semver:null},revert:{branch:null,code:":rewind:",commit:"revert",description:"Revert changes.",emoji:"\u23EA\uFE0F",entity:"&#9194;",name:"rewind",semver:"patch"},rip:{branch:null,code:":coffin:",commit:"rip",description:"Remove dead code.",emoji:"\u26B0\uFE0F",entity:"&#x26B0;",name:"coffin",semver:null},roles:{branch:null,code:":passport_control:",commit:"roles",description:"Work on code related to authorization, roles and permissions.",emoji:"\u{1F6C2}",entity:"&#x1F6C2;",name:"passport-control",semver:"patch"},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"},secrets:{branch:null,code:":closed_lock_with_key:",commit:"secrets",description:"Add or update secrets.",emoji:"\u{1F510}",entity:"&#x1f510;",name:"closed-lock-with-key",semver:null},security:{branch:null,code:":lock:",commit:"security",description:"Fix security issues.",emoji:"\u{1F512}\uFE0F",entity:"&#x1f512;",name:"lock",semver:"patch"},seed:{branch:null,code:":seedling:",commit:"seed",description:"Add or update seed files.",emoji:"\u{1F331}",entity:"&#127793;",name:"seedling",semver:null},seo:{branch:null,code:":mag:",commit:"seo",description:"Improve SEO.",emoji:"\u{1F50D}\uFE0F",entity:"&#128269;",name:"mag",semver:"patch"},snapshot:{branch:null,code:":camera_flash:",commit:"snapshot",description:"Add or update snapshots.",emoji:"\u{1F4F8}",entity:"&#128248;",name:"camera-flash",semver:null},sponsor:{branch:null,code:":money_with_wings:",commit:"sponsor",description:"Add sponsorships or money related infrastructure.",emoji:"\u{1F4B8}",entity:"&#x1f4b8;",name:"money-with-wings",semver:null},style:{branch:null,code:":art:",commit:"style",description:"Improve structure / format of the code.",emoji:"\u{1F3A8}",entity:"&#x1f3a8;",name:"art",semver:null},test:{branch:"test",code:":white_check_mark:",commit:"test",description:"Add, update, or pass tests.",emoji:"\u2705",entity:"&#x2705;",name:"white-check-mark",semver:null},"test-fail":{branch:null,code:":test_tube:",commit:"test-fail",description:"Add a failing test.",emoji:"\u{1F9EA}",entity:"&#x1F9EA;",name:"test-tube",semver:null},texts:{branch:null,code:":speech_balloon:",commit:"texts",description:"Add or update text and literals.",emoji:"\u{1F4AC}",entity:"&#128172;",name:"speech-balloon",semver:"patch"},types:{branch:null,code:":label:",commit:"types",description:"Add or update types.",emoji:"\u{1F3F7}\uFE0F",entity:"&#127991;",name:"label",semver:"patch"},typo:{branch:null,code:":pencil2:",commit:"typo",description:"Fix typos.",emoji:"\u270F\uFE0F",entity:"&#59161;",name:"pencil2",semver:"patch"},ui:{branch:null,code:":lipstick:",commit:"ui",description:"Add or update the UI and style files.",emoji:"\u{1F484}",entity:"&#ff99cc;",name:"lipstick",semver:"patch"},upgrade:{branch:null,code:":arrow_up:",commit:"upgrade",description:"Upgrade dependencies.",emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",name:"arrow-up",semver:"patch"},ux:{branch:null,code:":children_crossing:",commit:"ux",description:"Improve user experience / usability.",emoji:"\u{1F6B8}",entity:"&#128696;",name:"children-crossing",semver:"patch"},validation:{branch:null,code:":safety-vest:",commit:"validation",description:"Add or update code related to validation.",emoji:"\u{1F9BA}",entity:"&#x1F9BA;",name:"validation",semver:"patch"},wip:{branch:null,code:":construction:",commit:"wip",description:"Work in progress.",emoji:"\u{1F6A7}",entity:"&#x1f6a7;",name:"construction",semver:null}};export{e as commitTypes,t as releaseRuleTypes};
@@ -1,6 +0,0 @@
1
- import { IReleaseRule } from './releaseRule.types.js';
2
- import './commit.types.js';
3
-
4
- declare const releaseRule: IReleaseRule;
5
-
6
- export { releaseRule };
@@ -1 +0,0 @@
1
- var e={access:{branch:null,code:":wheelchair:",commit:"access",description:"Improve accessibility.",emoji:"\u267F\uFE0F",entity:"&#9855;",name:"wheelchair",semver:"patch"},analytics:{branch:null,code:":chart_with_upwards_trend:",commit:"analytics",description:"Add or update analytics or track code.",emoji:"\u{1F4C8}",entity:"&#x1F4C8;",name:"chart-with-upwards-trend",semver:"patch"},animation:{branch:null,code:":dizzy:",commit:"animation",description:"Add or update animations and transitions.",emoji:"\u{1F4AB}",entity:"&#x1f4ab;",name:"animation",semver:"patch"},arch:{branch:null,code:":building_construction:",commit:"arch",description:"Make architectural changes.",emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",name:"building-construction",semver:null},assets:{branch:null,code:":bento:",commit:"assets",description:"Add or update assets.",emoji:"\u{1F371}",entity:"&#1F371",name:"bento",semver:"patch"},beer:{branch:null,code:":beers:",commit:"beer",description:"Write code drunkenly.",emoji:"\u{1F37B}",entity:"&#x1f37b;",name:"beers",semver:null},breaking:{branch:null,code:":boom:",commit:"breaking",description:"Introduce breaking changes.",emoji:"\u{1F4A5}",entity:"&#x1f4a5;",name:"boom",semver:"major"},build:{branch:null,code:":hammer:",commit:"build",description:"Add or update development scripts.",emoji:"\u{1F528}",entity:"&#128296;",name:"hammer",semver:null},catch:{branch:null,code:":goal_net:",commit:"catch",description:"Catch errors.",emoji:"\u{1F945}",entity:"&#x1F945;",name:"goal-net",semver:"patch"},chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"&#x1f4bd;",name:"computer-disk",semver:null},ci:{branch:"ci",code:":construction_worker:",commit:"ci",description:"Add or update CI build system.",emoji:"\u{1F477}",entity:"&#x1f477;",name:"construction-worker",semver:null},clean:{branch:null,code:":wastebasket:",commit:"clean",description:"Deprecate code that needs to be cleaned up.",emoji:"\u{1F5D1}\uFE0F",entity:"&#x1F5D1;",name:"wastebasket",semver:"patch"},compat:{branch:null,code:":alien:",commit:"compat",description:"Update code due to external API changes.",emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",name:"alien",semver:"patch"},concurrency:{branch:null,code:":thread:",commit:"concurrency",description:"Add or update code related to multithreading or concurrency.",emoji:"\u{1F9F5}",entity:"&#x1F9F5;",name:"thread",semver:"patch"},config:{branch:null,code:":wrench:",commit:"config",description:"Add or update configuration files.",emoji:"\u{1F527}",entity:"&#x1f527;",name:"wrench",semver:"patch"},"contrib-add":{branch:null,code:":busts_in_silhouette:",commit:"contrib-add",description:"Add or update contributor(s).",emoji:"\u{1F465}",entity:"&#128101;",name:"busts-in-silhouette",semver:null},data:{branch:null,code:":monocle_face:",commit:"data",description:"Data exploration/inspection.",emoji:"\u{1F9D0}",entity:"&#x1F9D0;",name:"monocle-face",semver:null},db:{branch:null,code:":card_file_box:",commit:"db",description:"Perform database related changes.",emoji:"\u{1F5C3}\uFE0F",entity:"&#128451;",name:"card-file-box",semver:"patch"},"dep-add":{branch:null,code:":heavy_plus_sign:",commit:"dep-add",description:"Add a dependency.",emoji:"\u2795",entity:"&#10133;",name:"heavy-plus-sign",semver:"patch"},"dep-rm":{branch:null,code:":heavy_minus_sign:",commit:"dep-rm",description:"Remove a dependency.",emoji:"\u2796",entity:"&#10134;",name:"heavy-minus-sign",semver:"patch"},"dep-up":{branch:null,code:":package:",commit:"dep-up",description:"Add or update compiled files or packages.",emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",name:"package",semver:"patch"},deploy:{branch:null,code:":rocket:",commit:"deploy",description:"Deploy stuff.",emoji:"\u{1F680}",entity:"&#x1f680;",name:"rocket",semver:null},docs:{branch:null,code:":memo:",commit:"docs",description:"Add or update documentation.",emoji:"\u{1F4DD}",entity:"&#x1f4dd;",name:"memo",semver:null},"docs-code":{branch:null,code:":bulb:",commit:"docs-code",description:"Add or update comments in source code.",emoji:"\u{1F4A1}",entity:"&#128161;",name:"bulb",semver:null},downgrade:{branch:null,code:":arrow_down:",commit:"downgrade",description:"Downgrade dependencies.",emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",name:"arrow-down",semver:"patch"},dx:{branch:null,code:":technologist:",commit:"dx",description:"Improve developer experience",emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"&#129489;&#8205;&#128187;",name:"dx",semver:null},egg:{branch:null,code:":egg:",commit:"egg",description:"Add or update an easter egg.",emoji:"\u{1F95A}",entity:"&#129370;",name:"egg",semver:"patch"},experiment:{branch:null,code:":alembic:",commit:"experiment",description:"Perform experiments.",emoji:"\u2697\uFE0F",entity:"&#128248;",name:"alembic",semver:"patch"},feat:{branch:"feature",code:":sparkles:",commit:"feat",description:"Introduce new features.",emoji:"\u2728",entity:"&#x2728;",name:"sparkles",semver:"minor"},fix:{branch:"fix",code:":bug:",commit:"fix",description:"Fix a bug.",emoji:"\u{1F41B}",entity:"&#x1f41b;",name:"bug",semver:"patch"},"fix-ci":{branch:null,code:":green_heart:",commit:"fix-ci",description:"Fix CI Build.",emoji:"\u{1F49A}",entity:"&#x1f49a;",name:"green-heart",semver:null},flags:{branch:null,code:":triangular_flag_on_post:",commit:"flags",description:"Add, update, or remove feature flags.",emoji:"\u{1F6A9}",entity:"&#x1F6A9;",name:"triangular-flag-on-post",semver:"patch"},healthcheck:{branch:null,code:":stethoscope:",commit:"healthcheck",description:"Add or update healthcheck.",emoji:"\u{1FA7A}",entity:"&#x1FA7A;",name:"stethoscope",semver:null},hotfix:{branch:"hotfix",code:":ambulance:",commit:"hotfix",description:"Critical hotfix.",emoji:"\u{1F691}\uFE0F",entity:"&#128657;",name:"ambulance",semver:"patch"},i18n:{branch:null,code:":globe_with_meridians:",commit:"i18n",description:"Internationalization and localization.",emoji:"\u{1F310}",entity:"&#127760;",name:"globe-with-meridians",semver:"patch"},ignore:{branch:null,code:":see_no_evil:",commit:"ignore",description:"Add or update a .gitignore file.",emoji:"\u{1F648}",entity:"&#8bdfe7;",name:"see-no-evil",semver:null},inf:{branch:null,code:":bricks:",commit:"inf",description:"Infrastructure related changes.",emoji:"\u{1F9F1}",entity:"&#x1f9f1;",name:"bricks",semver:null},init:{branch:null,code:":tada:",commit:"init",description:"Begin a project.",emoji:"\u{1F389}",entity:"&#127881;",name:"tada",semver:"patch"},iphone:{branch:null,code:":iphone:",commit:"iphone",description:"Work on responsive design.",emoji:"\u{1F4F1}",entity:"&#128241;",name:"iphone",semver:"patch"},license:{branch:null,code:":page_facing_up:",commit:"license",description:"Add or update license.",emoji:"\u{1F4C4}",entity:"&#1F4C4;",name:"page-facing-up",semver:null},lint:{branch:null,code:":rotating_light:",commit:"lint",description:"Fix compiler / linter warnings.",emoji:"\u{1F6A8}",entity:"&#x1f6a8;",name:"rotating-light",semver:null},"log-add":{branch:null,code:":loud_sound:",commit:"log-add",description:"Add or update logs.",emoji:"\u{1F50A}",entity:"&#128266;",name:"loud-sound",semver:null},"log-rm":{branch:null,code:":mute:",commit:"log-rm",description:"Remove logs.",emoji:"\u{1F507}",entity:"&#128263;",name:"mute",semver:null},logic:{branch:null,code:":necktie:",commit:"logic",description:"Add or update business logic",emoji:"\u{1F454}",entity:"&#128084;",name:"necktie",semver:"patch"},merge:{branch:null,code:":twisted_rightwards_arrows:",commit:"merge",description:"Merge branches.",emoji:"\u{1F500}",entity:"&#128256;",name:"twisted-rightwards-arrows",semver:null},mock:{branch:null,code:":clown_face:",commit:"mock",description:"Mock things.",emoji:"\u{1F921}",entity:"&#129313;",name:"clown-face",semver:null},mv:{branch:null,code:":truck:",commit:"mv",description:"Move or rename resources (e.g.: files, paths, routes).",emoji:"\u{1F69A}",entity:"&#1F69A;",name:"truck",semver:null},patch:{branch:null,code:":adhesive_bandage:",commit:"patch",description:"Simple fix for a non-critical issue.",emoji:"\u{1FA79}",entity:"&#x1FA79;",name:"adhesive-bandage",semver:"patch"},perf:{branch:null,code:":zap:",commit:"perf",description:"Improve performance.",emoji:"\u26A1\uFE0F",entity:"&#x26a1;",name:"zap",semver:"patch"},poo:{branch:null,code:":poop:",commit:"poo",description:"Write bad code that needs to be improved.",emoji:"\u{1F4A9}",entity:"&#58613;",name:"poop",semver:null},prune:{branch:null,code:":fire:",commit:"prune",description:"Remove code or files.",emoji:"\u{1F525}",entity:"&#x1f525;",name:"fire",semver:null},pushpin:{branch:null,code:":pushpin:",commit:"pushpin",description:"Pin dependencies to specific versions.",emoji:"\u{1F4CC}",entity:"&#x1F4CC;",name:"pushpin",semver:"patch"},refactor:{branch:"refactor",code:":recycle:",commit:"refactor",description:"Refactor code.",emoji:"\u267B\uFE0F",entity:"&#x2672;",name:"recycle",semver:null},release:{branch:"release",code:":bookmark:",commit:"release",description:"Release / Version tags.",emoji:"\u{1F516}",entity:"&#x1f516;",name:"bookmark",semver:null},revert:{branch:null,code:":rewind:",commit:"revert",description:"Revert changes.",emoji:"\u23EA\uFE0F",entity:"&#9194;",name:"rewind",semver:"patch"},rip:{branch:null,code:":coffin:",commit:"rip",description:"Remove dead code.",emoji:"\u26B0\uFE0F",entity:"&#x26B0;",name:"coffin",semver:null},roles:{branch:null,code:":passport_control:",commit:"roles",description:"Work on code related to authorization, roles and permissions.",emoji:"\u{1F6C2}",entity:"&#x1F6C2;",name:"passport-control",semver:"patch"},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"},secrets:{branch:null,code:":closed_lock_with_key:",commit:"secrets",description:"Add or update secrets.",emoji:"\u{1F510}",entity:"&#x1f510;",name:"closed-lock-with-key",semver:null},security:{branch:null,code:":lock:",commit:"security",description:"Fix security issues.",emoji:"\u{1F512}\uFE0F",entity:"&#x1f512;",name:"lock",semver:"patch"},seed:{branch:null,code:":seedling:",commit:"seed",description:"Add or update seed files.",emoji:"\u{1F331}",entity:"&#127793;",name:"seedling",semver:null},seo:{branch:null,code:":mag:",commit:"seo",description:"Improve SEO.",emoji:"\u{1F50D}\uFE0F",entity:"&#128269;",name:"mag",semver:"patch"},snapshot:{branch:null,code:":camera_flash:",commit:"snapshot",description:"Add or update snapshots.",emoji:"\u{1F4F8}",entity:"&#128248;",name:"camera-flash",semver:null},sponsor:{branch:null,code:":money_with_wings:",commit:"sponsor",description:"Add sponsorships or money related infrastructure.",emoji:"\u{1F4B8}",entity:"&#x1f4b8;",name:"money-with-wings",semver:null},style:{branch:null,code:":art:",commit:"style",description:"Improve structure / format of the code.",emoji:"\u{1F3A8}",entity:"&#x1f3a8;",name:"art",semver:null},test:{branch:"test",code:":white_check_mark:",commit:"test",description:"Add, update, or pass tests.",emoji:"\u2705",entity:"&#x2705;",name:"white-check-mark",semver:null},"test-fail":{branch:null,code:":test_tube:",commit:"test-fail",description:"Add a failing test.",emoji:"\u{1F9EA}",entity:"&#x1F9EA;",name:"test-tube",semver:null},texts:{branch:null,code:":speech_balloon:",commit:"texts",description:"Add or update text and literals.",emoji:"\u{1F4AC}",entity:"&#128172;",name:"speech-balloon",semver:"patch"},types:{branch:null,code:":label:",commit:"types",description:"Add or update types.",emoji:"\u{1F3F7}\uFE0F",entity:"&#127991;",name:"label",semver:"patch"},typo:{branch:null,code:":pencil2:",commit:"typo",description:"Fix typos.",emoji:"\u270F\uFE0F",entity:"&#59161;",name:"pencil2",semver:"patch"},ui:{branch:null,code:":lipstick:",commit:"ui",description:"Add or update the UI and style files.",emoji:"\u{1F484}",entity:"&#ff99cc;",name:"lipstick",semver:"patch"},upgrade:{branch:null,code:":arrow_up:",commit:"upgrade",description:"Upgrade dependencies.",emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",name:"arrow-up",semver:"patch"},ux:{branch:null,code:":children_crossing:",commit:"ux",description:"Improve user experience / usability.",emoji:"\u{1F6B8}",entity:"&#128696;",name:"children-crossing",semver:"patch"},validation:{branch:null,code:":safety-vest:",commit:"validation",description:"Add or update code related to validation.",emoji:"\u{1F9BA}",entity:"&#x1F9BA;",name:"validation",semver:"patch"},wip:{branch:null,code:":construction:",commit:"wip",description:"Work in progress.",emoji:"\u{1F6A7}",entity:"&#x1f6a7;",name:"construction",semver:null}};export{e as releaseRule};
@@ -1,17 +0,0 @@
1
- import { ICommit } from './commit.types.js';
2
-
3
- type IReleaseRule = Partial<Record<ICommit, IReleaseRuleProps>>;
4
- type IReleaseRuleProps = {
5
- branch: null | string;
6
- code: string;
7
- commit: ICommit;
8
- description: string;
9
- emoji: string;
10
- entity: string;
11
- name: string;
12
- semver: 'breaking' | 'feature' | 'fix' | 'major' | 'minor' | 'patch' | null;
13
- type?: ICommit;
14
- value?: ICommit;
15
- };
16
-
17
- export type { IReleaseRule, IReleaseRuleProps };
File without changes
@@ -1,6 +0,0 @@
1
- import { IReleaseRule } from '../types/releaseRule.types.js';
2
- import '../types/commit.types.js';
3
-
4
- declare const getGitmoji: () => IReleaseRule;
5
-
6
- export { getGitmoji as default };
@@ -1 +0,0 @@
1
- var c=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var a=c(i=>{"use strict";var p=[{emoji:"\u{1F3A8}",entity:"&#x1f3a8;",code:":art:",description:"Improve structure / format of the code.",name:"art",semver:null},{emoji:"\u26A1\uFE0F",entity:"&#x26a1;",code:":zap:",description:"Improve performance.",name:"zap",semver:"patch"},{emoji:"\u{1F525}",entity:"&#x1f525;",code:":fire:",description:"Remove code or files.",name:"fire",semver:null},{emoji:"\u{1F41B}",entity:"&#x1f41b;",code:":bug:",description:"Fix a bug.",name:"bug",semver:"patch"},{emoji:"\u{1F691}\uFE0F",entity:"&#128657;",code:":ambulance:",description:"Critical hotfix.",name:"ambulance",semver:"patch"},{emoji:"\u2728",entity:"&#x2728;",code:":sparkles:",description:"Introduce new features.",name:"sparkles",semver:"minor"},{emoji:"\u{1F4DD}",entity:"&#x1f4dd;",code:":memo:",description:"Add or update documentation.",name:"memo",semver:null},{emoji:"\u{1F680}",entity:"&#x1f680;",code:":rocket:",description:"Deploy stuff.",name:"rocket",semver:null},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick",semver:"patch"},{emoji:"\u{1F389}",entity:"&#127881;",code:":tada:",description:"Begin a project.",name:"tada",semver:null},{emoji:"\u2705",entity:"&#x2705;",code:":white_check_mark:",description:"Add, update, or pass tests.",name:"white-check-mark",semver:null},{emoji:"\u{1F512}\uFE0F",entity:"&#x1f512;",code:":lock:",description:"Fix security or privacy issues.",name:"lock",semver:"patch"},{emoji:"\u{1F510}",entity:"&#x1f510;",code:":closed_lock_with_key:",description:"Add or update secrets.",name:"closed-lock-with-key",semver:null},{emoji:"\u{1F516}",entity:"&#x1f516;",code:":bookmark:",description:"Release / Version tags.",name:"bookmark",semver:null},{emoji:"\u{1F6A8}",entity:"&#x1f6a8;",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light",semver:null},{emoji:"\u{1F6A7}",entity:"&#x1f6a7;",code:":construction:",description:"Work in progress.",name:"construction",semver:null},{emoji:"\u{1F49A}",entity:"&#x1f49a;",code:":green_heart:",description:"Fix CI Build.",name:"green-heart",semver:null},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down",semver:"patch"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up",semver:"patch"},{emoji:"\u{1F4CC}",entity:"&#x1F4CC;",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin",semver:"patch"},{emoji:"\u{1F477}",entity:"&#x1f477;",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker",semver:null},{emoji:"\u{1F4C8}",entity:"&#x1F4C8;",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend",semver:"patch"},{emoji:"\u267B\uFE0F",entity:"&#x267b;",code:":recycle:",description:"Refactor code.",name:"recycle",semver:null},{emoji:"\u2795",entity:"&#10133;",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign",semver:"patch"},{emoji:"\u2796",entity:"&#10134;",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign",semver:"patch"},{emoji:"\u{1F527}",entity:"&#x1f527;",code:":wrench:",description:"Add or update configuration files.",name:"wrench",semver:"patch"},{emoji:"\u{1F528}",entity:"&#128296;",code:":hammer:",description:"Add or update development scripts.",name:"hammer",semver:null},{emoji:"\u{1F310}",entity:"&#127760;",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians",semver:"patch"},{emoji:"\u270F\uFE0F",entity:"&#59161;",code:":pencil2:",description:"Fix typos.",name:"pencil2",semver:"patch"},{emoji:"\u{1F4A9}",entity:"&#58613;",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop",semver:null},{emoji:"\u23EA\uFE0F",entity:"&#9194;",code:":rewind:",description:"Revert changes.",name:"rewind",semver:"patch"},{emoji:"\u{1F500}",entity:"&#128256;",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows",semver:null},{emoji:"\u{1F4E6}\uFE0F",entity:"&#1F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package",semver:"patch"},{emoji:"\u{1F47D}\uFE0F",entity:"&#1F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien",semver:"patch"},{emoji:"\u{1F69A}",entity:"&#1F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck",semver:null},{emoji:"\u{1F4C4}",entity:"&#1F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up",semver:null},{emoji:"\u{1F4A5}",entity:"&#x1f4a5;",code:":boom:",description:"Introduce breaking changes.",name:"boom",semver:"major"},{emoji:"\u{1F371}",entity:"&#1F371",code:":bento:",description:"Add or update assets.",name:"bento",semver:"patch"},{emoji:"\u267F\uFE0F",entity:"&#9855;",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair",semver:"patch"},{emoji:"\u{1F4A1}",entity:"&#128161;",code:":bulb:",description:"Add or update comments in source code.",name:"bulb",semver:null},{emoji:"\u{1F37B}",entity:"&#x1f37b;",code:":beers:",description:"Write code drunkenly.",name:"beers",semver:null},{emoji:"\u{1F4AC}",entity:"&#128172;",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon",semver:"patch"},{emoji:"\u{1F5C3}\uFE0F",entity:"&#128451;",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box",semver:"patch"},{emoji:"\u{1F50A}",entity:"&#128266;",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound",semver:null},{emoji:"\u{1F507}",entity:"&#128263;",code:":mute:",description:"Remove logs.",name:"mute",semver:null},{emoji:"\u{1F465}",entity:"&#128101;",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette",semver:null},{emoji:"\u{1F6B8}",entity:"&#128696;",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing",semver:"patch"},{emoji:"\u{1F3D7}\uFE0F",entity:"&#1f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction",semver:null},{emoji:"\u{1F4F1}",entity:"&#128241;",code:":iphone:",description:"Work on responsive design.",name:"iphone",semver:"patch"},{emoji:"\u{1F921}",entity:"&#129313;",code:":clown_face:",description:"Mock things.",name:"clown-face",semver:null},{emoji:"\u{1F95A}",entity:"&#129370;",code:":egg:",description:"Add or update an easter egg.",name:"egg",semver:"patch"},{emoji:"\u{1F648}",entity:"&#8bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil",semver:null},{emoji:"\u{1F4F8}",entity:"&#128248;",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash",semver:null},{emoji:"\u2697\uFE0F",entity:"&#x2697;",code:":alembic:",description:"Perform experiments.",name:"alembic",semver:"patch"},{emoji:"\u{1F50D}\uFE0F",entity:"&#128269;",code:":mag:",description:"Improve SEO.",name:"mag",semver:"patch"},{emoji:"\u{1F3F7}\uFE0F",entity:"&#127991;",code:":label:",description:"Add or update types.",name:"label",semver:"patch"},{emoji:"\u{1F331}",entity:"&#127793;",code:":seedling:",description:"Add or update seed files.",name:"seedling",semver:null},{emoji:"\u{1F6A9}",entity:"&#x1F6A9;",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post",semver:"patch"},{emoji:"\u{1F945}",entity:"&#x1F945;",code:":goal_net:",description:"Catch errors.",name:"goal-net",semver:"patch"},{emoji:"\u{1F4AB}",entity:"&#x1f4ab;",code:":dizzy:",description:"Add or update animations and transitions.",name:"dizzy",semver:"patch"},{emoji:"\u{1F5D1}\uFE0F",entity:"&#x1F5D1;",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket",semver:"patch"},{emoji:"\u{1F6C2}",entity:"&#x1F6C2;",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control",semver:"patch"},{emoji:"\u{1FA79}",entity:"&#x1FA79;",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage",semver:"patch"},{emoji:"\u{1F9D0}",entity:"&#x1F9D0;",code:":monocle_face:",description:"Data exploration/inspection.",name:"monocle-face",semver:null},{emoji:"\u26B0\uFE0F",entity:"&#x26B0;",code:":coffin:",description:"Remove dead code.",name:"coffin",semver:null},{emoji:"\u{1F9EA}",entity:"&#x1F9EA;",code:":test_tube:",description:"Add a failing test.",name:"test-tube",semver:null},{emoji:"\u{1F454}",entity:"&#128084;",code:":necktie:",description:"Add or update business logic.",name:"necktie",semver:"patch"},{emoji:"\u{1FA7A}",entity:"&#x1FA7A;",code:":stethoscope:",description:"Add or update healthcheck.",name:"stethoscope",semver:null},{emoji:"\u{1F9F1}",entity:"&#x1f9f1;",code:":bricks:",description:"Infrastructure related changes.",name:"bricks",semver:null},{emoji:"\u{1F9D1}\u200D\u{1F4BB}",entity:"&#129489;&#8205;&#128187;",code:":technologist:",description:"Improve developer experience.",name:"technologist",semver:null},{emoji:"\u{1F4B8}",entity:"&#x1F4B8;",code:":money_with_wings:",description:"Add sponsorships or money related infrastructure.",name:"money-with-wings",semver:null},{emoji:"\u{1F9F5}",entity:"&#x1F9F5;",code:":thread:",description:"Add or update code related to multithreading or concurrency.",name:"thread",semver:null},{emoji:"\u{1F9BA}",entity:"&#x1F9BA;",code:":safety_vest:",description:"Add or update code related to validation.",name:"safety-vest",semver:null},{emoji:"\u2708\uFE0F",entity:"&#x2708;",code:":airplane:",description:"Improve offline support.",name:"airplane",semver:null}],l={gitmojis:p},u="object",f="https://json-schema.org/draft/2020-12/schema",h=["gitmojis"],y={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]}}}}},v={type:u,$schema:f,required:h,properties:y},g=l.gitmojis;i.gitmojis=g;i.schema=v});var m=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release"},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip"},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo"},{from:"poop",to:"poo"},{from:"rewind",to:"revert"},{from:"twisted-rightwards-arrows",to:"merge"},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv"},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer"},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add"},{from:"mute",to:"log-rm"},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg"},{from:"see-no-evil",to:"ignore"},{from:"camera-flash",to:"snapshot"},{from:"alembic",to:"experiment"},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"dizzy",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip"},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"},{from:"closed-lock-with-key",to:"secrets"},{from:"money-with-wings",to:"sponsor"},{from:"thread",to:"concurrency"},{from:"safety-vest",to:"validation"}],s=m;var d={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"&#x1f4bd;",name:"computer-disk",semver:null},rollforward:{branch:null,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"&#23E9;",name:"rollforward",semver:null},"run-build":{branch:null,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"&#1F680;",name:"run-build",semver:"patch"}},r=d;var b=a(),{gitmojis:j}=b,w=()=>(j.map(e=>{let o=s.find(t=>t?.from===e.name);if(o){let t=o.semver===void 0?e?.semver||null:o.semver||e?.semver||null;r[o.to]={branch:o?.branch?o.branch:null,code:e?.code,commit:o.to,description:e?.description,emoji:e?.emoji,entity:e?.entity,name:e?.name,semver:t?t.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(r).sort().reduce((e,o)=>(e[o]=r[o],e),{})),R=w;export{R as default};
@@ -1,12 +0,0 @@
1
- import { IReleaseRule } from '../types/releaseRule.types.js';
2
- import '../types/commit.types.js';
3
-
4
- type CustomReleaseRulesProps = {
5
- message?: null | string;
6
- release?: null | string;
7
- tag?: null | string;
8
- type?: null | string;
9
- };
10
- declare const getReleaseRules: (types: IReleaseRule) => CustomReleaseRulesProps[];
11
-
12
- export { getReleaseRules as default };
@@ -1 +0,0 @@
1
- var s=[],t=l=>(Object.keys(l).map(r=>{let e=l[r];e&&e.semver&&(s.push({release:e.semver,type:e?.code.replace(/(:[^:]*):/g,"$1")}),s.push({release:e.semver,type:e?.code}),s.push({release:e.semver,type:e.commit}),s.push({release:e.semver,type:e.emoji}))}),s),u=t;export{u as default};
@@ -1,6 +0,0 @@
1
- import { IReleaseRule, IReleaseRuleProps } from '../types/releaseRule.types.js';
2
- import '../types/commit.types.js';
3
-
4
- declare const getTypeSpecs: (types: IReleaseRule) => Omit<IReleaseRuleProps, "branch" | "commit" | "entity" | "name">[];
5
-
6
- export { getTypeSpecs as default };
@@ -1 +0,0 @@
1
- import i from"title";var m=[],r=e=>(Object.keys(e).map(o=>{m.push({code:e[o].code,description:i(e[o].description.replace(".","")),emoji:e[o].emoji,semver:e[o].semver,type:e[o].commit,value:e[o].commit})}),m),l=r;export{l as default};