@ivuorinen/config-checker 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/config-checker.js +1 -0
- package/lib/configuration-paths.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Configuration packages located in this repository use this tool to check for exi
|
|
|
24
24
|
|
|
25
25
|
### Real world example
|
|
26
26
|
|
|
27
|
-
For commitlint-config you can find the usage in the [commitlint-config postinstall.
|
|
27
|
+
For commitlint-config you can find the usage in the [commitlint-config postinstall.cjs][commitlint-postinstall-link] file.
|
|
28
28
|
|
|
29
29
|
Here's a snippet from the file:
|
|
30
30
|
|
|
@@ -44,7 +44,7 @@ if (foundConfig.length > 0) {
|
|
|
44
44
|
### Locations scanned
|
|
45
45
|
|
|
46
46
|
| Searched configuration files |
|
|
47
|
-
|
|
47
|
+
|-------------------------------------|
|
|
48
48
|
| `[module name]` |
|
|
49
49
|
| `[module name]`rc |
|
|
50
50
|
| `[module name]`rc.json |
|
|
@@ -122,13 +122,13 @@ See [CHANGELOG][changelog-link] for a human-readable history of changes.
|
|
|
122
122
|
|
|
123
123
|
## License
|
|
124
124
|
|
|
125
|
-
This project is licensed under the MIT License - see the [LICENSE.md]
|
|
125
|
+
This project is licensed under the MIT License - see the [LICENSE.md][license-link] file for details.
|
|
126
126
|
|
|
127
127
|
[changelog-link]: ./CHANGELOG.md
|
|
128
128
|
[contributing-link]: https://github.com/ivuorinen/.github/blob/main/CONTRIBUTING.md
|
|
129
129
|
[issue-link]: https://github.com/ivuorinen/base-configs/issues
|
|
130
130
|
[license-badge]: https://img.shields.io/github/license/ivuorinen/base-configs?style=flat-square&labelColor=292a44&color=663399
|
|
131
|
-
[license-link]: ./LICENSE
|
|
131
|
+
[license-link]: ./LICENSE.md
|
|
132
132
|
[npm-badge]: https://img.shields.io/npm/v/@ivuorinen/config-checker?style=flat-square&labelColor=292a44&color=663399
|
|
133
133
|
[npm-link]: https://www.npmjs.com/package/@ivuorinen/config-checker
|
|
134
134
|
[pull-request-link]: https://github.com/ivuorinen/base-configs/pulls
|
package/lib/config-checker.js
CHANGED
|
@@ -7,7 +7,7 @@ const path = require('path')
|
|
|
7
7
|
* @param {string} moduleName - The name of the module to check for.
|
|
8
8
|
* @returns {string[]} - The paths to the configuration files.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
const configurationPaths = moduleName => {
|
|
11
11
|
const filesPlain = [
|
|
12
12
|
moduleName,
|
|
13
13
|
`${moduleName}rc`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivuorinen/config-checker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Checks the commonly used configuration locations for configuration files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"check-config",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bugs": {
|
|
40
40
|
"url": "https://github.com/ivuorinen/base-configs/issues"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "2a2dde00803ee485083f45f123562dec9427a50d"
|
|
43
43
|
}
|