question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested packageProp path

See original GitHub issue

Using cosmiconfig in a yarn version tool, yvm. It would be helpful to be able to use the yarn version in the package.json engines prop as a search place for configuration. e.g.

packageProp: 'engines.yarn',

A custom loader would probably work, but it seemed like a useful native feature regardless.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
iamogbzcommented, Jan 26, 2019

@davidtheclark I can put up a PR with this change, already have most of the code running locally.

1reaction
davidtheclarkcommented, Jan 26, 2019

Yeah, I think this is something we should support, @iamogbz. Since this is the first request related to a custom package.json loader, I think I’m in favor of supporting dot notation (as @iamogbz suggests) instead of allowing people to specify custom package.json loaders — which seems like a more significant change, and I’m having a hard time thinking of what people might do other than the equivalent of dot notation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nested-prop-paths - npm
nested-prop-paths. Use when you don't know path to a key/prop. Finds null value prop. Returns all paths, then we can filter the path...
Read more >
How to denormalize nested list in R? - Stack Overflow
I'd like to find a clean and readable way to convert a structure like src (parsed from JSON, that's why there are a...
Read more >
yvolohov/prop-extractor: Get values from complicated data ... - GitHub
Get values from complicated data structures, nested arrays and objects, using request string like 'foo.[].bar.[].baz'. www.npmjs.com/package/prop-extractor.
Read more >
prop-extractor - npm Package Health Analysis | Snyk
Get values from complicated data structures, nested arrays and objects, ... The npm package prop-extractor receives a total of 1 downloads a week....
Read more >
ScalaTest 3.0.8 - org.scalatest.path - javadoc.io
Using a path class, you can make a statement in text, then implement that statement in code (including mutating state), and nest and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found