forked from OfficeDev/microsoft-teams-library-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeachball.config.js
More file actions
31 lines (28 loc) · 805 Bytes
/
Copy pathbeachball.config.js
File metadata and controls
31 lines (28 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const fs = require('fs');
const postbump = (packagePath, packageName, packageVersion) => {
fs.rm(`${packagePath}/CHANGELOG.json`, err => {
if (err) {
console.log(err.message);
return;
}
return;
});
};
// Overriding the default entry renderer so that it just shows the comment without the author.
const customRenderEntry = ChangelogEntry => new Promise(res => res(`- ${ChangelogEntry.comment}`));
module.exports = {
branch: 'origin/main',
bumpDeps: false,
disallowedChangeTypes: ['prerelease'],
generateChangelog: true,
hooks: { postbump },
ignorePatterns: ['.*ignore', '*config.js', '*.md', '**/test/**'],
publish: false,
push: false,
scope: ['packages/teams-js'],
changelog: {
customRenderers: {
renderEntry: customRenderEntry,
},
},
};