Skip to content

Commit f2e36db

Browse files
authored
Hotfix for relative path shared config objects (#23)
1 parent 79f8fb1 commit f2e36db

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
### Removed
1313

14+
## [2.0.1] - 2017-02-18
15+
### Fixed
16+
- Issue with relative path local config extension modules. Now relative path modules are load relative to the current working directory of the active process.
17+
1418
## [2.0.0] - 2017-02-18
1519
### Added
1620
- Support configuration extension!! Now you can add "extends" to your rc file to extend a based configuration. This is great for sharing a standard ruleset between many projects. Please see the [wiki](https://github.com/tclindner/npm-package-json-lint/wiki) for more information.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-package-json-lint",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "CLI app for linting package.json files.",
55
"keywords": [
66
"lint",

src/Config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Config {
9898
*/
9999
_getExtendsConfigModule(moduleName) {
100100
/* istanbul ignore next */
101-
return require(moduleName);
101+
return require(path.join(process.cwd(), moduleName));
102102
}
103103

104104
/**

0 commit comments

Comments
 (0)