Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: default git repository value if exist (#315)
Fix for correctly inspect git config value and use remote repository url as repository value in default pacakage json value Fixes npm/cli#7940 Testing ```sh ~/workarea/test-repo $ lnpm init -y Wrote to /Users/milaninfy/workarea/test-repo/package.json: { "name": "test-repo", "version": "1.0.0", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/milaninfy/test-repo.git" }, "keywords": [], "author": "", "license": "ISC", "bugs": { "url": "https://github.com/milaninfy/test-repo/issues" }, "homepage": "https://github.com/milaninfy/test-repo#readme", "description": "" } ```
- Loading branch information