Skip to content

Commit

Permalink
Update get-changelog.js
Browse files Browse the repository at this point in the history
remove `cwcVersion` and `wcVersion`
remove `react` package log
  • Loading branch information
emyarod authored Jan 19, 2024
1 parent 7828019 commit 04207da
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions tasks/get-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ const { tagFrom } = args;
*/
const { tagTo } = args;

/**
* Web Components release version (-v)
*
* @type {string}
*/
const { wcVersion } = args;

/**
* Web Components release version (-v)
*
* @type {string}
*/
const { cwcVersion } = args;
// /**
// * Web Components release version (-v)
// *
// * @type {string}
// */
// const { wcVersion } = args;

// /**
// * Web Components release version (-v)
// *
// * @type {string}
// */
// const { cwcVersion } = args;

/**
* Uses a delimiter for splitting the comments into an array
Expand Down Expand Up @@ -125,14 +125,14 @@ function getChangelog(pkgName, folder) {
// Stores the changelog
let changelog = `## ${pkgName}\n`;

// Set Web Components version next to package name
if (pkgName === 'Web Components') {
changelog = `## ${pkgName} (${wcVersion})\n`;
}
// // Set Web Components version next to package name
// if (pkgName === 'Web Components') {
// changelog = `## ${pkgName} (${wcVersion})\n`;
// }

if (pkgName === 'Carbon Web Components') {
changelog = `## ${pkgName} (${cwcVersion})\n`;
}
// if (pkgName === 'Carbon Web Components') {
// changelog = `## ${pkgName} (${cwcVersion})\n`;
// }

// Stores the list of features
const features = {};
Expand Down Expand Up @@ -235,7 +235,7 @@ function generateLog() {
'./packages/carbon-web-components'
);
log += getChangelog('Web Components', './packages/web-components');
log += getChangelog('React', './packages/react');
// log += getChangelog('React', './packages/react');
log += getChangelog('Styles', './packages/styles');
log += getChangelog('Services', './packages/services');
log += getChangelog('Services Store', './packages/services-store');
Expand Down

0 comments on commit 04207da

Please sign in to comment.