Skip to content

Commit

Permalink
cd(release): address transient misbehavior from semantic-release/chan…
Browse files Browse the repository at this point in the history
…gelog

Specifically, the decision to start dumping warning text into perfectly good
output text in a non-major release of a deep dependency (marked) is kind of
effed up. More information here: markedjs/marked#2793
  • Loading branch information
Xunnamius committed Nov 4, 2023
1 parent 85f9724 commit 4df230a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ module.exports = {
prepareCmd: 'NODE_ENV=format npx remark --output --frail CHANGELOG.md'
}
],
[
// ! Account for marked's incredibly short-sighted decision to
// ! MIX WARNING TEXT WITH PERFECTLY FINE F****NG OUTPUT TEXT WTF
'@semantic-release/exec',
{
prepareCmd: `node -e '
const fs = require("node:fs");
fs.writeFileSync("CHANGELOG.md", fs.readFileSync("CHANGELOG.md", "utf8")
.split("\n")
.filter(line => !line.startsWith("marked()"))
.join("\n")
);
'`
}
],
[
'@semantic-release/exec',
{
Expand Down

0 comments on commit 4df230a

Please sign in to comment.