UNPKG

@semantic-release/git

Version:

semantic-release plugin to commit release assets to the project's git repository

22 lines (17 loc) 782 B
import pkg from "../../package.json" with { type: "json" }; const [homepage] = pkg.homepage.split("#"); const linkify = (file) => `${homepage}/blob/master/${file}`; export default { EINVALIDASSETS: ({ assets }) => ({ message: "Invalid `assets` option.", details: `The [assets option](${linkify( "README.md#assets", )}) option must be an \`Array\` of \`Strings\` or \`Objects\` with a \`path\` property. Your configuration for the \`assets\` option is \`${assets}\`.`, }), EINVALIDMESSAGE: ({ message }) => ({ message: "Invalid `message` option.", details: `The [message option](${linkify("README.md#message")}) option, if defined, must be a non empty \`String\`. Your configuration for the \`successComment\` option is \`${message}\`.`, }), };