Files
actions-ansi-to-html/node_modules/@semantic-release/changelog/lib/definitions/errors.js
T
2025-11-11 06:53:11 -05:00

24 lines
818 B
JavaScript

const pkg = require('../../package.json');
const [homepage] = pkg.homepage.split('#');
const linkify = file => `${homepage}/blob/master/${file}`;
module.exports = {
EINVALIDCHANGELOGFILE: ({changelogFile}) => ({
message: 'Invalid `changelogFile` option.',
details: `The [changelogFile option](${linkify(
'README.md#options'
)}) option, if defined, must be a non empty \`String\`.
Your configuration for the \`changelogFile\` option is \`${changelogFile}\`.`,
}),
EINVALIDCHANGELOGTITLE: ({changelogTitle}) => ({
message: 'Invalid `changelogTitle` option.',
details: `The [changelogTitle option](${linkify(
'README.md#options'
)}) option, if defined, must be a non empty \`String\`.
Your configuration for the \`changelogTitle\` option is \`${changelogTitle}\`.`,
}),
};