Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When target file is a JSON file, give the option to "merge" all found targets #1

Open
lillem4n opened this issue Oct 24, 2016 · 0 comments

Comments

@lillem4n
Copy link
Member

For example if bar.json is requested and a file is found in application/node_modules/foo/bar.json:

{
  "a": 100,
  "b": "maybe"
}

And another, higher priority, file is found in application/bar.json:

{
  "a": 250
}

The result from fs.getMergedPathSync('bar.json') will be:

{
  "a": 250,
  "b": "maybe"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant