Release v1.5.0 #8

Merged
CTO merged 4 commits from develop into main 2023-08-23 19:47:45 +00:00
3 changed files with 15 additions and 2 deletions
Showing only changes of commit 5080d71fb8 - Show all commits

3
.rczrc
View File

@@ -3,6 +3,7 @@
"commands",
"changelog",
"readme",
"release"
"release",
"config"
]
}

View File

@@ -23,7 +23,7 @@ Resultium commit standardization library
## Configuration
You can create an `.rczrc` file in your root directory and specify available scopes and commit types
You can create an `.rczrc`, `.rczrc.json` or `rcz.config.json` file in your root directory and specify available scopes and commit types
```json
{

View File

@@ -24,6 +24,18 @@ const GetConfig = async () => {
await fs.promises.readFile(path.join(process.cwd(), ".rczrc"))
).toString()
) as Config;
} else if (fs.existsSync(path.join(process.cwd(), ".rczrc.json"))) {
return JSON.parse(
(
await fs.promises.readFile(path.join(process.cwd(), ".rczrc.json"))
).toString()
) as Config;
} else if (fs.existsSync(path.join(process.cwd(), "rcz.config.json"))) {
return JSON.parse(
(
await fs.promises.readFile(path.join(process.cwd(), "rcz.config.json"))
).toString()
) as Config;
} else {
return null;
}