ccommit 1.0.0 → 1.0.1-reduce.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 (58) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +36 -4
  3. package/index.js +38 -42
  4. package/package.json +2 -4
  5. package/chunk-2DSXPOM7.js +0 -3
  6. package/chunk-2T4Q2JKX.js +0 -11
  7. package/chunk-4U66XFH5.js +0 -6
  8. package/chunk-5G4NZZCD.js +0 -1
  9. package/chunk-66FW7ROH.js +0 -5
  10. package/chunk-AEEWYCBG.js +0 -14
  11. package/chunk-BFFJJU24.js +0 -10
  12. package/chunk-BYWR53VH.js +0 -5
  13. package/chunk-CPVJCJWJ.js +0 -6
  14. package/chunk-D774JQK5.js +0 -8
  15. package/chunk-DEIKIR25.js +0 -15
  16. package/chunk-DKTSYYG7.js +0 -5
  17. package/chunk-EZBSOYFU.js +0 -5
  18. package/chunk-HYPQ3SZH.js +0 -12
  19. package/chunk-I37OINLR.js +0 -5
  20. package/chunk-K2XWQRSU.js +0 -5
  21. package/chunk-NFPWBI3B.js +0 -5
  22. package/chunk-PTTHNJU4.js +0 -5
  23. package/chunk-R7UWR6EN.js +0 -3
  24. package/chunk-URQ27UIO.js +0 -5
  25. package/chunk-V2UIRJOD.js +0 -5
  26. package/chunk-V5NV6QXN.js +0 -6
  27. package/chunk-W6TUQVXI.js +0 -6
  28. package/chunk-WKR7FN4J.js +0 -6
  29. package/chunk-XUBGBYPW.js +0 -5
  30. package/chunk-YQAGIQKO.js +0 -6
  31. package/commands/commit/commit.js +0 -22
  32. package/commands/commit/index.js +0 -23
  33. package/commands/commit/prompts.js +0 -19
  34. package/commands/commit/validate.js +0 -18
  35. package/commands/commit/withClient.js +0 -18
  36. package/commands/commit/withHook.js +0 -18
  37. package/commands/index.js +0 -26
  38. package/commands/list/index.js +0 -19
  39. package/commands/list/list.js +0 -18
  40. package/data/types.js +0 -2
  41. package/lib/index.js +0 -1
  42. package/utils/cancelIf.js +0 -1
  43. package/utils/filter.js +0 -1
  44. package/utils/findBy.js +0 -3
  45. package/utils/findCommand.js +0 -17
  46. package/utils/format.js +0 -2
  47. package/utils/generateLog.js +0 -2
  48. package/utils/getDefaultCommitContent.js +0 -17
  49. package/utils/getEmojis.js +0 -1
  50. package/utils/getGitRootDir.js +0 -1
  51. package/utils/getIssueTracker.js +0 -1
  52. package/utils/getStagedFiles.js +0 -1
  53. package/utils/index.js +0 -17
  54. package/utils/printDryRun.js +0 -1
  55. package/utils/promptInputLimited.js +0 -1
  56. package/utils/promptInputPrepopulate.js +0 -1
  57. package/utils/promptInputPrepopulateLimited.js +0 -1
  58. package/utils/registerHookInterruptionHandler.js +0 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Nice Group of People, LLC
3
+ Copyright (c) 2021-2023 Nice Group of People, LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -101,22 +101,54 @@ ccommit --hook || true
101
101
  ## Options
102
102
 
103
103
  ```bash
104
- pnpm ccommit -h
104
+ ▲ packages [main] pnpm ccommit -h
105
+
106
+ Conventional Commit Generator that interprets commit types from gitmoji and conventional
107
+
108
+ Usage
109
+ $ ccommit -c
110
+
111
+ Flags
112
+ --breaking, -b 💥 Breaking Change
113
+ --commit, -c 💽 Mode: Client
114
+ --dryrun, -n 🎽 Mode: Dry Run
115
+ --emoji, -e 😜 Emoji (default)
116
+ --hook, -u 🪝 Mode: Hook
117
+ --list, -l 📖 List all types
118
+ --version, -v 📦 Print installed version
119
+
120
+ Options
121
+ --format 😜 Commit Format: conventional|gitmoji (default)
122
+ --message 📝 Commit Message
123
+ --scope 🔬 Commit Scope
124
+ --title 📓 Commit Title
125
+ --type ✨ Commit Type
126
+
127
+ Notes
128
+ - Pass any non-format options the following will be required: --title, --type
129
+ - If you do not pass any options the Conventional Commit Generator prompt will run
130
+ - Branch Name detection is enabled to pre-populate Issue Tracker information in prompt
105
131
  ```
106
132
 
107
- You can pass `option` arguments via the command line directly. If you choose this method, you are opting-out of the command line generator and will need to supply at least `type|title`.
108
-
109
133
  ## Formats
110
134
 
111
135
  ### Gitmoji
112
136
 
113
137
  - 😜 [gitmoji](https://gitmoji.dev)
138
+ - 🧪 Examples
139
+ - ✨ (scope) ABC-123 subject
140
+ - 💚 (github) subject
141
+ - 🐛 subject
114
142
 
115
143
  ### Conventional
116
144
 
117
145
  - 👔 [conventional](https://www.conventionalcommits.org)
118
146
  - a mapping of `gitmoji` to what could be construed as it’s more in-depth `conventional` counterparts
119
147
  - can pass `--noemoji|-xe` and turn emojis off within `conventional`
148
+ - 🧪 Examples
149
+ - feat(scope): ✨ ABC-123 subject
150
+ - fix-ci(github): 💚 subject
151
+ - fix: 🐛 subject
120
152
 
121
153
  <!--
122
154
  ### Custom
@@ -128,7 +160,7 @@ You can pass `option` arguments via the command line directly. If you choose thi
128
160
  - `.ccommit.js`
129
161
 
130
162
  By providing configuration options for your project.
131
- -->
163
+ -->
132
164
 
133
165
  ## Roadmap
134
166
 
package/index.js CHANGED
@@ -1,54 +1,50 @@
1
1
  #!/usr/bin/env node
2
- import './chunk-5G4NZZCD.js';
3
- import { a as a$2 } from './chunk-V2UIRJOD.js';
4
- import './chunk-WKR7FN4J.js';
5
- import { a as a$1 } from './chunk-NFPWBI3B.js';
6
- import './chunk-AEEWYCBG.js';
7
- import './chunk-D774JQK5.js';
8
- import './chunk-HYPQ3SZH.js';
9
- import './chunk-DEIKIR25.js';
10
- import './chunk-W6TUQVXI.js';
11
- import { a as a$3 } from './chunk-BFFJJU24.js';
12
- import './chunk-2DSXPOM7.js';
13
- import './chunk-BYWR53VH.js';
14
- import './chunk-EZBSOYFU.js';
15
- import './chunk-XUBGBYPW.js';
16
- import './chunk-R7UWR6EN.js';
17
- import './chunk-V5NV6QXN.js';
18
- import './chunk-CPVJCJWJ.js';
19
- import './chunk-K2XWQRSU.js';
20
- import './chunk-PTTHNJU4.js';
21
- import './chunk-DKTSYYG7.js';
22
- import './chunk-66FW7ROH.js';
23
- import './chunk-4U66XFH5.js';
24
- import './chunk-I37OINLR.js';
25
- import './chunk-YQAGIQKO.js';
26
- import './chunk-URQ27UIO.js';
27
- import { e, h, b, a } from './chunk-2T4Q2JKX.js';
28
- import s from 'meow';
29
-
30
- var p=s(`
2
+ import xe from 'meow';
3
+ import Y from 'inquirer';
4
+ import W from 'fs';
5
+ import { execa } from 'execa';
6
+ import ne from 'fuse.js';
7
+ import R from 'chalk';
8
+ import { execSync } from 'child_process';
9
+ import fe from 'inquirer/lib/prompts/input.js';
10
+ import Te from 'inquirer-autocomplete-prompt';
11
+ import { join } from 'path';
12
+
13
+ var y={COMMIT:"commit",HOOK:"hook",LIST:"list"},l={CONVENTIONAL:"conventional",CONVENTIONAL_NO_EMOJI:"conventional-no-emoji",GITMOJI:"gitmoji"},L={CLIENT:"client",HOOK:"hook"},u={EMOJI:"emoji",TYPE:"type"},m=Object.freeze({BREAKING:"breaking",COMMIT:"commit",DRYRUN:"dryrun",EMOJI:"emoji",HELP:"help",HOOK:"hook",LIST:"list",SKIP:"skip",VERSION:"version"}),B={[l.CONVENTIONAL]:"{type}{scope}: {emoji}{title}",[l.CONVENTIONAL_NO_EMOJI]:"{type}{scope}: {title}",[l.GITMOJI]:"{emoji}{scope}{title}"},s={TYPES:{ERROR:"error",INFO:"info",SUCCESS:"success",WARNING:"warning"},MESSAGES:{COMMAND_LINE_WITHOUT_REQUIRED:">> [ccommit] Command line option requires both: --title, --type",COMMIT_FAIL:`
14
+
15
+ Oops! An error occurred. There is likely additional logging output above.
16
+
17
+ You can run the same commit with this command:
18
+
19
+
20
+ {REPLACE}
21
+ `,GENERATOR_TAKING_OVER:">> [ccommit] Generator will take it from here (CTRL+C to quit)",LENGTH_MAX:"[ccommit] Cannot exceed {REPLACE} characters",LENGTH_MIN:"[ccommit] Must have at least {REPLACE} characters",MODE_CONFLICT:">> [ccommit] Please choose one or the other: --commit, -c | --hook, -u",REPLACE:"{REPLACE}",STAGED_FILES:">> [commit] There are no staged files for git. Did you mean to do a dry-run (-n)?",TYPE_INCORRECT:">> [ccommit] There is no gitmoji/type associated with: {REPLACE}"}},c=Object.freeze({FORMAT:"format",MESSAGE:"message",SCOPE:"scope",TITLE:"title",TYPE:"type"}),g={MIN:3,MAX:12},o={MAJOR:"major",MINOR:"minor",PATCH:"patch",NULL:"null"},a={MIN:3,MIN_SWAG:15,MAX:48,MAX_SWAG:40},K={MAX:15};var X=()=>execa("git",["rev-parse","--absolute-git-dir"]).then(({stdout:e})=>{(W.existsSync(e+"/rebase-merge")||W.existsSync(e+"/rebase-apply"))&&process.exit(0);}),J=4,V=()=>new Promise(e=>{let t=process.argv[J];t&&(t.startsWith("commit")||t.startsWith("merge"))&&process.exit(0),e();}),S=()=>V().then(X);var me={threshold:.4,keys:[{name:"type",weight:.44},{name:"description",weight:.56}]},M=(e,t)=>{let i=new ne(t,me);return e?i.search(e).map(n=>n.item):t};var se=(e,t)=>[m.COMMIT,m.HOOK].includes(e)?{dryrun:t[m.DRYRUN],emoji:t[m.EMOJI],mode:e===m.HOOK?L.HOOK:L.CLIENT,format:t[c.FORMAT]===l.CONVENTIONAL?t[m.EMOJI]?l.CONVENTIONAL:l.CONVENTIONAL_NO_EMOJI:l.GITMOJI,message:t[c.MESSAGE],scope:t[c.SCOPE],skip:t[m.SKIP],title:t[c.TITLE],type:t[c.TYPE]}:null,O=(e,t)=>{let i=e.flags,n=Object.keys(i).map(f=>i[f]&&f).find(f=>t[f]),r=N();!i[m.DRYRUN]&&!r&&(console.log(p(s.TYPES.WARNING,s.MESSAGES.STAGED_FILES)),process.exit(2)),i[m.COMMIT]&&i[m.HOOK]&&(console.log(p(s.TYPES.ERROR,s.MESSAGES.MODE_CONFLICT)),process.exit(2)),(i[c.MESSAGE]||i[c.SCOPE]||i[c.TITLE]||i[c.TYPE])&&(i[m.SKIP]=!0),i[m.SKIP]&&(i[c.TITLE]&&i[c.TYPE]?i[m.SKIP]=!0:(i[m.SKIP]=!1,console.log(p(s.TYPES.WARNING,s.MESSAGES.COMMAND_LINE_WITHOUT_REQUIRED)),i[c.TITLE]=void 0,i[c.TYPE]=void 0));let d=se(n,i);return t[n]?t[n](d):e.showHelp()};var ce=[{code:":wheelchair:",description:"Improve Accessibility",emoji:"\u267F\uFE0F",emojiLength:1,semver:o.PATCH,type:"access"},{code:":chart_with_upwards_trend:",description:"Add or Update Analytics or Track Code",emoji:"\u{1F4C8}",emojiLength:1,semver:o.PATCH,type:"analytics"},{code:":dizzy:",description:"Add or Update Animations and Transitions",emoji:"\u{1F4AB}",emojiLength:1,semver:o.PATCH,type:"animation"},{code:":building_construction:",description:"Make Architectural Changes",emoji:"\u{1F3D7}\uFE0F",emojiLength:0,semver:o.NULL,type:"arch"},{code:":bento:",description:"Add or Update Assets",emoji:"\u{1F371}",emojiLength:1,semver:o.PATCH,type:"assets"},{code:":beers:",description:"Write Code Drunkenly",emoji:"\u{1F37B}",emojiLength:1,semver:o.NULL,type:"beer"},{code:":boom:",description:"Introduce Breaking Changes",emoji:"\u{1F4A5}",emojiLength:1,semver:o.MAJOR,type:"breaking"},{code:":hammer:",description:"Add or Update Development Scripts",emoji:"\u{1F528}",emojiLength:1,semver:o.NULL,type:"build"},{code:":goal_net:",description:"Catch Errors",emoji:"\u{1F945}",emojiLength:1,semver:o.PATCH,type:"catch"},{code:":computer_disk:",description:"Changes That Don\u2019t Modify Src or Test Files",emoji:"\u{1F4BD}\uFE0F",emojiLength:1,semver:o.NULL,type:"chore"},{code:":construction_worker:",description:"Add or Update CI Build System",emoji:"\u{1F477}",emojiLength:1,semver:o.NULL,type:"ci"},{code:":wastebasket:",description:"Deprecate Code That Needs to Be Cleaned Up",emoji:"\u{1F5D1}\uFE0F",emojiLength:0,semver:o.PATCH,type:"clean"},{code:":alien:",description:"Update Code Due to External API Changes",emoji:"\u{1F47D}\uFE0F",emojiLength:1,semver:o.PATCH,type:"compat"},{code:":thread:",description:"Add or Update Code Related to Multithreading or Concurrency",emoji:"\u{1F9F5}",emojiLength:1,semver:o.NULL,type:"concurrency"},{code:":wrench:",description:"Add or Update Configuration Files",emoji:"\u{1F527}",emojiLength:1,semver:o.PATCH,type:"config"},{code:":busts_in_silhouette:",description:"Add or Update Contributor(s)",emoji:"\u{1F465}",emojiLength:1,semver:o.NULL,type:"contrib-add"},{code:":monocle_face:",description:"Data Exploration/inspection",emoji:"\u{1F9D0}",emojiLength:1,semver:o.NULL,type:"data"},{code:":card_file_box:",description:"Perform Database Related Changes",emoji:"\u{1F5C3}\uFE0F",emojiLength:0,semver:o.PATCH,type:"db"},{code:":heavy_plus_sign:",description:"Add a Dependency",emoji:"\u2795",emojiLength:1,semver:o.PATCH,type:"dep-add"},{code:":heavy_minus_sign:",description:"Remove a Dependency",emoji:"\u2796",emojiLength:1,semver:o.PATCH,type:"dep-rm"},{code:":package:",description:"Add or Update Compiled Files or Packages",emoji:"\u{1F4E6}\uFE0F",emojiLength:1,semver:o.PATCH,type:"dep-up"},{code:":rocket:",description:"Deploy Stuff",emoji:"\u{1F680}",emojiLength:1,semver:o.NULL,type:"deploy"},{code:":bulb:",description:"Add or Update Comments in Source Code",emoji:"\u{1F4A1}",emojiLength:1,semver:o.NULL,type:"docs-code"},{code:":memo:",description:"Add or Update Documentation",emoji:"\u{1F4DD}",emojiLength:1,semver:o.NULL,type:"docs"},{code:":arrow_down:",description:"Downgrade Dependencies",emoji:"\u2B07\uFE0F",emojiLength:0,semver:o.PATCH,type:"downgrade"},{code:":technologist:",description:"Improve Developer Experience",emoji:"\u{1F4BB}",emojiLength:1,semver:o.NULL,type:"dx"},{code:":egg:",description:"Add or Update an Easter Egg",emoji:"\u{1F95A}",emojiLength:1,semver:o.PATCH,type:"egg"},{code:":alembic:",description:"Perform Experiments",emoji:"\u2697\uFE0F",emojiLength:0,semver:o.PATCH,type:"experiment"},{code:":sparkles:",description:"Introduce New Features",emoji:"\u2728",emojiLength:1,semver:o.MINOR,type:"feat"},{code:":bug:",description:"Fix a Bug",emoji:"\u{1F41B}",emojiLength:1,semver:o.PATCH,type:"fix"},{code:":green_heart:",description:"Fix CI Build",emoji:"\u{1F49A}",emojiLength:1,semver:o.NULL,type:"fix-ci"},{code:":triangular_flag_on_post:",description:"Add Update or Remove Feature Flags",emoji:"\u{1F6A9}",emojiLength:1,semver:o.PATCH,type:"flags"},{code:":stethoscope:",description:"Add or Update Healthcheck",emoji:"\u{1FA7A}",emojiLength:1,semver:o.NULL,type:"healthcheck"},{code:":ambulance:",description:"Critical Hotfix",emoji:"\u{1F691}\uFE0F",emojiLength:1,semver:o.PATCH,type:"hotfix"},{code:":globe_with_meridians:",description:"Internationalization and Localization",emoji:"\u{1F310}",emojiLength:1,semver:o.PATCH,type:"i18n"},{code:":see_no_evil:",description:"Add or Update a Gitignore File.",emoji:"\u{1F648}",emojiLength:1,semver:o.NULL,type:"ignore"},{code:":bricks:",description:"Infrastructure Related Changes",emoji:"\u{1F9F1}",emojiLength:1,semver:o.NULL,type:"inf"},{code:":tada:",description:"Begin a Project",emoji:"\u{1F389}",emojiLength:1,semver:o.PATCH,type:"init"},{code:":iphone:",description:"Work on Responsive Design",emoji:"\u{1F4F1}",emojiLength:1,semver:o.PATCH,type:"iphone"},{code:":page_facing_up:",description:"Add or Update License",emoji:"\u{1F4C4}",emojiLength:1,semver:o.NULL,type:"license"},{code:":rotating_light:",description:"Fix Compiler / Linter Warnings",emoji:"\u{1F6A8}",emojiLength:1,semver:o.NULL,type:"lint"},{code:":loud_sound:",description:"Add or Update Logs",emoji:"\u{1F50A}",emojiLength:1,semver:o.NULL,type:"log-add"},{code:":mute:",description:"Remove Logs",emoji:"\u{1F507}",emojiLength:1,semver:o.NULL,type:"log-rm"},{code:":necktie:",description:"Add or Update Business Logic",emoji:"\u{1F454}",emojiLength:1,semver:o.PATCH,type:"logic"},{code:":twisted_rightwards_arrows:",description:"Merge Branches",emoji:"\u{1F500}",emojiLength:1,semver:o.NULL,type:"merge"},{code:":clown_face:",description:"Mock Things",emoji:"\u{1F921}",emojiLength:1,semver:o.NULL,type:"mock"},{code:":truck:",description:"Move or Rename Resources (Eg.: Files Paths Routes).",emoji:"\u{1F69A}",emojiLength:1,semver:o.NULL,type:"mv"},{code:":adhesive_bandage:",description:"Simple Fix for a Non-Critical Issue",emoji:"\u{1FA79}",emojiLength:1,semver:o.PATCH,type:"patch"},{code:":zap:",description:"Improve Performance",emoji:"\u26A1\uFE0F",emojiLength:1,semver:o.PATCH,type:"perf"},{code:":poop:",description:"Write Bad Code That Needs to Be Improved",emoji:"\u{1F4A9}",emojiLength:1,semver:o.NULL,type:"poo"},{code:":fire:",description:"Remove Code or Files",emoji:"\u{1F525}",emojiLength:1,semver:o.NULL,type:"prune"},{code:":pushpin:",description:"Pin Dependencies to Specific Versions",emoji:"\u{1F4CC}",emojiLength:1,semver:o.PATCH,type:"pushpin"},{code:":recycle:",description:"Refactor Code",emoji:"\u267B\uFE0F",emojiLength:0,semver:o.NULL,type:"refactor"},{code:":bookmark:",description:"Release / Version Tags",emoji:"\u{1F516}",emojiLength:1,semver:o.NULL,type:"release"},{code:":rewind:",description:"Revert Changes",emoji:"\u23EA\uFE0F",emojiLength:1,semver:o.PATCH,type:"revert"},{code:":coffin:",description:"Remove Dead Code",emoji:"\u26B0\uFE0F",emojiLength:0,semver:o.NULL,type:"rip"},{code:":passport_control:",description:"Work on Code Related to Authorization Roles and Permissions",emoji:"\u{1F6C2}",emojiLength:1,semver:o.PATCH,type:"roles"},{code:":fast_forward:",description:"Create Rollforward Version",emoji:"\u23E9\uFE0F",emojiLength:1,semver:o.NULL,type:"rollforward"},{code:":rocket:",description:"Custom Type for CI/CD to Hook into Run Build Override",emoji:"\u{1F680}\uFE0F",emojiLength:1,semver:o.PATCH,type:"run-build"},{code:":closed_lock_with_key:",description:"Add or Update Secrets",emoji:"\u{1F510}",emojiLength:1,semver:o.NULL,type:"secrets"},{code:":lock:",description:"Fix Security Issues",emoji:"\u{1F512}\uFE0F",emojiLength:1,semver:o.PATCH,type:"security"},{code:":seedling:",description:"Add or Update Seed Files",emoji:"\u{1F331}",emojiLength:1,semver:o.NULL,type:"seed"},{code:":mag:",description:"Improve Seo",emoji:"\u{1F50D}\uFE0F",emojiLength:1,semver:o.PATCH,type:"seo"},{code:":camera_flash:",description:"Add or Update Snapshots",emoji:"\u{1F4F8}",emojiLength:1,semver:o.NULL,type:"snapshot"},{code:":money_with_wings:",description:"Add Sponsorships or Money Related Infrastructure",emoji:"\u{1F4B8}",emojiLength:1,semver:o.NULL,type:"sponsor"},{code:":art:",description:"Improve Structure / Format of the Code",emoji:"\u{1F3A8}",emojiLength:1,semver:o.NULL,type:"style"},{code:":test_tube:",description:"Add a Failing Test",emoji:"\u{1F9EA}",emojiLength:1,semver:o.NULL,type:"test-fail"},{code:":white_check_mark:",description:"Add Update or Pass Tests",emoji:"\u2705",emojiLength:1,semver:o.NULL,type:"test"},{code:":speech_balloon:",description:"Add or Update Text and Literals",emoji:"\u{1F4AC}",emojiLength:1,semver:o.PATCH,type:"texts"},{code:":label:",description:"Add or Update Types",emoji:"\u{1F3F7}\uFE0F",emojiLength:0,semver:o.PATCH,type:"types"},{code:":pencil2:",description:"Fix Typos",emoji:"\u270F\uFE0F",emojiLength:0,semver:o.PATCH,type:"typo"},{code:":lipstick:",description:"Add or Update the UI and Style Files",emoji:"\u{1F484}",emojiLength:1,semver:o.PATCH,type:"ui"},{code:":arrow_up:",description:"Upgrade Dependencies",emoji:"\u2B06\uFE0F",emojiLength:0,semver:o.PATCH,type:"upgrade"},{code:":children_crossing:",description:"Improve User Experience / Usability",emoji:"\u{1F6B8}",emojiLength:1,semver:o.PATCH,type:"ux"},{code:":safety_vest:",description:"Add or update code related to validation",emoji:"\u{1F9BA}",emojiLength:1,semver:o.PATCH,type:"validation"},{code:":construction:",description:"Work in Progress",emoji:"\u{1F6A7}",emojiLength:1,semver:o.NULL,type:"wip"}],h=ce;var T=(e,t,i)=>{var r;let n=h.findIndex(d=>d[t]===e);return (r=h[n])==null?void 0:r[i]};var j=({emoji:e,emojiLength:t})=>t===0?`${e} `:`${e} `,C=e=>e==null?void 0:e.padEnd(K.MAX),v=e=>e.map(({description:t,emoji:i,emojiLength:n,type:r})=>{console.log(`${j({emoji:i,emojiLength:n})} ${C(r)} ${t}`);}),P=(e,t)=>{let i=B[e==null?void 0:e.format],n=t!=null&&t.gitmoji?`${t==null?void 0:t.gitmoji} `:"",r=t!=null&&t.scope?`(${t==null?void 0:t.scope.replace(/ {2}/g,"--").replace(/ /g,"-").toLowerCase().trim()})`:"";return r=r&&(e==null?void 0:e.format)===l.GITMOJI?`${r} `:r,i.replace(/\{emoji\}/g,n).replace(/\{scope\}/g,r).replace(/\{title\}/g,t==null?void 0:t.title).replace(/\{type\}/g,t==null?void 0:t.type)};var p=(e,t,i)=>{let n=i?t.replace(/\{REPLACE\}/g,i):t;return e===s.TYPES.ERROR?R.red(n):e===s.TYPES.INFO?n:e===s.TYPES.WARNING?R.yellow(n):R.green(n)};var pe=3,de=0,q=2,_=e=>{let t=process.argv[pe];if(e.mode===L.CLIENT||!W.existsSync(t))return {message:e.message||null,scope:e.scope||null,title:e.title||x()||null};let i=W.readFileSync(t).toString().split(`
22
+ `);return {message:i.length>q?i[q]:null,scope:e.scope,title:i[de]}};var U=e=>e.map(({description:t,emoji:i,emojiLength:n,type:r})=>({emoji:i,emojiLength:n,description:t,type:r}));var H=()=>{let e=process.platform==="win32"?" nul":"/dev/null";return execSync("git rev-parse --show-toplevel 2>"+e).toString().trim()};var x=()=>{let e="",t=execSync("git rev-parse --abbrev-ref HEAD").toString().trim().split("/"),i=t[0],r=(t[1]?t[1]:i).split("-"),d=r[0],f=r[1]?r[1]:d,ie=`${d}-${f}`;return !isNaN(parseFloat(f))&&isFinite(parseFloat(f))&&(e=ie),e};var N=()=>!!execSync("git diff --name-only --staged").toString().trim();var E=e=>{console.dir(" [dryrun] "),console.dir(e);};var b=class extends fe{onKeypress(){this.rl.line.length>this.opt.inputMax&&(this.rl.line=this.rl.line.slice(0,this.opt.inputMax),this.rl.cursor--),this.render();}},G=b;var k=class extends fe{onKeypress(){(this.rl.line===" "||this.rl.line===" ")&&this.opt.default&&(this.rl.line=`${this.opt.default} `,this.rl.cursor=this.rl.line.length),this.opt.default&&(this.opt.default=void 0),this.rl.line.length>this.opt.inputMax&&(this.rl.line=this.rl.line.slice(0,this.opt.inputMax),this.rl.cursor--),this.render();}},F=k;var D=()=>{process.on("SIGINT",()=>{console.warn(">> [ccommit] was interrupted"),process.exit(0);});};var he=e=>{let t=e.length,i=t.toString(),n=s.TYPES.SUCCESS;return t<a.MIN||t>a.MAX?n=s.TYPES.ERROR:(t<a.MIN_SWAG||t>a.MAX_SWAG)&&(n=s.TYPES.WARNING),p(n,s.MESSAGES.REPLACE,i)},ue=e=>{let t=e.length;return t===0?!0:t<g.MIN?p(s.TYPES.ERROR,s.MESSAGES.LENGTH_MIN,g.MIN.toString()):t>g.MAX?p(s.TYPES.ERROR,s.MESSAGES.LENGTH_MAX,g.MAX.toString()):!0},Ee=e=>{let t=e.length;return t<a.MIN?p(s.TYPES.ERROR,s.MESSAGES.LENGTH_MIN,a.MIN.toString()):t>a.MAX?p(s.TYPES.ERROR,s.MESSAGES.LENGTH_MAX,a.MAX.toString()):!0},ye={getCharsLeftText:he,scope:ue,title:Ee},I=ye;var je=U(h);Y.registerPrompt("autocomplete",Te);Y.registerPrompt("inputLimited",G);Y.registerPrompt("inputPrepopulateLimited",F);var Ce=(e,t)=>M(t,je).map(i=>({name:` ${j({emoji:i.emoji,emojiLength:i.emojiLength})} ${C(i.type)} ${i.description}`,value:i.emoji})),Ie=e=>{let{title:t,message:i,scope:n}=_(e);return [{name:"breaking",type:"confirm",message:"Is there a breaking change?:",default:!1},{name:"messageBreaking",type:"input",message:"Please share breaking change information:",filter:r=>`BREAKING CHANGE: ${r.trim()}`,when:r=>r.breaking},{name:"gitmoji",message:"Choose a commit type:",type:"autocomplete",source:Ce,filter:r=>r.trim()},{name:"scope",type:"inputLimited",inputMin:g.MIN,inputMax:g.MAX,message:"Enter the scope (if any)",validate:I.scope,filter:r=>r.trim(),transformer:r=>`(${r.length}/${g.MAX}): ${r}`,...n?{default:n}:{}},{type:"inputPrepopulateLimited",name:"title",inputMax:a.MAX,inputMin:a.MIN,message:"Enter the commit title",validate:I.title,filter:r=>r.trim(),transformer:r=>`(${I.getCharsLeftText(r)}/${a.MAX}): ${r}`,...t?{default:t}:{}},{name:"message",message:"Enter the commit message:",...i?{default:i}:{}}]},Q=Ie;var Se=async(e,t)=>{try{let i=e==null?void 0:e.subject,n=e==null?void 0:e.message,r=e==null?void 0:e.messageBreaking,d=["commit","-m",i];n&&d.push("-m",n),r&&d.push("-m",r),t!=null&&t.dryrun?E(["git",...d]):await execa("git",d,{buffer:!1,stdio:"inherit"});}catch(i){console.error(p(s.TYPES.ERROR,s.MESSAGES.COMMIT_FAIL,i.escapedCommand)),process.exit(1);}},Z=Se;var Ne=join(H(),".git","COMMIT_EDITMSG"),ve=(e,t)=>{try{let i=e==null?void 0:e.subject;e!=null&&e.message&&(i+=`
23
+
24
+ ${e.message}`),e!=null&&e.messageBreaking&&(i+=`
25
+
26
+ ${e.messageBreaking}`),t!=null&&t.dryrun?E(i):W.writeFileSync(Ne,i);}catch(i){console.error(i),process.exit(1);}finally{process.exit(0);}},w=ve;var ee=async e=>{let t;if(e.skip)t=e,t.gitmoji=T(t.type,u.TYPE,u.EMOJI),t.gitmoji||(console.log(p(s.TYPES.ERROR,s.MESSAGES.TYPE_INCORRECT,t.type)),process.exit(2));else {let n=Q(e);await Y.prompt(n).then(r=>{r.type=T(r.gitmoji,u.EMOJI,u.TYPE),r.gitmoji||(console.log(p(s.TYPES.ERROR,s.MESSAGES.TYPE_INCORRECT,r.gitmoji)),process.exit(2)),t=r;});}let i=P(e,t);return t.subject=i,e.mode===L.HOOK?w(t,e):Z(t,e)},Re=e=>e.mode===L.HOOK?(D(),S().then(()=>ee(e))):ee(e),te=Re;var A=te;var _e=()=>v(h),oe=_e;var $=oe;var Ue=xe(`
31
27
  Usage
32
28
  $ ccommit -c
33
29
 
34
30
  Flags
35
- --${e.BREAKING}, -b \u{1F4A5} Breaking Change
36
- --${e.COMMIT}, -c \u{1F4BD} Mode: Client
37
- --${e.DRYRUN}, -n \u{1F3BD} Mode: Dry Run
38
- --${e.EMOJI}, -e \u{1F61C} Emoji (default)
39
- --${e.HOOK}, -u \u{1FA9D} Mode: Hook
40
- --${e.LIST}, -l \u{1F4D6} List all types
41
- --${e.VERSION}, -v \u{1F4E6} Print installed version
31
+ --${m.BREAKING}, -b \u{1F4A5} Breaking Change
32
+ --${m.COMMIT}, -c \u{1F4BD} Mode: Client
33
+ --${m.DRYRUN}, -n \u{1F3BD} Mode: Dry Run
34
+ --${m.EMOJI}, -e \u{1F61C} Emoji (default)
35
+ --${m.HOOK}, -u \u{1FA9D} Mode: Hook
36
+ --${m.LIST}, -l \u{1F4D6} List all types
37
+ --${m.VERSION}, -v \u{1F4E6} Print installed version
42
38
 
43
39
  Options
44
- --${h.FORMAT} \u{1F61C} Commit Format: conventional|gitmoji (default)
45
- --${h.MESSAGE} \u{1F4DD} Commit Message
46
- --${h.SCOPE} \u{1F52C} Commit Scope
47
- --${h.TITLE} \u{1F4D3} Commit Title
48
- --${h.TYPE} \u2728 Commit Type
40
+ --${c.FORMAT} \u{1F61C} Commit Format: conventional|gitmoji (default)
41
+ --${c.MESSAGE} \u{1F4DD} Commit Message
42
+ --${c.SCOPE} \u{1F52C} Commit Scope
43
+ --${c.TITLE} \u{1F4D3} Commit Title
44
+ --${c.TYPE} \u2728 Commit Type
49
45
 
50
46
  Notes
51
47
  - Pass any non-format options the following will be required: --title, --type
52
48
  - If you do not pass any options the Conventional Commit Generator prompt will run
53
49
  - Branch Name detection is enabled to pre-populate Issue Tracker information in prompt
54
- `,{importMeta:import.meta,flags:{[e.BREAKING]:{type:"boolean",alias:"b",default:!1},[e.COMMIT]:{type:"boolean",alias:"c"},[e.DRYRUN]:{type:"boolean",alias:"n"},[e.EMOJI]:{type:"boolean",alias:"e",default:!0},[e.HELP]:{type:"boolean",alias:"h"},[e.HOOK]:{type:"boolean",alias:"u"},[e.LIST]:{type:"boolean",alias:"l"},[e.SKIP]:{type:"boolean",default:!1},[e.VERSION]:{type:"boolean",alias:"v"},[h.FORMAT]:{type:"string",default:b.GITMOJI},[h.MESSAGE]:{type:"string"},[h.SCOPE]:{type:"string"},[h.TITLE]:{type:"string"},[h.TYPE]:{type:"string"}}}),r={[a.COMMIT]:a=>a$1(a),[a.HOOK]:a=>a$1(a),[a.LIST]:()=>a$2()};a$3(p,r);
50
+ `,{importMeta:import.meta,flags:{[m.BREAKING]:{type:"boolean",alias:"b",default:!1},[m.COMMIT]:{type:"boolean",alias:"c"},[m.DRYRUN]:{type:"boolean",alias:"n"},[m.EMOJI]:{type:"boolean",alias:"e",default:!0},[m.HELP]:{type:"boolean",alias:"h"},[m.HOOK]:{type:"boolean",alias:"u"},[m.LIST]:{type:"boolean",alias:"l"},[m.SKIP]:{type:"boolean",default:!1},[m.VERSION]:{type:"boolean",alias:"v"},[c.FORMAT]:{type:"string",default:l.GITMOJI},[c.MESSAGE]:{type:"string"},[c.SCOPE]:{type:"string"},[c.TITLE]:{type:"string"},[c.TYPE]:{type:"string"}}}),He={[y.COMMIT]:e=>A(e),[y.HOOK]:e=>A(e),[y.LIST]:()=>$()};O(Ue,He);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "license": "MIT",
4
- "version": "1.0.0",
4
+ "version": "1.0.1-reduce.1",
5
5
  "name": "ccommit",
6
6
  "description": "Conventional Commit Generator that interprets commit types from gitmoji and conventional",
7
7
  "author": {
@@ -50,9 +50,7 @@
50
50
  "fuse.js": "6.6.2",
51
51
  "inquirer": "9.1.4",
52
52
  "inquirer-autocomplete-prompt": "3.0.0",
53
- "lodash": "4.17.21",
54
- "meow": "11.0.0",
55
- "pkg-dir": "7.0.0"
53
+ "meow": "11.0.0"
56
54
  },
57
55
  "devDependencies": {
58
56
  "@types/inquirer": "9.0.3",
package/chunk-2DSXPOM7.js DELETED
@@ -1,3 +0,0 @@
1
- var n=r=>{console.dir(" [dryrun] "),console.dir(r);};
2
-
3
- export { n as a };
package/chunk-2T4Q2JKX.js DELETED
@@ -1,11 +0,0 @@
1
- var t={COMMIT:"commit",HOOK:"hook",LIST:"list"},o={CONVENTIONAL:"conventional",CONVENTIONAL_NO_EMOJI:"conventional-no-emoji",GITMOJI:"gitmoji"},e={CLIENT:"client",HOOK:"hook"},i={EMOJI:"emoji",TYPE:"type"},E=Object.freeze({BREAKING:"breaking",COMMIT:"commit",DRYRUN:"dryrun",EMOJI:"emoji",HELP:"help",HOOK:"hook",LIST:"list",SKIP:"skip",VERSION:"version"}),c={[o.CONVENTIONAL]:"{type}{scope}: {emoji}{title}",[o.CONVENTIONAL_NO_EMOJI]:"{type}{scope}: {title}",[o.GITMOJI]:"{emoji}{scope}{title}"},O={TYPES:{ERROR:"error",INFO:"info",SUCCESS:"success",WARNING:"warning"},MESSAGES:{COMMAND_LINE_WITHOUT_REQUIRED:">> [ccommit] Command line option requires both: --title, --type",COMMIT_FAIL:`
2
-
3
- Oops! An error occurred. There is likely additional logging output above.
4
-
5
- You can run the same commit with this command:
6
-
7
-
8
- {REPLACE}
9
- `,GENERATOR_TAKING_OVER:">> [ccommit] Generator will take it from here (CTRL+C to quit)",LENGTH_MAX:"[ccommit] Cannot exceed {REPLACE} characters",LENGTH_MIN:"[ccommit] Must have at least {REPLACE} characters",MODE_CONFLICT:">> [ccommit] Please choose one or the other: --commit, -c | --hook, -u",REPLACE:"{REPLACE}",STAGED_FILES:">> [commit] There are no staged files for git. Did you mean to do a dry-run (-n)?",TYPE_INCORRECT:">> [ccommit] There is no gitmoji/type associated with: {REPLACE}"}},n=Object.freeze({FORMAT:"format",MESSAGE:"message",SCOPE:"scope",TITLE:"title",TYPE:"type"}),I={MIN:3,MAX:12},s={MAJOR:"major",MINOR:"minor",PATCH:"patch",NULL:"null"},T={MIN:3,MIN_SWAG:15,MAX:48,MAX_SWAG:40},m={MAX:15};
10
-
11
- export { t as a, o as b, e as c, i as d, E as e, c as f, O as g, n as h, I as i, s as j, T as k, m as l };
package/chunk-4U66XFH5.js DELETED
@@ -1,6 +0,0 @@
1
- import t from 'fs';
2
- import { execa } from 'execa';
3
-
4
- var i=()=>execa("git",["rev-parse","--absolute-git-dir"]).then(({stdout:e})=>{(t.existsSync(e+"/rebase-merge")||t.existsSync(e+"/rebase-apply"))&&process.exit(0);}),r=4,c=()=>new Promise(e=>{let s=process.argv[r];s&&(s.startsWith("commit")||s.startsWith("merge"))&&process.exit(0),e();}),a=()=>c().then(i);
5
-
6
- export { i as a, r as b, c, a as d };
package/chunk-5G4NZZCD.js DELETED
@@ -1 +0,0 @@
1
-
package/chunk-66FW7ROH.js DELETED
@@ -1,5 +0,0 @@
1
- import { execSync } from 'child_process';
2
-
3
- var s=()=>!!execSync("git diff --name-only --staged").toString().trim();
4
-
5
- export { s as a };
package/chunk-AEEWYCBG.js DELETED
@@ -1,14 +0,0 @@
1
- import { a as a$5 } from './chunk-D774JQK5.js';
2
- import { a as a$4 } from './chunk-HYPQ3SZH.js';
3
- import { a as a$3 } from './chunk-DEIKIR25.js';
4
- import { a } from './chunk-R7UWR6EN.js';
5
- import { d as d$2 } from './chunk-V5NV6QXN.js';
6
- import { a as a$2 } from './chunk-CPVJCJWJ.js';
7
- import { d } from './chunk-4U66XFH5.js';
8
- import { a as a$1 } from './chunk-YQAGIQKO.js';
9
- import { c, d as d$1, g } from './chunk-2T4Q2JKX.js';
10
- import S from 'inquirer';
11
-
12
- var C=async t=>{let e;if(t.skip)e=t,e.gitmoji=a$1(e.type,d$1.TYPE,d$1.EMOJI),e.gitmoji||(console.log(a$2(g.TYPES.ERROR,g.MESSAGES.TYPE_INCORRECT,e.type)),process.exit(2));else {let M=a$3(t);await S.prompt(M).then(o=>{o.type=a$1(o.gitmoji,d$1.EMOJI,d$1.TYPE),o.gitmoji||(console.log(a$2(g.TYPES.ERROR,g.MESSAGES.TYPE_INCORRECT,o.gitmoji)),process.exit(2)),e=o;});}let l=d$2(t,e);return e.subject=l,t.mode===c.HOOK?a$4(e,t):a$5(e,t)},T=t=>t.mode===c.HOOK?(a(),d().then(()=>C(t))):C(t),j=T;
13
-
14
- export { j as a };
package/chunk-BFFJJU24.js DELETED
@@ -1,10 +0,0 @@
1
- import { a as a$2 } from './chunk-CPVJCJWJ.js';
2
- import { a } from './chunk-DKTSYYG7.js';
3
- import { a as a$1 } from './chunk-66FW7ROH.js';
4
- import { c as c$1, e, g, h, b } from './chunk-2T4Q2JKX.js';
5
- import T from 'fs';
6
-
7
- var l=3,M=0,c=2,C=n=>{let t=process.argv[l];if(n.mode===c$1.CLIENT||!T.existsSync(t))return {message:n.message||null,scope:n.scope||null,title:n.title||a()||null};let e=T.readFileSync(t).toString().split(`
8
- `);return {message:e.length>c?e[c]:null,scope:n.scope,title:e[M]}};var u=(n,t)=>[e.COMMIT,e.HOOK].includes(n)?{dryrun:t[e.DRYRUN],emoji:t[e.EMOJI],mode:n===e.HOOK?c$1.HOOK:c$1.CLIENT,format:t[h.FORMAT]===b.CONVENTIONAL?t[e.EMOJI]?b.CONVENTIONAL:b.CONVENTIONAL_NO_EMOJI:b.GITMOJI,message:t[h.MESSAGE],scope:t[h.SCOPE],skip:t[e.SKIP],title:t[h.TITLE],type:t[h.TYPE]}:null,d=(n,t)=>{let e$1=n.flags,I=Object.keys(e$1).map(p=>e$1[p]&&p).find(p=>t[p]),S=a$1();!e$1[e.DRYRUN]&&!S&&(console.log(a$2(g.TYPES.WARNING,g.MESSAGES.STAGED_FILES)),process.exit(2)),e$1[e.COMMIT]&&e$1[e.HOOK]&&(console.log(a$2(g.TYPES.ERROR,g.MESSAGES.MODE_CONFLICT)),process.exit(2)),(e$1[h.MESSAGE]||e$1[h.SCOPE]||e$1[h.TITLE]||e$1[h.TYPE])&&(e$1[e.SKIP]=!0),e$1[e.SKIP]&&(e$1[h.TITLE]&&e$1[h.TYPE]?e$1[e.SKIP]=!0:(e$1[e.SKIP]=!1,console.log(a$2(g.TYPES.WARNING,g.MESSAGES.COMMAND_LINE_WITHOUT_REQUIRED)),e$1[h.TITLE]=void 0,e$1[h.TYPE]=void 0));let a=u(I,e$1);return t[I]?t[I](a):n.showHelp()};
9
-
10
- export { d as a, C as b };
package/chunk-BYWR53VH.js DELETED
@@ -1,5 +0,0 @@
1
- import t from 'inquirer/lib/prompts/input.js';
2
-
3
- var s=class extends t{onKeypress(){this.rl.line.length>this.opt.inputMax&&(this.rl.line=this.rl.line.slice(0,this.opt.inputMax),this.rl.cursor--),this.render();}},l=s;
4
-
5
- export { l as a };
package/chunk-CPVJCJWJ.js DELETED
@@ -1,6 +0,0 @@
1
- import { g } from './chunk-2T4Q2JKX.js';
2
- import n from 'chalk';
3
-
4
- var E=(t,o,g$1)=>{let r=g$1?o.replace(/\{REPLACE\}/g,g$1):o;return t===g.TYPES.ERROR?n.red(r):t===g.TYPES.INFO?r:t===g.TYPES.WARNING?n.yellow(r):n.green(r)};
5
-
6
- export { E as a };
package/chunk-D774JQK5.js DELETED
@@ -1,8 +0,0 @@
1
- import { a } from './chunk-2DSXPOM7.js';
2
- import { a as a$1 } from './chunk-CPVJCJWJ.js';
3
- import { g } from './chunk-2T4Q2JKX.js';
4
- import { execa } from 'execa';
5
-
6
- var l=async(t,e)=>{try{let i=t==null?void 0:t.subject,o=t==null?void 0:t.message,r=t==null?void 0:t.messageBreaking,m=["commit","-m",i];o&&m.push("-m",o),r&&m.push("-m",r),e!=null&&e.dryrun?a(["git",...m]):await execa("git",m,{buffer:!1,stdio:"inherit"});}catch(i){console.error(a$1(g.TYPES.ERROR,g.MESSAGES.COMMIT_FAIL,i.escapedCommand)),process.exit(1);}},p=l;
7
-
8
- export { p as a };
package/chunk-DEIKIR25.js DELETED
@@ -1,15 +0,0 @@
1
- import { a as a$4 } from './chunk-W6TUQVXI.js';
2
- import { b } from './chunk-BFFJJU24.js';
3
- import { a as a$2 } from './chunk-BYWR53VH.js';
4
- import { a as a$3 } from './chunk-XUBGBYPW.js';
5
- import { a as a$6, b as b$1 } from './chunk-V5NV6QXN.js';
6
- import { a } from './chunk-K2XWQRSU.js';
7
- import { a as a$5 } from './chunk-I37OINLR.js';
8
- import { a as a$1 } from './chunk-URQ27UIO.js';
9
- import { i, k as k$1 } from './chunk-2T4Q2JKX.js';
10
- import n from 'inquirer';
11
- import P from 'inquirer-autocomplete-prompt';
12
-
13
- var j=a(a$1);n.registerPrompt("autocomplete",P);n.registerPrompt("inputLimited",a$2);n.registerPrompt("inputPrepopulateLimited",a$3);var L=(s,i)=>a$5(i,j).map(t=>({name:` ${a$6({emoji:t.emoji,emojiLength:t.emojiLength})} ${b$1(t.type)} ${t.description}`,value:t.emoji})),M=s=>{let{title:i$1,message:t,scope:a}=b(s);return [{name:"breaking",type:"confirm",message:"Is there a breaking change?:",default:!1},{name:"messageBreaking",type:"input",message:"Please share breaking change information:",filter:e=>`BREAKING CHANGE: ${e.trim()}`,when:e=>e.breaking},{name:"gitmoji",message:"Choose a commit type:",type:"autocomplete",source:L,filter:e=>e.trim()},{name:"scope",type:"inputLimited",inputMin:i.MIN,inputMax:i.MAX,message:"Enter the scope (if any)",validate:a$4.scope,filter:e=>e.trim(),transformer:e=>`(${e.length}/${i.MAX}): ${e}`,...a?{default:a}:{}},{type:"inputPrepopulateLimited",name:"title",inputMax:k$1.MAX,inputMin:k$1.MIN,message:"Enter the commit title",validate:a$4.title,filter:e=>e.trim(),transformer:e=>`(${a$4.getCharsLeftText(e)}/${k$1.MAX}): ${e}`,...i$1?{default:i$1}:{}},{name:"message",message:"Enter the commit message:",...t?{default:t}:{}}]},k=M;
14
-
15
- export { k as a };
package/chunk-DKTSYYG7.js DELETED
@@ -1,5 +0,0 @@
1
- import { execSync } from 'child_process';
2
-
3
- var b=()=>{let i="",t=execSync("git rev-parse --abbrev-ref HEAD").toString().trim().split("/"),n=t[0],e=(t[1]?t[1]:n).split("-"),c=e[0],r=e[1]?e[1]:c,s=`${c}-${r}`;return !isNaN(parseFloat(r))&&isFinite(parseFloat(r))&&(i=s),i};
4
-
5
- export { b as a };
package/chunk-EZBSOYFU.js DELETED
@@ -1,5 +0,0 @@
1
- import i from 'inquirer/lib/prompts/input.js';
2
-
3
- var t=class extends i{onKeypress(){(this.rl.line===" "||this.rl.line===" ")&&this.opt.default&&(this.rl.line=`${this.opt.default} `,this.rl.cursor=this.rl.line.length),this.opt.default&&(this.opt.default=void 0),this.render();}},l=t;
4
-
5
- export { l as a };
package/chunk-HYPQ3SZH.js DELETED
@@ -1,12 +0,0 @@
1
- import { a as a$1 } from './chunk-2DSXPOM7.js';
2
- import { a } from './chunk-PTTHNJU4.js';
3
- import c from 'fs';
4
- import { join } from 'path';
5
-
6
- var f=join(a(),".git","COMMIT_EDITMSG"),l=(i,m)=>{try{let t=i==null?void 0:i.subject;i!=null&&i.message&&(t+=`
7
-
8
- ${i.message}`),i!=null&&i.messageBreaking&&(t+=`
9
-
10
- ${i.messageBreaking}`),m!=null&&m.dryrun?a$1(t):c.writeFileSync(f,t);}catch(t){console.error(t),process.exit(1);}finally{process.exit(0);}},u=l;
11
-
12
- export { u as a };
package/chunk-I37OINLR.js DELETED
@@ -1,5 +0,0 @@
1
- import o from 'fuse.js';
2
-
3
- var r={threshold:.4,keys:[{name:"type",weight:.44},{name:"description",weight:.56}]},m=(e,t)=>{let s=new o(t,r);return e?s.search(e).map(n=>n.item):t};
4
-
5
- export { m as a };
package/chunk-K2XWQRSU.js DELETED
@@ -1,5 +0,0 @@
1
- import m from 'lodash/map.js';
2
-
3
- var s=t=>m(t,e=>{let{description:o,emoji:n,emojiLength:r,type:i}=e;return {emoji:n,emojiLength:r,description:o,type:i}});
4
-
5
- export { s as a };
package/chunk-NFPWBI3B.js DELETED
@@ -1,5 +0,0 @@
1
- import { a } from './chunk-AEEWYCBG.js';
2
-
3
- var t=a;
4
-
5
- export { t as a };
package/chunk-PTTHNJU4.js DELETED
@@ -1,5 +0,0 @@
1
- import { execSync } from 'child_process';
2
-
3
- var i=()=>{let t=process.platform==="win32"?" nul":"/dev/null";return execSync("git rev-parse --show-toplevel 2>"+t).toString().trim()};
4
-
5
- export { i as a };
package/chunk-R7UWR6EN.js DELETED
@@ -1,3 +0,0 @@
1
- var e=()=>{process.on("SIGINT",()=>{console.warn(">> [ccommit] was interrupted"),process.exit(0);});};
2
-
3
- export { e as a };
package/chunk-URQ27UIO.js DELETED
@@ -1,5 +0,0 @@
1
- import { j } from './chunk-2T4Q2JKX.js';
2
-
3
- var o={access:{code:":wheelchair:",description:"Improve Accessibility",emoji:"\u267F\uFE0F",emojiLength:1,semver:j.PATCH,type:"access"},analytics:{code:":chart_with_upwards_trend:",description:"Add or Update Analytics or Track Code",emoji:"\u{1F4C8}",emojiLength:1,semver:j.PATCH,type:"analytics"},animation:{code:":dizzy:",description:"Add or Update Animations and Transitions",emoji:"\u{1F4AB}",emojiLength:1,semver:j.PATCH,type:"animation"},arch:{code:":building_construction:",description:"Make Architectural Changes",emoji:"\u{1F3D7}\uFE0F",emojiLength:0,semver:j.NULL,type:"arch"},assets:{code:":bento:",description:"Add or Update Assets",emoji:"\u{1F371}",emojiLength:1,semver:j.PATCH,type:"assets"},beer:{code:":beers:",description:"Write Code Drunkenly",emoji:"\u{1F37B}",emojiLength:1,semver:j.NULL,type:"beer"},breaking:{code:":boom:",description:"Introduce Breaking Changes",emoji:"\u{1F4A5}",emojiLength:1,semver:j.MAJOR,type:"breaking"},build:{code:":hammer:",description:"Add or Update Development Scripts",emoji:"\u{1F528}",emojiLength:1,semver:j.NULL,type:"build"},catch:{code:":goal_net:",description:"Catch Errors",emoji:"\u{1F945}",emojiLength:1,semver:j.PATCH,type:"catch"},chore:{code:":computer_disk:",description:"Changes That Don\u2019t Modify Src or Test Files",emoji:"\u{1F4BD}\uFE0F",emojiLength:1,semver:j.NULL,type:"chore"},ci:{code:":construction_worker:",description:"Add or Update CI Build System",emoji:"\u{1F477}",emojiLength:1,semver:j.NULL,type:"ci"},clean:{code:":wastebasket:",description:"Deprecate Code That Needs to Be Cleaned Up",emoji:"\u{1F5D1}\uFE0F",emojiLength:0,semver:j.PATCH,type:"clean"},compat:{code:":alien:",description:"Update Code Due to External API Changes",emoji:"\u{1F47D}\uFE0F",emojiLength:1,semver:j.PATCH,type:"compat"},concurrency:{code:":thread:",description:"Add or Update Code Related to Multithreading or Concurrency",emoji:"\u{1F9F5}",emojiLength:1,semver:j.NULL,type:"concurrency"},config:{code:":wrench:",description:"Add or Update Configuration Files",emoji:"\u{1F527}",emojiLength:1,semver:j.PATCH,type:"config"},"contrib-add":{code:":busts_in_silhouette:",description:"Add or Update Contributor(s)",emoji:"\u{1F465}",emojiLength:1,semver:j.NULL,type:"contrib-add"},data:{code:":monocle_face:",description:"Data Exploration/inspection",emoji:"\u{1F9D0}",emojiLength:1,semver:j.NULL,type:"data"},db:{code:":card_file_box:",description:"Perform Database Related Changes",emoji:"\u{1F5C3}\uFE0F",emojiLength:0,semver:j.PATCH,type:"db"},"dep-add":{code:":heavy_plus_sign:",description:"Add a Dependency",emoji:"\u2795",emojiLength:1,semver:j.PATCH,type:"dep-add"},"dep-rm":{code:":heavy_minus_sign:",description:"Remove a Dependency",emoji:"\u2796",emojiLength:1,semver:j.PATCH,type:"dep-rm"},"dep-up":{code:":package:",description:"Add or Update Compiled Files or Packages",emoji:"\u{1F4E6}\uFE0F",emojiLength:1,semver:j.PATCH,type:"dep-up"},deploy:{code:":rocket:",description:"Deploy Stuff",emoji:"\u{1F680}",emojiLength:1,semver:j.NULL,type:"deploy"},"docs-code":{code:":bulb:",description:"Add or Update Comments in Source Code",emoji:"\u{1F4A1}",emojiLength:1,semver:j.NULL,type:"docs-code"},docs:{code:":memo:",description:"Add or Update Documentation",emoji:"\u{1F4DD}",emojiLength:1,semver:j.NULL,type:"docs"},downgrade:{code:":arrow_down:",description:"Downgrade Dependencies",emoji:"\u2B07\uFE0F",emojiLength:0,semver:j.PATCH,type:"downgrade"},dx:{code:":technologist:",description:"Improve Developer Experience",emoji:"\u{1F4BB}",emojiLength:1,semver:j.NULL,type:"dx"},egg:{code:":egg:",description:"Add or Update an Easter Egg",emoji:"\u{1F95A}",emojiLength:1,semver:j.PATCH,type:"egg"},experiment:{code:":alembic:",description:"Perform Experiments",emoji:"\u2697\uFE0F",emojiLength:0,semver:j.PATCH,type:"experiment"},feat:{code:":sparkles:",description:"Introduce New Features",emoji:"\u2728",emojiLength:1,semver:j.MINOR,type:"feat"},fix:{code:":bug:",description:"Fix a Bug",emoji:"\u{1F41B}",emojiLength:1,semver:j.PATCH,type:"fix"},"fix-ci":{code:":green_heart:",description:"Fix CI Build",emoji:"\u{1F49A}",emojiLength:1,semver:j.NULL,type:"fix-ci"},flags:{code:":triangular_flag_on_post:",description:"Add Update or Remove Feature Flags",emoji:"\u{1F6A9}",emojiLength:1,semver:j.PATCH,type:"flags"},healthcheck:{code:":stethoscope:",description:"Add or Update Healthcheck",emoji:"\u{1FA7A}",emojiLength:1,semver:j.NULL,type:"healthcheck"},hotfix:{code:":ambulance:",description:"Critical Hotfix",emoji:"\u{1F691}\uFE0F",emojiLength:1,semver:j.PATCH,type:"hotfix"},i18n:{code:":globe_with_meridians:",description:"Internationalization and Localization",emoji:"\u{1F310}",emojiLength:1,semver:j.PATCH,type:"i18n"},ignore:{code:":see_no_evil:",description:"Add or Update a Gitignore File.",emoji:"\u{1F648}",emojiLength:1,semver:j.NULL,type:"ignore"},inf:{code:":bricks:",description:"Infrastructure Related Changes",emoji:"\u{1F9F1}",emojiLength:1,semver:j.NULL,type:"inf"},init:{code:":tada:",description:"Begin a Project",emoji:"\u{1F389}",emojiLength:1,semver:j.PATCH,type:"init"},iphone:{code:":iphone:",description:"Work on Responsive Design",emoji:"\u{1F4F1}",emojiLength:1,semver:j.PATCH,type:"iphone"},license:{code:":page_facing_up:",description:"Add or Update License",emoji:"\u{1F4C4}",emojiLength:1,semver:j.NULL,type:"license"},lint:{code:":rotating_light:",description:"Fix Compiler / Linter Warnings",emoji:"\u{1F6A8}",emojiLength:1,semver:j.NULL,type:"lint"},"log-add":{code:":loud_sound:",description:"Add or Update Logs",emoji:"\u{1F50A}",emojiLength:1,semver:j.NULL,type:"log-add"},"log-rm":{code:":mute:",description:"Remove Logs",emoji:"\u{1F507}",emojiLength:1,semver:j.NULL,type:"log-rm"},logic:{code:":necktie:",description:"Add or Update Business Logic",emoji:"\u{1F454}",emojiLength:1,semver:j.PATCH,type:"logic"},merge:{code:":twisted_rightwards_arrows:",description:"Merge Branches",emoji:"\u{1F500}",emojiLength:1,semver:j.NULL,type:"merge"},mock:{code:":clown_face:",description:"Mock Things",emoji:"\u{1F921}",emojiLength:1,semver:j.NULL,type:"mock"},mv:{code:":truck:",description:"Move or Rename Resources (Eg.: Files Paths Routes).",emoji:"\u{1F69A}",emojiLength:1,semver:j.NULL,type:"mv"},patch:{code:":adhesive_bandage:",description:"Simple Fix for a Non-Critical Issue",emoji:"\u{1FA79}",emojiLength:1,semver:j.PATCH,type:"patch"},perf:{code:":zap:",description:"Improve Performance",emoji:"\u26A1\uFE0F",emojiLength:1,semver:j.PATCH,type:"perf"},poo:{code:":poop:",description:"Write Bad Code That Needs to Be Improved",emoji:"\u{1F4A9}",emojiLength:1,semver:j.NULL,type:"poo"},prune:{code:":fire:",description:"Remove Code or Files",emoji:"\u{1F525}",emojiLength:1,semver:j.NULL,type:"prune"},pushpin:{code:":pushpin:",description:"Pin Dependencies to Specific Versions",emoji:"\u{1F4CC}",emojiLength:1,semver:j.PATCH,type:"pushpin"},refactor:{code:":recycle:",description:"Refactor Code",emoji:"\u267B\uFE0F",emojiLength:0,semver:j.NULL,type:"refactor"},release:{code:":bookmark:",description:"Release / Version Tags",emoji:"\u{1F516}",emojiLength:1,semver:j.NULL,type:"release"},revert:{code:":rewind:",description:"Revert Changes",emoji:"\u23EA\uFE0F",emojiLength:1,semver:j.PATCH,type:"revert"},rip:{code:":coffin:",description:"Remove Dead Code",emoji:"\u26B0\uFE0F",emojiLength:0,semver:j.NULL,type:"rip"},roles:{code:":passport_control:",description:"Work on Code Related to Authorization Roles and Permissions",emoji:"\u{1F6C2}",emojiLength:1,semver:j.PATCH,type:"roles"},rollforward:{code:":fast_forward:",description:"Create Rollforward Version",emoji:"\u23E9\uFE0F",emojiLength:1,semver:j.NULL,type:"rollforward"},"run-build":{code:":rocket:",description:"Custom Type for CI/CD to Hook into Run Build Override",emoji:"\u{1F680}\uFE0F",emojiLength:1,semver:j.PATCH,type:"run-build"},secrets:{code:":closed_lock_with_key:",description:"Add or Update Secrets",emoji:"\u{1F510}",emojiLength:1,semver:j.NULL,type:"secrets"},security:{code:":lock:",description:"Fix Security Issues",emoji:"\u{1F512}\uFE0F",emojiLength:1,semver:j.PATCH,type:"security"},seed:{code:":seedling:",description:"Add or Update Seed Files",emoji:"\u{1F331}",emojiLength:1,semver:j.NULL,type:"seed"},seo:{code:":mag:",description:"Improve Seo",emoji:"\u{1F50D}\uFE0F",emojiLength:1,semver:j.PATCH,type:"seo"},snapshot:{code:":camera_flash:",description:"Add or Update Snapshots",emoji:"\u{1F4F8}",emojiLength:1,semver:j.NULL,type:"snapshot"},sponsor:{code:":money_with_wings:",description:"Add Sponsorships or Money Related Infrastructure",emoji:"\u{1F4B8}",emojiLength:1,semver:j.NULL,type:"sponsor"},style:{code:":art:",description:"Improve Structure / Format of the Code",emoji:"\u{1F3A8}",emojiLength:1,semver:j.NULL,type:"style"},"test-fail":{code:":test_tube:",description:"Add a Failing Test",emoji:"\u{1F9EA}",emojiLength:1,semver:j.NULL,type:"test-fail"},test:{code:":white_check_mark:",description:"Add Update or Pass Tests",emoji:"\u2705",emojiLength:1,semver:j.NULL,type:"test"},texts:{code:":speech_balloon:",description:"Add or Update Text and Literals",emoji:"\u{1F4AC}",emojiLength:1,semver:j.PATCH,type:"texts"},types:{code:":label:",description:"Add or Update Types",emoji:"\u{1F3F7}\uFE0F",emojiLength:0,semver:j.PATCH,type:"types"},typo:{code:":pencil2:",description:"Fix Typos",emoji:"\u270F\uFE0F",emojiLength:0,semver:j.PATCH,type:"typo"},ui:{code:":lipstick:",description:"Add or Update the UI and Style Files",emoji:"\u{1F484}",emojiLength:1,semver:j.PATCH,type:"ui"},upgrade:{code:":arrow_up:",description:"Upgrade Dependencies",emoji:"\u2B06\uFE0F",emojiLength:0,semver:j.PATCH,type:"upgrade"},ux:{code:":children_crossing:",description:"Improve User Experience / Usability",emoji:"\u{1F6B8}",emojiLength:1,semver:j.PATCH,type:"ux"},validation:{code:":safety_vest:",description:"Add or update code related to validation",emoji:"\u{1F9BA}",emojiLength:1,semver:j.PATCH,type:"validation"},wip:{code:":construction:",description:"Work in Progress",emoji:"\u{1F6A7}",emojiLength:1,semver:j.NULL,type:"wip"}},t=o;
4
-
5
- export { t as a };
package/chunk-V2UIRJOD.js DELETED
@@ -1,5 +0,0 @@
1
- import { a } from './chunk-WKR7FN4J.js';
2
-
3
- var r=a;
4
-
5
- export { r as a };
package/chunk-V5NV6QXN.js DELETED
@@ -1,6 +0,0 @@
1
- import { l, f, b } from './chunk-2T4Q2JKX.js';
2
- import $ from 'lodash/map.js';
3
-
4
- var j=({emoji:m,emojiLength:t})=>t===0?`${m} `:`${m} `,T=m=>m==null?void 0:m.padEnd(l.MAX),O=m=>$(m,t=>{let{description:o,emoji:l,emojiLength:c,type:p}=t;console.log(`${j({emoji:l,emojiLength:c})} ${T(p)} ${o}`);}),d=(m,t)=>{let o=f[m==null?void 0:m.format],l=t!=null&&t.gitmoji?`${t==null?void 0:t.gitmoji} `:"",c=t!=null&&t.scope?`(${t==null?void 0:t.scope.replace(/ {2}/g,"--").replace(/ /g,"-").toLowerCase().trim()})`:"";return c=c&&(m==null?void 0:m.format)===b.GITMOJI?`${c} `:c,o.replace(/\{emoji\}/g,l).replace(/\{scope\}/g,c).replace(/\{title\}/g,t==null?void 0:t.title).replace(/\{type\}/g,t==null?void 0:t.type)};
5
-
6
- export { j as a, T as b, O as c, d };
package/chunk-W6TUQVXI.js DELETED
@@ -1,6 +0,0 @@
1
- import { a } from './chunk-CPVJCJWJ.js';
2
- import { g, k, i as i$1 } from './chunk-2T4Q2JKX.js';
3
-
4
- var M=E=>{let e=E.length,o=e.toString(),s=g.TYPES.SUCCESS;return e<k.MIN||e>k.MAX?s=g.TYPES.ERROR:(e<k.MIN_SWAG||e>k.MAX_SWAG)&&(s=g.TYPES.WARNING),a(s,g.MESSAGES.REPLACE,o)},i=E=>{let e=E.length;return e===0?!0:e<i$1.MIN?a(g.TYPES.ERROR,g.MESSAGES.LENGTH_MIN,i$1.MIN.toString()):e>i$1.MAX?a(g.TYPES.ERROR,g.MESSAGES.LENGTH_MAX,i$1.MAX.toString()):!0},A=E=>{let e=E.length;return e<k.MIN?a(g.TYPES.ERROR,g.MESSAGES.LENGTH_MIN,k.MIN.toString()):e>k.MAX?a(g.TYPES.ERROR,g.MESSAGES.LENGTH_MAX,k.MAX.toString()):!0},R={getCharsLeftText:M,scope:i,title:A},l=R;
5
-
6
- export { l as a };
package/chunk-WKR7FN4J.js DELETED
@@ -1,6 +0,0 @@
1
- import { c } from './chunk-V5NV6QXN.js';
2
- import { a } from './chunk-URQ27UIO.js';
3
-
4
- var m=()=>c(a),p=m;
5
-
6
- export { p as a };
package/chunk-XUBGBYPW.js DELETED
@@ -1,5 +0,0 @@
1
- import i from 'inquirer/lib/prompts/input.js';
2
-
3
- var t=class extends i{onKeypress(){(this.rl.line===" "||this.rl.line===" ")&&this.opt.default&&(this.rl.line=`${this.opt.default} `,this.rl.cursor=this.rl.line.length),this.opt.default&&(this.opt.default=void 0),this.rl.line.length>this.opt.inputMax&&(this.rl.line=this.rl.line.slice(0,this.opt.inputMax),this.rl.cursor--),this.render();}},e=t;
4
-
5
- export { e as a };
package/chunk-YQAGIQKO.js DELETED
@@ -1,6 +0,0 @@
1
- import { a } from './chunk-URQ27UIO.js';
2
- import e from 'lodash/find.js';
3
-
4
- var s=(i,n,o)=>{let r=e(a,m=>m[n]===i);return r==null?void 0:r[o]};
5
-
6
- export { s as a };
@@ -1,22 +0,0 @@
1
- export { a as default } from '../../chunk-AEEWYCBG.js';
2
- import '../../chunk-D774JQK5.js';
3
- import '../../chunk-HYPQ3SZH.js';
4
- import '../../chunk-DEIKIR25.js';
5
- import '../../chunk-W6TUQVXI.js';
6
- import '../../chunk-BFFJJU24.js';
7
- import '../../chunk-2DSXPOM7.js';
8
- import '../../chunk-BYWR53VH.js';
9
- import '../../chunk-EZBSOYFU.js';
10
- import '../../chunk-XUBGBYPW.js';
11
- import '../../chunk-R7UWR6EN.js';
12
- import '../../chunk-V5NV6QXN.js';
13
- import '../../chunk-CPVJCJWJ.js';
14
- import '../../chunk-K2XWQRSU.js';
15
- import '../../chunk-PTTHNJU4.js';
16
- import '../../chunk-DKTSYYG7.js';
17
- import '../../chunk-66FW7ROH.js';
18
- import '../../chunk-4U66XFH5.js';
19
- import '../../chunk-I37OINLR.js';
20
- import '../../chunk-YQAGIQKO.js';
21
- import '../../chunk-URQ27UIO.js';
22
- import '../../chunk-2T4Q2JKX.js';
@@ -1,23 +0,0 @@
1
- export { a as default } from '../../chunk-NFPWBI3B.js';
2
- import '../../chunk-AEEWYCBG.js';
3
- import '../../chunk-D774JQK5.js';
4
- import '../../chunk-HYPQ3SZH.js';
5
- import '../../chunk-DEIKIR25.js';
6
- import '../../chunk-W6TUQVXI.js';
7
- import '../../chunk-BFFJJU24.js';
8
- import '../../chunk-2DSXPOM7.js';
9
- import '../../chunk-BYWR53VH.js';
10
- import '../../chunk-EZBSOYFU.js';
11
- import '../../chunk-XUBGBYPW.js';
12
- import '../../chunk-R7UWR6EN.js';
13
- import '../../chunk-V5NV6QXN.js';
14
- import '../../chunk-CPVJCJWJ.js';
15
- import '../../chunk-K2XWQRSU.js';
16
- import '../../chunk-PTTHNJU4.js';
17
- import '../../chunk-DKTSYYG7.js';
18
- import '../../chunk-66FW7ROH.js';
19
- import '../../chunk-4U66XFH5.js';
20
- import '../../chunk-I37OINLR.js';
21
- import '../../chunk-YQAGIQKO.js';
22
- import '../../chunk-URQ27UIO.js';
23
- import '../../chunk-2T4Q2JKX.js';
@@ -1,19 +0,0 @@
1
- export { a as default } from '../../chunk-DEIKIR25.js';
2
- import '../../chunk-W6TUQVXI.js';
3
- import '../../chunk-BFFJJU24.js';
4
- import '../../chunk-2DSXPOM7.js';
5
- import '../../chunk-BYWR53VH.js';
6
- import '../../chunk-EZBSOYFU.js';
7
- import '../../chunk-XUBGBYPW.js';
8
- import '../../chunk-R7UWR6EN.js';
9
- import '../../chunk-V5NV6QXN.js';
10
- import '../../chunk-CPVJCJWJ.js';
11
- import '../../chunk-K2XWQRSU.js';
12
- import '../../chunk-PTTHNJU4.js';
13
- import '../../chunk-DKTSYYG7.js';
14
- import '../../chunk-66FW7ROH.js';
15
- import '../../chunk-4U66XFH5.js';
16
- import '../../chunk-I37OINLR.js';
17
- import '../../chunk-YQAGIQKO.js';
18
- import '../../chunk-URQ27UIO.js';
19
- import '../../chunk-2T4Q2JKX.js';
@@ -1,18 +0,0 @@
1
- export { a as default } from '../../chunk-W6TUQVXI.js';
2
- import '../../chunk-BFFJJU24.js';
3
- import '../../chunk-2DSXPOM7.js';
4
- import '../../chunk-BYWR53VH.js';
5
- import '../../chunk-EZBSOYFU.js';
6
- import '../../chunk-XUBGBYPW.js';
7
- import '../../chunk-R7UWR6EN.js';
8
- import '../../chunk-V5NV6QXN.js';
9
- import '../../chunk-CPVJCJWJ.js';
10
- import '../../chunk-K2XWQRSU.js';
11
- import '../../chunk-PTTHNJU4.js';
12
- import '../../chunk-DKTSYYG7.js';
13
- import '../../chunk-66FW7ROH.js';
14
- import '../../chunk-4U66XFH5.js';
15
- import '../../chunk-I37OINLR.js';
16
- import '../../chunk-YQAGIQKO.js';
17
- import '../../chunk-URQ27UIO.js';
18
- import '../../chunk-2T4Q2JKX.js';
@@ -1,18 +0,0 @@
1
- export { a as default } from '../../chunk-D774JQK5.js';
2
- import '../../chunk-BFFJJU24.js';
3
- import '../../chunk-2DSXPOM7.js';
4
- import '../../chunk-BYWR53VH.js';
5
- import '../../chunk-EZBSOYFU.js';
6
- import '../../chunk-XUBGBYPW.js';
7
- import '../../chunk-R7UWR6EN.js';
8
- import '../../chunk-V5NV6QXN.js';
9
- import '../../chunk-CPVJCJWJ.js';
10
- import '../../chunk-K2XWQRSU.js';
11
- import '../../chunk-PTTHNJU4.js';
12
- import '../../chunk-DKTSYYG7.js';
13
- import '../../chunk-66FW7ROH.js';
14
- import '../../chunk-4U66XFH5.js';
15
- import '../../chunk-I37OINLR.js';
16
- import '../../chunk-YQAGIQKO.js';
17
- import '../../chunk-URQ27UIO.js';
18
- import '../../chunk-2T4Q2JKX.js';
@@ -1,18 +0,0 @@
1
- export { a as default } from '../../chunk-HYPQ3SZH.js';
2
- import '../../chunk-BFFJJU24.js';
3
- import '../../chunk-2DSXPOM7.js';
4
- import '../../chunk-BYWR53VH.js';
5
- import '../../chunk-EZBSOYFU.js';
6
- import '../../chunk-XUBGBYPW.js';
7
- import '../../chunk-R7UWR6EN.js';
8
- import '../../chunk-V5NV6QXN.js';
9
- import '../../chunk-CPVJCJWJ.js';
10
- import '../../chunk-K2XWQRSU.js';
11
- import '../../chunk-PTTHNJU4.js';
12
- import '../../chunk-DKTSYYG7.js';
13
- import '../../chunk-66FW7ROH.js';
14
- import '../../chunk-4U66XFH5.js';
15
- import '../../chunk-I37OINLR.js';
16
- import '../../chunk-YQAGIQKO.js';
17
- import '../../chunk-URQ27UIO.js';
18
- import '../../chunk-2T4Q2JKX.js';
package/commands/index.js DELETED
@@ -1,26 +0,0 @@
1
- import '../chunk-5G4NZZCD.js';
2
- export { a as list } from '../chunk-V2UIRJOD.js';
3
- import '../chunk-WKR7FN4J.js';
4
- export { a as commit } from '../chunk-NFPWBI3B.js';
5
- import '../chunk-AEEWYCBG.js';
6
- import '../chunk-D774JQK5.js';
7
- import '../chunk-HYPQ3SZH.js';
8
- import '../chunk-DEIKIR25.js';
9
- import '../chunk-W6TUQVXI.js';
10
- import '../chunk-BFFJJU24.js';
11
- import '../chunk-2DSXPOM7.js';
12
- import '../chunk-BYWR53VH.js';
13
- import '../chunk-EZBSOYFU.js';
14
- import '../chunk-XUBGBYPW.js';
15
- import '../chunk-R7UWR6EN.js';
16
- import '../chunk-V5NV6QXN.js';
17
- import '../chunk-CPVJCJWJ.js';
18
- import '../chunk-K2XWQRSU.js';
19
- import '../chunk-PTTHNJU4.js';
20
- import '../chunk-DKTSYYG7.js';
21
- import '../chunk-66FW7ROH.js';
22
- import '../chunk-4U66XFH5.js';
23
- import '../chunk-I37OINLR.js';
24
- import '../chunk-YQAGIQKO.js';
25
- import '../chunk-URQ27UIO.js';
26
- import '../chunk-2T4Q2JKX.js';
@@ -1,19 +0,0 @@
1
- export { a as default } from '../../chunk-V2UIRJOD.js';
2
- import '../../chunk-WKR7FN4J.js';
3
- import '../../chunk-BFFJJU24.js';
4
- import '../../chunk-2DSXPOM7.js';
5
- import '../../chunk-BYWR53VH.js';
6
- import '../../chunk-EZBSOYFU.js';
7
- import '../../chunk-XUBGBYPW.js';
8
- import '../../chunk-R7UWR6EN.js';
9
- import '../../chunk-V5NV6QXN.js';
10
- import '../../chunk-CPVJCJWJ.js';
11
- import '../../chunk-K2XWQRSU.js';
12
- import '../../chunk-PTTHNJU4.js';
13
- import '../../chunk-DKTSYYG7.js';
14
- import '../../chunk-66FW7ROH.js';
15
- import '../../chunk-4U66XFH5.js';
16
- import '../../chunk-I37OINLR.js';
17
- import '../../chunk-YQAGIQKO.js';
18
- import '../../chunk-URQ27UIO.js';
19
- import '../../chunk-2T4Q2JKX.js';
@@ -1,18 +0,0 @@
1
- export { a as default } from '../../chunk-WKR7FN4J.js';
2
- import '../../chunk-BFFJJU24.js';
3
- import '../../chunk-2DSXPOM7.js';
4
- import '../../chunk-BYWR53VH.js';
5
- import '../../chunk-EZBSOYFU.js';
6
- import '../../chunk-XUBGBYPW.js';
7
- import '../../chunk-R7UWR6EN.js';
8
- import '../../chunk-V5NV6QXN.js';
9
- import '../../chunk-CPVJCJWJ.js';
10
- import '../../chunk-K2XWQRSU.js';
11
- import '../../chunk-PTTHNJU4.js';
12
- import '../../chunk-DKTSYYG7.js';
13
- import '../../chunk-66FW7ROH.js';
14
- import '../../chunk-4U66XFH5.js';
15
- import '../../chunk-I37OINLR.js';
16
- import '../../chunk-YQAGIQKO.js';
17
- import '../../chunk-URQ27UIO.js';
18
- import '../../chunk-2T4Q2JKX.js';
package/data/types.js DELETED
@@ -1,2 +0,0 @@
1
- export { a as default } from '../chunk-URQ27UIO.js';
2
- import '../chunk-2T4Q2JKX.js';
package/lib/index.js DELETED
@@ -1 +0,0 @@
1
- export { a as COMMANDS, b as COMMIT_FORMATS, c as COMMIT_MODES, d as FIND_BY, e as FLAGS, f as FORMAT, g as LOGS, h as OPTIONS, i as SCOPE, j as SEMVER, k as TITLE, l as TYPE } from '../chunk-2T4Q2JKX.js';
package/utils/cancelIf.js DELETED
@@ -1 +0,0 @@
1
- export { b as COMMIT_MESSAGE_SOURCE, c as cancelIfAmending, d as cancelIfNeeded, a as cancelIfRebasing } from '../chunk-4U66XFH5.js';
package/utils/filter.js DELETED
@@ -1 +0,0 @@
1
- export { a as filterGitmojis } from '../chunk-I37OINLR.js';
package/utils/findBy.js DELETED
@@ -1,3 +0,0 @@
1
- export { a as findBy } from '../chunk-YQAGIQKO.js';
2
- import '../chunk-URQ27UIO.js';
3
- import '../chunk-2T4Q2JKX.js';
@@ -1,17 +0,0 @@
1
- export { a as findCommand } from '../chunk-BFFJJU24.js';
2
- import '../chunk-2DSXPOM7.js';
3
- import '../chunk-BYWR53VH.js';
4
- import '../chunk-EZBSOYFU.js';
5
- import '../chunk-XUBGBYPW.js';
6
- import '../chunk-R7UWR6EN.js';
7
- import '../chunk-V5NV6QXN.js';
8
- import '../chunk-CPVJCJWJ.js';
9
- import '../chunk-K2XWQRSU.js';
10
- import '../chunk-PTTHNJU4.js';
11
- import '../chunk-DKTSYYG7.js';
12
- import '../chunk-66FW7ROH.js';
13
- import '../chunk-4U66XFH5.js';
14
- import '../chunk-I37OINLR.js';
15
- import '../chunk-YQAGIQKO.js';
16
- import '../chunk-URQ27UIO.js';
17
- import '../chunk-2T4Q2JKX.js';
package/utils/format.js DELETED
@@ -1,2 +0,0 @@
1
- export { a as formatCliEmoji, b as formatCliType, c as formatCliTypes, d as formatCommitSubject } from '../chunk-V5NV6QXN.js';
2
- import '../chunk-2T4Q2JKX.js';
@@ -1,2 +0,0 @@
1
- export { a as generateLog } from '../chunk-CPVJCJWJ.js';
2
- import '../chunk-2T4Q2JKX.js';
@@ -1,17 +0,0 @@
1
- export { b as getDefaultCommitContent } from '../chunk-BFFJJU24.js';
2
- import '../chunk-2DSXPOM7.js';
3
- import '../chunk-BYWR53VH.js';
4
- import '../chunk-EZBSOYFU.js';
5
- import '../chunk-XUBGBYPW.js';
6
- import '../chunk-R7UWR6EN.js';
7
- import '../chunk-V5NV6QXN.js';
8
- import '../chunk-CPVJCJWJ.js';
9
- import '../chunk-K2XWQRSU.js';
10
- import '../chunk-PTTHNJU4.js';
11
- import '../chunk-DKTSYYG7.js';
12
- import '../chunk-66FW7ROH.js';
13
- import '../chunk-4U66XFH5.js';
14
- import '../chunk-I37OINLR.js';
15
- import '../chunk-YQAGIQKO.js';
16
- import '../chunk-URQ27UIO.js';
17
- import '../chunk-2T4Q2JKX.js';
@@ -1 +0,0 @@
1
- export { a as getEmojis } from '../chunk-K2XWQRSU.js';
@@ -1 +0,0 @@
1
- export { a as getGitRootDir } from '../chunk-PTTHNJU4.js';
@@ -1 +0,0 @@
1
- export { a as getIssueTracker } from '../chunk-DKTSYYG7.js';
@@ -1 +0,0 @@
1
- export { a as getStagedFiles } from '../chunk-66FW7ROH.js';
package/utils/index.js DELETED
@@ -1,17 +0,0 @@
1
- export { a as findCommand, b as getDefaultCommitContent } from '../chunk-BFFJJU24.js';
2
- export { a as printDryRun } from '../chunk-2DSXPOM7.js';
3
- export { a as PromptInputLimited } from '../chunk-BYWR53VH.js';
4
- export { a as PromptInputPrepopulate } from '../chunk-EZBSOYFU.js';
5
- export { a as PromptInputPrepopulateLimited } from '../chunk-XUBGBYPW.js';
6
- export { a as registerHookInterruptionHandler } from '../chunk-R7UWR6EN.js';
7
- export { a as formatCliEmoji, b as formatCliType, c as formatCliTypes, d as formatCommitSubject } from '../chunk-V5NV6QXN.js';
8
- export { a as generateLog } from '../chunk-CPVJCJWJ.js';
9
- export { a as getEmojis } from '../chunk-K2XWQRSU.js';
10
- export { a as getGitRootDir } from '../chunk-PTTHNJU4.js';
11
- export { a as getIssueTracker } from '../chunk-DKTSYYG7.js';
12
- export { a as getStagedFiles } from '../chunk-66FW7ROH.js';
13
- export { b as COMMIT_MESSAGE_SOURCE, c as cancelIfAmending, d as cancelIfNeeded, a as cancelIfRebasing } from '../chunk-4U66XFH5.js';
14
- export { a as filterGitmojis } from '../chunk-I37OINLR.js';
15
- export { a as findBy } from '../chunk-YQAGIQKO.js';
16
- import '../chunk-URQ27UIO.js';
17
- import '../chunk-2T4Q2JKX.js';
@@ -1 +0,0 @@
1
- export { a as printDryRun } from '../chunk-2DSXPOM7.js';
@@ -1 +0,0 @@
1
- export { a as default } from '../chunk-BYWR53VH.js';
@@ -1 +0,0 @@
1
- export { a as default } from '../chunk-EZBSOYFU.js';
@@ -1 +0,0 @@
1
- export { a as default } from '../chunk-XUBGBYPW.js';
@@ -1 +0,0 @@
1
- export { a as registerHookInterruptionHandler } from '../chunk-R7UWR6EN.js';