@r4lrgx/gitmoji
Version:
🧱 My customized Gitmoji Config - a fork of https://github.com/arvinxx/gitmoji-commit-workflow - just with several bug fixes and a cleaner look.
36 lines (33 loc) • 1.13 kB
TypeScript
import { Commit, Context } from './types/index.js';
import whatBump from './whatBump.js';
import '../commit-types/types/index.js';
/**
* Creates a complete semantic-release preset configuration
* @returns {Object} Configuration object containing:
* @property {Object} parser - Commit parser options
* @property {Object} writer - Changelog writer options
* @property {Function} whatBump - Version bump calculator function
*/
declare function createPreset(): {
parser: {
noteKeywords: string[];
revertPattern: RegExp;
revertCorrespondcene: string[];
headerPattern: RegExp;
headerCorrespondence: string[];
};
writer: {
transform: (commit: Commit, context: Context) => Commit | void;
groupBy: string;
commitGroupsSort: string;
commitsSort: string[];
noteGroupsSort: string;
mainTemplate: string;
headerPartial: string;
commitPartial: string;
footerPartial: string;
finalizeContext: (context: Context) => Context;
};
whatBump: typeof whatBump;
};
export { createPreset as default };