-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] npm t8r: Fix collection fallback with missing package.json
If the dependency resolution falls back to try resolving via a collection it looks for a package.json in the path above the current module. The current implementation throws when no package.json could be found at all.
- Loading branch information
1 parent
4b32134
commit 578466f
Showing
3 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "err.application.a", | ||
"version": "1.0.0", | ||
"description": "Simple SAPUI5 based application - test for missing dependencies", | ||
"main": "index.html", | ||
"dependencies": { | ||
"library.xx": "file:../not.existing" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters