persona-community-5/.pnpm-store/v3/files/48/50720fb8b9f18d5e4622dfe3aafef4672db34c4ee76ce34c88968d50349d32e0574ab61b4f9de07001efedbf5980d8ce769925eda6db8c204c317bebbc6143
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

26 lines
946 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TagDescriptionOverride = void 0;
const utils_1 = require("../../utils");
const TagDescriptionOverride = ({ tagNames }) => {
return {
Tag: {
leave(tag, { report }) {
if (!tagNames)
throw new Error(`Parameter "tagNames" is not provided for "tag-description-override" rule`);
if (tagNames[tag.name]) {
try {
tag.description = (0, utils_1.readFileAsStringSync)(tagNames[tag.name]);
}
catch (e) {
report({
message: `Failed to read markdown override file for tag "${tag.name}".\n${e.message}`,
});
}
}
},
},
};
};
exports.TagDescriptionOverride = TagDescriptionOverride;