@favware/cliff-jumper
Version:
A small CLI tool to create a semantic release and git-cliff powered Changelog
25 lines • 1.24 kB
JavaScript
import { join } from 'node:path';
import { URL } from 'node:url';
/** The root directory of the CLI tool */
export const cliRootDir = new URL('../../', import.meta.url);
/** Current working directory from which the script is called */
export const packageCwd = process.cwd();
/** The path to the CHANGELOG file */
export const changelogPath = (changelogPrependFile = 'CHANGELOG.md') => join(packageCwd, changelogPrependFile);
/** Path to the config file in proprietary format */
export const cliffJumperRcPath = join(packageCwd, '.cliff-jumperrc');
/** The path to the cliff.toml file for git-cliff */
export const cliffTomlPath = join(packageCwd, 'cliff.toml');
/** Path to the config file in .json format */
export const cliffJumperRcJsonPath = `${cliffJumperRcPath}.json`;
/** Path to the config file in .yml format */
export const cliffJumperRcYmlPath = `${cliffJumperRcPath}.yml`;
/** Path to the config file in .yaml format */
export const cliffJumperRcYamlPath = `${cliffJumperRcPath}.yaml`;
/** 4 spaces indent for logging */
export const indent = ' '.repeat(4);
export const OctokitRequestHeaders = {
'X-GitHub-Api-Version': '2022-11-28',
Accept: 'application/vnd.github+json'
};
//# sourceMappingURL=constants.js.map