Release v1.5.0 #8
3
.rczrc
3
.rczrc
@@ -3,6 +3,7 @@
|
||||
"commands",
|
||||
"changelog",
|
||||
"readme",
|
||||
"release"
|
||||
"release",
|
||||
"config"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
12
src/index.ts
12
src/index.ts
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user