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.

detect repository in package.json

See original GitHub issue

In the current implementation, repo is a required option. We could attempt to look for it in a package.json file, and parse it using github-url-to-object or similar. I would be in favor of looking for the package.json in the process.cwd() or similar, and failing fast if it’s not there, rather than trying to move up the directory tree in search of another package.json file.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
timfishcommented, Apr 18, 2018

My explanation was a rather complicated way of saying that when the app gets packaged, app becomes the root 😆

0reactions
zekecommented, Apr 26, 2018

🎉 This issue has been resolved in version 1.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

package.json - npm Docs
This helps people discover your package, as it's listed in npm search . ... the git repo is on GitHub, then the npm...
Read more >
Search for GitHub repos which have certain package.json ...
I can get all repos which use next-mdx-enhanced by visiting next-mdx-enhanced repo and clicking on Used by xxx i.e. dependency graph. Similar ...
Read more >
The Basics of Package.json - NodeSource
The repository property. The repository property of a package.json is an array that defines where the source code for the module lives.
Read more >
package.json Quick Start Guide | phoenixNAP KB
Learn how the package.json file lets you automatically manage various Node.js package metadata, such as project dependencies in this guide.
Read more >
find-package-json - npm Package Health Analysis - Snyk
Find package.json files in parent directories, keep finding until you find the right one using iterators. For more information about how to use...
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