Skip to content

Commit 8267c24

Browse files
authored
chore: fix changelog generation (#220)
1 parent af428c8 commit 8267c24

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scripts/changelog.mjs

+9-9
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ async function processPackages() {
3535
packages.set(pkg.name, pkg);
3636
}
3737

38-
// overwrites temporarily the version on the `tutorialkit` package as it's released separately later
39-
const tutorialkit = packages.get('tutorialkit');
38+
// overwrites temporarily the version on the `@tutorialkit/cli` package as it's released separately later
39+
const tutorialkitCli = packages.get('@tutorialkit/cli');
4040
const tutorialkitAstro = packages.get('@tutorialkit/astro');
4141

42-
const originalVersion = tutorialkit.version;
43-
tutorialkit.version = tutorialkitAstro.version;
42+
const originalVersion = tutorialkitCli.version;
43+
tutorialkitCli.version = tutorialkitAstro.version;
4444

45-
tutorialkit.write();
45+
tutorialkitCli.write();
4646

4747
// generate change logs
4848
await Promise.all(
@@ -67,15 +67,15 @@ async function processPackages() {
6767
// generate root changelog
6868
await generateChangelog(
6969
{
70-
version: tutorialkit.version,
71-
path: tutorialkit.path,
70+
version: tutorialkitCli.version,
71+
path: tutorialkitCli.path,
7272
gitPath: '.',
7373
changelogPath: 'CHANGELOG.md',
7474
},
7575
PRESET,
7676
);
7777

7878
// reset the version of the CLI:
79-
tutorialkit.version = originalVersion;
80-
tutorialkit.write();
79+
tutorialkitCli.version = originalVersion;
80+
tutorialkitCli.write();
8181
}

0 commit comments

Comments
 (0)