Skip to content

Commit 98ddfdf

Browse files
committed
Rename changelog directory
1 parent 2682b53 commit 98ddfdf

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

changelog/01.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/changelog-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import semver from "semver";
44
import simpleGit from "simple-git";
55

66
export async function addToChangelog(changeType) {
7-
const changelogPath = path.resolve(process.cwd(), "./changelog");
7+
const changelogPath = path.resolve(process.cwd(), "./.changelog");
88
let existingFiles;
99

1010
try {
@@ -40,7 +40,7 @@ export async function prepareRelease() {
4040

4141
let existingFiles;
4242
try {
43-
existingFiles = fs.readdirSync(path.resolve(process.cwd(), "./changelog"));
43+
existingFiles = fs.readdirSync(path.resolve(process.cwd(), "./.changelog"));
4444
} catch (err) {
4545
existingFiles = [];
4646
}
@@ -58,7 +58,7 @@ export async function prepareRelease() {
5858

5959
for (let existingFile of existingFiles) {
6060
const contents = fs.readFileSync(
61-
path.resolve(process.cwd(), "changelog", existingFile),
61+
path.resolve(process.cwd(), ".changelog", existingFile),
6262
"utf-8",
6363
);
6464
console.log("contents", contents);

0 commit comments

Comments
 (0)